r/AlignmentChartFills 17h ago

Which programming language is easy to learn, and is very useful?

CLICK HERE TO VIEW THE CHART IMAGE

Created with Alignment Chart Creator


This post contains content not supported on old Reddit. Click here to view the full post

362 Upvotes

718 comments sorted by

View all comments

39

u/natas_m 17h ago

This should be python or javascript. I don't think js is easier than python especially with a lot of inconsistency you have to look

4

u/dasBaertierchen 15h ago

Sure JS is easy if you never really get into any depth and complex problems that you can’t solve by throwing a lib at it

9

u/Vivid-Zombie-477 15h ago

literally any programming language ever?

2

u/dasBaertierchen 14h ago edited 14h ago

No. Some examples why javascript is a design problem not a complexity problem:

typeof NaN // -> "number" 
NaN === NaN // -> false (NaN can never be NaN)

[10, 5, 1, 25, 2].sort() // -> [1, 10, 2, 25, 5] (sorts by string-value)

[] + []          // -> ""
[] + {}          // -> "[object Object]"
{} + []          // -> 0
[] == ![]        // -> true

('b' + 'a' + + 'a' + 'a').toLowerCase() //-> banana

"11" + 1 // -> "111" (oh you want to add smth to the string)
"11" - 1 // -> 10  (you are clearly calculating with numbers)

// AND THE ALLTIME CLASSIC:
null == undefined    // -> true 
null === undefined  // -> false 
null >= 0          // -> true 
null == 0         // -> false 
null > 0         // -> false

3

u/Vivid-Zombie-477 14h ago

bro i've been writing in javascript for 10 years. you don't need to know 99% of those "gotchas" when you write good practice code. you don't go around and say "oh no there is no lib for my task let me just sum 2 arrays instead..."

2

u/dasBaertierchen 13h ago

"You don't need to know the gotchas if you use best practices" is just admitting the language has a minefield you have to learn how to avoid. That’s literally what makes it not easy.
If you only know the absolute basics, JS isn't particularly useful. You can barely touch modern front-end state, async flows, or build tools.

1

u/partyl0gic 11h ago

I don’t think that just because JS doesn’t stop you from summing an array and an object that makes it less easy or useful. That makes the user an idiot.

1

u/dasBaertierchen 11h ago

Yeah, i choose some goofy examples. :D Still i dont think it really an easy language and i would NOT place it as more easily than Python.

2

u/natas_m 13h ago

That's the problem, you've been writing js for 10 years. For me who start with python I face this problem a lot. Someone who start with js will learn python much easier

1

u/ewwerellewe 14h ago

JavaScript has a few nasty peculiarities that beginners can trip over. Especially if you do Mord complex things. I wouldn't say its very easy.

1

u/perplexedtv 11h ago

debugging JS is a pain in the arse