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

Pages: 1-

C /prog/ramers.

Name: Anonymous 2011-10-09 18:25

Any fellow /prog/ers know/use/or are learning to /prog/ram in C?
Me, learning to program in C. Plan on learning come C++ once I learn more C.

Name: Anonymous 2011-10-09 18:34

I'm learning C. Just finished reading K&C, ready to do some cool /prog/rams.

Name: Anonymous 2011-10-09 18:35

I already know C, and use it everyday at work. I learned from K&R and reading others code.

I personally hate C++, but opinions vary.

Name: Anonymous 2011-10-09 18:35

K&C
IHBT

Name: Anonymous 2011-10-09 18:35

You don't become a C programmer.
You are born C programmer.

Name: Anonymous 2011-10-09 19:54

>>5
Not true, huffing paint or drinking low-quality spirits can produce brain damage that is for all intents and purposes indistinguishable from being "born C programmer".

Name: Anonymous 2011-10-09 20:20

>>2
Same here, still learning it.
I've done a bunch of the tuts on cprogramming.com
I think it's about time to expand and look at other places.
I've learned a good bit too through looking at other people's codes. I find it helps lots, looking at code and modifying it and seeing what happens with certain things.

It is a pain though, coding C on Linux but learning from tutorials made for Windows users. Seeing them all trying to include fuctions that don't work on Linux, it's annoying. They assume everyone users Windows. :/

Name: Anonymous 2011-10-09 20:46

>>7
Meh... I don't know where you find code then. Most part of what I see is code for Unix-like systems

My C is quite rusty, and I'm planning on getting back on it with "Learn C the hard way".

Name: Anonymous 2011-10-09 20:46

>>7
I've done a bunch of the tuts on cprogramming.com

That has a bunch of weak ass programmers and half the information is incorrect. Be a man and go to a real joint like comp.lang.c.

I've learned a good bit too through looking at other people's codes.

Looking at shitty code doesn't make you a good programmer.

It is a pain though, coding C on Linux but learning from tutorials made for Windows users. Seeing them all trying to include fuctions that don't work on Linux, it's annoying. They assume everyone users Windows. :/

That's because the idiots that write this shit confuse platform specific shit with ANSI/ISO C. Most of us get around this nonsense by either

a)Having include guards in our code.
b)Putting the system specific shit in a different file.
c)Having reasonable makefile rules.


Then after a while, you have the holy vision and you dump the loser language for a real language like Haskell.

Name: Anonymous 2011-10-09 21:25

here we have a whiner!
bitch, go out and cry alone with your haskell. We don't need language flamewar here.

Name: Anonymous 2011-10-09 21:40

>>8
it takes some searching.
i've found some code on this indian hacker website, also got some help from users there:
andhrahackers.com

found some other code on some websites for code hosting.
also would try modifying basic programs in C written for windows platforms to run under linux.

been mainly doing that with existing code to get better ideas of how it works, and also been reading website tutorials and some from ebooks i found on tpb and some other sites.

have a few books and ebooks on C++ that i plan on getting into after i get a better grasp on C.

Name: Anonymous 2011-10-09 22:05

>>7
Don't listen to >>9 this guy. Actually, never listen to such retards.

First, don't join comp.lang.c. Don't even come close to the mere idea of joining -any- Usenet group, but, specially, don't do it for any programming language discussion groups. There are a series of reasons for that, but I'm pretty sure you wouldn't do it anyway, and are not interested in details. In particular, the (unreceptive) people there will not give you any good advice, and may sum into your frustration to learn C. C is, unfortunately, the very kernel of a long-dated, fanatic cult.

Second, tutorials are a good way to grasp what programming is all about, but a very bad way to properly learn something. Avoid tutorial-learning. Fetch a good book (K&R comes to my mind) and read it, practising a lot while you do it. C is a language that, albeit not complex, requires deep attention to some details. By developing this kind of attention, you'll also be developing important skills that the average programmer actually lacks: strictness, corretude and acute reasoning (in contrast to lazy thinking and carelessness).

Another important aspect of learning is good contextualization. The C programming language was invented in the Unix world, and is still strongly bound to it. Therefore, it is important to know why it was invented, what were the restrictions and the limitations at that time, and what were the goals. You'll be in contact with the SUS standard and some auxiliary tools (such as make and others), which, albeit not strictly related to ISO C, are invaluable tools to the programmer and is in sole agreement with the overall Unix and C philosophy.

