6 ms·
Williams: Master of the "Come From"
- listrophy 15y agoPoint this article to any hot-shot developer... if they don't come away with a new smidgeon of self-doubt, slowly back away: he/she isn't worth working alongside.
- angelbob 15y agoThis is cute. I had to Google to get the Williams / Jim Kelly thing from Enter the Dragon. An awesome article. Inspirational in the same way as Steve Yegge's Wizard School bit (http://steve-yegge.blogspot.com/2006/07/wizard-school.html http://steve-yegge.blogspot.com/2006/07/wizard-school.html).
- Harkins 15y agoThe author is Reginald Braithwaite; the movie has a character named Braithwaite who begins the plot. I wonder if this whole post is autobiographical or if the Williams/Kelly is just an old joke and Braithwaite is a coincidence.
- dasil003 15y agoThis is an illuminating example of how different assumptions lead to different definitions of what makes good code. I'm convinced that this is one reason why there is this belief that 80% of programmers are incompetent. It's not there aren't truly incompetent devs out there, but it's also easy to assume someone is incompetent just because they were working from different constraints and experiences than you, and the way they did things just isn't immediately apparent.
- ericb 15y agoHaving recently lead a round of interviewing, I wish that I could be convinced that your kinder interpretation was true. But under moderate questioning, most interviewees don't hold up well.
- 46Bit 15y agoIt's a good point, and one I expect most people have heard quite a few times. However, interviewees probably either don't have a job or aren't doing well with the one they have. As such, I suspect you're likely to get a larger % of the mediocre than you might see elsewhere in the industry.
- jtheory 15y agoI don't know how to estimate this skew, but it's probably substantial, particularly in this industry. I'm fairly introverted and a competent developer; I've only done two interviews in my 13-year-so-far professional career writing code. The first was for my first job after college. I only called one company in the city where I planned to move; they seemed good, so I got a job there. The only reason for the second interview -- last year -- was because I moved to Europe, and decided after 4 years that working on the projects & jobs I could get from my contacts in the US wasn't great, so I'd have to (ugh) meet some new people. I suspect there are plenty of competent developers who have experiences like mine. We'd rather go work with people we already know, the folks on the hiring side would rather grab someone proven, vs. (on both sides) interviewing with strangers and hoping for the best.
- Retric 15y agoI have often been complemented on how well I code, but I don't think I stand up to many peoples moderate questioning all that well. I think this seems from looking for a clean solution to most problems vs. the perfect or most obvious solution. The vast majority of the time I avoid dealing with the minutia that many people feel is necessary. For example, I once had school project where we where supposed to implement some fairly simple math function in x86 assembler. My first question in class was what instruction set could we use? (x86 Pentium I) So we can use the floating point unit? (Yep) So while everyone else was implementing floating point functions by hand I simply used the built in floating point unit. I still remember handing in 4 pages of clean code and asked why this was a major project until people started asking for more time to fix their buggy 40+ page programs even though I had told several people what I thought was an easier solution. I even told people that I finished the thing in a few hours while watching TV but they forged ahead I guess thought the sunk cost fallacy or something. I mean sure the way you do arbitrary exponentiation is a little funky, but that's better than doing it by hand. Oven and over I see the same things. Last week someone was demoing his custom cashing solution created by hand and I was like A this does not fit our architecture and B why did you spend the time on this? Sure it's 'fun' but why bother? At the same time in interviews I have been asked minutia about the java object system etc, and all I can think of is if this matters your doing something horribly wrong.
- beagle3 15y ago> it's also easy to assume someone is incompetent just because they were working from different constraints and experiences than you, and the way they did things just isn't immediately apparent. I don't know if it's common, but I tend to judge competence by the bottom line: does it work? is it supportable? what was the cost of getting there? If it doesn't work, or does work but cannot be supported/modified, and cost a lot, it is a product of incompetence. Possibly the manager's, and not the tech guys. I've never heard anyone refer to djb as incompetent. Some people dislike his coding style, but I haven't heard any criticism about it that is not about style. And yet, he's working with different constraints and experiences than everyone else. And things are often not immediately apparent.
- mikeash 15y agoI thought people generally assumed that 80% of programmers are incompetent because 80% of programmers can't perform a simple task like e.g. Fizz Buzz without an enormous amount of time and assistance.
- headbiznatch 15y agoThis nicely draws together several sub-currents of developer thought pertaining to the "am I good at this?" current that all developers have. I found myself bouncing back forth on some of the ideals, waiting to hear how it all turned out for this developer... Basically the same feeling I get from a good short story.
- mey 15y agoI hate this coding style. It combines expert system knowledge with spooky action at a distance, which means in anyone else's hands it will break and delay development. Horizontal changes that aren't readily indicated in the code paths that are effected are confusing. (One of the many reasons monkey patching can be considered an anti-pattern) I guess the longer I've worked with other developers, I prefer readability first, test-ability second.
- kiba 15y agoI disagree, as long as they have a consistent system of naming, you can find everything you need. Most of my problem comes from not being able to figure out how to moneypatch it instead of doing it the lazy and brute force way.
- grncdr 15y agoI love this coding style, but I think you have a valid point. Python decorators are a nice compromise in that they allow you to have cleanly factored 'around' advice (which is strictly more powerful then 'before' and 'after') with the implementation defined elsewhere, but still requiring a visible marker at the location the advice is used. What would be ideal is a system that allowed you to define advice by monkey-patching but indicated what advice was applied to a method at the site of it's definition. As mentioned in this comment http://news.ycombinator.com/item?id=3246215 http://news.ycombinator.com/item?id=3246215, I think we are bumping into a limitation of what can be easily managed in "unstructured" (I would say "dead") text files.
- wladimir 15y agoI think we are bumping into a limitation of what can be easily managed in "unstructured" (I would say "dead") text files Yes, I think so too. There are many kinds of relations between entities that we cannot specify just because "dead" text files make them hard to express. Also, it makes that language "wars" focus on shallow concerns such as syntax, instead of semantics. It would be great to be able to put constraints and relations at the abstract syntax tree level, or abstract semantic graph level (cross references and such that are automatically updated if entities are moved/renamed). IDEs sort-of work around this by parsing the code and trying to bolt on features, by handing the "dead" text files intelligently. But all this work is lost as soon as you close the editor, so it does not allow the programmer to retain changes at this level. But I'd love to work on a project that examines different, new ways to represent source code. Which could aid static/dynamic code validation, documentation, code comprehension, refactoring, cross-cutting concerns, and would allow for rendering the source code in any style and syntax that the developer wants. Of course, this also would present challenges in the area of scm systems, because those are really focused on 'dead' text files. One idea I've had is to represent code as a graph, for example, in a graph database.
- ilaksh 15y agoTo me it looks like the increasing popularity of AOP and richer (or at least more functional) syntax in languages like Ruby, the relative ubiquity of property chaining and two-way data binding across different frameworks, is moving towards a more semantic type of software specification where structures and relationships are more important. I think that's pretty obviously a good thing since it reduces the cyclomatic complexity, coupling, amount of code, and increases reuse, although you can obviously take it a little far when you are actually using a mostly imperative paradigm. I think this is one of the types of things that is going to (eventually someday) finally wake people up to the limitations of unstructured (although colorful) ASCII source editing.
- buff-a 15y agoI think this is one of the types of things that is going to (eventually someday) finally wake people up to the limitations of unstructured (although colorful) ASCII source editing. This.
- 46Bit 15y agoHave to give the author (and Williams!) credit - that's a damned neat developing style to my mind. As always, running into it when a client is yelling down the phone would be painful, but it is interesting to consider. Certainly it's a strange approach with virtues, unlike much of the beyond-spaghetti you sometimes run into.
- sloafmaster 15y agoI wonder how much groveling he had to do to get his code to run... http://www.catb.org/~esr/intercal/stross.html http://www.catb.org/~esr/intercal/stross.html
- JonnieCache 15y agoThe best thing in that article: this link http://en.wikipedia.org/wiki/COMEFROM http://en.wikipedia.org/wiki/COMEFROM Not that the rest of it wasn't great. I think I like this Williams guy. If I could convince him to be a bit less dogmatic I reckon we'd get on.