Hacker News new | ask | show | jobs
by SjuulJanssen 2878 days ago
Some issues:

- I make stupid mistakes in Python constantly. I misname a variable or a function or I pass in the wrong arguments: Try mypy

- If the task is IO bound: Threads are the wrong the answer to that. You're going async by using Golang, why not in python?

- With Python, I have to ensure all the packages I need are installed on the remote machine: pipenv Like slezyr mentions

- Consistent Styling: Try autopep8 or black

- Intellisense: I would say "use Pycharm" but vscode is getting better I heard

3 comments

Pylint is a bit hard to configure, use Prospector

Prospector does a better job and it prevents you from wasting time with what essentially are stylistic choices and BS like a hard 80 chars limit per line (remember, A Foolish Consistency is the Hobgoblin of Little Minds)

And yes, yes, automated stilling tools are better

Intelisense is needed but even the standard vim autocompletion plugin does an ok job

> You're going async by using Golang, why not in python?

In Golang, you're still using a thread-based abstraction.

In Python, "going async" involves switching to a slightly different style of programming and using different I/O libraries. While that has advantages, using threads lets you stick with the standard style.

I had a very good experience using PyInstaller for a few of my Python programs, it made "binaries" out of them really easily.