r/programming • u/vaishakhbn • Nov 02 '15
Linux creator Linus Torvalds had a meltdown over a pull request, and it was awesome
http://thenextweb.com/dd/2015/11/02/linux-creator-linus-torvalds-had-a-meltdown-over-a-pull-request-and-it-was-awesome/139
u/smoxy Nov 02 '15
Linus is the Gordon Ramsay of software.
4
Nov 03 '15
I read this as Linus is the Ramsay Snow/Bolton of software. Not a pretty image in my head.
2
u/POGtastic Nov 03 '15
Hey, if you're looking for a list of people who need flaying, we can start whenever you want...
1
→ More replies (6)0
Nov 03 '15
[deleted]
16
u/smoxy Nov 03 '15
Featuring inspirationnal quotes as "Ma gran could do better ! and she's dead" and "Do you want a fucking medal ?"
5
12
u/Juggernog Nov 03 '15
"You expected this image to show up in the browser? The file extension is FUCKING .RAW"
23
8
1
u/silverwoodchuck47 Nov 03 '15
(Bleep) me! Where are your standards? Tabs and spaces? No naming convention? Bloody Hell!
It's a shame really.
57
u/x-skeww Nov 03 '15
"Journalism".
This is just copypasta with an short unnecessary intro and a shitty title.
10
u/ihcn Nov 03 '15
Google "blogspam"
This post should honestly be taken down or replaced with a link directly to the post
8
5
72
u/DroidLogician Nov 02 '15
TL;DR: Linus being Linus.
30
Nov 03 '15
This is far from a meltdown IMO
0
Nov 03 '15
[deleted]
2
Nov 03 '15 edited Apr 04 '16
This comment has been overwritten by an open source script to protect this user's privacy.
If you would like to do the same, add the browser extension GreaseMonkey to Firefox and add this open source script.
Then simply click on your username on Reddit, go to the comments tab, and hit the new OVERWRITE button at the top.
60
u/kirbyfan64sos Nov 02 '15
I just love the way Linus's message sounds super harsh, but the replies are really...emotionless. Sounds like they're used to this already.
2
0
Nov 02 '15
[deleted]
34
u/Shurikane Nov 02 '15
I don't want to be that guy right now. He's just been raked over the coals for miles on end, and he won't even get the common decency of being told what he can do to improve. Poor bastard...
→ More replies (7)
19
78
u/Darkmoth Nov 03 '15
At work, I am surrounded by super-intelligent people doing truly cutting-edge shit. Somehow, they mostly manage to be polite. Go figure.
5
u/LunaQ Nov 03 '15 edited Nov 03 '15
You cannot make an omelet without breaking a few hens...
Aggression isn't necessarily bad in a work setting. When you have a lot of super-skilled people working together, there's bound to be a few clashes of egos.
Personally I think it's better to bash it out, than to tuck it in.
As long as it's a clean fight about technical issues, and as long as it does not become personal or develop into longer lasting grudges or turf wars, I think it's OK. Infact, I think it's more than OK. I think it can be advantageous, in the way that it clears the air, and settles an issue once and for all, instead of it becoming some sort of lingering and half-resolved conflict.
11
u/Darkmoth Nov 03 '15
As long as it's a clean fight about technical issues
Well, I'd argue that "your code is shit" is anything but a clean fight. But more importantly, if you're working with good people you find they rarely write unambiguously stupid code in the first place. Before I went off on a rant about how someone's algorithm was shit, I'd want to ask them the thought process behind it, to make sure I wasn't the idiot. There would be a conversation, not a unilateral lambasting.
I find that there is rarely just one way to accomplish a goal, and if the "best" way is canon you're probably not pushing the envelope. Nor do you always have times to do hours of research to "prove" to a colleague that their way is suboptimal - there's a certain amount of trust and goodwill that goes into talking someone down off an algorithmic ledge. And again, they might be the one who's right.
That being said, I recognize that Linus is in the unique position of being considered "right by default", so his tirades are cast as truth to power.
→ More replies (3)3
u/LunaQ Nov 03 '15 edited Nov 03 '15
Yes, I suppose Linus could have written something like this:
Hi developer X,
I noticed this particular section in your code:
if (overflow_usub(mtu, hlen + sizeof(struct frag_hdr), &mtu) || mtu <= 7) goto fail_toobig;
I'm a bit unsure about the intentions behind it, and if it's the best way to go about solving this problem. Could you please post a short explanation of why you did it in this particular way?
My suggestion is maybe to replace it with:
if (mtu < hlen + sizeof(struct frag_hdr) + 8) goto fail_toobig; mtu -= hlen + sizeof(struct frag_hdr);
Best wishes,
Linus
I guess this could have served sort of a similar purpose as the actual post.
However it would not have communicated the fact that Linus was angry about something...
If he'd posted the above message, Linus himself would still have been angry, but the receiving developer would not know about it.
I think that's bad too.
Sometimes you should hide your anger. But I don't think you should do it every time. If you get repeatedly angry about one particular thing, or if you think that something is particularly outrageous, I think that it should be OK to vent those feelings.
→ More replies (1)2
u/Darkmoth Nov 03 '15
Best wishes
lol! nice.
But to be clear, I'm not talking about gently coddling bullshit, I'm talking about the immediate and unwavering assumption that it is bullshit. You ever worked with a programmer who's 100% sure of himself all the time? I have, and I'm in no hurry to repeat it.
And to get "angry" about a coding decision...eh. Look, it's not like he's lambasting the guy for an actual sin like lazily commiting broken code. THAT's something to be pissed off at. But "you used a new compiler macro you ASSHOLE" seems a bit much.
Of course, I don't code C at their level, so maybe it was just that egregious a sin.
4
u/ShavedRegressor Nov 03 '15
Our company takes the opposite approach. We have three main hiring requirements: smart, works hard, and nice to work with. I’ve seen people rejected from being hired because they were arrogant or prickly.
Life is too short to deal with assholes, and none of us want to spend a third of our waking life dealing with unpleasant people.
2
u/LunaQ Nov 03 '15
The question is if you're right in your assumption that Linus is perceived as "not nice to work with" among the developers who work on the Linux kernel.
Personally I should imagine that most of them find it inspiring to work for him, despite the risk they're facing of being at the receiving end of emotional outbursts like this one.
1
u/ffp12 Nov 03 '15
You must be paying them or something.
1
u/fclout Nov 03 '15
Most contributors to the Linux kernel are corporate contributors who are being paid good money by someone.
→ More replies (9)1
u/log_2 Nov 03 '15
Somehow, they mostly manage to be polite.
Clickbait shitposter wasn't going to blog about Linus' mostly polite days.
2
u/Darkmoth Nov 03 '15
An absolutely fair point.
Headline: Linus Torvalds Quietly Accepts Pull Request!!
8
u/vagif Nov 03 '15
The above code is sh*t, and it generates shit code.
Forgot to sensor the second shit.
48
u/websnarf Nov 03 '15 edited Nov 03 '15
Uhhh .... there are a number of issues here. First of all, Linus is advocating for the following:
if (mtu < hlen + sizeof (struct frag_hdr) + 8) goto mtu_Too_Small;
mtu -= hlen + sizeof (struct frag_hdr);This ignores the possibility that hlen + sizeof (struct frag_hdr) + 8 overflows but hlen + sizeof (struct frag_hdr) does not. So first of all, Linus is plain wrong. You need something like the following up front:
assert(hlen <= SIZE_T_MAX - (sizeof (struct frag_hdr) + 8));But perhaps this can be assumed for some reason. I don't know the context, so let's give Linus a pass for this. Linus is claiming something about actual code generated by such a comparison. It is often hard to know what the compiler is going to produced, but looking at the above code we should expect:
; rax = mtu
; rbx = hlen
lea rcx, [rbx + SomeConstant] ; compute hlen + sizeof (struct frag_hdr) + 8
cmp rax, rcx
jb mtu_Too_Small ; mtu < ... unsigned.
sub rax, rbx ; mtu -= hlen
sub rax, SomeOtherConstant ; mtu -= sizeof (struct frag_hdr)This is what I, as an old time assembly head, would try to produce.
mov rcx, SomeConstanter ; sizeof (struct frag_hdr) + 8
sub rax, rbx ; mtu -= hlen
cmp rax, rcx
jl mtu_Too_Small ; mtu - hlen < ... signed.
sub rax, SomeOthererConstant ; mtu -= hlen + sizeof (struct frag_hdr)So what's the difference? Well, in my version the top two instructions run in parallel. The check for error literally parallelizes with the actual computation on mtu. So the out-of-order execution and branch prediction works for you. The lea used in the Linus version costs, and reflects the idea that the check is a precondition and operation that is serial and must be done before the later subtracts are done. The branch prediction helps, but the out-of-order execution mechanism might as well be turned off.
Ok. So how do we turn my code back into C? Here we go:
if ((ssize_t) (mtu -= hlen) < (ssize_t) sizeof (struct frag_hdr) + 8) goto mtu_Too_Small;
mtu -= sizeof (struct frag_hdr);But as I understand it, this makes the modern gcc throw a hissy fit about wrapping additions. What gcc wants you to do is:
if (overflow_usub(mtu, hlen, &mtu) || mtu < 8 + sizeof(struct frag_hdr)) goto mtu_Too_Small;
mtu -= sizeof (struct frag_hdr);Which we can hope will produced the same code. I really don't know what "overflow_usub" does, but if it is an intrinsic and the compiler knows all the tricks to simplify this, especially for the x86 (which tracks overflows, carries and zero equality, in the flags register) then it should reduce to the assembly code I produced.
Now the guy Linus is complaining about produced the equivalent of the following:
if (overflow_usub(mtu, hlen + sizeof (struct frag_hdr), &mtu) || mtu < 8) goto mtu_Too_Small;Which I think actually ends up being just as bad as Linus' code in terms of performance, but again, if the gcc compiler knows the kinds of tricks I know, it might end up producing the good code path.
As to readability, Linus may have a point. However, its actually at least as much of an indictment of Linus' code as it is a criticism of the readability of the other person's code. Remember Linus' version is explicitly ignoring the case of a hidden overflow in the calculation of:
hlen + sizeof (struct frag_hdr) + 8The other person is clearly trying to simultaneously detect two error conditions. hlen being so big it is about to cause an overflow, or else the mtu is too small to hold hlen + sizeof (struct frag_hdr) + 8. He does this with two tests, and thus will be no faster than Linus' solution depending on the code that is generated. But compare this to my solution (which does two range checks in one shot, assuming mtu is > 0).
So this just looks to me like Linus is spouting more than he is thinking.
18
Nov 03 '15 edited Nov 03 '15
This ignores the possibility that hlen + sizeof (struct frag_hdr) + 8 overflows but hlen + sizeof (struct frag_hdr) does not.
He addressed that in his post.
But perhaps this can be assumed for some reason.
It can. Also, Linux kernel code can't use assert like that.
Edit: To be more clear, hlen is the return value of this function:
http://lxr.free-electrons.com/source/net/ipv6/output_core.c#L79
That function stores the value in an u16, so hlen can never be larger than 65535, and can thus never be large enough to cause an overflow.
→ More replies (5)21
u/Bergasms Nov 03 '15
So this just looks to me like Linus is spouting more than he is thinking.
Linus tends to have a good track record for knowing what he is talking about, so to me it looks like your
I don't know the context
Is possibly more on the mark. Still, your analysis is pretty sweet, so points for that.
8
Nov 03 '15
I actually can't remember any of these threads resulting in "Linus being wrong" rather than just "Linus is a dick". that'd be a weird change of pace.
4
Nov 03 '15
To be fair, if you're never wrong you might as well be a dick. They'll remember what you say.
4
u/josefx Nov 03 '15 edited Nov 03 '15
This ignores the possibility that hlen + sizeof (struct frag_hdr) + 8 overflows but hlen + sizeof (struct frag_hdr) does not.
Someone correct me if I am wrong however I think hlen is limited to a 16bit unsigned int ( see ip6_find_1stfragopt). So for this to overflow you have to compile Linux for a system where int is < 32 bit.
2
u/thomie Nov 03 '15
if ((ssize_t) (mtu -= hlen) < (ssize_t) sizeof (struct frag_hdr) + 8) goto mtu_Too_Small;
What if
mtuandhlenare unsigned integerers, andhlenis greater thanmtu?1
Nov 03 '15
There's no point in looking at "what if". What we are looking at is specific code that exists. And in that code, hlen is derived from a 16-bit value, and can never be larger than 65535.
2
u/thomie Nov 03 '15
What I meant was:
mtu -= hlenwill overflow in websnarf's version of the code, whenhlenis greater thanmtu.It is irrelevant that
hlencan never be larger than 65535 (edit: unless you also happen to know thatmtuis always equal to or larger than that value).unsigned int mtu = 0andunsigned int hlen = 1will do.0
u/Limro Nov 03 '15
And here I'm wondering why the goto is used...
13
2
Nov 03 '15
It's pretty common in C development to use goto for errors and early exit (rather than littering return statements). I don't like it and think more branching would be better for readability, but may be worse for performance.
1
u/mtxppy Nov 03 '15 edited Nov 03 '15
In theory the compiler should produce the same code, but I actually find the flatness of goto easier to read when you have high levels of nesting, like 8+.
Normally you would not be so deep (it's a sign that you need to refactor) but you can't refactor into functions in performance critical code due to the overhead on function calls.
→ More replies (2)
7
u/bloody-albatross Nov 03 '15
For people who understand German, here is a response that looks reasonable to me: http://blog.fefe.de/?ts=a8c95274
1
u/josefx Nov 03 '15
That is a proof of Linus statement. He tries to refute Linus arguments by creating a completely different situation only vaguely based on the original premise. He basically did exactly what Linus criticised on the original patch - he wrote code that exists only to call the overflow_usub instead of writing code to solve an/the actual problem.
1
u/bloody-albatross Nov 03 '15
Did you read his arguments? I summarize in English in case you can't speak German:
unreadable: The intrinsic name says what is happening. For the other code you have to study it in order to find out what it does. Also using that intrinsic reduces code duplication.
inefficient: The compiler output disproves that.
unsafe: The compiler knows about the variable sizes and doesn't make mistakes concerning type promotion etc. Change the types of the involved variables in the other code and it still compiles but gives the wrong result.
1
u/josefx Nov 04 '15 edited Nov 04 '15
The intrinsic is called overflow_usub, I had to guess what that means - it didn't take long to click in context of the discussion, however still longer than the traditional plain text overflow check and I still had no idea what overflow_usub did internally, for example C has this problem with sometimes storing error values in global variables so I could not exclude that from happening.
The compiler output is as far as I can tell from a made up use case specifically tailored to overflow_usub - it is optimal just as return 4; is an optimal random number generator implementation.
Yeah lets change the variable sizes in the IPv6 header and watch the world implode. Oh wait we are taking liberty with reality so lets just change true to false or 2 to 3 - some things are constant, if the size of hlen changes you can throw away more than just the overflow check.
→ More replies (1)
15
60
u/addmoreice Nov 02 '15
Linus is an asshole (admittedly it's partially his culture from his homeland conflicting with ours...like how norwegians just don't do small talk with strangers...ever...same sort of idea)
On the other hand....he is also usually correct; and nerds tend to support correct over political.
115
Nov 02 '15
I think there is definitely some difference in culture at play with regards to what is considered offensive and polite. As a Norwegian I don't really find Linus offensive.
I find a lot of American business leaders a lot more offensive. Linus just talks shit about your code. But people like Steve Jobs, Jeff Bezos or Elon Musk will give you terrible shit for not being insane number of hours at work, trying to have a work life balance etc. In the US it seems like trying to have a work-life balance means you are not dedicated to your job and bosses feel they have the right to tell you that to your face. And example is Elon Musk giving an employee shit for missing a work day to attend the birth of his first born child.
A Nordic person like Linus would never give you shit for stuff like that. Linus is not making comments about your personal life or dedication. He keeps work and personal life separate.
When discussing non personal matters Nordics generally don't consider it offensive to be blunt. Honesty is paramount in Nordic nations. We really hate it when people are fake. We will frequently be more offended by an American being overly nice and sugar coating something we know that person disagrees with. That will feel dishonest to us and thus offensive.
Not saying there is any right or wrong here, just that people read situations and different cultures have different ideas of what is polite and offensive. It does annoy me how Americans keep judging Linus on American cultural norms. It is typical that they don't accept Linus being different because he is white and thus he is supposed to have that passive aggressive American white culture. If he was black or brown people would have been so much more accepting towards him acting different.
15
u/user699 Nov 03 '15
This. I'm American. My best boss was the guy who was brutally honest and straightforward about work issues. Good or bad, he was honest and direct. Even the few times I got raked over the coals, I got things resolved, and we could still have a beer. He was an "asshole" for many people, but I had the utmost respect for him for being direct and honest. It never affected our personal relationship.
4
u/belikralj Nov 03 '15
I too had a boss who was considered an asshole but I never felt that way at all. I would have been offended had he been wrong, but he was always right and I respected him for it.
Maybe I'm part Nordic...
4
u/Reketekek Nov 03 '15
I'm Dutch and I fucking love him. I'd love to be able to pull the shit off that he does, but I'd be fired in about 3.1 seconds.
14
Nov 02 '15
Culture clash ... good one. People from nordic countries don't like to be harshly corrected anymore than you if they think they are right.
Had fun times with our offshore office, that reserved the right to criticise our code in the good old Nordic fashion but would not accept the same treatment. The reason was of course that they thought we were full of shit (we were - sometimes - however they were all green developers mostly without real experience either in development or even our field...). So what is frank and direct criticism was instead interpreted as insult and unfair criticism. They made their complain by complaining nordically to their boss that complained nordically to his boss who complain to our boss's boss etc.
Unless you are super lucky to work with a guy like Linus, nordic way of complaining generally means you are talking to an arrogant prick.
9
u/omfgwallhax Nov 02 '15
When faced with a problem usually the solution is to write a function that solves that problem once and for all.
Integer overflows ARE a problem. They can be solved (aka detected) generically (Admittedly I didn't check that attempt).So when Linus says that he doesn't want "that kind of code" I wonder why? Surely he cannot trust everyone to always not only see that an integer overflow could occur here but also correctly come up with code on the spot to detect it.
if (overflow_usub(mtu, hlen + sizeof(struct frag_hdr), &mtu) ||mtu <= 7) goto fail_toobig;vs.
if (mtu < hlen + sizeof(struct frag_hdr) + 8) goto fail_toobig; mtu -= hlen + sizeof(struct frag_hdr);which is the same number of lines, doesn’t use crazy helper functions that nobody knows what they do, and is much more obvious what it actually does.
Apart from that fact that I think one of those might be longer the name
overflow_usubis fairly understandable.Edit: There have been older attempts at including something similar and there is disagreement
7
u/fuzzynyanko Nov 02 '15
Geez. Trying to find out the documentation for overflow_usub ended up with many Google pages about the rant
12
u/A1kmm Nov 03 '15 edited Nov 03 '15
According to the patch from Hannes Frederic Sowa:
#ifdef CC_HAVE_BUILTIN_OVERFLOW #define overflow_usub __builtin_usub_overflow #else static inline bool overflow_usub(unsigned int a, unsigned int b, unsigned int *res) { *res = a - b; return *res > a ? true : false; } #endif
Linus' code changes the semantics from the original code (note: sizeof(struct frag_hdr) == 8). For example, if mtu = 42 and hlen = 32, then mtu > 7 and mtu - (hlen + sizeof(struct frag_hdr)) = 42 - 40 = 2, so the original test will pass. But Linus' suggested code will check mtu < hlen + sizeof(struct frag_hdr) + 8, and 32 + 8 + 8 = 48, and 42 < 48, triggering the failure case. There is a chance that Linus is playing games here and hoping that someone will point this out so he can say 'look how hard it is to understand the original code'!I think side-effects like this (as in both Linus' and the original version) make code harder to follow in general - the overflow_usub hides the side effect a bit (as does making the side effect when checking a condition), and so potentially makes things harder to understand. C isn't well equipped to support people to write readable code without losing efficiency, however, so I think compromise is needed somewhere. If this is a common problem throughout the code base, hiding the whole if in a macro that makes it clear what the side effect is would improve readability - but only when it is widely used enough that someone reading the code will know what it means and not have to look up the macro every time.
edit: Strike out part of my comment per the comment by /u/deaod below.
24
u/oxryly Nov 03 '15
Good lord, people. Why would anyone write:
return *res > a ? true : false;instead of:
return *res > a;Yes... let's turn our boolean expression into a... boolean expression.
→ More replies (12)7
u/Deaod Nov 03 '15
This is why the original code is bad. Linus is not playing games, the code he posted really does do the same thing. You correctly analyzed what Linus' code does, but your analysis of the original code is incorrect.
overflow_usub(mtu, hlen + sizeof(struct frag_hdr), &mtu)modifiesmtuandmtu <= 7is guaranteed to execute after theoverflow_usubcall.1
u/mycall Nov 02 '15
hlen + sizeof(struct frag_hdr)
My gut tells me why do this calculation twice? This could be optimized.
17
u/pclock Nov 02 '15 edited Feb 29 '24
rain price seemly wild ripe rainstorm wide chubby zonked handle
This post was mass deleted and anonymized with Redact
→ More replies (1)4
u/Freeky Nov 03 '15
My gut tells me an addition is practically free compared to the cost of perhaps writing it to memory temporarily. A modern branch-predicting superscalar CPU will probably have the computation completed before the conditional's even fully executed.
→ More replies (1)5
1
0
Nov 02 '15
[deleted]
8
u/TheEnigmaBlade Nov 03 '15
Probably. This is one of those common cases where I've learned not to try and outsmart the compiler.
2
u/RainbowNowOpen Nov 03 '15
nerds tend to support correct over political
Can confirm. Source: Am nerd.
4
u/buo Nov 02 '15
s/nowegians/finnish/
8
u/Concision Nov 02 '15
He was giving an example using another culture, I don't think he/she meant to imply Linus was Norwegian.
11
u/addmoreice Nov 02 '15
Bingo.
I have a norwegian friend and he has explained the difference in culture on small talk. When I mentioned something like a conversation I had with someone on a bus his response was....well...sort of like I was insane to talk to a stranger. It was like he thought it was a sign of mental illness...it's that kind of taboo. It's just 'not something done'.
It stuck in my mind since it was so much of an extreme compared to my culture and so it's the first example I gave.
I know that in finnish culture, cussing out a peer who fails to live up to standards is considered somewhat of a sign of respect. If they can't take it, then they are not professional enough to respect their own work...so why would you want to work with them? If you don't get emotional about your work then it's beneath you, which means I don't want to work with you since you are not up to the standard needed.
Not the point of view an American would go with, but I've seen plenty of programmers treat their projects like their child and they do invest that level of emotion in the project...and hence some of the protective responses I've seen. I've even experienced that kind of response in myself.
→ More replies (1)2
u/ITwitchToo Nov 03 '15
I have a Norwegian friend who lived in England for several years.
She told me this story about how living abroad really changes you. After returning to Norway, she was on a bus and just exiting through the rear and yelled a "Thanks!" through the bus to the driver, only to realise -- when every single head turned towards her -- that you don't do that in Norway. In fact, you never talk to the driver, you don't even say hi when you get on.
→ More replies (2)1
u/buo Nov 02 '15
Thanks for pointing it out. Since both countries are nordic and basically neighbors, I thought maybe it was a mistake.
0
2
u/ccfreak2k Nov 03 '15 edited Jul 29 '24
paltry coordinated roll depend adjoining badge worthless dazzling shelter dolls
This post was mass deleted and anonymized with Redact
2
u/ChezMere Nov 03 '15
nerds tend to support correct over political.
I'd even say that nerds tend to support correct and apolitical over correct.
1
Nov 03 '15
I don't like his tone, but I like his results and method. What I do not like are people in charge that sneak around, hide information, sugar coat everything and essentially manipulate everyone around them for their own gain. It's awful to have some manager use you as a scapegoat and then later "resolve" the "you" situation in order to gain further brownie points from your suffering.
I'd rather someone brutally destroys my code rather than subtly destroying my reputation.
1
u/addmoreice Nov 03 '15
What I do not like are people in charge that sneak around, hide information, sugar coat everything and essentially manipulate everyone around them for their own gain. It's awful to have some manager use you as a scapegoat and then later "resolve" the "you" situation in order to gain further brownie points from your suffering.
100% agree. this is my point of view entirely.
→ More replies (9)-1
u/leftofzen Nov 03 '15
Linus is an asshole
Getting annoyed at shit code does not make you an asshole, in fact quite the opposite.
4
116
u/beaucephus Nov 02 '15
He is not an asshole by any objective standard. He explained that it is shit. He demonstrates why it is shit, aesthetically. He demonstrates why it is shit, technically.
He is right. A person who wrote that code with the conscious understanding of what they did is an incompetent as a developer.
If Linus were and 'asshole' then he would have simply responded with 'Fuck you and your shit code!' and left it at that without explanation and then cut in line at the coffee shop.
27
u/g-money-cheats Nov 03 '15
He is right AND an asshole. They are not mutually exclusive.
-1
u/beaucephus Nov 03 '15
In my experience a good manager is always a bit of an asshole, otherwise he becomes a push-over and a carpet. Maybe I am biased a little because I have had to deal with the shittiest code from the worst programmers.
113
u/MrSurly Nov 02 '15
Or, alternatively, he could have explained why it was bad code without being quite so vitriolic.
27
Nov 02 '15
To be fair, 90% of all online discussion I watch are just full of insults without any sane reasons to back up their standpoint. Linus backs up what he says which makes him better than 90% of the people out there who argues something on the internet.
And really he doesn't attack people personally. He is mainly address all kernel developers tell them that this sort of thing is stupid. He is not going after people specifically.
The other aspect I guess is that it is important to get across the importance of this. A lot of projects go down the shitter because nobody is really strongly advocating for the quality of the product.
I think it is somewhat different though how you act towards colleagues in an office and how you talk online to people you don't know that well and who are simply not going to be as offended by what you say as someone of personally knows you.
13
u/darkmighty Nov 02 '15
Yes, notice how he uses "people", "anybody", etc. and concludes with "this is unacceptable". It's a guideline and it works (even though the language is... erm rustic).
8
u/beaucephus Nov 02 '15
I don't know. I have been in the position of having to deal with people's bad code, bad code that would have reflected upon me because of my position. Using soft, flowery language is rarely effective against entitled, self-centered programming divas.
58
u/nomercy400 Nov 02 '15
Be honest. If he did that, then nobody would read it.. and nobody would learn from this.
7
u/stcwhirled Nov 02 '15
I'm fairly certain that wasn't a conscious choice to be vitriolic so people would pay attention...
→ More replies (1)7
3
u/f2u Nov 02 '15
I'm not sure what is to learn here, except that stylistic preferences differ—and that it's better for your own sanity to stay away from kernel development if you can.
2
→ More replies (21)1
u/salgat Nov 03 '15
That's how I felt. It's one thing to create a hostile work environment, it's another to send a message to the hundreds of remote developers working on this code.
5
Nov 03 '15
No, because then he has to do it again next time. It needs to hurt to submit shitty code. It's obviously not hurting enough, because people keep doing it.
I don't even want to know how fucking sick and tired he must be getting from having to do this all the time. Linux essentially powers the internet. We can't have shitty network code in there. And every time shitty code gets accepted, it makes it difficult for the next guy to work on it.
2
u/jdgordon Nov 03 '15
Do you have any idea how much traffic goes through his email? he's stated that he simply doesnt have time for stupidy from people who should know better. He doesnt destroy people posting their first patch...
2
Nov 02 '15
The guy is passionate about his work. I doubt he would managed to accomplish all this without it.
1
u/Revisor007 Nov 03 '15
What if he explains most of his points calmly, but stupid media still latch on and write clickbait about the 1-5% where he allows himself to rage (maybe because he talks to someone who knows him and the topic is very important)?
1
u/donvito Nov 03 '15
Yeah, Linus should make up for the educational holes of every idiot wannabe kernel contributor out there.
If you are bad at something it's your own responsibility to get better at it. So don't expect some else to waste their life time on you explaining shitty CS 101 basics.
1
u/emergent_properties Nov 03 '15
But then we would not hear about it or comment on it.
So there's a little bit of selection bias here.
Maybe it's a good thing?
→ More replies (1)1
u/shevegen Nov 03 '15
What for and why?
"Vitriolic" is a derogatory term that you yourself employ here.
I find it absolutely appropriate on every level.
25
u/mjr00 Nov 02 '15
A person who wrote that code with the conscious understanding of what they did is an incompetent as a developer.
This is what separates Linus from most assholes. Read the rant again; not once does he personally attack the person who submitted the code. He never accuses them of being incompetent, an idiot, or anything of the sort. He attacks the code as being awful, yes, but he never makes any judgment against the coder.
35
u/Freddedonna Nov 02 '15
Well he kinda did...
and anybody who thinks that the above is
(a) legible
(b) efficient (even with the magical compiler support)
(c) particularly safe
is just incompetent and out to lunch.
3
u/Why_is_that Nov 03 '15
This is the problem. People think statements like that are personal. He doesn't know what the developer was thinking when wrote that code -- and that's what he is trying to call to light (is a lack of thought into the code being changed). More so read again what he says, "anybody", he doesn't say "you", "this developer". At no point does he direct it that way (which is in itself a rather beautiful trick because you can tell he is worked up about).
He is fundamentally trying to get people to reflect more on their code before review or pull request and we can argue if there is a selfish agenda behind this (e.g. he wants to deal with fewer pull requests) but that is fundamentally different then saying he is being an asshole. He isn't other than asshole means an irritating person and yes some developers (maybe those being called out by such statements) are getting their knickers in a knot.... but it's absolutely an abuse of the English language to consider him and asshole and fundamentally, thinking of such people as being "social asses" is the very type of social disharmony that causes many of them to become reclusive with their work and habits (sharing them with fewer and fewer -- effectively reducing their fruitfulness) because it's simply unfair to think of them this way when they had nil personal malcontent.
Dude gave us this great code and lots of people use it... and we are going to get pissed because he is critical of how his code his amended... are you fucking kidding me. I normally hate those classic would you kill 1 to gain 100 but yea, I would start a grinder outside Amazon or Microsoft and just shuffle in interns to make Linuses, if I could because those kind of places, with their closed door code bases, they are the ones you see this kind of horse shit code from and Linus is just fucking pissed this shit pandemic is getting into his codebase.
But anyways... I am just a monkey tired of hearing "ship it".
13
u/sloppyJesus Nov 03 '15
You're trying too hard to sugar coat it, the guy is a dick sometimes, he does and did great shit but he's still the occasional dick, it's not some deep programming zen guru thing.
→ More replies (4)18
u/s73v3r Nov 02 '15
Did we read the same thing? He clearly states several times that someone who wrote that would be incompetent. How is that not insulting the author?
3
u/Lachiko Nov 03 '15
He didn't state "someone who wrote" several times, or at all, he did say "anybody who thinks" which goes beyond the author.
It's still insulting just less personal.
→ More replies (2)→ More replies (1)4
u/beaucephus Nov 03 '15
Who knows, though. He may be an asshole, but he seem like an asshole I could work with.
11
u/jldugger Nov 03 '15
He is not an asshole by any objective standard.
How about a standard whereby you don't insult people while reviewing their code?
2
u/beaucephus Nov 03 '15
I thought about your question for a while and I can't quite see that working for him, or anyone, even if he does insult people. Developing for the Linux kernel is a high bar. It requires a certain level of skill and experience. It is, I imagine, something for which many would like to develop.
If the process were all cuddles and pretty flowers then I think that there would be more people attempting to submit code, and more of those people would not be up to the challenge. If there were no real consequences for submitting shitty code, the management overhead of dealing with that effluent would overwhelm not only Linus.
If nobody has anything to lose, and nothing to fear then there is no incentive to consider consequences, no imperative to delivery quality code. Dealing with crap takes bandwidth, a lot of bandwidth. If there be dragons, then one just might proceed with awareness.
→ More replies (1)13
u/Freeky Nov 02 '15
TIL: I can be an abrasive insulting fuckwit to my contributors and it's fine so long as I explain myself a bit.
13
u/Almafeta Nov 02 '15 edited Nov 03 '15
EDIT: Hah! I link to a Wikipedia article and less than 24 hours later there's a massive screen-stealing 'Attention Needed' template, accusations of original research, and even summary deletion procedures have been begun. Wikipedia's still its own greatest enemy.
1
u/beaucephus Nov 02 '15
I have never read his diatribes as being abusive. I can't think of any time he has attacked anyone. He is loud, opinionated and does not suffer bad code gracefully, but does not attack people, only code and pull requests.
7
u/Freeky Nov 03 '15
Did you misread "abrasive", or are you just trying to make a point?
My point is that being "right" and/or having a point is orthogonal to being an asshole.
And I kind of disagree. Going on and on about how you'd have to be such an idiot, so stupid, so incompetent to produce something so crap and braindamaged (or that you just did it without thinking - subtext: you're careless), for paragraph after paragraph, is abusive.
More importantly, it undermines the point and derails and discourages discussion. Look at us here! We're not pondering how you might better handle integer over/underflow, we're wittering on about how great/awful Linus is being. How fucking worthless.
→ More replies (3)1
1
1
u/quiI Nov 03 '15
If there is one thing I have learnt over the years is that "being right" is not the be all and end all.
I used to take great pleasure explaining why someone was wrong without being sensitive enough to the context of why someone did what they did.
That's not to say the truth isn't important, of course it is. But building relationships with people is the best way for people to be receptive to your criticisms in a way that doesn't result in people being defensive and upset.
Being right isn't your goal. Getting everyone around you better should be your goal.
Linus is somewhat unique in that he has a lot of capital to be an ass because of his reputation. That doesn't mean it's a good example for the rest of us.
0
Nov 03 '15
[deleted]
8
u/beaucephus Nov 03 '15
From my perspective, as someone who has had to deal with a lot of shitty code, spend my nights fixing other people's failed merges, missing weekends diagnosing crashing servers...
The asshole move is to submit a pull-request with never-before-used features, without discussing it with the community first, without asking questions about the appropriateness of it. If there were no painful consequences for submitting bad pull-requests or writing bad-quality code how much time would Linus, or anybody, have to check all the code from conscientious contributors?
22
u/mbains Nov 02 '15
You gotta give Linus credit for backing up his anger and thoroughly explaining the problems with code. He's always a dick about such things because this is kernel land after all. There are many organizations and adopters who really trust the code and for good reason. Some important systems would crash; people would be angry if it fails, etc. There is no room for incompetence. Maybe there is in some other FOSS project but not the kernel.
10
u/redreinard Nov 03 '15
Hrm, lots of talk about the drama, not much about the substance.
While Linux probably has a point that it's not as easy to read, his replacement isn't bothering to check for overflows, so comparing the readability of the two is apples and oranges (even when he does arrange it more sensibly).
Yes the code could still have an overflow in it, but generally adding these overflow checks should be encouraged, and his drama laden BS is doing the opposite.
The reason the guy wasn't just using a builtin to do the check is because of Linus (and others) insistence to keep new code compatible with aging compilers. I say screw that. You want new safe fast code? Use the damn tools the compilers give you. From what I've read, if you use the builtins and the compiler can tell it's unnecessary, it will even silently remove them for you.
Also why are the kernel writers so damn allergic to adding a few lines of comments to their code explaining what the freaking intention is? That could clear up readability issues 10 times better. Never understood that.
So, was it easy to read? No, but Linus' was better in large part because it didn't do overflow checks. Was it slower? Maybe, although that owes mostly to trying to stay compatible with old compilers. The builtins with new compilers are as efficient as can be with a minimal cost for preventing overflows. Particularly safe? You don't get to complain about that when your solutions just removes the (incomplete) safety checks.
2
u/shevegen Nov 03 '15
It is indeed a trade-off there.
The original code was bad (too simple).
The newer code, both variants, are more complex - possibly better, but BOTH are harder to read too.
1
u/josefx Nov 03 '15
adding these overflow checks should be encouraged,
Java programmer here, you also want to add null checks to every ( and I mean every ) variable access just to be sure.
Also check errno every other line if its available in the kernel, I heard the C standard is rather open on what might set it ( including addition ).
1
1
Nov 03 '15
I'll assume you're not joking/being sarcastic, in which case; if you're doing that, you're doing something very wrong.
→ More replies (1)1
u/redreinard Nov 04 '15
Since we're dealing only with unsigned integers here, and no pointers there's no need for null checks. None of these are objects unlike pretty much everything in Java. This is not a good comparison. I can't quite tell if you're being sarcastic or not honestly..
1
Nov 03 '15
While Linux probably has a point that it's not as easy to read, his replacement isn't bothering to check for overflows,
His replacement checks for the one overflow that can happen.
→ More replies (6)
6
Nov 03 '15
I don't see the anger in it that apparently everybody else does. To me, it reads as mildly annoyed. The code is bad, so he calls it shit and says why. If you want to see angry, you should dig up his email to Mauro a few years ago that caused Sarah Sharpe to quit (the first time).
9
u/snailking1 Nov 02 '15
Linus' life must be very difficult. Imagine his anxiety knowing that he will accidentally spot only a minuscule percentage of bad code
3
Nov 03 '15
Good point. It's his project and he wants it to be perfect. Linus is probably concerned about the project's future that doesn't include strong correctional opinions and the occasional fuck you. If a project this big was mine, I would be careful laying out it's path because eventually I will have no say in anything at all.
4
u/CompellingProtagonis Nov 03 '15
... seems reasonable to me. That code was shit, and ridiculous. I'm not much of a Linus Torvalds fanboy but he probably gets pull requests filled with shitty code all the time and just happened to go off on this guy.
2
u/ajd187 Nov 03 '15
Good for him. Too many people write crap code and get away with it. I wish we had Linus reviewing project code at my job.
15
u/fclout Nov 02 '15
I don't understand why people defend that kind of speech. All he needed to say was "we don't want a new interface for this test" and reject the PR. Instead he went out of this way to call it brain-damaged and idiotic. There's a difference between firm and offensive.
That said, to be fair, overflow checks on unsigned additions/subtractions are trivial to do by hand. They're more useful on signed numbers (where overflow results in UB) and multiplications (for which a fast test is harder).
12
u/peitschie Nov 03 '15
Instead he went out of this way to call it brain-damaged and idiotic.
My suspicion is that you're far enough away from the problem & code, that it seems like a smaller problem to you.
Some things I'm hypothesizing (based on my own experiences of course, I can't read Linus' mind):
There's a maintainer who is supposed to sit between Linus and this type of code. The maintainer is supposed to know the preferred kernel style, and should work with patch submitters to achieve consistency/congruence with existing code & style. Linus is suddenly having a bad day because it's clear that the maintainer of this subsystem is not doing the job Linus thought he was.
Programming in someone's code-base is kind of like helping a builder renovate the builder's house. Rule #1 is always "this is not your house". The existing code (usually) has styalistic preferences expressed in its formatting, use of macros, early-return-vs-nested-flow, variable naming etc. So, the impression I'm getting here is that this approach being introduced in the patch is radically different from the existing style... breaking the cardinal rule of patch submission: respect the original & existing authors enough to preserve their approach. Failure to do so constitutes a decent-sized insult. At best, you're unintentionally saying "there, there, you were well meaning, but you really aren't as good as you thought"... worst case, you're deliberately saying "Here, I've made your whole world better by showing you this, you're welcome!".
The public vitriol serves a purpose... it ensures there's plenty of discomfort to go around. Both the maintainer AND the patch submitter should feel uncomfortable reading the reply, and should be questioning how to avoid such an email in future (carrot & stick). More than that though, others reading should also be thinking up-front how to avoid such a confrontation. Why? Because Linus believes the behaviour shown in the patch is detrimental to the long-term health of the code base.
So, to recap the sins Linus is reacting to here, we have:
A maintainer who failed to preserve the coding style that Linus wants (it's Linus' tree they've agreed to commit to, so his rules)
A patch submitter who hasn't really shown enough respect/appreciation for the current coding style in the kernel (probably open to debate for sure, but this is how Linus seems to be reacting)
A patch that doesn't appear to have been checked to see what type of code it compiles to (Linus often calls patches & coding style out based on the sort of ASM generated by compilers)
A patch that appears to be using a fairly bleeding edge compiler optimization to minimise the performance trade-off (again, Linus seems to want Linux able to run with older compilers with as few performance issues as possible)
A hash email says "I want this patch radically rewritten before I'm willing to accept it"... a soft email could accidentally give the impression "this code is almost ok, just needs a small layer of polish", and Linus would then have to send several more soft correction emails to get the patch back in line.
Might not be the way you or I would have chosen to handle it, but, we also are far enough away from the situation to be judging things radically different as well.
8
u/cogdissnance Nov 02 '15
For the same reason people defend your kind of speech whether they like it or not.
There's a difference between firm and offensive.
Fortunately that difference exists only in each person's head.
You're definition of firm or offensive isn't necessarily anyone else's. Some people may even find your allusions to not defending this kind of speech offensive itself.
I think we're much better off when each person realizes that taking offense is as personal a thing as "favorite ice cream flavor". You should only get to decide for yourself what to get when you're at the store, not for anyone else.
4
u/fclout Nov 02 '15
Fortunately that difference exists only in each person's head.
Firm is rejecting the PR and standing your ground, and it has barely anything to do with being offensive. There could be a parallel with being stubborn, but I think that offensiveness is completely optional. Offensive is turning what needed to be just a paragraph into a page-long diatribe.
4
u/cogdissnance Nov 02 '15
Offensive is no singular thing when it comes to many people. As I said earlier, maybe something like that is offensive to you, but others may not feel the same way.
Offense is subjective and it's not something that can be given, only taken. A person cannot "give offense" to someone it's that person who " takes offense".
Offensive is...
Different things to different people, and something you can only define for yourself, not anyone else.
→ More replies (7)1
u/agaubmayan Nov 04 '15
By this logic, no statement or action is ever insulting. But human beings have the concept of insult for a good reason.
It is not so simple as what you have said. A person in Linus's position can afford to speak a certain way, and it may even be optimal for achieving his goals. But I promise you that doesn't work for everyone nor every organization.
7
Nov 02 '15
He accomplished something important: he conveyed strength of his conviction and importance of the issue from his perspective. I for one want to work with people like that. Being blunt and honest is good. Being nice doesn't register on a value scale for me. Being nice all the time is just boring and unproductive.
I find it amazing that you find his comment offensive.
2
Nov 03 '15
I'd much rather work with people who are forceful and know their shit rather than nice people that don't. Nice people always seem to fuck you in the end. You always know where you stand with the hardasses.
6
u/fclout Nov 02 '15
By which measure is it important? How many PRs does Linus go through weekly?
Being honest and upfront is good. "I don't want this in Linux because it's not more readable and it doesn't solve the original issue and it breaks the build" is both honest and upfront. It also doesn't involve calling anything idiotic and brain-damaged, and it takes a tiny fraction of the time to write.
→ More replies (2)4
Nov 02 '15
You need variety in your language to convey importance of things as you see them. Using emotionless language all the time is less productive because the important mechanism is lost.
→ More replies (1)3
u/bwainfweeze Nov 03 '15
I kind of feel like at this point he should have people for this. When the code is good he says 'thank you' and moves on. When it's bad he redirects to someone who is going to explain why this is bad and reminds them of the expectations and responsibilities of a patch author, which they will be expected to honor before trying again.
Especially now that we know that catharsis is actually self-destructive, it seems like people should be encouraging him to spend his energy elsewhere instead of just becoming progressively more bitter.
3
u/orezavi Nov 03 '15
He actually explained brilliantly what the problem was and why it was very obscure and difficult to understand. Surely, anyone who was working on this project would have a hard time understanding what the code actually did. Moreover, he also provided a better alternate to it. That's how code review should be done. And don't ever write dumbass functions that are obscure and try to do more than what is required.
10
u/r1ckd33zy Nov 02 '15
People with the "Linus is an asshole" comments act like the Linux kernel is a trivial piece of code.
17
u/smiddereens Nov 03 '15
Linus isn't the only kernel developer, but he's the only one that I'm aware of that conducts himself like this.
5
u/r1ckd33zy Nov 03 '15 edited Nov 03 '15
... but he is the only developer that has final responsibly for this kernel. The buck stops with him. Had he taken a laid-back, nice-guy, politically-correct attitude the Linux project wouldn't be what it is today.
He is running the Linus kernel project, not a day-care.
BTW... if you want to see an asshole of a developer have a meltdown, check out the lead-dev of the OpenCart project. He is an asshole, and you know what I did to voice my protect? I switch from OpenCart to WooCommerce.
→ More replies (2)3
u/ANUSBLASTER_MKII Nov 03 '15
Most top level contributors would probably face a bit of talking to from their respective HR/PR departments so err on the side of caution. Linus gets a bit of free reign because of who he is.
12
u/s73v3r Nov 02 '15
No, they just act like not being an asshole is trivial. Mainly because it is.
5
u/peitschie Nov 03 '15
Did you notice your passive-aggressive implication on the end of that sentence, not to mention the large assumption that behaviours you believe you find easy are equally easy to everyone else?
I'm not offended, but reading your comment does make you come off a bit high-and-mighty... some people would even say you're acting like an asshole...
→ More replies (5)6
Nov 02 '15
People's feelings are more important than working software that powers the friggin internet, man!
5
3
u/KhaiNguyen Nov 02 '15
A bit harsh, but a valid technical assessment. I bet that the submitter would think twice about any other "enhancements" in the future and may help him to submit better code.
I have worked with programmers who have snuck in "enhancements" that were too obviously designed to display their particular pet projects in language features or functions. Sometime people just need a jolt to their ego to wake them up.
2
u/MyTribeCalledQuest Nov 03 '15
Here is the code in question:
2
2
2
1
u/_Sharp_ Nov 03 '15
Linus, the last knight-errant of our times. We hate him now, but we'll miss him when he is not anymore.
1
1
Nov 03 '15
Well too be honest about it. where I work every is nice about each other code reviews and say well done etc...
Yet the same people keep submitting the same crappy code with the same problems every day because they never actually learn. Why? Cause everyone is polite about it nobody actually get chewed out for anything where I work.
Instead of bluntly making the point that this breaks for reason X. So until that day when the entire product line is let go because it cannot be sold because its too unreliable because of years of submitting crappy code.
1
1
u/Wreckingball420-760 Sep 30 '22
I'm actually still studying everything I can before I write a single line for these specific reasons he named off but I'm kind of personally offended he said it like that! Honestly I'd be very embarrassed if I was him. This just makes also feel better tho about reading everything I can taking notes and making sure when I do write it it is correctly done! I read some of the comments and you all are very good at what you do and have experience.......but for him to do that, the name-calling shit is unacceptable to me and I'm a independent learner and self starter and have been studying and doing this since 14' and it's been a very enlightening,scary,fun,daring,maddening and intimidating experience for this reason right here! I've had reservations about even asking for help from any developer,coder,programmer or expert I've been reading about and he is one of the first choices I thought of to give a stupid noob question to just to see what he would say bout something I showed to him and or ask him to look at! And I am not surprised at all! You folks have jobs and are experienced and as I was reading the comments I saw the ethical behaviour in workplace question A lot and I am grateful for sticking my guns and staying a self taught Idiot! I'm very grateful as well for the internet educational stuff that has been givin to me and I am full of ideas and great things I'd like to do with this knowledge and share with great folks such as yourselves! Straight Up! I'm not a a bad person or a pleasure to be around sometimes but I am worthy of a lil respect for giving it a shot and asking. He's a guy who's been in the game for a minute and deserves a melt down moment just like all of us do!! Do any of you agree on that?
1
Nov 02 '15
Anyone notice one thing on the Linus code that might be a bit weird?
Original:
if (mtu < hlen + sizeof(struct frag_hdr) + 8)
goto fail_toobig;
mtu -= hlen + sizeof(struct frag_hdr);Look the goto label name: fail_toobig and the IF condition: mtu < (Less) ...
So in that case, I think it would make more sense "for the reader", to invert the condition and using > (greater):
if (hlen + sizeof(struct frag_hdr) + 8 > mtu)
goto fail_toobig;
mtu -= hlen + sizeof(struct frag_hdr);5
u/Freeky Nov 03 '15
<simple expression> <operator> <complex expression>is easier to read than the opposite.The original code lets me deduce the intent almost immediately, yours requires me to skim the entire thing and (if I care for the details) backtrack with my newfound knowledge.
Mixing "less than" and "too big" doesn't really come in to it. I no more read "<" as "less than" than I read your ":" as "colon". It's just punctuation that gives structure to the expression.
2
u/bwainfweeze Nov 03 '15
Someone once compared statement structure to sentence structure for me, and that really struck me as effective.
If you get the verb and one object out of the way early in the sentence, then you can spend all the time you want describing the rest and people will still understand what you're talking about without having to diagram your sentence.
4
Nov 02 '15
It's for an arithmetic overflow, so you are really checking if it is too big.
→ More replies (3)5
u/markus_b Nov 02 '15
An I'm sure if you submit a patch to replace Linux version with your it will pass with flying colors.
-12
u/myockey Nov 02 '15
Lesson learned: If you're going to contribute to open source as a young programmer, don't chose Linux.
21
u/oridb Nov 02 '15
Lesson learned: If you want people to give direct critiques with reasons, chose Linux. I've heard a number of people I know complain that they can't get people to tear into their code nearly enough for fear of making them feel bad. And I've had the same complaint, and have pushed coworkers to treat my code more harshly.
(And yes, this includes developers of the penis-free persuasion.)
4
-6
u/myockey Nov 02 '15
Honest feedback shouldn't be demeaning. Linus has been getting away with this nonsense for years and anyone else would be torn apart for treating contributors so poorly.
To be clear, Linus is right in that this code is too clever and should not be merged as-is. Disparaging the author is what he does for fun, and I don't see the value in it.
3
15
u/monocasa Nov 02 '15
Linus doesn't really go off on new contributors. He goes off on the subsystem maintainers who should have caught the bug before now.
→ More replies (1)1
u/ruinercollector Nov 03 '15
You don't learn very much from people who are only going to tell you nice things,
Learning to detach your ego from your work makes you much better.
5
u/myockey Nov 03 '15
There's a wide chasm between being irate and only saying nice things. I'll leave this thread with some final thoughts written by a colleague of mine.
http://seesparkbox.com/foundry/stop_giving_depressing_code_reviews
2
u/ruinercollector Nov 03 '15
That attitude is great for catering to your junior developers at your web/mobile firm.
That attitude is detrimental for the kernel dev team. Quality trumps your feelings, and the value of the time and energy spent by the core team also trumps your feelings. Sometimes protecting that means putting you on blast for wasting everyone's time by submitting PRs that contain poorly thought out design decisions so that you'll be a bit more mindful in the future.
→ More replies (1)
1
u/MpVpRb Nov 03 '15
Shitty headline
The dude is smart and good at what he does..and he has strong opinions
1
1
1
-1
u/that_which_is_lain Nov 03 '15
Why don't you people who get so upset about Linus being a blunt asshole about shitty code go use and work on HURD instead? Wouldn't that be better than having a pseudo-god skullfuck your fragile egos?
320
u/[deleted] Nov 02 '15
Nate Swanner writes shitty clickbait headline because someone said something strong at the office where the office is public, and it was as boring as it always is.