DEV Community

Discussion on: Do you hate JavaScript?

Collapse
 
hkrogstie profile image
Håvard Krogstie

My problem with javascript is that Python is better for all use I've ever seen, save for websites where you don't have a choice. Now I don't usually use either, so do tell if you know of a killer feature only in javascript.

Collapse
 
olekria profile image
Olek Ria

How you write Single Page Applications in Python ?

Collapse
 
hkrogstie profile image
Håvard Krogstie

Well single page applications in the browser are websites, where you for the time being don't have a choice. However if I want a web service, I'd much rather use django's templating engine and not worry about single page.

Thread Thread
 
olekria profile image
Olek Ria

A lot of option in java and c# also. Please do not concentrate at Python.

Thread Thread
 
hkrogstie profile image
Håvard Krogstie

Yes, there are definitely websites I've done in python I wish I'd done in e.g. Java, but the purpose of this post was problems with JavaScript. Java and C# don't have dynamic typing, for instance, meaning JavaScript has something they don't. Personally I prefer static typing, but among the languages that don't have it, I prefer python.

Thread Thread
 
olekria profile image
Olek Ria

C# HAS dynamic typing.

Thread Thread
 
hkrogstie profile image
Håvard Krogstie • Edited

Ok sorry, I didn't know. I wouldn't want to use it even if it does. You can pass Objects around in java as well, I suppose. C# and Java sort of have functions as first class citizens as well, now. Java streams can almost do all the python list magic as well. Basically, I conclude with preferring Java, C#, and Python, since they all do what JavaScript do, just without undefined

Thread Thread
 
mateiadrielrafael profile image
Matei Adriel

For me personally: typescript > python > javascript