Bang Shebang Bop
Code April 25th, 2007Or in other words: ! #! ->
Code monkeys have all these cute little names for various character combinations used in their code. Because programmers’ time is so much more valuable than anyone else’s they can’t call “!” an exclamation point…it’s a BANG! (what happens when you use the word “bang” followed by a “!”…is that a Bang-Bang?). Likewise, the !# is called a shebang because it would take far too long to say “Exclamation point hash”.
Wanting to be super cool, some co-workers and I added our own little code-ism to the mix. The “->” (PHP Object Dereference symbol) has been officially dubbed the “bop”. How much cooler are you going to sound in your next code review when you say:
“So I totally had this object I needed to dereference so I fired up Notepad and typed dollar sign variable name bop methodName open paren close paren (BTW - parentheses are called “parens” in code-speak). It was so sweet!”
OK, so you’ll never sound cool during a code review meeting…but you get the point.
So there you go…another contribution to mankind from yours truly. The “bop”. Have fun with it…name your next object instance $mmm and I guarantee you’ll chuckle every time you call a method of that object (admit it…you just laughed at that).
Spread the word…spread the love. -> = BOP ! (err…bang!)
Related
- No related posts






April 25th, 2007 at 12:29 pm
This still leaves one question unanswered:
Who put the -> in the -> #-> #->?
And is it the same person that Ricky Martin was referring to when he said:
#!!, #!!
April 25th, 2007 at 7:20 pm
@Atticus
I’m pretty sure it was This Guy. If not him, then these guys?
June 13th, 2008 at 2:53 am
[…] much more valuable than anyone else??s they can??t call ???!??? an exclamation point??it??s a BANG!http://www.jtoo.net/code/bang-shebang-bop/She Bangpronounced shebang which is short for sharp-bang instructs the shell command interpreter to […]