Monday, June 17, 2024

Comparing the PyCharm Community Edition to Visual Studio Code for Python programming

I have almost pulled out all my hairs using VSC for Python programming. So many things went wrong and often unexpectedly. My frustration got to the point to give up!

Situation: I program only for personal use on my laptop computer with Fedora Linux as the operating system and SQLite as my database application.

Then, it dawned on me perhaps this is not an not issues with the Python language, but with the IDE. Well, I just installed the PyCharm community edition. I have never before really used PyCharm.

The difference was like day and night! Indeed, VSC sucks when it comes to Python programming. The biggest issue I encountered was that if your packages were in different folder branches, VSC would fail to properly import local py files. I tried so many things to make the imports work, but to no avail. I probably wasted more than 24 hours total trying to fix these kind of issues.

Once I got busy in PyCharm basically all the issues I encountered with VSC went away with a few tiny corrections of my code (partially these lines of code were introduced trying to deal with the VSC failures). Within less than two hours my code was again running as it should be. 😊

The many charms of the PyCharm IDE compared to VSC:

  1. You can mark a folder as source code folder
  2. Many of the hints are much better and more helpful
  3. The error messages in the console were more concise, on target and thus more helpful to quickly identify the issue
  4. Integration with Github seems to be a lot easier and more convenient
  5. I am sure I forgot some other benefits I encountered


No comments: