News for hackers. Stuff that matters.

lispy

This is what happens when a mediocre programmer reads too many Paul Graham essays, hacks his way through a couple of sections of SICP, and shamelessly rips off Peter Norvig's code in chapter 2 of PAIP.

Kids these days.... ;)

Startups: We're assailed by doubts, mortified by our own shortcomings...

http://www.ondisruption.com/my_weblog/2007/08/ignore-the-dot-.html

snip:<p>Ways a startup can feel deeply flawed without really being flawed at all:<p>True believers go nuts at small provocations Startups are freak-catchers Good code takes time Everybody has to rebuild Fearless leaders are often terrified Competition starts at $100M in revenue

( Read More... | no comments | on HN )

Accept a position as "Lead Developer"?

There's a promotion on the table for me to take over a small IT department at a smaller company that has different needs than the parent company it spun off of. It's not a heavy management role: there'd just be one network guy working for me. I love coding more than just about anything... but this looks like it'd be more of an analysis and knowledge management thing. I'm probably going to...

( Read More... | 2 comments | on HN )
Re:Closures + Lambda = The key to OOP in Lisp on Friday July 20, 2007 @12:48PM (#35662)
...But more than likely just reinvent something that Guy Steele wrote a paper on in the seventies. ^_^
Re:Closures + Lambda = The key to OOP in Lisp on Friday July 20, 2007 @08:49AM (#35566)
This is an exercise that's being done just for the fun of it to explore what (for me) were cryptic remarks from people like Graham and Norvig.

I wanted to work on something that would force me to write macros. Obviously, to make the code for "classes" that construct object generating functions like the one in the example will be written by... macros. So I successfully put myself in a situation where macros were the natural answer... and saw what I needed to do. My getting to that particular ah-ha moment was the real message of the post. I can now begin to understand what the experts are talking about.

So I can now use closures and macros to make lisp just as crappy as other programming languages... or I can use this knowledge to learn more about doing things "the lispy way." Trust me when I say that the latter option is my preference.

I'm just an amateur that's excited about these ideas... and that you _can_ do this sort of thing. I'm not saying that you _should_.

Re:Lisp closures as much as OOP as you'll need (?) on Tuesday July 10, 2007 @02:44PM (#33527)
Yes, the its the feature of closures that is important, and so much not the particular language that it's implemented in. (As Mark Jason Dominus said, "In another thirty years people will laugh at anyone who tries to invent a language without closures, just as they'll laugh now at anyone who tries to invent a language without recursion.")

A hash table in a closure can do a lot of things that OOP does with very little work-- but I wouldn't necessarily do things that way except for the fun of it. There are certainly much more interesting/subtle/powerful things that can be done with closures.