Things about C by a man wot knows them

Things about C by a man wot knows them

General — Page [1]
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
 
 
2011 May 21 at 04:34 PDT
SRAW
Rocket Man

2007 Nov 6 • 2525
601 ₧
What every C programmer should know:

it is

















.... wait for it


























.... almost there






































... nobody wants you C# is teh way to go
Free Steam Games
 
 
2011 May 21 at 06:15 PDT
the_cloud_system
polly pushy pants

2008 Aug 1 • 3074
-6 ₧
i come to this thread to think im smart :D
I drink to forget but I always remember.
 
 
2011 May 21 at 10:43 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
Yes, because you can code operating systems and whole entire game engines in C#. Within the realm of its applicability C is still a very good language. And, in fact, how do you think all of C#'s libraries are implemented?
 
 
2011 May 22 at 08:17 PDT
adhesive

Find the Hole Participation Medal
Find the Hole II 1st Place Medal
2007 Sep 13 • 79
1,301 ₧
Quote:

Some programming tools NOT used by Real Programmers:
...
> Source language debuggers. Real Programmers can read core dumps.

> Compilers with array bounds checking. They stifle creativity, destroy most of the interesting uses for EQUIVALENCE, and make it impossible to modify the operating system code with negative subscripts. Worst of all, bounds checking is inefficient.
...


Quote:
If you ignore the fact that it's "structured", even 'C' programming can be appreciated by the Real Programmer: after all, there's no type checking, variable names are seven (ten? eight?) characters long, and the added bonus of the Pointer data type is thrown in-- like having the best parts of Fortran and assembly language in one place. (Not to mention some of the more creative uses for #define.)


I don't see an endorsement for C# made by REAL PROGRAMMERS! In other words, C# is a language for quiche-eaters.

Original article (good read):
http://www.pbm.com/~lindahl/real.programmers.html
SRAW said:
hey a rare cameo by adhesive
 
 
2011 May 24 at 11:43 PDT
SuperJer
Websiteman

2005 Mar 20 • 6299
@OP that/those is/are a/some really great article/s. Must-read for C coders.

It seems a biiiiiiiit FUDdy about UB, though.

In my experience, you only really run into UB when you already have a bug.

· Why would you try to shift a uint32_t by 32 bits?
· Why would you ever check if x+1 < x?
· Why would you malloc(INT_MAX)?

If you are doing any of these things, then you've already got problems, with or without UB. And UB doesn't really format your dog or send raunchy emails to the prime minister. That's just a fun thing to say.

People need to think about edge cases. And stop writing code so complicated that you actually need to think about sequence points. And don't use C unless you really need the speed (or are learning to use it, of course).
 
 
2011 May 24 at 19:16 PDT — Ed. 2011 May 24 at 19:18 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
Well sure, it is edge-casey, but then it is written by a guy that has to deal with the edge cases :D

And I quite like the idea that UB causes nasal demons, it's a neat idea to reinforce that any kind of code could be generated (including none at all).

The Real Programmers article is still brilliant :D
 
 
2011 May 28 at 09:24 PDT
molkman
Owner of George Washington's Prototype Mittens

Marine Warfare Corporal
Find the Hole Participation Medal
Find the Hole II Participation Medal
Tasty Br�twurst Medal
2005 May 2 • 2066
404 ₧
Those last two posts were a pretty weird read for me not knowing much about C and having not read the articles.

I still only know AS 2 & 3, but at least finally got into Object Oriented Programming. AS won't do for Apps though, so sooner or later I'll need to get into Objective-C at least.
LET LOVE REIGN
 
 
2011 May 28 at 14:51 PDT
Down Rodeo
Cap'n Moth of the Firehouse

Find the Hole II Participation Medal
2007 Oct 19 • 5486
57,583 ₧
I've never used OC but I know someone that did for a uni project, made a game on the iPhone.
 
 
2011 May 30 at 22:52 PDT
Page [1]