Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I write games as well (Written more than 10 games, though they are not very large at scale) and I write them in C++. Reasons being writing networking code (TCP/UDP) is much easier & efficient in C/C++ than any other language IMHO. And most of the code works across platforms.


Just my 5 cents: Although there's nothing wrong with it in the context of your comment alone, C and C++ are so distinct languages it's weird to see them aggregated as "C/C++" given that the article is about C and it explicitly recognizes C++ as a bad alternative.


The article doesn't say C++ is a bad alternative. Just that he did not use it to avoid complexity.

And yes C and C++ are distinct. But the simple modules can be written in C, but the bigger ones need OOPS, so generally written in C++.


I'd look at the metaphors Tcl uses for at least TCP - UDP is a separate library, curiously enough.

This one feature had kept me using Tcl for a long time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: