News for hackers. Stuff that matters.
Re:How I review code by scalesolved on Wednesday January 24, 2018 @07:10AM (#16222089)
Ha it does make me think of this tweet https://twitter.com/KevlinHenney/status/381021802941906944

You nailed it really, senior engineers code is the most simple looking as generally they've picked the right abstraction for the problem.

Re:How I review code by weego on Wednesday January 24, 2018 @08:22AM (#16222412)
Is this a senior engineers are literally superheroes meme I've missed?

Everyone is capable of making poor decisions and straight up logic errors. Senior devs sometimes more-so because we tend to get entrenched in a particular issue solo for longer periods.

Re:How I review code by scalesolved on Wednesday January 24, 2018 @09:02AM (#16222668)
Not at all and it's now how I view senior engineers. True senior engineers though do tend to find the right abstractions more often than other engineers but it doesn't mean they can't make huge mistakes with bigger implications.

My thoughts are also on actual senior engineers, not 2 years of experience etc.

Re:How I review code by lazyasciiart on Wednesday January 24, 2018 @12:39PM (#16224554)
I think of it more as a 'no true senior engineer' argument.
Re:How I review code by pqh on Wednesday January 24, 2018 @07:33AM (#16222196)
Text of the tweet so people don't have to click:

A common fallacy is to assume authors of incomprehensible code will somehow be able to express themselves lucidly and clearly in comments.

Re:How I review code by dboreham on Wednesday January 24, 2018 @08:53AM (#16222605)
Senior Engineers are probably in meetings, not writing code..
Re:How I review code by testouts on Wednesday January 24, 2018 @10:10AM (#16223234)
ding ding ding
Re:How I review code by mpweiher on Wednesday January 24, 2018 @07:37AM (#16222211)
There is a conundrum here: architectural mismatch.

Often, the "right abstraction" for a problem is not call/return based. So you get to choose between having the right abstraction, and code that is simple when viewed with that abstraction in mind, but "weird". Or alternatively choose the wrong but better-supported abstraction and have code that is needlessly complex but "straightforward".

Re:How I review code by erroneousfunk on Wednesday January 24, 2018 @01:35PM (#16225075)
> they've picked the right abstraction for the problem

I hate to agree with you, but "picking the right abstraction for the problem" elegantly expresses what I've been trying to tell people for the last few years now, but far less succinctly (I usually ramble on about "underlying data models" and "what this actually is in the real world, not just how we view it in our application")

The reason I hate to agree with you is that I just became very disappointed that this is a difficult skill to master. "Just use the right model and the code is easy, duh. Why aren't you doing this?" Well. Now I just feel like a jerk. I thought they just gave me the "senior" title because I was old.

It's unfortunate that one of the most important skills in the industry is so intangible and difficult to quantify. Even more difficult to teach.