Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/JuanitoFatas/what-do-you-call-this-in-ruby

Solving the second hard problem in Computer Science.
https://github.com/JuanitoFatas/what-do-you-call-this-in-ruby

naming operators ruby

Last synced: about 2 months ago
JSON representation

Solving the second hard problem in Computer Science.

Awesome Lists containing this project

README

        

# 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](https://thepugautomatic.com/2016/01/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 |
| `?>` | 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](https://www.reddit.com/r/ruby/comments/4c2kqr/what_do_you_call_this_in_ruby).

[Join the discussion on Hacker News](https://news.ycombinator.com/item?id=11368448).

- 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

- [perlsecret](http://search.cpan.org/dist/perlsecret/lib/perlsecret.pod#SYNOPSIS)
- [Operators from ekmett/lens Wiki](https://github.com/ekmett/lens/wiki/Operators)

## 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".

[namespace resolution operator]: https://stackoverflow.com/a/3009565/517868