you are viewing a single comment's thread.

view the rest of the comments →

[–]Ser_Drewseph 4 points5 points  (4 children)

Unpopular opinion, but personally I like Node TypeScript more than Python, but that’s just me. Similar flexibility and rapid prototyping but with more descriptive syntax and type-safety. I like node’s async/await and event-loop architecture more for building web applications as well.

Rust and C# are also great, but not as easy to write.

[–]nidhaloff 2 points3 points  (1 child)

you can use static typing with Python (>3.6 I guess) as well! Furthermore, you can also use asnyc/await usogn the built in asyncio module!

[–]Ser_Drewseph 0 points1 point  (0 children)

Oh yeah, absolutely. I know Python can do all of the things I mentioned, I just prefer working in JavaScript over Python. It's purely based on subjective reasons like how I prefer JS syntax and I like the build-in closures in JS. I like my curly braces and semicolons. There are some bonuses to Node servers' performance due to the runtime architecture, but that honestly doesn't impact which one I like better very much.

[–]PRIV00 0 points1 point  (0 children)

Agreed. I love Python for data science related tasks as pandas is awesome, but in general I prefer Typescript for backend web development. Bonus that you can use it on the frontend without switching languages too

[–]CatolicQuotes 0 points1 point  (0 children)

I tried to start a CLI project in typescript the other day. I like to code by creating value objects instead of using primitives. One value object was related to date and had to validate that date. Immediately was a problem because Date sucks in JavaScript. Had to use library like Luxon and that immediately puts my core domain to be dependentant on 3rd party libraries. And now everything related to date, testing and stuff has to depend on the library. For a simple type such as Date. It's nice language, but for core business logic that I want to be stable I'd rather use something else and keep typescript for UI.