MᏫᎻᎯᎷᎷᎬᎠ
And it's good for editors
BinaryByter
and my entire file is 130 lines
BinaryByter
though it implements 4 full classes
MᏫᎻᎯᎷᎷᎬᎠ
?
Like if u r using an API And wanna know wht specified method do and wht param it has
MᏫᎻᎯᎷᎷᎬᎠ
S
BinaryByter
Like if u r using an API And wanna know wht specified method do and wht param it has
rules 1) avoid using more than one parameter 2) give your stuff good names 3) write good docs
Kelvin
Rule 4: go mad
BinaryByter
And the overloaded ones?
only overload where it makes sense
MᏫᎻᎯᎷᎷᎬᎠ
Overrided?
BinaryByter
if your API cannot be saved by docs, good names and avoidance of overloading of function params, your api cannot be saved by comments either
BinaryByter
Overrided?
no you just create a new function
BinaryByter
since it won't do the same
MᏫᎻᎯᎷᎷᎬᎠ
Sometimes the implementer of a specified method can tell u what's wrong with and the args to avoid from passing to it
Kelvin
Where art thou @KlimiCZ ?
MᏫᎻᎯᎷᎷᎬᎠ
Without the needa of debugging
MᏫᎻᎯᎷᎷᎬᎠ
And a whole of shits
MᏫᎻᎯᎷᎷᎬᎠ
ooor.. you just look into the docs?
Which is the above the method usually!!!
Kelvin
Life is too short to read docs.
MᏫᎻᎯᎷᎷᎬᎠ
Life is too short to read docs.
Life is too short to debug a method
BinaryByter
I don't follow you but I knwo that you just told me that my code is bad because I don't follow a bad practice lol
BinaryByter
xDD
BinaryByter
#notsaltyatall
MᏫᎻᎯᎷᎷᎬᎠ
wat?
/****/ int shit(){}
BinaryByter
/****/ int shit(){}
you don't need the comment
BinaryByter
the comment won't give you ANY extra information
BinaryByter
unless your code is fundamentally flawed
Kelvin
Debugging in live system is real debugging.
MᏫᎻᎯᎷᎷᎬᎠ
K
MᏫᎻᎯᎷᎷᎬᎠ
Wherever u want :)
MᏫᎻᎯᎷᎷᎬᎠ
Shit
MᏫᎻᎯᎷᎷᎬᎠ
Whatever*🤦‍♂
olli
comments are bad
Wrong, at my current work the CI refuse to even compile the code if the lack of comments is detected
klimi
i was practicing art of eating
MᏫᎻᎯᎷᎷᎬᎠ
Bader
so std::array.data() just returns a const char?
Kelvin
what art?
Old English language. Where art thou = where are you. 😂
klimi
uh
klimi
im here
Kelvin
im here
Don't even try to try.
klimi
uh
Kelvin
klimi
my friend told me that
klimi
like
klimi
half an hour
Kelvin
lol
klimi
xD
klimi
before i went to eat
Kelvin
Do or do not. There is no try. -Yoda
klimi
oh ok
Kelvin
You should watch old star wars.
klimi
ok
Alignant
You should watch old star wars.
What about prick wales?
Luis Fdo
Hi
Alignant
std::cout « "line that ends with std::endl" « std::endl;
Anonymous
#define endl "\n"
Dima
printf
Alignant
Actually there's nothing wrong with endl, it's just people who use it every time they need "
Alignant
a new line
Anonymous
On the keyboard "\n" is too far away from your hand
Anonymous
const string nl ="\n" would also help
Alignant
Let's just agree that C++ basic console io tools suck
Alignant
Printf does suck too, it's better to use boost::format
Dima
Boost lol hell no
Anonymous
C#'s IO is good
klimi
It's just one char
Anonymous
Why string?
Oh I see
Anonymous
So const char makes sense
Dima
Guys how would you call the behavior when you create 74737329 threads on 2-4 core based cpu? I forgot that one lol
Mat
What?