Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are many ways of doing the same thing in Ruby? I guess that's true to some extent but I'm not really sure why it's a problem?

['cat', 'dog'] %w[ cat dog ]

Although these are not technically the same ... lambda { } proc { } Proc.new { }

string.match(/regex/) string =~ /regex/

object.is_a?(Thing) Thing === object

hash.merge!(hash) hash.update(hash)

Anyways, I'm not a Python programmer, but I can say (with regards to Ruby) when you are used to the language it feels right.

Why can't we just all get along and not troll the shit out of each-other?



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: