3 ms·
I have just come back to Java (for the sake of android) after a long time spent in Clojure-influenced (functional, immutable, favor maps and functions over obje
by invalidOrTaken 14y ago
I have just come back to Java (for the sake of android) after a long time spent in Clojure-influenced (functional, immutable, favor maps and functions over objects) Javascript. I've noticed the exact same things in my style: static methods, public fields. Another wrinkle is that I tend to leave my generics untyped---and given that I use the Collections framework so heavily, I'm basically writing dynamically-typed Java.
Time will tell if this is horrible or genius. I suspect it will be neither since I'm just writing a toy app for now and probably won't run across any problems of a huge-incomprehensible-codebase nature.
Thank you for this post, I've felt like the OO police have been closing in on me and will burst through the door at any moment to force getters and setters on me.