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

> Are there languages and frameworks that encourage/enforce The Right Thing in a more active way?

I don't think so, as evidenced by the fact that I'm still so pro Rails after a decade of doing this. But that doesn't mean we can't be vocal about the things that still suck.

> I like hash access with symbols

Oh, I vastly prefer symbol access to string access, but this is really a ruby problem, not a rails problem. The fact that I can pass `{ "foo" => "bar" }` and `{ foo: "bar" }`, and my method has to either call `with_indifferent_access` or _strictly_ enforce being called with one of the two access types is a huge footgun, because improper access doesn't result in an error, it just results in a `nil`.



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

Search: