Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C, Objective C, or C++?

Name: Anonymous 2011-02-13 7:56

If I wish to pick one of the three to learn, which should I pick?

Name: Anonymous 2011-02-13 7:56

C family
good

Name: Anonymous 2011-02-13 7:59

>which should I pick?

What do you want to do with it?

Name: Anonymous 2011-02-13 8:09

>>2
Enjoy your Java.

>>3
I am learning it to get a better understanding of the underlying concepts of the family, but ideally I'd hope to use it to write various projects as well, some real time others not.

Name: Anonymous 2011-02-13 8:29

Lisp

Name: LISPPER 2011-02-13 8:31

LISP

Name: Anonymous 2011-02-13 8:35

>>4
Java is part of the C family, like it or not.

Name: Anonymous 2011-02-13 8:43

language_t C_Family[] = {
  "C", "C++", "C#", "D",
  "Go", "Java", "JavaScript",
  "Objective C", "Objective C++",
  "Vala", /* TODO: add more */
};

Name: Anonymous 2011-02-13 9:03

>>8
C#

Name: Anonymous 2011-02-13 9:04

>>9
C_Family[2].

Name: Anonymous 2011-02-13 9:06

Go with C.

C++ and Objective C abstract too much of what is going on behind the scenes.

Name: Anonymous 2011-02-13 9:18

i'm learning C atm by writing me a DWARF FORTRESS so there will
be a huge amount of insightful threads for newbie C programmers
on /prog/ in the next couple of weeks.

my advice to you: don't just jump in, if you want to use a
feature you're not comfortable with yet then FIRST READ A
TUTORIAL
. this will save you hours of work in GDB.

fucking pointer arithmetic.

Name: Anonymous 2011-02-13 9:32


testan

Name: Anonymous 2011-02-13 11:52

>>8
JavaScript
HIBT?

Name: Anonymous 2011-02-13 15:44

C++ is shitty and complicated (if you're a pimple-faced fucktard who just glossed over Sam's "Teach Yourself C++ in 21 Days", do not post with your opinion on how C++ is SO SIMPLE OMG!!!111), and if you use the vector and string type, you'll end up not learning anything anyway. Objective C is rumored to be nice, but I'm not sure why anyone would want to use it (unless your motivation is to write applications for the iPhone or something).

That leaves C. C is *minimal*, but don't mistake that for easy. You can't really get by doing anything complicated in C without knowing what's going on behind the scene, at least somewhat. The downside of its low-level nature is that passing around data can become complicated, and as such you really have to think about how you're structuring things (or, if it gets too complex, you'll end up rolling your own data structure (obviously, in the Real World, you'd use a tested library, but we're talking about pedagogy here), which is valuable in its own right).

In short: C can be hairy, but once you "know" it, it can be a useful tool.

>>12

You are annoying.

Name: Anonymous 2011-02-13 15:53

>>15
Nice answer. Thanks.

Name: Anonymous 2011-02-13 16:26

>>15

You have given what I consider to be the best possible advice on this subject. I wrote this post simple to applaud your efforts.

>>11

You need to read SICP.

Name: Anonymous 2011-08-12 17:32


Don't change these.
Name: Email:
Entire Thread Thread List