Re:Anyone who looks at this code instantly becomes insane
by _bxg1 on Thursday August 01, 2019 @02:54PM
(#20587083)
This kind of thing in particular is really interesting:
public static void print(String text) {
System.out.println(text);
}
This person cares enough about brevity to make little wrapper functions like this, but at the same time everything is very procedural and monolithic. This gives a vague, weird sense of refined taste, despite some obvious problems with the artifact as a whole.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.
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?
Re:Anyone who looks at this code instantly becomes insane
by rtkwe on Thursday August 01, 2019 @04:28PM
(#20588008)
No a macro in my editor. Most text editors will have some capability to do user defined text replacements.
Re:Anyone who looks at this code instantly becomes insane
by agumonkey on Thursday August 01, 2019 @03:21PM
(#20587323)
totally should have been called p(...)
Re:Anyone who looks at this code instantly becomes insane
by nabnob on Thursday August 01, 2019 @03:13PM
(#20587257)
"treating it like a friend, like a spider u know? not gonna kill it but also gonna make sure the webs arent in ur personal space" lol
Re:Anyone who looks at this code instantly becomes insane
by polytomous_ on Thursday August 01, 2019 @03:37PM
(#20587468)
That Polytomous is a magnificent troll. They acknowledge the code is awful in their fork's README. Also, their prose is much clearer and more comprehensible in the same README. They must have been putting on a character in that thread.
Re:Anyone who looks at this code instantly becomes insane
by codyb on Thursday August 01, 2019 @03:59PM
(#20587706)
It’s actually pretty great because they’re a person who has worked on the code, acting insane in an issue “Anyone who looks at this code instantly becomes insane”.
If that’s not some very clever trolling, I’m not sure what is.
And what dedication! Pretty funny.
Re:Anyone who looks at this code instantly becomes insane
by realSlavojTrump on Thursday August 01, 2019 @05:59PM
(#20588781)
I think i had a polytomous account on the orange site, but forgot the creds. This is what i settled on in the interim. I dont put on a character, if my acting theory is anything its a derivation of neofuturism.
Oh, and that stream of comments by polytomous. That's... something.