not_IO@lemmy.blahaj.zone to linuxmemes@lemmy.worldEnglish · 1 day agohow to create a folder, linux made easymedia.void.rehabvideomessage-square56fedilinkarrow-up1495file-text
arrow-up1495videohow to create a folder, linux made easymedia.void.rehabnot_IO@lemmy.blahaj.zone to linuxmemes@lemmy.worldEnglish · 1 day agomessage-square56fedilinkfile-text
minus-squarenot_IO@lemmy.blahaj.zoneOPlinkfedilinkEnglisharrow-up10·23 hours agohow is this 376 lines xD
minus-squarefnrir@lemmy.blahaj.zonelinkfedilinkarrow-up3·edit-211 hours agoThe GNU Coreutils version is 319 lines. https://github.com/coreutils/coreutils/blob/master/src%2Fmkdir.c 376/319 is an around 18% difference (ignoring that these are different languages) EDIT: i misread the result XD
minus-squareprettybunnys@piefed.sociallinkfedilinkEnglisharrow-up14·18 hours agoLots of comments, lots of edge cases to match gnu behavior and explanations of it. “Long” code isn’t bad
minus-squareFushuan [he/him]@lemmy.blahaj.zonelinkfedilinkarrow-up5·edit-222 hours agoI lines per Arg specific code for windows or not windows, plenty comments in different style through the code (ew, pick one)… It seems to do a bunch of checks for AppArmor or SELinux and so… Yah idk, some questionable formatting of code.
how is this 376 lines xD
The GNU Coreutils version is 319 lines.
https://github.com/coreutils/coreutils/blob/master/src%2Fmkdir.c
376/319 is an around 18% difference (ignoring that these are different languages)
EDIT: i misread the result XD
Lots of comments, lots of edge cases to match gnu behavior and explanations of it.
“Long” code isn’t bad
I lines per Arg specific code for windows or not windows, plenty comments in different style through the code (ew, pick one)…
It seems to do a bunch of checks for AppArmor or SELinux and so…
Yah idk, some questionable formatting of code.