
Unlike C, what follows else must be a block and not a statement, e.g. These have special else-if keywords to make if-else chains be at the same parse level. Ruby takes its elsif from Perl, Python its elif from Bourne shell. Why do you not complain of int, should it not be integer? s/float/floatingpoint/ s/func/function/ s/def/define/ s/var/variable/ len() is so common that the shorter, less noisy, quicker to pronounce len is to be preferred over length. Unix suggests external symbols longer than six characters came along with stdio.h and ctype.h, later additions to Unix, perhaps when the earlier six-character (DEC) limit was removed. When memcpy() was coined, linkers on some systems limited the length of external symbols eight and six characters were common limits. However, common C functions that use more than 6 characters also look like alphabet soup: fprintf, strcspn, strncpy, etc. Update: Commenters point out that memcpy had to be shortened due to technical limitations restricting the length of functions to 6 characters in the old days. Let us not forget that source code is often the ultimate documentation of our ideas.Ĭredit: John Cook’s comment on G+ inspired this blog post. We make the code harder to read for those unfamiliar with the language without providing any benefit to anyone.

However, by going too far, we create a jargon. I am not opposed to a judicious use of abbreviations. Most languages seem to abbreviate Boolean as bool.

Stefan Kanthal on Bit Hacking (with Go code).Daniel Lemire on Bit Hacking (with Go code).

