I plan on learning to code and well, I don't know where to start, is C# a good place to start or not?
Any tips? What language should I learn afterwards?
Any tips? What language should I learn afterwards?



Is that book buyable in some dutch webshop by any chance? I've been looking to get into XNA. Also, how basic is it? Is it too, like, easy if you already know C# (pretty good), or do they just teach you XNA?Berthenk said:If you're interested in game development, I'd recommend C# with XNA. I use the book called Learning XNA 4.0, it's pretty easy to understand and there's source code available for every chapter, including sound, textures/sprites, etc.. This, however, only counts for the Windows, 360 and Windows Phone 7 platforms.


comcom has it, but I don't know if they're a reliable shop, and 27 bucks is a bit steep in my opinion. I "acquired" it by other means because I can't really be arsed to buy a book in a digital format.Wabsta said:Is that book buyable in some dutch webshop by any chance? I've been looking to get into XNA. Also, how basic is it? Is it too, like, easy if you already know C# (pretty good), or do they just teach you XNA?Berthenk said:If you're interested in game development, I'd recommend C# with XNA. I use the book called Learning XNA 4.0, it's pretty easy to understand and there's source code available for every chapter, including sound, textures/sprites, etc.. This, however, only counts for the Windows, 360 and Windows Phone 7 platforms.


As someone who knows C, I must say that tutorial was completely terrible and definitely an awful place to start.master00d said:and i saved the last page for last coz...............its a tutorial video in youtube !!! a great place to start![]()
Youtube c programming tutorial!

No, this site is useless, and will teach you the wrong things.Waflix said:W3schools - A site full of tutorials how to learn languages HTML, CSS, JavaScript, VBS, and many more.

Mazor said:As someone who knows C, I must say that tutorial was completely terrible and definitely an awful place to start.master00d said:and i saved the last page for last coz...............its a tutorial video in youtube !!! a great place to start![]()
Youtube c programming tutorial!
Not only does the guy use and promote the use of the terrible obsolete Dev-C++ IDE that has not been updated for 6 years, he doesn't even know it's an IDE and instead refers to it throughout the video as a compiler (Dev-C++ does not even have its own compiler, it uses MinGW).
When talking about including the header file stdio.h, around half of what he says is messy and the other half wrong. When talking about printf included from stdio.h, he even admits he doesn't actually know what it stands for, making two wrong guesses. This would be bad for any function, but printf specifically stands for "print formatted" which indicates that the string it takes is a format string, which means that it can contain placeholders for arbitrary data of various types which is supplied as additional parameters after the format string parameter. The guy seems to be unaware of this concept as a result of not actually knowing anything about printf, and does not make any mention of it when he should have.
Also, he disregards the C90 standard by omitting return 0; at the end of main() which is generally considered bad practice.
To summarize, he pretty much made all mistakes he could have made. I would strongly advise against following this guy's videos. Read The C Programming Language instead.
Good Lord, where to start here?Mazor said:#includemaster00d said:and i saved the last page for last coz...............its a tutorial video in youtube !!! a great place to start![]()
Youtube c programming tutorial!
As someone who knows C, I must say that tutorial was completely terrible and definitely an awful place to start.
Not only does the guy use and promote the use of the terrible obsolete Dev-C++ IDE that has not been updated for 6 years, he doesn't even know it's an IDE and instead refers to it throughout the video as a compiler (Dev-C++ does not even have its own compiler, it uses MinGW).
When talking about including the header file stdio.h, around half of what he says is messy and the other half wrong. When talking about printf included from stdio.h, he even admits he doesn't actually know what it stands for, making two wrong guesses. This would be bad for any function, but printf specifically stands for "print formatted" which indicates that the string it takes is a format string, which means that it can contain placeholders for arbitrary data of various types which is supplied as additional parameters after the format string parameter. The guy seems to be unaware of this concept as a result of not actually knowing anything about printf, and does not make any mention of it when he should have.
Also, he disregards the C90 standard by omitting return 0; at the end of main() which is generally considered bad practice.
To summarize, he pretty much made all mistakes he could have made. I would strongly advise against following this guy's videos. Read The C Programming Language instead.
It's funny that you chide the 6yr old Dev C++ IDE for being obsolete and then recommend a textbook that is 22 years old. Here is its "Hello World":
CODE
main()
{
printf("hello, ");
printf("world");
printf("\n");
}

Actually, while HTML can vaguely be called "code", it certainly cannot be called a programming language at all. It has nothing to do with one, it's a markup language.Snailface said:It's funny that you chide the 6yr old Dev C++ IDE for being obsolete and then recommend a textbook that is 22 years old. Here is its "Hello World":
It's funny how you attempt to thwart my statement by comparing the age of a software IDE with that of a book. Would you say the same thing to someone who said that their old computer is obsolete and then went on to say that the wheel is a rad invention even today? Whether something is obsolete is definitely not determined by age alone and implying that some object would be obsolete because a newer unrelated object of some sort that is obsolete exists is completely ridiculous.
Dev-C++ is obsolete for a long list of reasons. It lacks all the features you would see in a modern IDE/editor. It lacks editor features such as advanced replace, closing brackets, highlighting errors, debugging features such as variable quickwatch, stepping through assembly where there's no source code available, editing memory, other features such as a gui designer and a whole lot of other things. Furthermore the code optimization options offered are very limited. The gcc version it comes with is of course also very old by now.
HTML is not really a *PURE* programming language (sorry, not trying to insult anyone - I am in web applications development). It is extremely easy to understand and code.Snailface said:CODE#include
main()
{
printf("hello, ");
printf("world");
printf("\n");
}
Good Lord, where to start here?
Cool story bro. Here's the actual hello world from the book (first edition on top, second edition below):
![]()
A lot has changed since The C Programming Language was written, which indeed does happen to show even in this hello world. However, there's no doubt that general consesus is that it is the de facto book on C (see for instance the wikipedia page to get an idea of the general opinion of the book). Of course reading it alone is a bad idea as much changed the following years in the 90s after it was written, but reading any one single book wouldn't be sufficient anyway. This is a great place to start, and that's certainly not coming from me alone.
Go ahead and ask on a programming forum which of the two would be most suitable. Surely they would all agree with you.Snailface said:I'll take that youtube guys Hello World over this, at least you can see it after compile and run, lol.
mrwienerdog