Topics /

Software Engineering

The most popular blog posts about software engineering on Hacker News. 780 posts.

2016
361

Having fun abusing the C language

I was looking through the book Expert C Programming again when I came upon their “light relief” section on The International Obfuscated C Code Competition . It’s a contest to write the most obscure code. That the language C has a competition where you write confusing code in it probably says something about the…

368

Eve: My Concerns

Eve is a new programming language. Maybe. Or, a development environment. More accurately, perhaps, it’s a tool to think. If you have an hour to spare, this is a great video to watch from Chris Granger:

372

New string formatting in Python

For a language that claims to focus on one right way to handle most situations, string formatting in Python is quite a buffet and it’s getting more diverse by the year. Starting with Python 3.6 we now have three ways to format strings (outside of simple concatinating things or using string.Template ):

376

How Quaternions encode rotations: derivation and sample code

In the post on matrices in Codea I mentionned that an affine transformation (things like rotation, scaling, translation) ℝ 3 → ℝ 3 could be specified by giving four vectors. In this post I want to examine that a little more closely for the special case of a rotation. That is to say: how can I encode a rotation in ℝ 3…

380

What Template Haskell gets wrong and Racket gets right

Why are macros in Haskell terrible, but macros in Racket great? There are certainly many small problems with GHC’s Template Haskell support, but I would say that there is one fundamental design point which Racket got right and Haskell got wrong: Template Haskell does not sufficiently distinguish between compile-time…

382

Twenty years later I wrote a Tetris again

One night in May of 1996 I was bored and wanted to play Tetris very badly... At the time I was an exchange student. I owned a broken laptop which wasn't of much use but I also had access to my host family's 486 desktop computer that came with MsDOS