Advice to all Python users: learn JavaScript

comments

Iโ€™ve done that. Now what?

what if iโ€™m using both?

i already did, itโ€™s cool but i want 1/0 to actually raise an error

too bad, js only has a catch-all Number type, so Infinity is the right response for 1/0

JS has Error types, it can throw them. In fact, they can throw them inside the / operator itself. Watch.

x = {valueOf:1}
1/x

screw you im gonna learn python so i can learn gdscript ๐Ÿ˜ค๐Ÿ˜ค๐Ÿ˜ค๐Ÿ˜ค๐Ÿ—ฟ๐Ÿ—ฟ๐Ÿ—ฟ๐Ÿ—ฟ๐Ÿ—ฟ๐Ÿ—ฟ๐Ÿ—ฟ๐Ÿ“ฎ๐Ÿ“ฎ๐Ÿ˜ข๐Ÿ“ฎ

better yet, im gonna start using Lua (and Luau [๐Ÿ…ฑoblox moment]) to code ๐Ÿฆ†๐Ÿฆ†๐Ÿฆ†๐Ÿฆ†

broโ€™s learning python for gdscript ๐Ÿ’€

(I am proud JS and Godot user)

Any real reason other than making front-end?

Frontend yes but also for frameworks like svelte, express, nuxt. And python really sucks ngl compared to js. JavaScript is just a lot more... Capable?

Python has Django framework, Flask for simplicity. capable in what way though? I donโ€™t think thereโ€™s anything that JS can do but py cant

webservers like express are much faster than flask. also frameworks like nuxtjs/svelte/etc with minimal api functions are pretty cool.

Why not

python is better, you can make better malware :P

Yeah but at least JS doesn't require indents

neither does python :P

example: def func():print('helloworld')

Also, indents have to be 4 spaces, can't be 2

See more replies

Honestly indenting makes the code looks better and more readable.

yes but its annoying that the indention is necessary

See more replies

you do realize that node and deno exist, right?

It's kind of better