Javascript vs Python

Status
This thread has been locked.

croissant222

Feedback score
0
Posts
439
Reactions
151
Resources
0
Im neutral since i dont really use either but i would like to hear your opinion on each...
To start off the discussion here are a few points about both languages

Javascript
Cons

- Callback hell
- Weak typing
- Ecosystem is filled with tons of low quality libraries
Pros
- Pretty fast, V8 engine has very good optimizations
- THE standard for running code on browsers
- Has many transpilers (typescript, elm, etc) that fix some of its problems

Python
Cons
-
Becomes very hard to read with lots of nesting (because no {} )
- Global interpreter lock can be a huge performance hit
- Default library is extremely bloated
Pros
- Strong typing
- Has typings unlike javascript (although they are purely cosmetic they help with documenting how a function works and help static analysis tools)
- Overall very readable, sometimes almost like writing english
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

yo

✌️
Supreme
Feedback score
11
Posts
183
Reactions
149
Resources
0
I think each can shine in many different scenarios. Like what lucifer. said, Javascript tends to a lot of new programmer's favorite, and it's very straightforward unlike some other languages.
 

weloveit

Ring Notification: There is motion on your side
Premium
Feedback score
21
Posts
91
Reactions
76
Resources
0

Python is great at visualizing or manipulating sets of data or information, and there's tons of libraries that make it literally so easy it would only really take 3 lines of code. Python scripts can also be ran server sided which can be a lot more efficient than other server sided languages in some scenarios.
I don't think that JS or Java (javascript is NOT the same as java) are easier than python. Python may be for more experienced users yes but it has its own set of capabilities and usages that may come useful to a certain audience of programmers, mostly data visualization, statistics, scientific etc.
 

enxs

dr pepper is the best soda
Deactivated
Feedback score
0
Posts
32
Reactions
16
Resources
0
Python for sure, as long as you have the patience to learn it as it's super hard and confusing to learn it at first.
JS is for beginners that just need/want to learn a simple language.
 

croissant222

Feedback score
0
Posts
439
Reactions
151
Resources
0
Python is great at visualizing or manipulating sets of data or information, and there's tons of libraries that make it literally so easy it would only really take 3 lines of code. Python scripts can also be ran server sided which can be a lot more efficient than other server sided languages in some scenarios.
I don't think that JS or Java (javascript is NOT the same as java) are easier than python. Python may be for more experienced users yes but it has its own set of capabilities and usages that may come useful to a certain audience of programmers, mostly data visualization, statistics, scientific etc.
JS can also be ran server side with NodeJS, and its probably gonna be faster than python in every instance here, unless you cheat and use a "python" web server which is actually 99% C with python bindings.
 

weloveit

Ring Notification: There is motion on your side
Premium
Feedback score
21
Posts
91
Reactions
76
Resources
0
JS can also be ran server side with NodeJS, and its probably gonna be faster than python in every instance here, unless you cheat and use a "python" web server which is actually 99% C with python bindings.

JS = faster server sided
Python = faster client sided
and they both have very different uses JS is faster at other things than Python and vice versa
 

croissant222

Feedback score
0
Posts
439
Reactions
151
Resources
0
JS = faster server sided
Python = faster client sided
and they both have very different uses JS is faster at other things than Python and vice versa
What does "client side" mean here, cause u cant use python for front end really.

"JS is faster at other things than Python and vice versa"
Every benchmark ive seen says the opposite, JS is faster, can i see your source for this claim?
 

weloveit

Ring Notification: There is motion on your side
Premium
Feedback score
21
Posts
91
Reactions
76
Resources
0
What does "client side" mean here, cause u cant use python for front end really.

"JS is faster at other things than Python and vice versa"
Every benchmark ive seen says the opposite, JS is faster, can i see your source for this claim?

I'm not talking about like on a website or web server I mean client sided as on your own computer for applications or python notebook stuff like anaconda..
the V8 engine for front end/back end for web development is definitely better for what you do with it, JS > Python for web development, Python > Java (without any libraries) for client sided applications or solutions such as a program you run on your computer and not a server.
It's really just my own personal experience as I'm going for an SE degree as well as I've used both for various situations. I'm sure there's articles talking about both sides of the argument, but really this is just an opinion from my own experience. Not here to start a feud or anything.
 
Status
This thread has been locked.
Top