Hacker News new | ask | show | jobs
by TheAceOfHearts 1772 days ago
This is a category of cursed knowledge which causes psychic damage to the reader.

When you go down certain rabbit holes you develop a fascination with obscure forms of programming and start to realize it has some powerful benefits of which you can never take advantage because it isn't widely adopted.

To free yourself from this curse write ten regular for-loops in C and say a prayer to K&R while tighly holding your copy of The C Programming Language.

6 comments

If you internalize this cursed knowledge, you will see how language[C]-evangelists cherry-pick which dimensions to measure the value/success of a programing language. Don't proceed. It will make you frustrated, cynical, and disillusioned with the state of PL discourse.
Can I write one regular for loop to ten around one regular for loop, instead of ten regular for loops?
I know it's a joke but I don't really agree that this area is cursed! It just delves way deeper into syntactical terseness than many programmers will tolerate.. even compared to assembler it's quite a different beast.

I think still potentially very interesting if you're keen on expressing the most computation using the smallest number of characters though!

I developed this on a society scale. Every time I go to a place and people are using very wrong ways (from normale like using an old excel file as a collaborative dB or wilder like printing Excel sheets to write changes wih a pencil to edit the file later...) I go depressed.
I find it rather weird to compare K to C. In what circumstances would the choice be between K and C? A more reasonable comparison would be between say Python with numerical libraries and K.
K&R is a common nickname for the book "The C programming language" by Kernighan and Ritchie, and a reference to the authors:

https://en.m.wikipedia.org/wiki/The_C_Programming_Language

But TFA is about K.
Ah, true!