Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The IDE catches type errors, and it lets you do things like simulate structs using @dataclass.


I wish the tooling outside IDEs worked better. There's obviously some magic going on with tools like PyCharm and VSCode + plugins.

I wish this was the case with command line tools I can plug into the build/deploy pipeline. I know they exist, it's just they are unsatisfying and there are lots of cases where they miss stuff that is trivial to catch in statically typed languages.


As someone who lives in an IDE, I don't understand this. Trying to get all of the functionality of the default IDE, along with the trivially added plugins, to work in a visually digestible and sane way would be a curses nightmare of 30 command line tools. If you made it so they played well together, where a human could interpret what they were seeing, you would have something indistinguishable from an IDE.


I find your opinion baffling to be honest.

It's simply not true. Every statically typed language works like I described. Even Typescript works like this. You can have your IDE plugins, but you definitely don't need them to perform type checks. It's not true this requires "a nightmare of 30 command line tools", you just need one: the type checker (built into the language in most statically typed languages, but sometimes split into a separate tool).

Besides, your IDE doesn't live in the build pipeline (in your CI/CD tool). So you cannot rely on it.


Sorry, I misread your comment.


@dataclass has nothing to do with the IDE in python, it's a decorator, sugaring a higher order function.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: