Re:Anyone who looks at this code instantly becomes insane
by stirfrykitty on Thursday August 01, 2019 @03:12PM
(#20587240)
That's not bad, actually. It's one reason why I hated leaving Perl for Python. Python is a little too orthodox sometimes.
What I'm seeing is where frameworks are becoming the new "programming languages". People now bicker over what framework to use rather than first master the language they are using for a task. I tend to favor the method of "do the simplest thing that works".
Re:Anyone who looks at this code instantly becomes insane
by jlewallen on Thursday August 01, 2019 @03:21PM
(#20587325)
I'd bet they made that function so they had a single place to intervene on text being written, not necessarily for the brevity/aesthetics.
Re:Anyone who looks at this code instantly becomes insane
by _bxg1 on Thursday August 01, 2019 @04:44PM
(#20588160)
Given the extreme lack of abstraction elsewhere, I highly doubt it.
Re:Anyone who looks at this code instantly becomes insane
by rtkwe on Thursday August 01, 2019 @03:57PM
(#20587683)
I can understand that slightly. Back in college when I was doing a lot of Java if the IDE hadn't had a shortcut to auto complete System.out.println() I probably would have either made it as a macro or defined a function like that in a library (or in a block I would paste in every single project if we're being completely honest).
Re:Anyone who looks at this code instantly becomes insane
by _bxg1 on Thursday August 01, 2019 @04:03PM
(#20587746)
Does Java have macros now?
I'm going to go out on a limb and guess that the programmer came from a C background (where brevity tends to be valued and abstractions tend not to be) and used Java because it's cross-platform.