New
The latest blog posts to take off on Hacker News. 5,638 posts.
Lisp in 32 lines of Ruby
this post was discussed on various posts and podcasts including: Ruby5 , HackerNews , and Ruby Inside . BTW, this is now 29 27 25 lines.
A Brief, Incomplete, and Mostly Wrong History of Programming Languages
1801 - Joseph Marie Jacquard uses punch cards to instruct a loom to weave "hello, world" into a tapestry. Redditers of the time are not imp...
Haskell web programming (a simple tutorial)
tl;dr : A simple Yesod tutorial. Yesod is a Haskell web framework. You shouldn’t need to know Haskell.
Deconstructing "K&R C"
Learn C The Hard Way (LCTHW) is a practical book teaching real world useful C using the same proven Learn The Hard Way method. LCTHW teaches real robust C coding and defensive programming tactics on real hardware rather than abstract machines and pedantic theory. The book emphasizes breaking your code on purpose, and…
The Absolute Minimum Every Software Developer Must Know About Unicode
Ever wonder about that mysterious Content-Type tag? You know, the one you’re supposed to put in HTML and you never quite know what it should be? Did you ever get an email from your friends in…
JavaScript Needs Blocks
While reading Hacker News posts about JavaScript, I often come across the misconception that Ruby's blocks are essentially equivalent to JavaScript's "first class functions". Because the ability to pass functions around, especially when you can create them anonymously, is extremely powerful, the fact that both…
True Scala complexity
Due to the recent php2shell vulnerability , to save time and effort for both users and maintainers alike, and out of an overabundance of caution, all Scripts sites have had PHP (php-cgi) disabled until a patch is available and backported.
Never create Ruby strings longer than 23 characters
Obviously this is an utterly preposterous statement: it’s hard to think of a more ridiculous and esoteric coding requirement. I can just imagine all sorts of amusing conversations with designers and business sponsors: “No... the size of this <input> field should be 23... 24 is just too long!” Or: “We need to explain…
R programming for those coming from other languages
Things a programmer coming from another language needs to know about R, especially those things that might be most surprising
Clojure 2011 Year in Review
A new year is upon us. Before the world ends, let’s take a look back at what 2011 meant for everybody’s favorite programming language:
Why do C++ folks make things so complicated?
This morning Miroslav Bajtoš asked "Why do C++ folks make things so complicated?" in response to my article on regular expressions in C++. Other people asked similar questions yesterday. My response has two parts: Why I believe C++ libraries are often complicated. Why I don't think it has to be that way. Why would…
Hitchhiker's Guide to Python
I first heard about The Hitchhiker's Guide to Python at PyCodeConf a few months ago. It's a fantastic idea: open source, community-driven documentation on how to do Python right: everything from how to learn Python, to how to write idiomatic code, to how to distribute your projects, to surveys of best-of-breed open…
The Problem with Implicit Scoping in CoffeeScript
A longer explanation of why I think that the CoffeeScript scoping is problematic and should be changed.
Building StatHat with Go
How StatHat uses Go, and why they chose it.
Understanding lvalues and rvalues in C and C++
The terms lvalue and rvalue are not something one runs into often in C/C++ programming, but when one does, it's usually not immediately clear what they mean. The most common place to run into these terms are in compiler error & warning messages. For example, compiling the following with gcc :
From zero to Go: launching on the Google homepage in 24 hours
How Go helped launch the Google Doodle for Thanksgiving 2011.
Programming With Nothing: FizzBuzz in the lambda calculus in Ruby
I love Ruby! I’ve used it every day for years and I’m not sick of it yet. It’s an easy language to love: it’s expressive, flexible and syntactically beautiful ; it has a unique combination of useful features like mixins , metaclasses and blocks ; it comes with a useful core library and comprehensive standard library …
Thoughts on Python 3
My current thoughts on the state of Python 3 and where it’s heading.
PEP 263 – Defining Python Source Code Encodings
This PEP proposes to introduce a syntax to declare the encoding of a Python source file. The encoding information is then used by the Python parser to interpret the file using the given encoding. Most notably this enhances the interpretation of Unicode ...