this post was submitted on 13 Nov 2024
812 points (96.1% liked)

Greentext

4385 readers
1293 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lurklurk@lemmy.world 28 points 1 day ago (25 children)

Hello World

30 minutes of boilerplate

writing imports

$ cat <<EOF > Hello.java
public class Hello {
  public static void main(String args[]) {
    System.out.println("Hello world!");
  }
}
EOF
$ java Hello.java
Hello world!

ok

[–] MooseTheDog@lemmy.world 22 points 1 day ago (6 children)

Welcome to java, we have a couple unconventional ways of doing things, but overall I'm like every other mainstream oo language.

People: AHH! Scary!

Welcome to python. your knowledge of me wont help you elsewhere as my syntax is purposefully obtuse and unique. Forget about semicolons, one missed space and your code is as worthless as you after learning this language.

People: Hello based department

[–] PanArab@lemm.ee 1 points 1 day ago* (last edited 1 day ago)

It is possible to dislike both. For me SmallTalk-like languages are peak. Message passing for life!

load more comments (5 replies)
load more comments (23 replies)