Third. After you've been through the basics and developed a number of small projects, I consider it invaluable to actually read the C standard (the latest one). It is not a lengthy  or heavy read and will serve as a groundbase for other important standards (such as the forementioned SUS). Most programmers don't read such important documents, and fill the community with bad-written code, which tends to give more woe instead of more joy, specially if such software goes into wide usage.

These standards should give you some vision with regards to corretude and portability, and should also give you a feel of what "standardization" is about. However, standards should not stifle your creativity to overrule them whenever you feel like doing so: at this step, you'll be actually developing good sense to make your decisions based on your arguments, necessities and taste.

Last, do one thing at a time. There's a lot to read. Don't overwhelm yourself with dozens of documents or projects. Don't mix algorithms with syntactical learning. Don't relate OS concepts with language keywords. Trace and detect the boundaries of every single topic you're dealing with, and afterwards connect the concepts accordingly, instead of mixing all of them in the same cooking bowl. Know how to differentiate the language from the environment, from the implementation, from the toolchain, from the OS, from the algorithm.

If you go through these simple steps, you'll be not even an high-above-average C programmer, but actually an outstanding programmer in every other language or environment you will face in the future.

>>5
Very good one!

Name: Anonymous 2011-10-09 22:40

Haskell is awful. Type classes and immutability? Seriously?

Lisp is awful. Parentheses and more parentheses? Seriously?

C is awfuSegmentation fault

Name: Anonymous 2011-10-09 22:53

>>12
Thanks.
I'd say that's probably one the most informative and well put together post I've ever seen here on 4chan. Lol.
I noticed a lot of other people, in previous posts, talking about the book you mentioned. (K&R).
I'll have to get find a copy.
Thanks for the advice, anon.

Name: Anonymous 2011-10-10 0:21

>>12
First, don't join comp.lang.c.

A Senior Technical advisor to Ubuntu Linux, two Stanford Computer Science Professors, a director of CERN, and a Senior VP at Oracle hang out there. So I guess I'd rather listen to one of them vs some 20 yr old idiot on a forum that has never done anything beyond hello world in C.

Third. After you've been through the basics and developed a number of small projects, I consider it invaluable to actually read the C standard (the latest one).

Nice way to copy what I've been preaching here for three months.

It is not a lengthy  or heavy read and will serve as a groundbase for other important standards

Okay, you're a fucking idiot. Have you actually read the standard you stupid jew? I bet not. The only thing you seem to have read and comprehended is me talking about the C standard on here.

Most programmers don't read such important documents, and fill the community with bad-written code,

Bullshit alert. I'm sensing a google master who has never actually worked a day a computer programmer.

Name: Anonymous 2011-10-10 0:22

>>12
If you go through these simple steps, you'll be not even an high-above-average C programmer, but actually an outstanding programmer in every other language or environment you will face in the future.


I've come to the conclusion that you have no possible future as a computer programmer. Go scrub another toilet you mental midget.

Name: Anonymous 2011-10-10 0:35

>>15

Nice way to copy what I've been preaching here for three months.

kindly take your ego back to /reddit/ please

Name: Anonymous 2011-10-10 0:37

>>16
you again? I thought you died in a freak fishing accident!

Name: sage 2011-10-10 0:43

>>18

Yes. It's him again. And it's us, again, being trolled by him.

I guess we will have to cope with this guy's needs of having his share of self-importance delusions inside here.

Name: Anonymous 2011-10-10 0:59

>>19
I'd like to remind both you uneducated fuckwits that software I helped write is used by over 55 million people world wide.

Name: Anonymous 2011-10-10 1:00

>>19
I don't troll. I'm trying to correct your mental deficiences so that you might have a slim chance of getting an actual programming job out in industry.

Name: Anonymous 2011-10-10 1:08

>>20

kewl, u made windoze XP! Tell use how it werks!

Name: sage 2011-10-10 2:22

>>20

Haha, oh wow! I laughed so much that I've almost shit my pants out. I really did.

Seriously, why don't you go back to your Pokémon trading card game forum? You will be a famous trainer one day, just believe it!

Name: Anonymous 2011-10-10 4:42

Oh hellz yeah I remember this guy. Pass the /prog/corn this should be fun.

Name: Anonymous 2011-10-10 5:06

>>24
It's just him pretending to be trolled by himself, nothing to see here.

Name: Anonymous 2011-10-10 9:13

>>12
Avoid tutorial-learning. Fetch a good book (K&R comes to my mind)
Chapter 1. A Tutorial Introduction

Name: Anonymous 2011-10-10 12:03

I'm learning C from [u]C Programming a Modern Approach[\u]. I'm on the end of Chapter 13 right now. Feels good.

>>26
I laughed.

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