atomicthumbs is trying again.

By 3 atomicthumbs on July 08, 2008


#include <stdio>

#define LEARNING_C 1

int main()
{
if (LEARNING_C == 1)
{
printf("Woo!\n");
printf("This book is certainly better than the other one.\n");
}
else
{
printf("wat\n");
}
return 0;
}

Tags: C, coding, programming
Embed Claim Make a related claim

Discussion (7)

http://bcat.myopenid.com/

10 Jonathan Rascher who agreed, says

Best of luck, atomicthumbs!

Two comments:

1) Do you really double-up your line breaks like that? It looks a bit strange.
2) "if (LEARNING_C == 1)" is more verbose than necessary. "if (LEARNING_C)" will suffice. (C considers an expression to be true if it has any non-zero value.)

Make a related claim about 1 month ago (link)
http://printeronfire.org/

3 atomicthumbs who agreed, says

Thanks! :)

Two responses:

1) No, jyte does that to anything, even if it's inside a pre tag.
2) I'm only most of the way through the section on relational operators. :P

Make a related claim about 1 month ago (link)
http://darch.myopenid.com/

6 D'Archangel who hasn't voted, says

I can confirm from unpleasant experience that Jyte is pants at <pre>.

printeronfire: Why do you keep trying with C and C++? That's an incredibly bad way to learn fundamentals. Also, would it kill you to make an actual claim?

For the record, "21 days" books are pants at teaching anything about programming. You want an actual textbook.

D'A
... and K&R is perfect at what it is, thank you

Make a related claim about 1 month ago (link)

Claims inspired by this comment

Bulet goes in cartrije goes in wepon.
http://slartibartfast.myopenid.com/

2 Slartibartfast who hasn't voted, says

Hello world code now always makes me think of the equivalent of:

printf("Paula is brillant");

Make a related claim about 1 month ago (link)
http://wyscan.myopenid.com/

7 Running Wyscans who hasn't voted, says

Some people think that Project Euler is a nice way to start learning a new programming language. I tend to agree. I've certainly found some of the Scala solutions interesting.

Make a related claim about 1 month ago (link)
http://printeronfire.org/

3 atomicthumbs who agreed, says

D'A: 1. I know fundamentals, but no programming languages. I'm weird that way.

2. It seems to be teaching me better than was happening with K&R. I guess I'll check it out again when I'm done with this one.

Slartibartfast: What?

Wyscan: Thanks for the links.

Make a related claim about 1 month ago (link)
http://bcat.myopenid.com/

10 Jonathan Rascher who agreed, says

Make a related claim about 1 month ago (link)
Sign in in to leave a comment.