2 ms·
Imo a dynamic language that is object oriented. You need to look if they have nice syntactic sugar and a good standard library. I do JS because I know that bes
by mettamage 6y ago
Imo a dynamic language that is object oriented. You need to look if they have nice syntactic sugar and a good standard library.
I do JS because I know that best and find web dev fun as a hobby.
But I would choose Python if I would want to thoroughly learn a new language.
Why? It is less annoying than JS most of the time.
* Shorter line count (b/c no {} )
* Some set operations are O(1) and in JS O(n)
* better k/v mapping such as using tuples as keys. In JS you have to stringify such a key.
* deque data structure (in JS I remembered some boilerplate for this to hack things together.
Both have a good REPL though, iPython vs Chrome.
Both have no boilerplate:
print(“hi”)
console.log(“whoop”)
Both have simple closures. Need a function definition inside another function def? Closures.
Lambas, easier ones than. C++. No capture values nonsense or r-values, l-values, x-values. No memory management. Sure you have RAII but with JS and Python you have “no worries” (tm).
Final tip: look at like 20 leetcode answers in different languages and find which language you like because of it.
Disclaimer: I am in the interview loop myself looking for a junior FAANG position in Europe. I currently passed Facebook’s automated coding challenge for an SRE program. I am also interested for junior SWE roles.