|
Post by matthew on Jun 15, 2009 5:20:07 GMT -5
Interesting webpage here which discusses why Professional Games Developers use C++. It also mentions that quite a few games feature routines written in the Scripting Language Lua.
|
|
|
Post by xteraco on Jun 15, 2009 10:34:56 GMT -5
Interesting. I better keep my mouth shut or I'll end up starting a language war. I'll just say I like C when I'm not needing to work with strings. I like C++ when I'm sick of using char arrays. I like b4gl when I'm at work and just want to mess around 15 minutes here, 15 there.
All languages have balance. All have weak spots, and strong spots. For a personal project, I take into account 3 things (language selection wise), how comfortable and familiar I am with the language and its libraries, how well suited the language is to solve my problem, and 3, the language must be open source because I HATE black boxes...
9 times out of 10 I find I can solve my problems using C++. I don't usually find the need to go deep into OOP. I use C++ mostly for the incredible STL functions, and use mostly C style concepts (functions, structures, pointers, but no classes or namespaces).
|
|
|
Post by Darkjester on Jun 15, 2009 11:07:47 GMT -5
makes alot of sense to use c++ for its support of thousands of libraries, its low level access for hardware programming and is higher level functions for the game routines a total programming package thats fast and can be compiled under lots of different instruction sets. -darkjester
|
|
|
Post by twasik4 on Jun 15, 2009 15:09:30 GMT -5
and its a very stable reliable language.
|
|
|
Post by matthew on Jun 16, 2009 10:05:47 GMT -5
I got the impression from reading the article that a lot of game developers would like to use different languages but feel that they have to use C++ because a lot of the other development tools are written in C++ so they feel obliged to use it.
|
|
|
Post by UNDISCLOSED on Jun 16, 2009 10:23:49 GMT -5
Free BASIC is realy good, its multi platform and can use any of the libs/dlls etc that you can use with C++ and it alows for inline asm (IF unlike me you know asm!) so you could do anyting with it realy.
|
|
cameron
Posts
A new take on the old ASCII smiley face, because thats how you feel after 16 hours of coding.
Posts: 70
|
Post by cameron on Feb 23, 2010 21:32:46 GMT -5
One, as probably Supermonkey, Tom and Empryon, can remember I was a big advocate for QuickBASIC, FreeBASIC and PASCAL, but now when I use anything but C, or code in a very-C style C++ when I need access to methods imbedded in objects (instances of classes) and want to define them like void myClass::myMethod (void); I feel like I'm losing control of my program's flow and the generated listing, look I'm no advocate for C++ over C, but C++ is nice to have arround.
And yeah, when I first started full-time C programming, I didn't like using char buffers (arrays - sort of) but then learning assembly pretty much stated 'All strings must be buffers, the variables themselves are merely pointers back to the buffer(s), theres no otherway for a string to exist without a buffer wether dynamic (program memory based) or fixed (program code or data section based).' After that I became very okay, actually impressed that C used char arrays or char* pointers for strings, because it's actually telling it like it is and FreeBASIC can do the same with ZSTRINGs, but as I said I feel like I'm losing control of my listing there!
|
|
|
Post by Supermonkey on Feb 24, 2010 6:08:54 GMT -5
Cameron likes the old school, I've always been a big fan of having a nice layer of abstraction between me and the hardware....C# rules . When I declare a string in C# I don't know what I'm getting under the hood and I don't care! What I do know is it's nice and easy to manipulate and it holds a variable length of characters, what more do i need!
|
|
|
Post by xteraco on Feb 24, 2010 7:10:47 GMT -5
|
|
|
Post by Supermonkey on Feb 24, 2010 7:58:19 GMT -5
I'm a logical thinker, if I don't need the lower level features of C++ or C why use it? To say I did something in C++? Does that make my app better? Does that make me a better coder because I've used a lower level language? My goal is to get things done efficiently with limited bugs and for it to be easily maintainable. I personally think that's what C# gives me, not only that but with careful programming my apps can be run on windows, linux, a mac and without any modification or even recompilation! I've used C++ it has it's place but I wouldn't use it for the sake of using it, I know I'm a good programmer, I don't need to use notepad and the command line to look better.
|
|
|
Post by Supermonkey on Feb 24, 2010 10:10:20 GMT -5
Is that going to happen very often? I doubt it, it's fine if you're doing it because it interests you and you just want to know how but it's not vital to being a well rounded programmer. My general knowledge is fairly good when it comes to computing. My knowledge of what's actually going on when my C# application runs is much better than most .NET developers, the "I don't know what I'm getting under the hood and I don't care!" was an over exaggeration to make a point. I've done C, C++, D, Java, Objective-C (urgh), VB and so on and for me C# hits the nail on the head, it suits my needs and I can get stuff done in half the time it'd take me to do in C++. In my opinion a lot of coders (hobbiests especially) take for granted understanding how to code something well and don't understand the broader language agnostic concepts in favour of knowing the syntax of some fairly useless language that makes them think they are elite.
I'm not pointing fingers at specific people or language(s) I'm just saying what I see.
|
|
cameron
Posts
A new take on the old ASCII smiley face, because thats how you feel after 16 hours of coding.
Posts: 70
|
Post by cameron on Mar 2, 2010 1:02:08 GMT -5
As you said Supermonkey, "for me, C# hits the nail on the head, it suits my needs", by the sounds your needs are Windows, Linux, MacOS, and C# does that nicely so your satified, and for my needs, AT&T, Intel, IBM, Motorolla Assembly, C and very rarely (avoided at almost any cost) C++. Once I find a USB EPROM burner I'll be able to code Operating Systems for the Playstation soon, see, I'm not better, I'm probably worse because I like making my comments self explainitory, and I'm not in it just for games, so this I suppose makes me lower to the hardware as I'm the guy programming the hardware.
|
|