Returning to C
Today I returned to an old favorite of mine: the language C. My old chef John B. would be proud of me.
After considering a few programming languages:
- Python
- Java
- Rust
- Cobol
- Pascal
I realized that I always have liked “primitive” low level languages. I also like compiled languages and don’t mind of it takes a little longer to create a project.
I used to program in C 25 years ago and I found it all will come back quickly.
Nothing wrong with script languages, they all have their place and I have had a use for them. Like:
- Bash scripting
- Python
- SQL
- etc.
More than a year ago I wrote a simple Python program to input health statistics from my Garmin watch into a PostgreSQL database. Today I recreated the input part in C in an afternoon.
The repository cvdg/c-health is on Codeberg.
The plan is to use libpq to connect to the same PostgreSQL database.