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
-
Just for the record, your name is visible in that picture. (If that's your name, of course)
-
@linuxxx thanks! Hadn't noticed tbh, but I don't mind people knowing my first name so it's all good
-
@AleCx04 When I learnt C, I had some German book which was rather mediocre, but I was fluent in Pascal and only needed to figure out how to do things in C.
I just made a demo project to learn the language, a simple four-in-a-row game with text interface. That game where you drop the pieces into a vertical frame.
In hindsight, I should have been paying more attention to nasty shit like undefined behaviour, but I didn't even know that this existed until it started biting me. Function pointers are also interesting stuff that I encountered only later when I met some OOP like programming style in C. Oh and integer promotion rules of course. -
@Fast-Nop sweet man! I try to look at the code that makes up other applications from time to time in C to try and understand it better. I currently have a book that targets writing an interpreter and then a compiler in Golang, when I am done with it, and assuming that I properly understand all of it(which it gets rather complex from time to time) I plan on porting it to C. I have always had a heavy fascination with C, but don't have a place to use it at work since we do most of our development in PHP, JS, Python and Java. One day I hope to branch out into making C my main work objective.
-
gcc -Wall -pedantic -O -g -std=c99.....
valgrind....
still gives me shivers... one of the reasons I was kicked out of my previous uni
As a guy who learned OOP(Java) first: fuck C and manual memory management in general -
@bytecode I am pretty sure that given the experience you got afterwards you would be able to do a lot more now man. I started programming with c++ and absolutely despised it due to me sucking balls at everything back then. Now, the concepts do not seem nearly as scary as before. Pretty sure you could hack it if you really wanted to :D
-
@AleCx04 well... that was like a year ago... I learned Java when I was maybe 12(and PHP when I was 6 or 7 and JS when I was 8... yea... I could read and write at 4.5 years old... did not have anything better to do so I made websites)... soooo one could say I've got 10+ years of experience working with Java :D ....and I still hate manual memory management... I get that sometimes it is mandatory to do some memory management, but I like to do it at a higher level (think SoftReference in Java //stuff that can get garbage collected while being referenced(normally seen as being used and not eligible for gc) to prevent running out of memory). I don't care how big is any type in the memory (mostly because everything gets padded to 32-bit) and I have no need to access stuff byte after byte, I have objects and references and automatically resizing data types... and most importantly: I have BigInteger :D (theoretically speaking an infinite-size integer, the only limit is the size of RAM)
Related Rants
Welp, wish me luck diving into C for the first time
rant
i forgot to tag it
oops