MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
/Elijah
Anonymous
/avionics software developer; GPU drivers development
klimi
ok
Anonymous
) Hello! I must rapidly learn C++14. Im apprised of complexity and elegance of the language, but even so, can you give me a tip for suitable books and resources?
BinaryByter
C++14 is that different from C++11?
MᏫᎻᎯᎷᎷᎬᎠ
It teaches you C++11
MᏫᎻᎯᎷᎷᎬᎠ
C++11 is not so different from C++14
MᏫᎻᎯᎷᎷᎬᎠ
In fact I prefer reading C++11 first even if C++20 is released
Anonymous
10 years will be enough
I definitely understand, and agreed! But I C programmer to the backbone)
Anonymous
I have been developing, and maintaining avionics software...every day close-to-metal... safety critical standards.
MᏫᎻᎯᎷᎷᎬᎠ
We respect that
MᏫᎻᎯᎷᎷᎬᎠ
But believe me C is really a very small subset in C++
Anonymous
I'm quitting to this company now, I observe my obsolescence as a programmer.
Elnee
http://www.cplusplus.com Is also very cool
MᏫᎻᎯᎷᎷᎬᎠ
Yeah Focus on OOP as a good start
BinaryByter
if he is a GOOD C guy, he probably already knows OOP
Hayk
Hi guys. Can I send you a code of 181 lines in pastebin? There are no errors, but I would like to know if I did some errors in the optimization/readibility.
Hayk
https://pastebin.com/x21x7St1
Hayk
Ok
thanks
Elnee
Is OOP ever possible in C?
Dima
Is OOP ever possible in C?
The eternal void* polymorphism.
MᏫᎻᎯᎷᎷᎬᎠ
if he is a GOOD C guy, he probably already knows OOP
Like virtual functions, polymorphism, multiple-inheritance....etc
Anonymous
Is OOP ever possible in C?
I'd say a some sort of imitation
Mat
Is OOP ever possible in C?
Nope. You can emulate it till a certain point, but it's not the right language for oop
Mat
It doesn't have it
Elnee
Thanks for answers
BinaryByter
even the this-> is just an argument to the member funcitons
Mat
you know, that OOP is exactly that under the hood
Yeah. But it's not something C is designed for
Mat
You can have OOP in assembly, yeah. But i would never do it
BinaryByter
Mat
you cannot
You can emulate it :P
BinaryByter
No
BinaryByter
assembly doesnt have the notion of "datatype templates"
BinaryByter
it doesnt even have the notion of "datatypes"
Anonymous
We even made some functional like signal and slots.)
BinaryByter
xD
BinaryByter
yea, except C++ has a lot more
Mat
was C++ designed for webdev?
C++ is a high level language. High enough to let you write webcpp
BinaryByter
C++ has lamdbas
Mat
indeed 😏
That's a big difference from C and Assembly and other languages
BinaryByter
C++ has lamdbas
#include <iostream> #include <algorithm> #include <functional> int main() { [a = std::ref(std::cout « "hello")]() {a.get() « " world\n";}(); }
BinaryByter
i'm sorry 😉
Hayk
Where's the problem?
Mat
C++ have a lot of designs inside in fact
Mihail
Where's the problem?
Is "9w" a number? Because it'll return true on the first iteration of that for
Mihail
It should be checking if it is smaller than 0 or bigger than 9 and returning false
Mihail
And then return true and the for is over
Mat
/save awesomeness
😂😂😂
Hayk
Thanks. I hope there aren't any other stupid errors like this
BinaryByter
BinaryByter
class a { b -> d (c in); }
Anonymous
So, guys, considering all the huge difference of the languages, what the regarding way to jump in to C++xx?
BinaryByter
learn templates
BinaryByter
learn the standard library
BinaryByter
start with classes