#or mucking about with metaclasses without understanding how to properly scope magic
Explore tagged Tumblr posts
Note
#Excel is actually a decent editor for writing Java#it makes it very difficult to make some of the most common Java mistakes#like writing code in Java
"Lol"
"Lmao" even.
Is this an "I have written too much Java" emotion or an "I refuse to touch Java" emotion?
I am, perhaps, overstating my aversion to the language - I don't really hate Java, I just don't find it terribly fun to work in (although it's been years since the last time I had to, so maybe IDE advances have made it more palatable now). I've worked on some Java projects that were quite well put together, but I've also seen my share of code with types like ProducerFactory<FactoryProducer, IGatewayFactoryFactory>.
In general if speed is not an essential part of a project I prefer to write in Python for its terseness and extremely effective syntactic sugar (context managers, generators, etc.), and if speed IS essential then various C variants, Rust, or even Go will almost certainly outperform Java. So it's not entirely clear to me why Java is still used outside of legacy code.
#FOR COMPUTER SCIENCE!#python does of course run into problems if you have a large enough project and inexperienced developers or poor code review practices#because sooner or later someone's going to do something 'clever' like hiding important things inside properties#or mucking about with metaclasses without understanding how to properly scope magic#and then you're in trouble#('clever' in this context is the sort of cleverness where you get a perl regex to compute fibonacci numbers)#(i.e. the sort of thing that's fun to do for fun but should never be put in production code)#I saw some code at google once where accessing what appeared to be an ordinary attribute actually froze for 45m#because it was a property that fetched the value from a sandbox environment#and if there wasn't a sandbox environment currently running it would spin up a new one from scratch and wait for everything in it to come u
8 notes
·
View notes