News for hackers. Stuff that matters.
Re:Python or JavaScript by uberman on Tuesday July 14, 2020 @06:24PM (#23838794)
I code in both almost every day.

While I absolutely hate the look of python (and any language where spacing is significant), I feel like it is easier to get real work done in it.

While I LOVE the look of languages with blocks based on curly braces I find that any significant javascript implementation tends to result in me having to spend a lot of time tending to promises.

So given a 3rd choice I would pick my "GO"-to language one not based on spacing being significant and one where I had more control over when and how I leveraged concurrency.

So in the end, I reluctantly prefer python to javascript.

Re:Python or JavaScript by tcbasche on Thursday July 16, 2020 @02:32AM (#23856408)
Just curious, but why is spacing an issue? Just use an auto-formatter or something. A proper IDE will also have similar tools to fix it for you
Re:Python or JavaScript by catchmeifyoucan on Friday July 17, 2020 @01:46AM (#23867463)
I find it harder to immediately realize and distinguish blocks. I feel that it requires more visual concentration, and if indentation is messed up, then it becomes a dumb tab counting game. Disclaimer: I’m a python beginner
Re:Python or JavaScript by tcbasche on Friday July 17, 2020 @05:50PM (#23876301)
That makes sense. The curly braces do help to identify immediate blocks but I guess the problem is that blocks are too big and can’t be identified in a single screen. Although usually easier said than done