Programming D: (c#)

Everything todo with programming goes HERE.
User avatar
Ratchet
Match Winner
Posts: 779
Joined: Sat Mar 15, 2008 5:55 am

Programming D: (c#)

Post by Ratchet »

Okay so I recently decided to learn programming (!!!!!!!!!)

I have looked into C++ previously, though from reading around, c++ is hugeee.

I decided to start with c#, with a benefit being there's easier to follow tutorials. C++ is Huge, but most of the tutorials are.... blah.... they don't explain well. Anyways, anyone know some good C# tutorials? I am using:
My Learning Path
currently.
User avatar
Ratchet
Match Winner
Posts: 779
Joined: Sat Mar 15, 2008 5:55 am

Post by Ratchet »

Also noting, I learned a good bit of the c++ basics, and such
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

I'm not sure if you're going to try going into C++ later that learning C# is such a good idea. IIRC C# is one of those funny languages... and isn't it .net only?
Image
Monkey
Match Winner
Posts: 759
Joined: Thu May 22, 2008 12:36 am
Location: England, UK

Post by Monkey »

-Ratchet- wrote:I decided to start with c#
C# is basically Microsoft's version of C++. Microsoft are evil.

C++ and C# are probably the hardest languages to learn. If you really want to learn one of them then learn C++. We can maybe find you some links to learn from.

I would recommend starting with something easier, like python. Everyone has only good things to say about python. Don't think that it is just some beginner's language, it is a very powerful and respected language that many programmers use for various tasks.

Also, before just jumping into a specific language it might be a good idea to learn about computer programming in general. If you understand the theory and concepts then it will greatly help you to program in any language. This is especially true for object-oriented languages (like C++) where it is essential to understand about good object-oriented design before even starting to write any code.
Playing since December 2006
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

Yea Ratched, Monkey is ritght, C# is the dark side of programming :lol:
I don't know python enough to be sure, but I don't think starting with python would be that good if you have never programmed before, because you have to deal with classes and object oriented stuff.
C++ is not hard to learn, it is just hard to get started with such odd concepts like poitnters and co. But the basics are very easy.
Looks strange you didn't find good tutorials, I've found a lot of them
http://www.cprogramming.com/tutorial.html
http://www.cplusplus.com/doc/tutorial/

I've written this too:
http://hoop.altervista.org/cfg_rotator.html
nothing special but it may be helpful

good luck :)
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

You could go back to basics and learn... basic. Ah, the good old days.

Edit: I just remembered visual basic... NOT the basic I was referring to. I was referring to go old basic.

Code: Select all

10 print "Hello World"
20 goto 10
Image
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

Qbasic ftw! ;)
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

Post by ivantis »

just learn C++
can you do a hello world program in C++ yet?
Image
Image
Image
User avatar
Ratchet
Match Winner
Posts: 779
Joined: Sat Mar 15, 2008 5:55 am

Post by Ratchet »

you guys crack me up lol!

yes I can write hello world in c++, I learned quite a bit of the basics of C++, the easiest to me was the stuff like for, if, else

I can also write quite a few things in C# already, I guess I'm learning C++... I'm convinced :X

a few questions however, how "Flexible" is c++?

like is it capable of EVERYTHING? does it have weaknesses?

etc.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

ultramegaflexible, but you gotta know what you want (eg. no arrays of objects from different types)
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

epsy wrote:but you gotta know what you want
That helps, but knowing at least some basic programming theory is essential. Which is why I recommend basic. It has nothing to do really with any modern language in any regard, but it starts you thinking like a computer. I have this great 80s book on it. A fascinating read. It's on the shelf right next to the other modern day language books.
Image
User avatar
ivantis
Round Winner
Posts: 269
Joined: Mon Mar 03, 2008 2:33 pm
Contact:

Post by ivantis »

do some stuff with arma source, thats how im learning C++ right now. look at my code, the sty+ct+ivantis branch
Image
Image
Image
User avatar
Ratchet
Match Winner
Posts: 779
Joined: Sat Mar 15, 2008 5:55 am

Post by Ratchet »

I Looked. Very Nice.

Though I have complained to zman, Multiple compilers refuse to compile armagetron for me, I get some errors. In Microsoft's Visual Studio compiler I get a Missing File (gAIcharacters.cpp*i think that's the one*)

On code blocks.... it is totally effed up. Also they seem to have a problem with SDL....

But I would absolutely LOVE to play around in the code.... but it wont work.
Monkey
Match Winner
Posts: 759
Joined: Thu May 22, 2008 12:36 am
Location: England, UK

Post by Monkey »

Ok Ratchet so you have clearly decided to stick with C++/C#. The best advice I can give you now is:

1) Learn and practice programming in C (plain C, not C++)
2) Learn about good object-oriented design
3) When you can do 1) and 2) then learn C++.

C++ is really an expansion on C. C++ compilers will also compile C.
C is simple but totally as powerful as C++.
Playing since December 2006
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

you are trying to build a complicated machine while you're not even able to ride a bicycle, in terms of programming. If you had linux it would've been a lot easier I guess...
however, get the basics, write some simple programs, build, modify them, build again, write some more complicated programs... and so on
perhaps in a couple weeks you'll get enough experience to be able to build arma yourself
Post Reply