Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 19 Mar 2012
Offline Last Active Oct 30 2014 01:33 PM

Posts I've Made

In Topic: Fitness function for self modifying programming

19 October 2014 - 10:47 AM

Problem is not specifically for sorting, but the more general case. I just used sorting as an example.


It may be that it is impossible to formulate general purpose fitness functions for problems that are not numerical in nature, unless using detailed knowledge of the specific problem.


Jeferytitan had some interesting suggestions I can build on. That is, it is easier to define penalties on behavior. 

In Topic: inheritance tree in one file

19 October 2014 - 08:42 AM


(it's especially in big codebases where it starts to break down and doesn't work well anymore).

What starts to breakdown? Inheritance? if so what makes you say that?


A typical example could be having a big tree of inheritance, and then you find out you need a new type of object that has the properties of two types of objects already in the tree. Using multiple inheritance for this is generally discouraged. That means a re-organization of the tree is needed. If pressed for time, there is risk this re-organization isn't done, which can lead to ugly dependencies and special work-around that are difficult to maintain and debug.


One design pattern that can help in this situation is the Entity-Component-System.

In Topic: best way to backup my project

19 October 2014 - 03:00 AM

To add to the answer of ProtectedMode, the use of Git allows you to effectively do "incremental backups". That is, you check-in your changes locally. But now and then you do "git push", which will push all changes to a selected server. This is usually quick, as git will use compression.

In Topic: Events with lambdas

08 January 2014 - 02:43 AM

I'm used nano-signal-slot.


For an example of a C++ event manager that is type safe, simple to use and very efficient, see SimpleSignal.


As far as I have found, it provides the optimal solution for me.


Did you make that?


It was created by Tim Janik, I just put a copy in Github to make it more accessible to my projects and others that would need it. It is not copyrighted by Tim, but there is a readme that clearly attributes the source to him.

In Topic: gui/game librarys FOR C++

07 January 2014 - 04:24 PM

For GUI, I recommend libRocket. It is general purpose, independent on other game engines, and can easily be adapted for OpenGL (which is what I did). On the negative side, it takes some effort to interface. On the positive side, it is very efficient and powerful. You will be able to control the GUI with a design similar to html and css.