4 ms·
Google's Guava library, at least the parts I've seen, is incredibly well written and organized. A assume most "standard library" type stuff is where you will f
by throwawaydbfif 10y ago
Google's Guava library, at least the parts I've seen, is incredibly well written and organized.
A assume most "standard library" type stuff is where you will find the cleanest code.
- euyyn 10y agoDigging into the code reviews of Guava is impressive: if you've ever felt a code reviewer was being too strict, that's probably nothing compared to Guava reviews. And it shows in the quality of the library.
- throwawaydbfif 10y agoI implemented a data structure similar to one in guava and I thought my code was pretty good. I looked at guava source out of curiosity and immediately refactored my data structure. I ended up refactoring it again, and the code is still not as clear as guava. For instance, I noticed they were using an enum for functions and I was like WTF who does that? Later I decided to make my library serializable so we can save to disk. Well, turns out that's exactly why they used an enum. My solution was to make a utility class to wrap the non-serializable objects but their solution was much clearer and less code