Twelve Years of Service
Posts: 1,224
Threads: 88
I'm back! Let's talk C. 10-22-2017, 11:34 PM
#1
So I've been working heavily with C for the last few months and so far I really enjoy it. Yeah, it is a low level language BUT that kind of flexibility gives equal amounts of power and responsibility. Working with memory management could be construed as complicated, but so far it seems simple enough. Pay attention to what you're allocating, and where, and make sure to give it back.
With all that said, what are your favorite parts of C? Or do you prefer a different "low-level" language?
Nine Years of Service
Posts: 3,085
Threads: 132
RE: I'm back! Let's talk C. 10-22-2017, 11:38 PM
#3
I'm currently "attempting" to learn Python. Although I Havn't really looked into any C based languages as of late.
•
Eleven Years of Service
Posts: 1,213
Threads: 51
RE: I'm back! Let's talk C. 10-23-2017, 05:39 AM
#6
My absolute favorite part of C is it's simplicity. The whole language fits into the size of a book you'd expect a small travelers translation book to be.
You have a few basic types, structures, keywords, etc. Yet the language allows so much flexibility. Part of the reason it's been so popular and retained that popularity over the years.
In all these other languages you have BS like interfaces, abstract classes, crazy data structures, and fuckall. All those really do is expand on C. Learning C gives you new insight into all that BS and why they were created in the first place.
Email: insidious@protonmail.ch
•
Twelve Years of Service
Posts: 108
Threads: 5
RE: I'm back! Let's talk C. 10-26-2017, 09:00 PM
#8
Favorite part of C? Probably the fact that it's basically a nice, self-contained toolbox. No fussing about with a million frameworks. Of course, the big downside to this is that you have to write so much shit yourself. That part kind of blows. And the fact that it's a simple imperative language with no built in Object Oriented-ness means it's pretty easy to design your program poorly. You can shoot yourself in the foot really hard with C.
Do I prefer a different low-level language? Man, C IS the low-level language. We have others on the scene like Rust, and we can go a step lower to assembly. But nothing tops C. It is the defacto standard for writing systems and low-level code and has been for over 2 decades.
These days I would just use C++ for everything and omit the bits you don't like. It still does what C does, for the most part. You can cast to and from *void, and can micromanage memory, such as creating structs with perfectly aligned bits in memory, aka unions. Say for example you create a structure that you wish to access via bit offsets for speed, you can do that in C++ with a union. It's pretty nice. And when OO design is done properly, C++ code is far easier to scale upwards than C. And you can use the entire C standard library on top of the C++ standard library, which is more than enough to really get some work done.
I started with C, and at my current job I'm writing C++. It was worth it learning C, but certain problems are simply easier and more efficient to solve in more abstract and higher level languages. The nice thing about C++, though, is that you don't have to sacrifice low-level control if you need it.
•
Ten Years of Service
Posts: 1,916
Threads: 64
RE: I'm back! Let's talk C. 10-26-2017, 09:51 PM
#9
My favorite part about C is that it runs on everything, from PC to phones to routers and other small devices
(This post was last modified: 10-26-2017, 09:52 PM by Pikami.)
•