10,448 reputation
12853
bio website klaimsden.net
location France
age 32
visits member for 4 years, 6 months
seen yesterday

Making games with my bare hands. Building narratives with my forehead.


2d
awarded  Enlightened
2d
awarded  Nice Answer
Feb
18
awarded  Necromancer
Feb
1
awarded  Disciplined
Jan
7
comment How do you version your files (Version Numbers)
Also note that it is also known as "semantic versionning" and have a complete description there: semver.org
Jan
7
awarded  Excavator
Jan
7
revised Why are there no package management systems for C and C++?
added 41 characters in body
Jan
5
comment Unsure about the decorator design pattern
The question is marked as C++ but this answer is a C# example.
Jan
3
comment Why are there no package management systems for C and C++?
This answer should be updated: 1) Ryppl is a dead project, even it's website is dead. 2) Other projects (commercial or not) like cpm have spawn recently so there is a lot of work being done for getting a package manager for C++. 3) I believe that there will be no winner until modules are in the language and one of the tools manage to exploit that to the fullest.
Dec
9
comment Allow iteration of an internal vector without leaking the implementation
You should probably also show the same code using auto as return types of iterator functions when using C++14.
Sep
30
awarded  Great Answer
Sep
15
awarded  Yearling
Jul
29
comment Are `break` and `continue` bad programming practices?
That answer is a rule of thumb, not a hard rule. It works in most cases, feel free to break it if it make sense in your context.
Jul
17
awarded  Good Answer
Jul
2
awarded  Curious
Jun
25
awarded  Nice Answer
Jun
17
awarded  Good Answer
Jun
3
comment How to maintain encapsulation with composition in C++?
I think it is best explained in details in Game Engine Architecture book, so again I recommend that you read the chapter about game object management, you might understand better. I will try to complete my answer when I have time though.
Jun
3
comment How to maintain encapsulation with composition in C++?
About inheritance, it's a long subject but 1) having arrays of objects to udpate is faster than having to go through a tree of objects spread more or less randomly around in the memory, like you are currently doing; 2) inheritance is one of the strongest types of relationships between two types: the more you try to compose objects with different unrelated features (like in a lot of games) the more you will have inter-dependant code and changing one feature might have an impact on another feature. What you want is actual composition of feature which is the point of component design.
Jun
3
answered How to maintain encapsulation with composition in C++?