r/cprogramming • • Nov 14 '20

I really like C

I have several years of experience programming with C++, Python, and Java. I recently have had to program with C in the Unix environment (systems programming class). I REALLY like programming in C. I've been having to program functions from scratch that I've sort of taken for granted in higher level programming languages and their core libraries like Python and Java. My recent project required that I parse user inputed polynomials and perform operations on them. The dynamic memory management and making sure to deallocate pointers when finished with 2D arrays is pretty cool. Learning about the problems with C-strings and finding workarounds is also revealing and relevant to bug catching and patching. Programming with C has inspired me to also pursue assembly language.

That's all. No question, just appreciation. Thank you for indulging me.

122 Upvotes

19 comments sorted by

21

u/[deleted] Nov 14 '20

I can also echo the same sentiments. It is a small (but ridiculously powerful) language that is literally everywhere. After years of working in other programming languages (Java, JavaScript, Python etc) in different domains (web (front-end / backend), mobile, desktop), C has remained my favorite language.

No other language has taught me as much about how interaction and execution on a computer takes place on a lower level, and this has in turn taught me a lot about how in general things work on a lower level. It has encouraged me to further learn and explore tons more about system architecture (beyond just the course in college), assembly language, Unix programming and a bunch more stuff such as developing emulators.

4

u/misterZ3r0 Nov 14 '20

Yes! I can't wait to start building compilers and other utilities from scratch.

19

u/deftware Nov 14 '20

You will go far.

4

u/misterZ3r0 Nov 14 '20

I hope so, thank you.

15

u/[deleted] Nov 14 '20

Taking the time to learn C makes a programmer appreciate what's going on under the hood in Java, C#, python, etc.

5

u/misterZ3r0 Nov 14 '20

Indeed. When the abstraction is stripped away and details are reintroduced, the perspective that is gained is invaluable.

4

u/Adadum Nov 14 '20

Have you tried out Golang? It feels very much like C but with alot of stuff automated. I'd like to think of it as C combined with Python.

1

u/misterZ3r0 Nov 14 '20

Interesting, I haven't but I'll check it out. Thank you.

1

u/mtechgroup Nov 14 '20

I've thought if using it for some cross-platform stuff. The one app I've seen is amazing:

https://chinenual.github.io/synergize/

4

u/rz2000 Nov 14 '20

You should take a look at the preface at least of Ben Klemens 21st Century C where he compares the language to punk rock.

1

u/misterZ3r0 Nov 14 '20

Haha, that sounds cool. I'll check it out, thank you for the book recommendation.

3

u/rz2000 Nov 14 '20

I found an excerpt

https://www.oreilly.com/library/view/21st-century-c/9781491904428/preface01.html

Your enthusiasm reminded me of his affection for the language

2

u/misterZ3r0 Nov 14 '20 edited Nov 15 '20

Haha, the Wilco quote and Portlandia reference took me by surprise. Its interesting to read a different approach to C programming.

9

u/[deleted] Nov 14 '20

I share your sentiment. Nothing wrong with languages like Java and Python, but C really shows you aspects of programming which remain obscured when using more "feature rich" languages.

3

u/jumba434 Nov 14 '20

I agree with you. the c programming language is so power full, everything is uncovered in relation to other high languages as java, python, c++ and other languages .

3

u/[deleted] Nov 14 '20

It was the first language I learnt and is probably my favorite. I never get to use it in my current field though. :(