Bang Shebang Bop

Or 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!)

Don't be stingy...share with your friends!

2 thoughts on “Bang Shebang Bop

  1. 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:

    #!!, #!!

Leave a Reply

Your email address will not be published. Required fields are marked *