Ask HN: What code have you read recently?
1–10 of 40 posts
Re: Ask HN: What code have you read recently?
#2Lots of good code in there, especially in regard of simplicity and beauty. If you're diving into functional programming, be sure to have a look at it, even if you're a beginner like I am.
Re: Ask HN: What code have you read recently?
#3Re: Ask HN: What code have you read recently?
#4Re: Ask HN: What code have you read recently?
#5Re: Ask HN: What code have you read recently?
#6Re: Ask HN: What code have you read recently?
#7Last year I spent some time reading the arc source code. It was a lot of fun. I didn't know any Lisp, so the recursions and macros were hard for me to get my head around, but it was amazing to realise that this site is built on some small core concepts which can be grokked if you spare the time.
I loved Douglas Crockford's book Javascript: The Good Parts. Again, I couldn't understand all of it but it gave me a good feel for well-written Javascript code.
Re: Ask HN: What code have you read recently?
#8I learnt a few things from the Kohana source. How not to use regular expressions for validating certain strings (URLs) for one. filter_var can do this and a lot faster too.
I suggest anyone who's interested in PHP to take a look.
Re: Ask HN: What code have you read recently?
#9Re: Ask HN: What code have you read recently?
#10The code that had the biggest impact on me lately was the original J interpreter, though: http://nsl.com/papers/origins.htm . It looks like some sort of crazy brainfuck-ish thing, but it's not a joke. I highly recommend printing it out and trying to get in Arthur Whitney's head. (But if you run it, it will probably just segfault. It's rather cavalier with nonportable function pointer casting. It's prototype code from 20 years ago. If you want a working version, look at J (http://jsoftware.com) or Q (http://kx.com).)