Page 1 of 1

Linus rants about new programming interfaces

Posted: 11 Sep 2015, 23:59
by dedanna1029
His rants are great! It's just that this one is too tame. lol

Read here.
Linus Torvalds wrote:I really am very tired indeed of these "trivially obvious improvements" that are buggy and actually introduce whole new ways to write buggy code. Yes, the old code could miss an error. But the old code wouldn't then create invalid pointers like the new code does.

Linus Torvalds wrote:Let me show you:

if (isdigit(*str)) {
- io_tlb_nslabs = simple_strtoul(str, &str, 0);
+ str += parse_integer(str, 0, &io_tlb_nslabs);
and obviously nobody spent even a *second* asking themselves "what if
parse_integer returns an error".


However, this is what's really great...
BoomierBoom wrote:I wish the projects I test for had Linus as a project manager.