what-do-you-call-this-in-ruby icon indicating copy to clipboard operation
what-do-you-call-this-in-ruby copied to clipboard

Solving the second hard problem in Computer Science.

What do you call this in Ruby?

What? Name
=> hashrocket
=> heavy arrow
=> fat arrow
=> fat comma
=> rocket dagger
<=> spaceship
<=> ufo
= equal
= assignment operator
= half mesh
= gets
== equals
== unassembled hashtag
=== threequals
=== really really really equals
!= not equals
<= less than or equals
>= greater than or equals
>= greater-than-or-equal-to
=~ kind of equals
=~ matches
=~ is like
=~ eek squeak
=~ cigarette operator
=~ equal like
=~ bacon cannon
=~ pretty much
=~ tadpole
~ tilde
~ bacon
~ twiddle
~ squiggle
~> approximately greater
~> approximate
~> compatible with version
~> optimistic
~> version match operator
~> twiddlewakka
~> pessimisive match
~> pessimistic operator
~> roughly equals
~> harpoon
~> tadpole
~> sperm
~> spermy operator
~> eating bacon
# octothorpe
# hash
# pound
# mesh
-> lambda literal
-> stabby lambda
-> dash rocket
-> thin arrow
-> bee sting
||= pipe bomb
||= assign unless truthy
||= top hat operator
||= birthday cake operator
||= hammer
||= or equals
||= rose memoization
||= rose caching
||= t-square
||= duck operator
||= or-gets
||= robot duck
<%= skull tag
<%= angry squid
<%= puzzled squid
<%= cthulhu
<% clown hats
! not
! bang
! wow
!! double bang
!! bang bang
* splat
* twinkle
* star
{} braces
{} curly
{} squiggly brackets
() parens
() parentheses
() wax/wane
() southern hemisphere
() bubble
[] brackets
[] squares
[ ] squadrons
foo[0] sub
?: elvis
?: conditional operator
?: ternary if
?= Positive Lookahead
?<= Positive Lookbehind
?! Negative Lookahead
?<! Negative Lookbehind
#{} crab claws
#{} insert
** constellation
** double splat
** binary splat
**_ mosquito
!~ doesn't match
!~ bacon bat
&&= assign unless falsy
&&= and-gets
| bitwise
| pipe
&foo proc operator
&:foo symbol to proc operator
&:foo pretzel colon
&:foo salted pretzel operator
<< append operator
<< push
<< shovel
<< back shovel
<< chevron
<< exxon
<< gazinta
<< inhales
>> forward shovel
^ caret
^ hat
^ exor
^ sharkfin
^ up
@ at sign
@ strudle
@ whirlpool
@ spiral
*args stargs
/ slash
/ whack
/ solidus
\ backwhack
\ backslash
\ escape
& pretzel
& ampersand
_ unused variable
_ blank
_ trash
_ wild card
_ don't care
_ whatever
_ meh
_ undervar
_ skid
_ skim
_ underscore
_ disgraceful
!!! mad hype
!!! temporarily reverse the value of this bool to try something out, but it should stand out enough that I don't accidentally leave it in.
!!! tribble
!!! Tri-not
!!! Yoda operator
!!! bang bang bang
' sparks
" rabbit ears
? question mark
? what
? eh?
$ big money
$ dollar
% double-oh-seven
% mod
% percent
%> ice cream cone
%> waffle cone
&. lonely operator
&. safe navigation operator
&. maybe
<<~ squiggly heredoc
-@ unary operator
+@ unary operator
<<- heredoc
&:-@ surprise
trailing comma the Livingston-Gray comma
.. range
.. flip-flop
... here be dragons
... ellipsis
.? claw of demeter
&& and
|| or
:: double colon
:: namespace resolution operator

Missing anything? Please send a Pull Request!

Sources

Join the discussion on Reddit.

Join the discussion on Hacker News.

  • http://parley.rubyrogues.com/t/operator-nicknames/704/13
  • https://github.com/rubygems/rubygems/pull/123
  • https://github.com/CocoaPods/Core/pull/76
  • https://en.wiktionary.org/wiki/octothorpe
  • https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
  • https://en.wikipedia.org/wiki/Slash_(punctuation)#Currency
  • https://ruby-operators.herokuapp.com
  • https://github.com/thoughtbot/guides/issues/381
  • https://github.com/bf4/learning/blob/gh-pages/ruby/operators.md
  • http://stackoverflow.com/questions/1345843/what-does-the-question-mark-operator-mean-in-ruby
  • http://symbolhound.com
  • http://stackoverflow.com/questions/8476627/what-do-you-call-the-operator-in-ruby
  • http://stackoverflow.com/questions/2259775/what-do-you-call-the-operator-in-ruby
  • https://www.ruby-lang.org/en/news/2015/12/25/ruby-2-3-0-released
  • http://stackoverflow.com/questions/664978/what-do-you-call-the-operator-in-ruby-when-its-used-for-appending-stuff
  • http://stackoverflow.com/questions/2697024/what-are-and-in-ruby/2697187#2697187
  • http://stackoverflow.com/questions/1217088/what-does-mapname-mean-in-ruby#comment4137004_1217088
  • http://www.catb.org/jargon/html/A/ASCII.html
  • http://www.muppetlabs.com/~breadbox/intercal-man/tonsila.html
  • https://twitter.com/HaggardHawks/status/713966036337303552
  • https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#version-requirement

Friends

CC0 1.0 Universal

To the extent possible under law, @JuanitoFatas has waived all copyright and related or neighboring rights to "what-do-you-call-this-in-ruby".