Francisco
That's why we comment our code.
Trust me, comments don't make template metaprogramming code that easier to read
Anonymous
That's why we comment our code.
What if code can speak itself?
Mihail
What if code can speak itself?
this imo. comments should describe why something is happening, not what is happening
Francisco
Francisco
Comments get outdated quickly. Code is what it is
Raul
I mean but if I can use 1 header file, 30 lines of templated code, to replace 5 files with thousands of lines of code, I am going to do that.
Raul
Comments get outdated sure, but so does code.
Raul
I mean I already did
Anonymous
Great
Raul
But it took weeks to do it. And whenever I asked the internet on how to accomplish what I wanted. They seem to know the answers. Hence why I asked that question, because I want to get on their level of knowledge on templates.
Raul
But I bought a really good book on them, so this conversation isn't necessary anymore.
Anonymous
okey
Anonymous
I love this way: https://suckless.org/philosophy/
Mat
#cppbook
Anonymous
ah :)
Mat
You can retrieve these notes by using /get notename, or #notename
Asad
/notename
Anonymous
/get cppbook
Anonymous
like this
Mat
/notename
🤦‍♂
Asad
/get gcc9
Asad
Asad
#cpp
Asad
#ide
Asad
#best-book
Ludovic 'Archivist'
You don't master templates, trust me, you'll be safer away from them
Wut? Templates ARE safety. It is a 100% compile time safe language, templates are the only part of C++ that you can always check at compile time
BinaryByter
templates add a lot of code bloat though
Anonymous
c++ adds a lot of code bloat though
BinaryByter
depending on how extensiely you use them
Anonymous
yep
Mihail
templates add a lot of code bloat though
doesn't make them less safe tho
Anonymous
wrong
BinaryByter
code bloat is a kind of unsafety
Anonymous
more bloat more options to have vulnerabilities in the bload
Anonymous
kind of a bloating bloatware failure
Mihail
more bloat more options to have vulnerabilities in the bload
> templates > vulnerabiliities uh wtf
Mihail
like that argument would apply if there was extra code involved, there isn't
Mihail
also they're too straightforward to mess them up (unless abusing them)
BinaryByter
right, so you just spit on the screen and the compielr remembers that you wanted a template at that position
Mihail
templates without extra code?
it's all templating of existing code
BinaryByter
?
Stupid idea, right? So why claim that there is no extra code involved in templates
Ибраги́м
templates add a lot of code bloat though
Lack of experience detected! Templates is a good way to reduce bloat, esp binary bloat. CC: @QNeko
Anonymous
Lack of brain detected!
BinaryByter
Mihail
^ I agree
you agree with and will "^" everything he and Wim say. we get it
Mihail
no need
Mihail
No
yes
BinaryByter
its just that I agree with him
BinaryByter
is agreeing with someone forbidden?
BinaryByter
well... its forbidden when i'M agreeing with you 😂
Mihail
its just that I agree with him
on 100% of occassions
Anonymous
he's just having a hard time finding anything anyone would agree on with you...
Ибраги́м
i said depending on how you use them
"depending on how you use them" is true for a lot features.
BinaryByter
"depending on how you use them" is true for a lot features.
this depending on how you use them makes templates potentially dangerous
BinaryByter
Sure they are nice
Mihail
i'm tryharding the searching 😂
easy. just build a time-machine and go back to before you met these two. then come back here without having met them
Ludovic 'Archivist'
templates add a lot of code bloat though
Sure, better have 122 different types of vectors for each type and allocators you use them with so that you have less code bloat
BinaryByter
easy. just build a time-machine and go back to before you met these two. then come back here without having met them
Lets recap who i'd be then: - unpopular in school - having no clue on how to write asm - believing that RSA is secure (lol) - believing in secure crypto - C++ fanboy lets not build that time machine 😂
Ludovic 'Archivist'
safer lmao
Definitely, you can read the definition faster, there are just lots of them
Dima
these two retards again.. come on
Dima
no wait, three.
Anonymous
why? because maxi is at least mentally capable of looking beyond his nose and gets c++ is not the ideal solution to everything? so you'd rather have him be stupid again?
Ludovic 'Archivist'
thats not what I said
Well you said it reduce code bloat to remove templates
Ludovic 'Archivist'
Well you said it reduce code bloat to remove templates
Well, you said the converse proposition
Mihail
not better
BinaryByter
Well you said it reduce code bloat to remove templates
why don't we have a look at libraries that use templates more than just vector?