Hacker News new | ask | show | jobs
by socketcluster 483 days ago
It's not offensive. It's just very stubborn. JavaScript has been bashed incessantly. People would actively look for all the bad parts just to complain about it... Totally ignoring all the good parts and the fact that it was extremely well adapted to an evolving web environment and also well-suited for being standardized.

The people who are pushing for Python in the browser are going to be in for a shock when they realize how inconvenient Python's indentation is to deal with.

3 comments

> The people who are pushing for Python in the browser are going to be in for a shock when they realize how inconvenient Python's indentation is to deal with.

The people who are pushing for Python in the browser are generally extremely familiar with Python, its indentation, and how silly this argument is.

I meant, it is inconvenient in a web context. People do crazy stuff with JS like minifying it writing it all on one-line in the console during testing. It would be different with Python. Sometimes I do write JS functions as one-liners for testing. The Chrome dev console isn't very good at handling tab characters or new lines.

It opens up a whole new can of worms.

>People would actively look for all the bad parts just to complain about it...

What are the good parts? When you only have a hammer, everything is going to resemble a nail.

Javascript was designed to manipulate the DOM and bring a bit of interactivity to otherwise static web pages.

It wasn't designed to write applications in. Nor it was designed to be used for web backend, mobile software and desktop software.

It's like some people try to write everything in Bash and protest when some other people want to use other languages.

I’m no python expert but I’ve written a bit, and indentation has just not been a problem in practice.

You can certainly have an aesthetic or philosophical issue with it, but you said “inconvenient” which is a practical concern.