BinaryByter
and its my own assert
BinaryByter
@OxFFFFFFFF found anything?
BinaryByter
I would not reccomend it
BinaryByter
atleast not for learning programming
BinaryByter
for historical purposes it is surely very interesting
BinaryByter
maybe also to grasp way underlying concepts
klimi
every book is nice ❤️
BinaryByter
K&R?
K&R != as modern as C++
BinaryByter
C++?
Yes
Mat
Yes
But K&R is about C, not C++
Mat
I didn't get your point
BinaryByter
C isnt C++
BinaryByter
C++ is a lot more modern
BinaryByter
it produces more readable code
BinaryByter
it features a lot of ways for the user to interact with the compiler optimization sytem
Mat
But C remains a different language from C++. They are two different things from my pov🤔
Anonymous
I personally prefer C
Ludovic 'Archivist'
Ludovic 'Archivist'
Furthermore, generally, you can do it the exact same way
Anonymous
Ludovic 'Archivist'
BinaryByter
Ludovic 'Archivist'
Nothing prevents you to
BinaryByter
Ludovic 'Archivist'
lol try using malloc() in C++
It is disgraceful and is regarded a security issue, but you can
Anonymous
Why so?
It just comes down to my taste
Anonymous
It is disgraceful and is regarded a security issue, but you can
Exactly , it's regarded as a security issue
BinaryByter
It just comes down to my taste
Well C++ is syntactually pretty much the same except it has quite some features that many people would like
BinaryByter
Just like in C
does c have new and delete?
Ludovic 'Archivist'
Malloc is evil, whenever in C and C++
Mat
does c have new and delete?
It doesn't have obj...
Ludovic 'Archivist'
does c have new and delete?
No, and new and delete are regarded the same as malloc in C++: dangerous stuff
Anonymous
Malloc is evil, whenever in C and C++
I personally prefer it in C , I never use it in C++
Ludovic 'Archivist'
Mainly OOP if you're interested in that
Mainly functional, and template metaprogramming
BinaryByter
It doesn't have obj...
new doesnt care about objects and yes C has objects
Anonymous
In C I never got troubles with that , in C++ I did a few times
Anonymous
Anonymous
What's this? A C vs C++ thread?
Anonymous
lol
Anonymous
It's not OT at least
Mat
new doesnt care about objects and yes C has objects
C doesn't have objs... I'm not going to consider some esotheric ways to do them😅
BinaryByter
Mainly OOP if you're interested in that
OOP has loatsa benefits. also, FP, metaprogramming, compiler optimization, a full fledged standard library that will soon support internet connection etc
Anonymous
It's not OT at least
Just don't flame
Ludovic 'Archivist'
malloc
Man, the issue had nothing to do with the language if you had it in C++ but not in C
BinaryByter
Man, the issue had nothing to do with the language if you had it in C++ but not in C
malloc is unsafe and prone to a stupid coder (we all are stupid coders) not cleaning up his mess
Anonymous
Anonymous
Just don't flame
Not flaming lol
Anonymous
lol polymorphism is kinda shit
It depends on what you use it , but it might be interesting
BinaryByter
BinaryByter
I can attest that
Anonymous
lol
Anonymous
That's kind of true sometimes lmao
Ludovic 'Archivist'
I personally NEVER had memory allocation issues in C++, and I use mmap and munmap
Anonymous
sometimes?
Depends on what I need to do
Ludovic 'Archivist'
Depends on what I need to do
Nah, just avoid the OOP features of C++ like pest
Anonymous
Segfault all the life
BinaryByter
Anonymous
It is just perfection
BinaryByter
they are cool
BinaryByter
lmao
i've done some really gruesome stuff in the past with OOP
Ludovic 'Archivist'
not even one sigsev? 😏
I had one or two, generally over things unrelated, like using the wrong var
BinaryByter
well I don't use malloc either