Homepage
Open in app
Sign inGet started

when people tell you it can’t be done

  • Latest
  • Trending
Go to the profile of Chris Temple
Chris Temple in whynot.io
May 25, 2016

What is Rack in Ruby?

If you have been in the Ruby community for any length of time, you have likely heard about Rack, probably along the…

Read more…
4 responses
Go to the profile of Chris Temple
Chris Temple in whynot.io
May 25, 2016

Delegating with Forwardable in Ruby

Delegation in programming is simply a matter of passing responsibility to an object more suitable to handle a request. It’s good to keep things simple and delegate when you can, that’s why Ruby has made doing so easy by providing the Forwardable module.

Read more…
1 response
Go to the profile of Chris Temple
Chris Temple in whynot.io
May 25, 2016

Shorthand syntax for each, map, reduce & more

Ruby has a nice shorthand syntax for methods that use blocks and accept Procs, which is very useful when working with enumerables e.g. each, map, reduce etc.

Read more…
1 response
About
whynot.io
whynot.io
when people say it can’t be done
More information
Followers
12
Elsewhere