BinaryByter
okay other examle
std::string vs char* size() vs either having a separate variable with the size of a loop easy concatenation vs... how do you concatenate char* easily? 🤔 easy conversion from int vs.. weird helper functions that were used in 1980? easy support by most std:: functions vs... well it can be used as an iterator
MᏫᎻᎯᎷᎷᎬᎠ
Currently Goku and Vegeta are fighting @linuxer4fun vs @fr0xk
BinaryByter
every code has bugs
BinaryByter
EVERY code
Anonymous
every code has bugs
Sure, but mitigations matter.. Note that.. 4 bugs in last 20 years xD You are going hard time with it... Besides all in C.. show your C flows with their code xD
Anonymous
Dare to face raadt? xD
BinaryByter
bsd has only had 4 bugs in the last 20 years?
Anonymous
I don't
BinaryByter
that means that nobody uses it and nobody cares about searching bugs
BinaryByter
defending C is stupid
BinaryByter
in C you can't create abstractions
Anonymous
that means that nobody uses it and nobody cares about searching bugs
Everyone uses OpenSSH... And OpenBSD openssh is the first where every flow gets patched...
Anonymous
in C you can't create abstractions
That's what I care for.. these shouldn't be...
BinaryByter
consider this:
Anonymous
consider this:
Find real written cde
BinaryByter
programming is not about writing code
Anonymous
C code.. pure C
BinaryByter
programming is not about writing code
programming is about solving problems
BinaryByter
you want to express ideas
BinaryByter
instead of exposing implementation ideas
BinaryByter
which one is less error prone?
BinaryByter
for (auto i : myArray) or for (int i = 0; i < myArraySizeThatHopefullyIsCorrect; i++)
Anonymous
programming is about solving problems
Solving problems without proper mitigations? Well, C++ there you got it
Anonymous
hard way
Anonymous
very hard way
BinaryByter
very hard way
how is C++ hard?
BinaryByter
in C++ you express ideas
Anonymous
how is C++ hard?
C++ is not hard, the way it abstracts adds complexity.. It is too high level
BinaryByter
again: abstraction does not add complexity
BinaryByter
but if we can'T agree on that, lets stop debating
BinaryByter
we are wasting our time
Shivam
Everyone is
Anonymous
You clearly don't write C code
BinaryByter
Ever heard strlcpy ?
how does strlcpy work?
Anonymous
Right?
BinaryByter
BinaryByter
Yes I do
(atleast the first example)
Anonymous
Yes I do
It is size-bounded string copying and concatenation
BinaryByter
okay
Anonymous
You clearly don't write C code
I write mostly C, and if I write C++, I also code like that.
BinaryByter
well you see
BinaryByter
in C++ we use opeartor+ on std::strings
BinaryByter
for (auto i : array) is just the cleanest
BinaryByter
and safest
Anonymous
Nothing wrong with that, except you take the reference, not a copy
BinaryByter
sorry
MᏫᎻᎯᎷᎷᎬᎠ
Go go go Maxi (Me clapping)
BinaryByter
yea
BinaryByter
const reference, btw ;)
BinaryByter
but this is just an example
Anonymous
Yeah^^
BinaryByter
no need to be fully correct lol
MᏫᎻᎯᎷᎷᎬᎠ
Instead of typing useful things XD
Anonymous
And by the way, strlcpy is nice, but not C standard. BSD and Solaris support it, but shitty glibc doesn't support it (as far I know). strncpy is a shitty alternative
BinaryByter
i mean
BinaryByter
both are kinda bad
BinaryByter
both are just too nitty-gritty
Anonymous
Glibc is the reason I can't stand by Linux distros.. except void linux and alpine
Anonymous
glibc needs to die anywahy.. xD musl supports it
Yep, thats true^^ I mostly use musl, but I still have systems where glibc is used, so I can't use it >_>
BinaryByter
Well you see
BinaryByter
it doesnt matter
BinaryByter
as long as something isn't in the C11 standard
BinaryByter
you can't use it
BinaryByter
¯\_(ツ)_/¯
BinaryByter
btw: again