Weekly tips

Squadracer shares a tip every week. We start this series in Ruby!

_1, _2, ... it?

Numbered parameters

Alexandre Borderes
Alexandre Borderes

yield_self / then

For method chaining

Alexandre Borderes
Alexandre Borderes

+"string"

Mutable string

Alexandre Borderes
Alexandre Borderes

__END__

A little more than a comment

Alexandre Borderes
Alexandre Borderes

IRB assembly

Ruby in your browser

Alexandre Borderes
Alexandre Borderes

except / slice

Keys to deal with? 🔑

Alexandre Borderes
Alexandre Borderes

Date.parse

The default current century 🤯

Alexandre Borderes
Alexandre Borderes

compact

Filter nil values

Alexandre Borderes
Alexandre Borderes

lazy

Take a break!

Alexandre Borderes
Alexandre Borderes