News for hackers. Stuff that matters.
Re:Visualizing How Developers Rate Their Own Programming Skills by thegeomaster on Monday November 28, 2016 @03:09PM (#13057980)
One time, when leaving a company, I helped interview candidates for my old job, since I could best tell what skills are needed and to what extent.

I reckoned at the time, from most interactions on the Internet, that I am (globally) a mediocre, if not below-average, developer - in each discussion I participated online, there were always people above my level, from the ones having a slightly better understanding of the subject to the people whose depth of knowledge appeared somewhat otherworldly.

This belief was particularly strengthened by the fact that I didn't have much contact with real-world developers in real life, as my friends tended to come from different backgrounds.

When the interviews came, I was astonished how many of them couldn't code their way out of a paper bag. The ones who did, wrote code with messed up indentation, inconsistent style, ugly and hackish approaches, and the like. I couldn't imagine how someone could leave their code like that and say "there, this is my finished product." But here they were, and it seemed like they didn't really see anything particularly wrong, or just not important enough to justify the added effort of cleaning the mess up. It was a very strange moment for me.

I believe this to be an example of the classical selection bias: people inclined to participate in online discussions, answer questions on StackOverflow, write blogs and type out detailed technical comments on HN are on average a lot more skilled than the average just-earning-my-living developer fresh out of some half-assed "be a software engineer and make tons of money!" three-month course.

Re:Visualizing How Developers Rate Their Own Programming Skills by furyofantares on Monday November 28, 2016 @03:59PM (#13058350)
There is another very strong bias that goes on when hiring, though. Take 9 competent developers who tend to get offers and 1 that can't code their way out of a box. That 1 could very easily do more interviews than the other 9 combined before landing a job (and will be back on the market sooner to boot) and interviewers might conclude them typical and the other 9 atypical even though the reverse is true.
Re:Visualizing How Developers Rate Their Own Programming Skills by Bahamut on Monday November 28, 2016 @08:10PM (#13059899)
I worked with someone once who had a really sloppy/inconsistent code style, but the code he wrote was rock solid.

His subsequent (and current) job is now as a very well-known expert as as developer advocate for one of the big four tech companies.

You'd be surprised at what you find developers out there doing, the only good metric on a person being a good developer is writing fundamentally sound code. Literally nothing else matters.

Re:Visualizing How Developers Rate Their Own Programming Skills by rz2k on Tuesday November 29, 2016 @11:08AM (#13063896)
In Zen and the Art of Motorcycle Maintenance the author puts forward two types of welders. One is the type that excels at really complex and difficult welds, but isn't very good at making simple welds in repetition. The other might get tunnel vision when trying to figure out an unusual weld, but has the discipline to produce consistent, flawless welds in great quantity.

It might be explained by what is know as Yerkes–Dodson law[1], which describes how performance increases with mental arousal up to a certain point then decreases. If different types of tasks correspond with different arousal for different people, then the type of welder or developer one is is orthogonal to their fundamental skill. Instead it would mean that the first type needs to cast the problem as something novel in order to gin up the necessary level of concentration to get the problem done, hence the rock solid code that has sloppy/inconsistent style.

It makes sense that a good advocate would be highly skilled, but the type who has difficulty with necessary work that seems mundane. In other workplaces this might be the person who seems to have low output, but gets their coworkers past their roadblocks.

[1] https://en.wikipedia.org/wiki/Yerkes–Dodson_law

Re:Visualizing How Developers Rate Their Own Programming Skills by logicallee on Monday November 28, 2016 @10:23PM (#13060514)
I hadn't heard of the term "big four" tech companies - does that denote Google, Facebook, Apple, and Microsoft? (just my guesses)
Re:Visualizing How Developers Rate Their Own Programming Skills by uiri on Tuesday November 29, 2016 @01:12AM (#13061229)
The term Big Four originates in accounting where there actually are a specific set of four large, established companies.

For tech, I usually remember it as AmaGooBookSoft - Amazon, Google, Facebook and Microsoft. Apple is sort of a hardware company so sometimes it is included and sometimes it is not.

Re:Visualizing How Developers Rate Their Own Programming Skills by jbigelow76 on Monday November 28, 2016 @10:44PM (#13060612)
I've always heard it as Google, Facebook, Apple and Amazon. Microsoft isn't very sexy to the typical developers that participate in the startup/Silicon Valley "scene" and its accompanying communities (HNews included).
Re:Visualizing How Developers Rate Their Own Programming Skills by jghn on Tuesday November 29, 2016 @12:56AM (#13061167)
Big four almost always includes google and facebook but the other two slots seem to vary a bit based on who is saying it. I've even seen companies like yahoo and twitter thrown in there.
Re:Visualizing How Developers Rate Their Own Programming Skills by leesalminen on Monday November 28, 2016 @04:07PM (#13058423)
Indentation! Not much in this world upsets me as much as inconsistent indentation. Ruins my day any time I have to actually read 500 lines of it.
Re:Visualizing How Developers Rate Their Own Programming Skills by mahyarm on Monday November 28, 2016 @07:06PM (#13059543)
You should automate that issue and have an autoformatter on every commit. Everything else is a waste of time
Re:Visualizing How Developers Rate Their Own Programming Skills by aninhumer on Monday November 28, 2016 @07:40PM (#13059751)
Honestly, I feel like we should have gone further and decoupled display and serialisation formats of code a long time ago. (Although I understand why we haven't.)
Re:Visualizing How Developers Rate Their Own Programming Skills by GlennS on Monday November 28, 2016 @05:18PM (#13058902)
A lot of people without much programming experience seem to really struggle with nesting. We take it for granted, but I suppose it actually involves some reasoning about evaluation order of arguments.

For those people, persuading them to indent can be the difference between them having a chance of learning the knack or just flailing randomly, getting frustrated, and giving up.

(The other lesson is: if you're building a DSL for non-programmers, try to avoid putting in nesting and make everything really flat instead.)

Re:Visualizing How Developers Rate Their Own Programming Skills by 551199 on Monday November 28, 2016 @07:52PM (#13059807)
Beautify for Brackets/atom works great. Should be a standard thing in editors really.

Some older books are the worst with indentation. Instead of learning to code you spend most of the time figuring out where the code block ends.

Re:Visualizing How Developers Rate Their Own Programming Skills by tiglionabbit on Monday November 28, 2016 @04:19PM (#13058512)
Wouldn't it be nice if all languages made indentation significant?

Or at least included a tool to fix it.

Re:Visualizing How Developers Rate Their Own Programming Skills by wcarron on Monday November 28, 2016 @04:30PM (#13058599)
Vim has a nice command to fix indentation from the beginning to end of file: "gg==G (include the dblquotes)
Re:Visualizing How Developers Rate Their Own Programming Skills by throwanem on Monday November 28, 2016 @05:04PM (#13058818)
Emacs does the same with C-x h TAB, or you can mark a region manually and reindent its contents with TAB.

As with vim, this depends on being in the right major mode for the language you're working with, which should be automatic for most languages (except Perl, which is screwy, because of course it is), and depends also on that major mode knowing how to cope with the code and being configured the way you want, which should be reasonably trivial for most languages (except Perl, which is screwy, because of course it is).

Re:Visualizing How Developers Rate Their Own Programming Skills by rifung on Monday November 28, 2016 @04:41PM (#13058685)
(Assuming that vim knows how to indent the language you're editing and in the way that you want)
Re:Visualizing How Developers Rate Their Own Programming Skills by reitanqild on Monday November 28, 2016 @04:34PM (#13058637)
Just don't uncritically apply this to all files without thinking twice and also consult with your team. :-/
Re:Visualizing How Developers Rate Their Own Programming Skills by 551199 on Monday November 28, 2016 @07:46PM (#13059782)
Messing up indentation deliberately in few places is a good way to gauge their reaction and would you like to work with them.
Re:Visualizing How Developers Rate Their Own Programming Skills by nandemo on Tuesday November 29, 2016 @02:48AM (#13061534)
Please don't do that sort of thing -- unless you give the candidate a piece of code and specifically ask what could be improved.

But don't expect candidates to spontaneously criticize the interviewer's code. Yeah, I know, you want to work with people who can think critically etc, but at the time of interview you aren't coworkers and aren't on equal footing. Personally, if I as a candidate see you writing code with bad indentation I will conclude either (a) you were making a point about e.g. correctness or efficiency and didn't bother to indent because it's literally throwaway code, so mentioning the indentation would be a distraction; or (b) you and your team don't care about indentation at all.

Re:Visualizing How Developers Rate Their Own Programming Skills by demolish on Monday November 28, 2016 @10:10PM (#13060456)
i just create an editorconfig file <http://editorconfig.org> in root directory of projects, saves having to remember to switch tab settings across them (there might be another plugin with more functionality but it does what i need it to)
Re:Visualizing How Developers Rate Their Own Programming Skills by flukus on Monday November 28, 2016 @10:55PM (#13060653)
This is half a solution at best. It doesn't specify whether to put the curly brace on a new line for instance, and a dozen other formatting options.
Re:Visualizing How Developers Rate Their Own Programming Skills by demolish on Tuesday November 29, 2016 @09:10AM (#13063097)
yeah, i meant for the tab issues specifically since others arent as easy to miss

hopefully someone will get around to adding more functionality to the plugin so i don't have to edit my visual studio formatting settings for parentheses/comma spacing whenever i switch projects :p

Re:Visualizing How Developers Rate Their Own Programming Skills by keithnoizu on Monday November 28, 2016 @04:02PM (#13058378)
I make constraint based short term implementation decisions

You sometimes resort to short cuts to meet deadlines.

They, are hacks who don't know how to code.

But yeah I never consider myself to be a great developer until interacting with other developers.

Re:Visualizing How Developers Rate Their Own Programming Skills by BurningFrog on Monday November 28, 2016 @04:23PM (#13058552)
The other selection bias here is that bad programmers have to interview a lot more than good ones.