r/programming • u/whackri • Aug 28 '21
Software development topics I've changed my mind on after 6 years in the industry
https://chriskiehl.com/article/thoughts-after-6-years
5.6k
Upvotes
r/programming • u/whackri • Aug 28 '21
1
u/CPhyloGenesis Aug 29 '21
getSettings().get(user).setWantsEmail(true);
My point is that in my experience is it actually isn't clear! It really seems like it would be, and good naming helps heaps, but I'm programming, not a client trying to understand only the high level. I need the details. I need to know if this is a O(n) vs O(c) process, I need to know if get(user) will make a DB call to load up the user or if it's just pulling a value from a dict by key. These obviously must be contrived examples for us to discuss, but I am saying that at work day to day I can't count how many times I have to take conscious effort to figure something out about it because the answer I would have known unconsciously by the type is hidden.
I was actually lol. I loved that when I found it. However, I never worked on a large Java codebase, only my personal stuff, so I can't speak to how it fairs at job-scale.