r/C_Programming • u/wak6817-2 • Oct 17 '26
Discussion My opinion about C development
when wanting to code real software in c; i feel that you need to learn way to much tools like (c)make, clang/gcc etc.
that's why i decided to NOT use any tools and libraries INCLUDING GLIBC and other standard c libraries!
fuck the world; im making my own printf, strlen and more! AND THE ONLY THING IM GONNA USE IS CLANG WITH C17!
0
Upvotes
3
u/Live_Meeting_1121 Oct 17 '26
Ok
3
u/JGhostThing Oct 17 '26
If you use clean makefile's, you don't need to use most of the rest of the tooling.
And yes, you can rewrite libc if you really want to, but this is a huge investment of time. The rest of the libraries would be another huge investment.
Rather than do things like this, I prefer to be paid for my time. I don't want to use a buggy library in production code. And yes, I'm pretty sure that your libraries will be buggy. This is pretty much what happens if a single person write a library without quality assurance.
5
u/catladywitch Oct 17 '26 edited Oct 17 '26
What
edit: in case you're serious, you'll lose portability and end up with a more unsafe and less performant version of everything, also yes, c doesn't have the friendliest toolchain compared to some other languages, but giving make or cmake up is just shooting yourself in the foot isn't it? I mean, even if you write your own stdlib at the very least you're going to need to link it
2
u/number_1_steve Oct 17 '26
I love that idea for learning. Doing that, you learn so much about hardware, kernels, interfaces, C, and on and on. I vibe-coded (which I generally hate, I did it mostly to check it out) a Linux, x64 based libc implementation. It has tests, fuzzing, and docs. I’m happy to share if you want.
2
u/sciencekm Oct 17 '26
Plenty of the exercises in the K&R books are about implementing the std functions. So I think this is a good way to get proficient with C.
3
u/Ecelleon Oct 17 '26
If you like reinventing the wheel, sure. You could also dig through how these functions work if you don't trust someone handing you abstraction.
1
u/Top-Employ5163 Oct 17 '26
What's wrong with printf?
1
u/DDDDarky Oct 17 '26
You think this is too much to learn? Oh boy wait till you get to real software.
1
u/Shattered-Spears Oct 17 '26
How do you tackle something like that? Do you "borrow" from other libs to make your own? In other words, how could one write a library? Are there any books dealing with such thing?
1
u/Still_Explorer Oct 25 '26
For me the case was somewhat opposite, I didn't want to learn CMake and didn't learn it. I just copied lines from dozens of other cmake scripts and brute forced it until it worked. Now also I am not sure I know CMake but I know about how 20 or something commands work and I use them.
And somehow this goes for all sorts of programming or even third party libraries. You don't need to be an expert in 3D physics - you just use Box3D. You don't need to be an expert in databases - you just use SQLite. You don't need to be an expert in networking - you just use libhttp.
In terms of educational purposes, learning is free and unlimited, someone can learn everything and anything within 90 years. But the real catch in everything at some point is to define exactly where your area of expertise is and be concerned only with problems related to that area, for better worse then, using libraries made by other experts (who have mastered their respective areas) is essential.
Is like if someone is dropped in the middle of the ocean, and see a life jacket and a box containing a satellite phone and say "F this S man I am throwing it away! I can make my own open source satellite phone with Raspberry once I get home".
Problem is not about making your own thing, but problem is not using something that works when you need it the most.
0
u/mivanchev Oct 17 '26
Don't forget to use AI!
0
u/[deleted] Oct 17 '26
[removed] — view removed comment