Some of my favourite bits from MS-DOS 4.0 sources in C:
1. Cursed Pascal
2. Witty boolean
3. Variable hell
4. Very clean and readable function names
Sos Sosowski
Some of my favourite bits from MS-DOS 4.0 sources in C: 1. Cursed Pascal 24 comments
Ark 🏳️⚧️
@alfredbaudisch @sos elixir must be designed to make you do this. this one constantly writes really long variable names
Haelwenn /элвэн/ :triskell:
@sos Heh, those defines reminds me of the original bourne shell.
https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh/mac.h
Konrad Kołakowski
@sos I've heard that in early C compilers, variables had some length limitation in case of names 🤔 Also it could be some programmer habit left from earlier languages like BASIC 😉
Sos Sosowski
@kkolakowski @sos They were shit slow and would go much faster if you kept to shorter names back then for sure.
Johan Sköld
@kkolakowski @sos Reminded me of early PHP that used the length as the hash function for the global function table, so they picked function names based on how long they were to reduce collisions.
Sos Sosowski
DeepBlue V7.X
@sos@mastodon.gamedev.place Am I correct to assume, that those clean, readable function names rely a lot on global variables? |
@sos love long, descriptive function names.
I am one who write very long names and with that I can come back to the code 10 years later and still understand it at first glance.
As a matter of fact, I was dealing with two such cases at work at this very second (Elixir code):