r/javascript • • Dec 16 '18

Coming from Python to JS NSFW

const print = console.log

I found my safe space.

607 Upvotes

156 comments sorted by

View all comments

337

u/Pavlo100 Dec 16 '18

Here is the Java implementation for those who want to make their life harder

const System = {out: {println: console.log}};
System.out.println("why?");

0

u/[deleted] Dec 17 '18

[deleted]

6

u/sh0rtwave Dec 17 '18

So, which is it gonna be? The language itself? Or the runtime? I've seen the language itself be, well...never really that fast, but kinda OK. I mean once you get it up and going...(disclaimer: Have written much Java code, and once-upon-a-time liked it. I don't know what was wrong with me. Then I picked up As3, which is like Flash + Java. Again, I'm not right.).

To be fair though, I've had that same thought about Python...the indents. Don't get me started about way back in the day trying to work with a team that had all different editor setups, and then 3 people edit the same file in one day, and the whole server goes down. I just wanted to seize Guido every now and then and shake him and say "What the hell is wrong with you?".

0

u/[deleted] Dec 17 '18

[deleted]

5

u/sh0rtwave Dec 17 '18

I did not know this! Fascinating! Did you know that nearly 99.928% of Reddit has no idea what what a sarcastic rebuttal even looks like, or understand the art of conversation and context?

I got my data by just reading Reddit. How'd you get yours?

0

u/[deleted] Dec 17 '18

[deleted]

5

u/sh0rtwave Dec 17 '18

What gives you that idea?