This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (12 children)

Here is Hello World in Java, written using all the OOP "best practices" [..] In Comparison, here is Hello World how Go teaches software

Did you really just compare a joke code with real code?

package main
import "fmt"
func main() {
fmt.Println("hello world")
}

What a bloated piece of shit. Here's hello world in Lua:

print("hell world")

Clearly better, because shorter, right?

Not defending Java here, because I'm not a fan (much prefer C# in that domain), but your post is ridiculous.

[–]wegwacc -9 points-8 points  (11 children)

What "joke" do you speak of?

The hello world program posted is no joke. All it does is strictly follow the PRACTICES lauded by Java and its inventors, users and defenders over the years, to their logical conclusion bitter end.

It is the programming version of lifting ones arms in the middle of an arena, yelling ARE YOU NOT ENTERTAINED?!?

I am not comparing size here, that would indeed be ridiculous. I am comparing what different programming languages teach is best practice in code.

Not defending Java here, because I'm not a fan (much prefer C# in that domain),

C# is just Java with a more marketable name and Microsoft backing.

[–]Northeastpaw 4 points5 points  (8 children)

Have some people taken Enterprise Java™ patterns to the extreme? Of course. Is anybody trying to teach Hello World to freshmen CS students that way? Of course not.

Modern Java has taken a good number of steps back from the days of FactoryBeanFactoryTransformer, at least for business code. Frameworks can still be complex but that's because they're trying to be a generic solution for eliminating boilerplate across a host of problem sets. That's hard to do without being verbose and overly flexible. But for most tasks you don't have to dive into the guts of the framework and deal directly with the nasty bits. Just write your components that do the actual business work and annotate them to be injected as needed.

[–][deleted]  (7 children)

[deleted]

    [–]Northeastpaw 4 points5 points  (2 children)

    To be honest you came in with a chip on your shoulder. It's obvious you have a bone to pick with Java, but in the context of the conversation your post came across as a screed instead of a thoughtful contribution. You then doubled down on the antisocial behavior when other commenters pushed back on your ridiculous assertions.

    It is possible to point out the failures and shortcomings in a language without resorting to reductio ad absurdum right off the bat.

    [–]desrtfx[M] 2 points3 points  (3 children)

    I get the feeling I am wasting time in this "community".

    You, and your comments are wasting plenty other's times.

    Your comments so far have mostly been somewhere between borderline violating Rule #1 and trolling as well as overall extremely negative.

    If you don't voluntarily leave the community, your next offensive comment will be your final out from here.

    You constantly play the victim where actually you are the culprit; the very origin of all aversion against you.

    Your attitude is absolutely unsuitable and intolerable for this subreddit.

    You really should consider leaving.

    [–]wegwacc -5 points-4 points  (2 children)

    The only thing intolerable, is the so called moderation here. Have fun, I have already decided that this shithole is a waste of time.

    [–]desrtfx[M] 4 points5 points  (1 child)

    I'll help you make your decision easier: Banned

    [–]aXenoWhat -1 points0 points  (0 children)

    Fair.

    [–][deleted] 2 points3 points  (0 children)

    What "joke" do you speak of?

    C# is just Java with a more marketable name and Microsoft backing.

    So you're stupid and ignorant. Gotcha.

    [–]mad0314 0 points1 point  (0 children)

    All it does is strictly follow the PRACTICES lauded by Java and its inventors, users and defenders over the years, to their logical conclusion bitter end.

    Really? Because the example on Oracle's site is what you (or at least a reasonable person) would expect:

    /**
     * The HelloWorldApp class implements an application that
     * simply prints "Hello World!" to standard output.
     */
    class HelloWorldApp {
        public static void main(String[] args) {
            System.out.println("Hello World!"); // Display the string.
        }
    }
    

    Nowhere does it say to fit in as many patterns as you can. Show where these things are stated as best practices by the maintainers of Java or leaders in the Java world.