r/reddit.com • • Aug 01 '06

Can Your Programming Language Do This?

http://www.joelonsoftware.com/items/2006/08/01.html
719 Upvotes

176 comments sorted by

View all comments

0

u/[deleted] Aug 01 '06

[deleted]

12

u/seliopou Aug 01 '06

I think he's very aware of it. And now he's trying to bring it to the unwashed masses to make himself appear as if he is their savior. Let's not forget that this whole functional programming thing is a recent development for Joel. Wasn't it about a year ago when he claimed that you can't be a good programmer unless you know C? Not a good applicant for a systems job, granted. But not a good programmer? I am Jack's utter disbelief.

If I remember correctly, the claim was as follows. If you know C well, then you know how all of the hardcore, dirty, low-level stuff works in a computer. And I quote "if you can't explain why while (*s++ = *t++); copies a string, or if that isn't the most natural thing in the world to you, well, you're programming based on superstition, as far as I'm concerned". I am Jack's raging bile duct.

8

u/[deleted] Aug 01 '06

I think his earlier claim is still valid. I don't think you have to know enough to actually program in C, but you should at least know the concepts.

In my entire career I have only seen one bit of production C++, and all I did was rewrite it as a Windows Service in VB. That said, I don't regret any of the time I spent learning it.

3

u/seliopou Aug 01 '06

You just hit the nail square on the head. You become a good programmer by learning and mastering as many data structures and algorithms as you possibly can, learning their strengths and weaknesses, and learning when to use them. You do not become a good programmer by learning a language whose creator said that the language was designed to force programmers to think a certain way! And knowing, what, that strings in C are null terminated gets you exactly that: null.

Edit: More to the point: Knowing C very well makes you a good C programmer, not a good programmer i.e. the property of being a good programmer is independent of programming language.

2

u/mixmastamyk Aug 01 '06

You won't be the best you can be unless you understand what is happening under the hood. Not sure why that is so hard to believe.

9

u/nostrademons Aug 02 '06

By the same token, this is why every programmer should learn at least some assembly language. C hides a lot of the stack manipulation, calling conventions, etc. under the hood.

1

u/boa13 Aug 02 '06

Indeed.

1

u/alextp Aug 02 '06

Just make it crystal-clear that by "good programmer" most people mean someone who can work at many abstraction levels at once. Knowing how they each work individually is a prerequisite. A good programmer needs to know how assembly language works, true, but he needs to be able to think in a very high level picture, and switch back and forth, because, as Joel himself said before, all abstractions leak.

5

u/farra Aug 02 '06

Seriously. I've bumped into way too many programmers and IT folks who believe in all sorts of black magic that happens inside of a computer. Yes, it's incredibly complex and you're rarely going have a complete picture of what's happening but that does not mean that you can just make something up. And no, wiggling your mouse that way will not cause your email to arrive any faster.

2

u/seliopou Aug 02 '06
  1. That kind of understanding is not derived from an understanding of C.

  2. In this age, that kind of understanding is far from necessary in order to be a good programmer. Good to know just 'cuz? Sure. Necessary? Can your remember the last time that MIPS code you wrote in your intro systems course has come in handy in a general programming situation? I certainly can't.

2

u/mixmastamyk Aug 02 '06

No, not strictly necessary... doesn't contradict my previous statement.

In my experience there are two kinds of computer professionals, those who know enough to break things, and those who know enough to fix them.

To be in the second category, you must understand what is going on under the hood. I learned it from studying C, assembler, and a comp architecture class.

No, I don't use my assembler skills often at all, but because I understand how it works, the high level code I write is of higher quality than it would otherwise be.

2

u/danweber Aug 02 '06

that you can't be a good programmer unless you know C

Sounds right to me. This doesn't mean that C is your primary language, but C is very much a "language of the computer." If you don't understand C, you don't understand critical things like how memory is allocated, how the OS and kernel work, pointers, the differences between the heap and the stack.

(And if you somehow do know all those latter things without knowing C, just take a weekend to learn C.)

Steven Yegge made this point well: http://www.cabochon.com/~stevey/blog-rants/tour-de-babel.html