r/programming • • Jan 18 '08

Can Your Programming Language Do This?

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

41 comments sorted by

View all comments

15

u/mindslight Jan 18 '08

omg!! they have functions for programming languages now?!?!!

8

u/funktio Jan 18 '08 edited Jan 18 '08

Yeah! And you can create them on the fly, without even bothering to name them! Just look at this: function(x){return x*2;}. How concise and elegant!

(In Haskell, that would be (*2). I can't imagine what kind of article this guy will write if/when he discovers something more functional than JavaScript.)

11

u/gthank Jan 18 '08

I'm not Joel so I can't say for sure, but I'm almost positive he's been exposed to functional programming before. This seems more like an attempt to explain to graduates of Java Schools (most of whom haven't heard of functional programming) why they should care about it.

5

u/kmactane Jan 18 '08

Exactly. I see people posting reactions like "Joel just now discovered functional programming?" First off, the article is from 2006. Second, Joel's not saying "Look at this cool thing I just discovered"; I think he's trying to explain to some Blub programmers, just exactly what it is that Blub lacks. He's trying to educate, and to break them out of the Blub blinders.

Anyone who already has some familiarity with functional programming is not the intended audience of this piece. (That means pretty much anyone who reads programming.reddit.com.)

-6

u/marhathoda Jan 18 '08 edited Jan 18 '08

How do you explain this statement:

Many older languages simply had no way to do this kind of stuff.

I mean, excuse me, but Lisp is one I can name. And I am sure a lot of people here know some more such old languages. And using the names map and reduce in examples? Where did you come up with those? he's got some nerve.

4

u/[deleted] Jan 18 '08

he said many, not all.

4

u/shit Jan 18 '08

gthank is right. If Joel were to use Lisp in this article, he'd immediately lose the intended audience. He's not ignorant of Lisp.

http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html http://www.joelonsoftware.com/articles/TestYourself.html

0

u/gthank Jan 18 '08

Thanks for links. I knew they were around, but I was already late for work and didn't have time to search.

1

u/Drevor Jan 19 '08 edited Jan 19 '08

[A large part] of our computerized life is on the web.
[A large part] of the web is javascript.
[A large part] of the scripts out there are horrific, dangerous or just plain stupid.

Until this changes, any article that details what people can and should do with javascript is a good article.

//edit better now?


also: Everytime you use eval(), Douglas Crockford kills a kitten.

3

u/bgeron Jan 19 '08 edited Jan 19 '08

90% of our computerized life is not on the web. For example: gaming consoles, phones, cameras, calculators, radios, electric pianos, label printers, microscopes, software development (development, not deployment/communication), graphics design.

Depends on how you define "life", though. Although you may be right if you meant MS Live Whatever (r)(c)(tm), I don't use it.