Author Topic: How to write better (game) libraries  (Read 2250 times)

0 Members and 1 Guest are viewing this topic.

JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2267
    • Geeks3D.com
How to write better (game) libraries
« on: December 09, 2019, 01:55:18 PM »
Quote
The aim of this article is to provide a series of good general advice and considerations on how to design and write libraries, particularly if portability, ease of use and performance are of concern.

The word "game" is in parentheses since most of the advice also applies to non-game libraries.

Bear in mind that there is no "true way" to write a library and different people have different opinions, however, there do exist general advice and considerations that can be examined based on existing work.

This article aims to present advice based on existing libraries that are considered of quality in the community so that developers can better understand some of the considerations involved in designing a library. The list does not aim to be exhaustive, but hopefully, it can be updated to include more advice and considerations over time and serves as a starting point and educational resource to anyone interested in library design.

The core principles of this advice are:

1. Maximize portability.

2. Be easy to build.

3. Be easy to integrate.

4. Be usable in as many scenarios as possible.

Link:
- http://handmade.network/wiki/7138-how_to_write_better_game_libraries