Hacker News new | past | comments | ask | show | jobs | submit login

I never understood why Java never got some nice utility functions for dealing with common stream actions such as looping through an InputStream or slurping a text file. Every developer ends up carting around their own version of these functions when they should just be in the standard library. Many complaints about Java's verboseness have to do with this type of boilerplate that could easily be hidden away in utility functions.



Isn't that what Apache Commons is for? It's sad that you have to resort to that but at least someone stepped up to the plate.



util.Scanner

I recently learned about them and they simplify a surprising number of simple parsing tasks.




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

Search: