Y'all are surprising me with your programming opinions

Then again, JavaScript or whatever apparently has a Math.max function, while C doesn't

@wallhackio Are you referring to yourself or to me or to us all?

@vaporeon_ I'm referring to anyone who writes code for money instead of writing code for fun

@vaporeon_ this is not a slight on Holly. i hope that is clear. she does code golf so you know she actually likes coding for the hell of it

@wallhackio @vaporeon_ oh yeah all this goes out the window when you're golfing. sometimes it's fun to let loose and write some horseshit

@monorail @vaporeon_ my worst code practices occur when i hack a solution to a challenging data structures/algorithms problem

@wallhackio How can you have bad code practices when there's no such thing as good Java code, it's all terrible

@vaporeon_ I've done DS&A problems in JavaScript and written some nightmarish oneliners doing that

@wallhackio Your work has you write both Java and JavaScript? :psyduck:

@wallhackio Your company's server backend is written in Java?

@vaporeon_ I am currently not working there, I was laid off in June, but yes it was

This is actually extremely normal since Java was extremely popular during the dot.com boom of the late 90's/early 2000's and the most appealing alternative was C++, so obviously people used Java instead

An enormous amount of critical codebases run on Java

@wallhackio I thought PHP was the typical language for writing web server backends?

@wallhackio Does this imply that you find Java to some extent Interesting?

@vaporeon_ once I use Java enough and get in the Java Zone I don't actually hate the language itself, but more the standard library and the excessive OOP people who use Java keep falling into (although I suppose it's fair to criticize a language if it incentivizes people to write bad code)

@vaporeon_ the Java community also has a bad habit of what I'll call "Premature Generalization" where people where make a generic framework for something that is only used for a specific use case, making the API for it much more complicated than you want

You don't really see people using Spring for anything other than RESTful backends, and yet Spring is a generic application tool for using dependency injection in Java applications. It's so tedious to learn

@vaporeon_ this plagued our backend, where everything was some subclass of an abstract class which implemented an interface and there was only one subclass which actually implemented the interface. Just make it one fucking class!!!!!!

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.