Badugar
So ..
int[2][3][4] would be int(*+2)(*+3)(*+4) ?
BinaryByter
But memory-unpredictable
the problem with std::vector is that the compiler will generate a full set of functions for each template
Badugar
BinaryByter
+ classes are bloat
Pavel
Pavel
I mean these things are minor
BinaryByter
Mihail
BinaryByter
BinaryByter
either you do
int b[2][3][4] ;
or you do
int[] <=> int*
Mihail
BinaryByter
if you meant b[2][3][4], then it would be what mihail said
Mihail
He said
int[2][3][4]
not
int [2][3][4]
Mihail
Which shows that it is just an example name
BinaryByter
True
BinaryByter
was kinda ambiguous
BinaryByter
But ¯\_(ツ)_/¯
Pavel
THEY ARE NOT
Well, I would like to see the list of your priorities regarding software, if unused functions generated by templates are so important
BinaryByter
Pavel
No offence by the way, I really would like to
BinaryByter
something like that
Pavel
Well, in my case 2 and 3 would be swapped
Foxner
BinaryByter
klimi
BinaryByter
Most of the time, clean code is super slow to write
Mihail
klimi
Mihail
klimi
Some are
Ye but ....they are not teachers.... Because they can't teach anything
BinaryByter
https://github.com/Wittmaxi/JASM
Mihail
Just start off with 3 and do it cleanly the whole way
BinaryByter
this compiler I wrote in 2-3 is an example of how efficient code can be done cleanly while being functional
Dima
Dima
I like
Dima
BinaryByter
#noobdevs
Thats what I see when I look into the standard library of C++
BinaryByter
It litterally just fixes fuckups C devs commonly make 😂
Dima
previous std devs made*
Dima
don’t blame c/c devs
BinaryByter
lol the C community is full of dumbasses 😂
Dima
BinaryByter
BinaryByter
BinaryByter
Also, the entire "slack abuses ram" memes show that users DO care
Pavel
But they use it anyway, if they refuse and go to some lighter alternatives, it would change something
Mihail
Mihail
Sure
BinaryByter
Mihail
Pavel
I mean I can brag a lot about the smartphones getting worser, but if I buy the new ones, I actually do support them.
Well, not a good analogy.. but I think you get it
BinaryByter
BinaryByter
but the apps on them are bad
BinaryByter
so the smartphones are forced to upgrade their hardware
BinaryByter
May I remind you C++ guys that you block the CPU in order to copy memory from spot one to spot two, while another process could use the CPU in the meanwhile?
Mat
People however are not used t write it
Dima
Don’t talk to this guy, he doesn’t know what is a production stage 😂
BinaryByter
BinaryByter
I call modern clean code that fancy modern stuff with classes, and design patterns and templates etc
BinaryByter
Sure, having small functions with good names and good variables is INDEED very important
BinaryByter
no, a class is not bloat
Except for when the compiler fucks up at optimizing it or can't optimize it because you cannot just create half of the class
olli
BinaryByter
No
BinaryByter
believe what you want ¯\_(ツ)_/¯
olli
thought so... Torvalds strikes again "Talk is cheap. Show me the code."
BinaryByter
Though torvalds agrees with me that C++ is shit 😉
Mat
I call modern clean code that fancy modern stuff with classes, and design patterns and templates etc
That's not the definition of modern nor clean code imo. Modern and clean code is the one using the last technologies, it's only the needed code, and it's totally covered by useful and well written tests. The use of the right pattern in the right place and context is more useful than anything else in creating code easily readable, maintainable and sharable while contributing to improve a wide accepted way of doing stuff