Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Why are Linux programmers

Name: Anonymous 2018-06-26 6:32

raging arseholes who nitpick about every single irrelevant detail?

https://wozniak.ca/blog/2018/06/25/Massacring-C-Pointers/index.html

Name: Anonymous 2018-06-26 7:16

first of all, why do you think this guy is a Linux programmer? his's is blog has shit about BASIC, mainframes and Lithp but not much about Linux. is this you, Nikita? make your're are game

second thing, his's is a fucking leaf and SJW.

third, it's not irrelevant bullshit. take this code:
char *combine(s, t)
char *s, *t;
{

int x, y;
char r[100];

strcpy(r, s);
y = strlen(r);
for (x = y; *t != '\0'; ++x)
r[x] = *t++;

r[x] = '\0';

return(r);

}


his's is absolutely right, it's terrible! not only does it reinvent strcat inefficiently (and insecurely - but then again, it's not like strcat was secure in the first place), it also returns a stack-allocated local buffer, which I'm pretty sure is undefined behavior. and that's not academic irrelevant shit, this code will simply break on a modern OS. I think that the hypothesis that the author is an electronics guy with a knowledge of BASIC is right on point, and he repackages those very specific bits of knowledge into general advice without understanding that this won't work for most use cases.

basically, it's a dude writing a book on C without knowing much about C. it would maybe make sense as a 'programming AVR microcontrollers in C' (or whatever the hell that guys was using this code for), but preferably with caveats that it uses shortcuts and otpimizations which make it bad for portable code.

Name: Anonymous 2018-06-26 8:34

>>2
why do you think this guy is a Linux programmer
steve created apple os, which is linux

Name: Anonymous 2018-06-26 9:32

>>3
It's linux but with a proprietary shitty gnome.

Name: Anonymous 2018-06-26 9:39

>>3
steve created apple os, which is linux
this isn't Steve Wozniak but some rando named Geoff Wozniak, and apple shit is based on BSD, not Linux. I know, IHBT

Name: Anonymous 2018-06-26 15:48

>>1
Thanks OP. I read hacker news too.

Name: Anonymous 2018-06-26 16:24

char *combine(s, t)
char *s, *t;
Dude, are we at the 80's? LMAO

Name: Anonymous 2018-06-26 16:25

>>5
Apple shit is based on BSD + Mach.

Name: Anonymous 2018-06-26 16:38

>>1
It is like AVGN taking some Street Fighter 2010 and making fun of it. That is okay book for learning C, to make your first DOS program, especially if there are not many alternatives and C compilers are just beginning to appear, while people still write their software in assembly.

And the example is okay, it is shows that you shouldn't return pointers to stack. I hate when people nitpick irrelevant details, like the informal style of the book and attempt to make it accessible to wider auditory, not just computer scientists.

Name: Anonymous 2018-06-26 16:45

>>9
Also, note how this retard attacks the author for writing introductory level astronomy book. A kid just wants to see some start in telescope, he wont be able to understand your astrophysics journal article.

Name: Anonymous 2018-06-26 16:46

C ``programmers'' have shit for brains.

Name: Anonymous 2018-06-26 20:36

>>9
How is that an okay book? Most of those example programs don't work at all, let alone work with most compilers.

Don't change these.
Name: Email:
Entire Thread Thread List