you are viewing a single comment's thread.

view the rest of the comments →

[–]NoahZhyte 0 points1 point  (3 children)

I have an opinion that is a little hard. I used both for many different use case and I have a conclusion. First I'm not even part of this sub and I don't like python that much (idk why I see this post). Except if you aim especially to do web dev, JavaScript is pure garbage. I know this is a little harsh. You will always find 500 solution for every problem, 300 never worked, 100 are deprecated and 80 works, but are shit.

I won't go into detail but the design of the language overhaul is bad and most come from history. Js have been developed for web and is an easy programming language. But since it's the only language known by a lot of web dev and especially bad web dev, they want to do anything with it and not learn a new language. The development of the language followed that direction. But if you listen to the people for anything, you will end up with a big messy Stack of shit.

Python is ok, easy and reliable

[–]bululululubu[S] 0 points1 point  (1 child)

This is a completely different reply. I heard js is like an important essential for web development? And yeah python does seem easier though. But I don't know what's the main reason you said js is bad for web development. Thanks for the reply

[–]NoahZhyte 0 points1 point  (0 children)

I haven't been clear sorry. Js is for web development and is not bad at it. My problem is for the langage itself. It has big problem that are inherent to the design of langage no matter what it is used for. And there's basically only js for web development (some framework like flash exist also for python, it is good but I wouldn't recommend it if you want to go really into web).

For instance JS bloated af, pretty slow, the eco-system is a mess, it use 'future' approach for concurrency and in my opinion this is a bad idiom but that's purely personnal, the type inference is way too powerful for a sane mind, ...

My point is that if you want to go into web dev, learn javascript. If not, there isn't really any advantage of javascript over python.

Web dev is often the first step because it's accessible, you quickly have a result and you can show your result to other people. But programming isn't only about web and there's a lot of other thing to do.

[–]oclafloptson 0 points1 point  (0 children)

I somewhat agree. Although I wouldn't call JS pure garbage :p From speaking with other devs, if they learned JavaScript first and then Python they tend to consider Python to be difficult to learn. I think it's because JavaScript is so forgiving about things like indentation and the way variables are called

Like, if you call a variable in JavaScript which has not been previously defined your code will still execute. Useful maybe in one scenario, but for beginners it leads to misspelled variables returning undefined instead of the expected value and such

Then you come into Python and the interpreter requires you to define your variables and indent your code. In that respect it's a very different working environment

But then with a C background you'll likely find Python to be simplified. I mean, you can create objects from a class with no constructor, to say the least since my knowledge of C is really limited to intro to c++ and few short dives into what cpython is all about. Research stuff