4 ms·
Reversing the technical interview (2017)
- btilly 6y agoThere is another one that is new and not linked into the series. https://aphyr.com/posts/353-rewriting-the-technical-interview https://aphyr.com/posts/353-rewriting-the-technical-intervie...
- RobertKerans 6y agoAhh. Hexing the Technical Interview is still my favourite, but that was brilliant.
- CGamesPlay 6y agoI absolutely loved the introduction on this one, and the realization that parenthesis were simply too far too the right in C-likes was mind blowing for me.
- nijaru 6y agoThere’s three great reads like this. previous: https://news.ycombinator.com/item?id=13886626 https://news.ycombinator.com/item?id=13886626
- paultopia 6y agoAnd I really wish I were good enough at, like, lambda calculus and category theory and whatever other black magic is in there to understand them!
- madhadron 6y agoIt's...not exactly lambda calculus or category theory. It's a dramatic flattening of the layers we think of as natural in our programming world. Of course we write source code describing a class that is compiled into an object file which is loaded into a JVM. So just write the bytes that makes the JVM have a class directly into its memory. And on the other side, that anything obeying the same mathematical axioms can be treated as the same, be damned how it's implemented. Those two taken together can make it seem like witchcraft until you realize that all the conventions of our craft are just that: conventions.
- saagarjha 6y agoNot for this one.
- fizixer 6y agoedit: Interesting post from a humor point of view (not my cup of tea TBH).
- btilly 6y agoJust in case you didn't know, Aphyr is responsible for https://aphyr.com/tags/jepsen https://aphyr.com/tags/jepsen. You know, the testing tool that managed to show that pretty much every distributed system out there didn't live up to its claims about how it tolerated a variety of failure conditions. If you're not able to appreciate him, that's your problem. Not his.
- wellpast 6y agoHmm... Methinks your missing sense of humor would disqualify you from the same 99%.
- RobertKerans 6y agoOh come on "So I was a holding an interview and my interviewee was a witch who used Clojure to write a low level implementation of a list rather than using the one in the stdlib. And at the end of the interview she just flew off out of the window on her broomstick! Rude! Apart from anything else, when she was concentrating hard, black snow started appearing in the room, I just don't think that would work in the office. Hard no from me!"
- konjin 6y agoProbably, but the 1% of places would be amazing and worth missing out on the other 99%.
- WhaleBasketball 6y agoSorry
- lacrimacida 6y agoAbsolutely beautiful writing!!
- howlgarnish 6y agoThe next post is even more mindbending: https://aphyr.com/posts/341-hexing-the-technical-interview https://aphyr.com/posts/341-hexing-the-technical-interview
- ladberg 6y agoMy favorite line so far (still reading it): “If it were meant to be illegal,” you remind him sagely, “Sun Microsystems would have made it unrepresentable.”
- ben509 6y agoThe way I think of that trick is it's simply translating struct.field to struct(field). You can also use it to represent sum types and then pattern match on them. For instance, Python doesn't have a case statement. We could define an Either type as: def Left(value): return lambda Left, Right: Left(value) def Right(value): return lambda Left, Right: Right(value) Left("failed, so sad")(Left=complain, Right=fh.write) Right(b"great data")(Left=complain, Right=fh.write) You can combine the techniques to get a list type without relying on nil: def Cons(head, tail): cons = lambda field: {"head": head, "tail": tail}[field] return lambda Cons, Empty: Cons(cons) def Empty(): return lambda Cons, Empty: Empty() my_list = Cons('a', Cons('b', Cons('c', Empty()))) def foldr(func, zero, list): return list( Empty=lambda: zero, Cons=lambda cons: func(cons('head'), foldr(func, zero, cons('tail'))) )
- dmoy 6y agoThe more I program professionally, the less patience I have for clever code in a work setting. I used to love it, but after the nth time it caused me real, physical pain while oncall, I'm no longer a fan. Clever code doesn't help me in a hundred million++ line repo of code maintained by thousands of people. It is actively detrimental. Still fun to pick apart for leisure.
- saagarjha 6y agoOr to write about.
- bryanrasmussen 6y agocleverness is closely related to wit, and brevity is the soul of wit. A sufficient amount of cleverness often allows you to say in a few lines what would otherwise be said in 100s of lines - for example switch statements or numerous ifs going through each possibility with not much difference in how each branching is handled. I find the verbose listing of each possibility gives me physical pain, so I support cleverness in such situations.
- konjin 6y agoUntil the spec changes. The way I get around this is having a dsl no one but me sees that compiles to $lang of choice that everyone does. Once it produced 20k lines of code in an afternoon. I didn't have to do any work for the next month and still was the top performer by commits.
- chrisweekly 6y agoThat definition of "top performer" bears scrutiny. Code is nearly always a liability, not an asset. 20k LoC, generated by a secret tool, sounds more like grounds for firing than promotion. Or were you making a joke?
- konjin 6y agoHave you worked at big brain dead corp inc?
- ErikAugust 6y agoThe interviewer asked the right question at the end.
- dgktfghk 6y agoIve worked for many different companies for the last 20 years. I started as a Jr front end dev / designer, transitioned to a backend team, was doing "fullstack" before it was a real term, eventually was considered a sr engineer, then lead and now I run the tech for an early stage start up (vp of eng, but my title is irrelevant because Im actually also filling the roles of CTO and lead eng). I despise whiteboard interviews and the hiring process in general and vowed to myself that I would do my own thing if ever given the chance. I am fully in charge of the hiring process here. What I look for are good personalities, a passion for technology, and the ability to read code in the stack we use. I show the candidate a script that we run in prod which has all comments removed and ask them to walk me through it. Massive bonus points if the candidate is active on the internet (streams code sessions on twitch, contributes to open source projects, has side projects etc). No brain teasers, traditional whiteboard challeneges, live coding sessions or take home projects.
- valand 6y agoDid you by any chance post on the wrong thread?