4 ms·
I wonder too. I write a very atypical brand of Java (I like to think of it as "unencumbered Java"). I sometimes even use public fields instead of accessors (o,
by norswap 14y ago
I wonder too. I write a very atypical brand of Java (I like to think of it as "unencumbered Java"). I sometimes even use public fields instead of accessors (o, the heresy).
My best guess would be that you often need to refactor you code to include some of the patterns showcased in the repo (factories, for instance). So developers try to future-proof their project by using those patterns everywhere. This is obviously a terrible idea.
Now for the bitchy part, why does no one ever speaks about the good sides of Java?
- themstheones 14y agoBecause people who know the good side of java have jobs.
- Leon 14y agoI generally go by the saying, baring any existing req's that abstraction patterns would help with: 'Code to use, Refactor to re-use'
- ajanuary 14y agoSo developers try to future-proof their project by using those patterns everywhere. Something I've seen a lot (and been guilty of myself) is trying to fix the problems of past projects in new projects before they crop up. A better solution is to not be afraid of refactoring (tests help here) so you can solve the problems when they become a problem, not create complication before.
- edwinnathaniel 14y ago> Now for the bitchy part, why does no one ever speaks about the good sides of Java? Cause at some point most of them got tired to preach about Java and continue to do great work vs worrying what other people think. Look around: NetFlix, Yammer, Twitter, Google are all using Java to power either their infrastructure or apps. Nobody blogs about it because "It Works" ;) The rest blogs how they keep jumping between wagons :P
- metaphorm 14y agothis joke thing isn't really about Java as a language though. its about a very weird/bad and surprisingly common design anti-pattern. Java was used to do this joke because its utterly typical for this type of work, but certainly you can have this kind of disgusting enterprisey garbage in just about any programming language. nobody makes jokes at the expense of well written Java software because its well written. we all know that the language is perfectly fine, and in alot of ways quite good, when it is used by sensible engineers.
- charleslmunger 14y agoPublic fields for immutable objects are fine, but adding thread safety later is difficult if you use them.