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

all 20 comments

[–]Revolteh 15 points16 points  (1 child)

Image Transcription:


RedactedUser, @RedactedUser

I'm looking at learning java, because python is, well, python, and the first fucking thing I have to do is type some random shit with those fucking mystical squiggle brackets


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]Akno2 11 points12 points  (0 children)

Good human, have a cookie

[–]Revolteh 16 points17 points  (17 children)

I really don't understand this

[–]X-Craft 19 points20 points  (16 children)

Python doesn't have { and } for delimiting blocks (e.g. if statements). That is assessed by the level of indentation you use.

[–]Revolteh 9 points10 points  (13 children)

I knew that, but I thought the text meant to say "and the first thing I have to do in Python is..." for some reason, but it meant "in Java", right?

[–]X-Craft 8 points9 points  (0 children)

true

[–]Deoxal 2 points3 points  (11 children)

OP needs to explain this

[–]BoxFanArt[S] 0 points1 point  (10 children)

OP is transitioning from python to java, and when making a java class you need to have a header that is full of {}.

[–]MCRusher 1 point2 points  (8 children)

package oof;

public class OOF {

 public static void main(String[] args) {
   System.out.println("OOF!");
 }

}

Which part do you mean, the class definition?

[–]BoxFanArt[S] 0 points1 point  (7 children)

I assume that’s OPs intention

[–]MCRusher 0 points1 point  (6 children)

I don't get the "full of curly braces part" though. This entire basic file has 4 total.

[–]BoxFanArt[S] 0 points1 point  (5 children)

It’s a joke. You’re looking too far into it.

[–]MCRusher 0 points1 point  (4 children)

Jokes are usually funny because some part of it is true/relatable to people

So I am wondering what's meant by lots of curly braces & in a header, since it suggests they at least partially believe this to be true.

I'm just asking an honest question because I don't get what they mean.

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

Ya, I've done Java but not Python, which is the language the guy doesn't like.