C++ is one of the most used languages, especially in the gaming industry. As I like to code lot in various languages, I had to try out the C++.
My coding experience in the past have been some coolbasic,random scripting languages and lots of php and mysql. So when I started coding c++, I had good knowledge of coding in general.
First “hello world” apps I build on Linux system using g++/vim. Setting up development environment and commonly used libraries on Linux was easy because of the apt-get.
Because I like playing games, I want to build my own games, so next step after the “hello world” is to get ball on the screen and move it. I build the app using sdl. This was the part where I really started to get bugs.
When I finally got the moving ball on screen working, I tried to port to windows… Working with c++, windows and custom libraries is pain on windows. I have to manually install every damn piece of libraries I want… I can’t apt-get anything…
It took couple of weeks of lazy coding to get the windows port working. After that I build small asteroids kind of game/toy, but porting that back to Linux made more problems because some variables had different values on different platforms…
So my opinion on c++ so far:
Pros
- Fast
- Multiplatform support
- Good skill to have
- Almost all modern games are build using c++
Cons
- Custom libraries are sometimes damn hard to install
- Managing variables and strings is so freaking hard… (I love php now even more)
- Freaking hard to learn some weird stuff
C++ is great language and I will try to learn more, but first I will try finish one php project…

