New Programming Jargon

Stack Overflow – like most online communities I've studied – naturally trends toward increased strictness over time. It's primarily a defense mechanism, an immune system of the sort a child develops after first entering school or daycare and being exposed to the wide, wide world of everyday sneezes and coughs with the occasional meningitis outbreak. It isn't always a pleasant process, but it is, unfortunately, a necessary one if you want to survive.


This is a companion discussion topic for the original blog entry at: http://www.codinghorror.com/blog/2012/07/new-programming-jargon.html

Oh, the huge manatee!

I will definitely be implementing some of these :slight_smile:

The “Jimmy” answer was so highly upvoted because of one of the comments:

sigh . . … :< – Jimmy Mar 1 '10 at 6:30

That comment had 1470 upvotes, by far the highest upvoted comment on the site.

I wish my “What is your (least) favorite syntax gotcha” didn’t have to go. There was lots of valuable information there :slight_smile:

Jargon file still missing “Highlander” for when “there can be only one”. Meaning you have a section of code for which only one process or thread can be alive at a time.

Come on … Yoda Conditions is the easiest way to catch assignment in if statements:

if (5 = value) ...

causes the compiler to moan, whereas

if (value = 5) ...

does not and accidentally assigns 5 to value and ends up always executing the if block.

2 Likes

Nice post, but it needs anchors at each term, so we can direct-link to it.

1 Like

Dang it, my answer was only like 5 posts away! D:

Number 7 - “Stringly typed” already has a better definition - “primitive obsession” You described it on your blog six years back http://www.codinghorror.com/blog/2006/05/code-smells.html

[)amien

Dude, what’s wrong with “egyptian brackets”? That’s the only way I’ve ever written code. For two decades. Putting a bracket on the same line as a conditional or loop makes everything in between a lot easier to read and indent. Putting the closing bracket on its own line at the bottom (sometimes followed by a comment on what it’s closing, if it’s a nested block) makes it clearer what the closing bracket relates to. Saves a line at the top, and the syntax reads cleaner at the bottom. I’ve always hated the style of putting opening brackets on the next line down…or closing brackets at the end of a code line. I fix other people’s code into “egyptian” before handing it back to them because the other variants piss me off. In what way is this some new Stack Overflow craze? Do you think I read stack overflow and came to a sudden realization that this was a way to write code? No. This is the way clean code looks. And has always looked, whether it’s in C, Perl, Actionscript, PHP or anything else that takes a lot of brackets. Some Perl and C++ coders’ tendency to put the opening bracket on next line is, honestly, stupid-looking and hard to read. Python and Ruby coders might get a pass for just having a completely shitty-to-look-at language, but using Pythonic formatting in languages that take bracketed conditionals is just a magnitude of stupidity higher.

if (you.cantRead(this)) {
  youSuck();
}

YADSL - Yet Another Domain Specific Language

When someone writes a DSL even though ordinary code would work just as well.

#27 is not a good thing. Please don’t perpetuate this kind of jargon.

1 Like

Being the person who coined “yoda conditionals”, I obviously felt let down when it was deleted. But now that I’m featured in a blog post of Coding Horror, I must say I’m proud of my call.

To everyone criticizing it: it’s time to update your compilers. Neither Java nor C# will let you assign something in an if statement, and most C and C++ compilers will emit a warning if you do. At least, gcc and clang do; I wouldn’t be surprised if VC++ did as well.

The opposite of “Egyptian Brackets” would be “Hadouken Brackets”, then? (BTW, I completely agree with Félix regarding to “Yoda Conditionals” - and c’mon, hire good professionals, don’t screw your code just because you want to protect your software from them)

Egyptian brackets it’s so funny that from now on every time I will see it I will do the walk like and egyptian whistle.

This language says a lot about programmer culture. We have “Jimmy”, the clueless new programmer, who is male because programmers are male by default. We have the “mad girlfriend bug”, which programmers can empathize with because they are straight males who know what it is like to have a mad girlfriend. And we have “hooker code”, which relies on the idea of prostitutes as unclean and unsafe.

3 Likes

@Gordon Down Under, I never knew that was the reason for the choice, thank you. Some language’s compilers won’t let you either way, thankfully.

Here are some of mine
Christian Magic-
A piece of code someone else wrote or you wrote at 4 am that you have no idea how it works, but it does you just have to believe

360 no scope-
Don’t know how this came around but its when you get a service leak on andriod (or something equal) cause it just snuck right up on you.

1 Like

@js, “I fix other people’s code into “egyptian” before handing it back to them because the other variants piss me off.” - You must be a great guy to work with, with you knowing what clean code looks like and what looks stupid and everything.

I skimmed the Hindenbug entry and thought I saw a ‘Cronenbug’ – this would be named after David Cronenberg the horror movie director and would describe a bug which makes your head explode.