BadRubyTips's profile picture.

Bad Ruby Tips

@BadRubyTips

This app sucks. I'm gonna move my tweets somewhere else


You haven't lived unless you've directly instantiated Enumerator before


To the people who use explicit returns instead of implicit returns in defining methods, you'll never get those 7 characters back. They're gone and you're responsible for it.


Every operation you perform in Ruby is O(1) complexity so long as you have the right attitude


Just a reminder, this is still true:

config.ru is a Russian config file. Delete it to support Ukrainian sovereignty.



Seriously, it's been years since we established that it's pronounced "Rubby" and some of your cretins are still mispronouncing it.


Don't be afraid to edit your .bash_profile! Add an alias to make it easier to edit it: alias bash="open ~/.bash_profile"


Don't fuck with Kernel#eval


If you're certain you don't write garbage code, you can disable the garbage collector with GC.disable. But be careful because if you write garbage code, it won't get collected and so your collections won't work.


Bad Ruby Tips さんがリポスト

Actually, it’s pronounced “rubby"


Ruby is shipped with every type of inheritance. That means all of us ruby programmers all get Yukihiro Matsumoto’s stuff when he dies.


Next time you’re out at a Ruby restaurant, you should order the Proc Pound Curry. ruby-doc.org/core-1.9.3/Pro… It’s the gift that keeps giving


Tip: If you have to model a many-to-many relationship in Rails, remember to consider grievous self-inflicted injury as an alternative.


Make all your query parameters emoji, it’s a more expressive way to transmit data.


The etymological root of Ruby actually lies in “rube” since it is seen as having a somewhat unrefined, folksy syntax.


All the best ruby commit messages use #Frinkiac to describe the diff frinkiac.com


Security Tip: Instead of storing sensitive information in your Postgres DB, you should be storing it in Snapchats.


United States トレンド

Loading...

Something went wrong.


Something went wrong.