BinaryByter
(two days)
Hayk
Tests
I'm a newbie, I don't think it's already the time of testing😅
BinaryByter
jump to the standard library
BinaryByter
(3 weeks)
klimi
We have pretty small library in village
BinaryByter
finish with templates (1 day)
Mihail
finish with templates (1 day)
you'd need more i think
BinaryByter
you'd need more i think
no, templates are pretty easy
Elnee
Just watch video "C++ in 4 hours"
BinaryByter
no don't
Elnee
😂
Elnee
I'm kidding
Mat
I'm a newbie, I don't think it's already the time of testing😅
It's always the time for testing. Follow BDD w/ catch2 library
Elnee
class a { b -> d (c in); }
0_0 blow my mind Have to try
Mat
PS I'm in love w/ BDD and catch2
Hayk
So.. as I understand.. the program compiles the functions and just then reads the macros?
BinaryByter
no
BinaryByter
the compiler first replaces and evaluates macros
BinaryByter
THEN it compiles
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
i'm talking about the compiler as a whole
BinaryByter
¯\_(ツ)_/¯
Hayk
Then why it doesn't give me an error, where I create a macro which uses a function created below it?
MᏫᎻᎯᎷᎷᎬᎠ
🚶‍♂
BinaryByter
it doesnt compile the macro
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
They are little bit confusing
MᏫᎻᎯᎷᎷᎬᎠ
?
¯\_(ツ)_/¯
BinaryByter
they just mean "everytime you see this, replace it with xyz plox"
Anonymous
Can you to sketch some serious resources, links? I know the ones, but I like to assemble a lot of distinct opinions)
MᏫᎻᎯᎷᎷᎬᎠ
Cuz it's literally placing anything
BinaryByter
Hayk
Based on your question I don't recommend you to focus on macros
I don't. But I use them at the place of global constant variables.(is it right to do so?)
BinaryByter
no
BinaryByter
you shouldn't do that
MᏫᎻᎯᎷᎷᎬᎠ
and/or powerful
Backward compatibility Used in some frameworks
MᏫᎻᎯᎷᎷᎬᎠ
Or ordinary const
BinaryByter
you shouldn't do that
you should make your consts constexpr const <datatype> <name> = <value>
Anonymous
cppreference.com
Its classic )
BinaryByter
constexpr const means that the compiler will optimize it out wherever it can
BinaryByter
Its classic )
and good 😉
Hayk
you should make your consts constexpr const <datatype> <name> = <value>
Ok. I've already heard about constexpr, but idk what it does. Anyway I will google about it tomorrow
MᏫᎻᎯᎷᎷᎬᎠ
Its classic )
Yet It's perfect
BinaryByter
Ok. I've already heard about constexpr, but idk what it does. Anyway I will google about it tomorrow
it doesnt do much but telling the compiler that it can optimize the variable out even more
MᏫᎻᎯᎷᎷᎬᎠ
Yet It's perfect
Not for everyday reading
BinaryByter
Not for everyday reading
yes for everyday reading ^^
Hayk
So is my code rly bad?
BinaryByter
So is my code rly bad?
idk, haven't seen it
BinaryByter
and no it is not
Anonymous
I don't know a reason, but like books a lot!
BinaryByter
it only is if it is possible to
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
After that
MᏫᎻᎯᎷᎷᎬᎠ
Effective C++ 3rd edition
MᏫᎻᎯᎷᎷᎬᎠ
After that Modern Effective C++
MᏫᎻᎯᎷᎷᎬᎠ
Effective STL
BinaryByter
you read all those books yourself?
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Maybe
BinaryByter
yea, dont recommend all of them at once
BinaryByter
its stupid, they just repeat themselves
Anonymous
Jumping into C++
Thanks again a lot
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
no, not even
Anonymous
Thank you)
Hayk
Where's the sense of reading a lot of books , before becoming a medium cpp programmer?