Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
In C you can do whatever you want. You can think of the craziest thing you want to make, and you can start making it. But whatever you want to do, you have to do it by yourself, up from the most basic blocks . Also, you will suffer. A lot. Endless hours will be spent lookin the code again and again, trying to understand what is wrong with your thousand - or for start, hundreds - lines long program. Unfortunately, these seemingly lost weeks in total of your life are unavoidable if you wish to learn C and its applications seriously. Also, couple all this with computer architecture studying for better results. But, after and if you pull through the hell, the knowledge you will have gained will be worth all the pain. You will be swimming in a world of possibilities and deep understanding of what is going on under the hood. And you will be forced to write clean code - or no serious program will be even remotely functional. If you liked the process, then go on to Haskell for a 10x experience
-
koin5857yLearn about how heap and stack and where C puts stuff on there and how it works and functions for the language and threads specially in C you can do a lot of fuckups and overflows of memory.
-
gyansharma17yDude u got to clean up your own shit now. You created something u gotta delete it manually. No GC like in Java. And of course the pointers.
-
GeaRSiX6427y1. Use GCC and learn to compile from cmdline
2. Start with small programs
3. Play around with pointers until you understand them
4. I've always found compiler errors & warnings are a good way to learn the intricacies of a language
Oh and remember you have to so everything yourself in C, the native code is pretty small but incredibly flexible. -
darkmiko3457yYes. Forget everything you know.
Jk not really. Just remember that Java was meant to be idiot-proof (mostly, somewhat) while C is not. So any situation you could "let the compiler/runtime handle it" in Java, you can't in C.
Any advice for someone who goes from programming in Java to C?
rant