Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Advice on which language to learn first
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  

Which language should I learn first?
C
75%
 75%  [ 6 ]
C++
25%
 25%  [ 2 ]
C#
0%
 0%  [ 0 ]
Total Votes : 8

Author Message
Tamsco
Guru
Guru


Joined: 04 Aug 2004
Posts: 313
Location: dmse.mit.edu

PostPosted: Tue Apr 26, 2005 12:37 am    Post subject: Advice on which language to learn first Reply with quote

I want to learn both C and C++, but do not know which to learn first. I know java and thus understand object oriented programming, so I tend to think I should learn C++, but some say you should learn C first.

Thoughts

Incidentally, I am heading into grad school into a computational materials group and want to know if you think any other language would be good (The professor I'll work for hates Fortran)
_________________
If you get your problem solved put a [SOLVED] in the title!
Is OpenOffice still compiling?!
Back to top
View user's profile Send private message
Surtsey
n00b
n00b


Joined: 22 Aug 2004
Posts: 21

PostPosted: Tue Apr 26, 2005 3:31 am    Post subject: Reply with quote

Learn C before C++ since C++ is more or less just C with a tacked on OOP layer. Don't touch C# unless you really have to. Learn a few script languages if you can, they're often much easier to code with than compiled languages. Perl, Python, PHP if you're into web development, also learn SQL since it's pretty global for storage.

Start off somewhere easy enough though so you can get a grasp on programming concepts in general. It's much easier to learn other languages once you've mastered one that displays all the basics (PHP's a great language for that.)

After that you should be set to go.
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Tue Apr 26, 2005 3:47 am    Post subject: Reply with quote

C

I doubt functional programming will be hard for you to grasp. C++ should be really easy for you to pick up once you're familiar with C especially since you're already comfortable with OOP.
_________________
What is the best [insert-type-of-program-here]?
Back to top
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Tue Apr 26, 2005 3:53 am    Post subject: Reply with quote

Just remember, treat C++ like a different language than C. Just because you did things a certain way in C doesn't mean you should do them that way in C++. Such as using malloc instead of new, arrays instead of vectors, C strings instead of std::strings, C style casts instead of the new C++ casts. All these things were put in C++ for a reason :)
_________________
Mark Loeser
http://www.halcy0n.com
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 17857

PostPosted: Tue Apr 26, 2005 3:57 am    Post subject: Reply with quote

Please search through the many topics on "which language."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum