Code center > Darwinbots Program Source Code

Porting the code

(1/4) > >>

Numsgil:
I've just finished porting the Robots module to C++.

It took me a while because I also redid a number of things along the way, and fixed a few minor bugs in random places.

If anyone wants to see what the unfisinished code looks like at the moment, holler and I'll zip it and put it on the FTP.

Numsgil:
Wolfhound is selecting a GUI library.  Soon he will probably begin porting the GUI to C++.

I'll be sure that we kep this GUI idiot proof (no offense meant.  It's a technical term, I swear).

Zelos:
why is it so important to port DB?

Numsgil:
2 things:

1.  Speed
2.  Pointers

VB is slow and lacks pointers.  With speed, well, that's fairly obvious.  The faster the better.

With pointers, I can construct abstract classes, that makes having two programmers working on different sections of code easier.

vryko:

--- Quote ---2 things:

1.  Speed
2.  Pointers

VB is slow and lacks pointers.  With speed, well, that's fairly obvious.  The faster the better.

With pointers, I can construct abstract classes, that makes having two programmers working on different sections of code easier.
--- End quote ---
because vb is bad

in vb your programs are run trough an interpretor, so you lose a lot performance.  In c++ your program is completly compiled so it runs directly on your os, api's and hardware without any translations from an interpretor.

and most important, I learned c++.  I could understand most of the vb-code, but became demotivated by all the little things I didn't understand directly.

(sorry for any spelling-mistakes)

Navigation

[0] Message Index

[#] Next page

Go to full version