In honor of Thomas Paine and other Founders & Immigrants. In memory of my daddy Horst Bingel and my mom Irma Bingel
Thursday, July 24, 2025
IBM Watsonx Code Assistant for Z is the Rosetta Stone for COBOL
Thursday, July 03, 2025
Sunday, February 16, 2025
First Programming Language for biological Active Material at subcellular level
Thursday, September 05, 2024
Top programming languages of 2024
Tuesday, August 27, 2024
Top Programming Languages 2024
Monday, June 24, 2024
PyCharm Community Edition annoyances with respect to Python
I recently started to use PyCharm instead of Visual Studio Code for my Python programming.
This CE of PyCharm has its shortcomings!
My project consists of two main sub folders and each mein sub folder has sub folders as well.
Here are my annoyances (will be amended as needed):
- I noticed that if I use the same file names (.py) across sub folders (even in different branches of folders), PyCharm would raise a module not found error. Only after I renamed the file it worked again.
- Frequently, I have to restart PyCharm because it hangs/freezes and become unresponsive. Maybe that is why the main menu has an option "Repair IDE"?
- Every time I execute code, I get the same error message "TERM environment variable not set." without any hint what to do about it. This particular error seems to be negligible as the code executes otherwise fine.
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:
- You can mark a folder as source code folder
- Many of the hints are much better and more helpful
- The error messages in the console were more concise, on target and thus more helpful to quickly identify the issue
- Integration with Github seems to be a lot easier and more convenient
- I am sure I forgot some other benefits I encountered
Monday, June 10, 2024
Python for Google Gmail annoyances
Very recently, I tried to manage my emails using Python and Google Cloud APIs. My IDE is Visual Studio Code.
I readily admit that I am not an expert software developer, but I have programmed on a large number of different projects in at least half a dozen different languages over many years. None of these projects were very large and complex.
However, for some odd reason Google made it extremely and unnecessarily complicated to do this. The Google provided examples, tutorials and error messages were not very helpful. I had to give up after several days and many hours of intense trial and error.
Compare that to the JavaScript GmailApp library provided for Google Apps Script. I have previously and successfully used this library to manage my emails in Gmail through Google Sheets. Unfortunately, there is nothing comparable to the GmailApp available for Python from Google! Very regrettable since Python has become such a popular programming language in recent years not least thanks to machine learning & AI!
What I do now is to dump certain email messages as a simple text file (MBox file) using Google Takeout. Next I use Python to parse the email messages etc.
P.S. About Google Takeout I could write another annoyances blog post (e.g. it dumps also all trashed emails associated with a custom label). Generally speaking, Google Takeout is very primitive! Why was a bulk email dumping feature not integrated into Gmail in the first place!!!! Grrr!
Tuesday, March 21, 2023
Python 3.12: A Game-Changer in Performance and Efficiency
Sunday, April 25, 2021
Python Annoyances
I have started programming in Python only very recently! More annoyances will be added as I gain more experience with this language.
- Lack of constants!
- del listname[index] to remove an item from a list at a certain position! This is very awkward and not intuitive!
- The abundance of packages is overwhelming
- The rstrip() function removes one to many characters on the left hand side of the argument of the rstrip function. Therefore, they came up with the removesuffix() function, introduced with Python version 3.9 (see e.g. PEP 616 -- String methods to remove prefixes and suffixes dated 3/19/2020). This is almost to clever by half instead of fixing the rstrip() function by e.g. adding an optional parameter! (added 6/15/2021)
- Despite hundreds of standard libraries, there is no built in function to copy and paste from the clipboard. So I installed Pyperclip, but resulted in errors, when I tried to used it. I had to resort to an old Unix command and subprocess to copy/paste from the clipboard.
Tuesday, June 09, 2020
Facebook's TransCoder AI converts code from one programming language into another
Facebook's TransCoder AI converts code from one programming language into another | VentureBeat