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

> For example in Ruby everything literally is an object. There are no standalone functions. Not having a class simply makes it hard to use

Nothing prevents you from writing one function in a file, requiring that file and calling that function. Not sure what's so hard about it.



If you write Ruby from scratch, sure. If you work in Rails you have to work around everything being autoloaded on boot.

Best bet is to just build modules to namespace your functions.




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

Search: