https://aphyr.com/posts/340-reversing-the-technical-interview
#lisp
Next one
https://aphyr.com/posts/341-hexing-the-technical-interview
> The color has begun to drain from Timโs face. Perhaps winter has come, and his coat is changing.
> (def racer
> (->> [0xca 0xfe 0xba 0xbe
> โWhat are these?โ
> โMagic numbers.โ You are, after all, a witch. โEvery class begins with a babe, in a cafe.โ
No shit, one of my few favorite things about Java is the magic number for a class file.
#java
Just remembered an interview I went to. I was mainly Obj-C, willing to do some Python, Java, sysadmin, etc. These are Java drones.
Whiteboard problem is some dispatch thing (not FizzBuzz but same class of problem). I first do it in Python, and they don't get it, so I do some Java reflection to get methods in an array for dispatch. ;-)
Later there's two pairing sessions. One's fine, he's loose and friendly. The other guy's a stiff, gets upset that I use untyped Hashtable, not generics.
#java
@mtae Right, need to use small words.
Pros and sarcastic ex-Java people (self) will make big stacks of factories, reflection, and objects-reifying-code, or even do JVM bytecode hacking, as a joke or comment, or to show off.
Drones don't use anything more complex than basic classes and accessors, they hit code-complete in Eclipse or copy-paste from stackunderflow.
If you don't understand why reflection is useful but probably not what the drones wanted to see, yeah, you don't get it.
@mdhughes @mtae IMHO, Honoring language-specific idioms is a fun intellectual exercise (e.g., "How would the *language designer* solve this problem?"), improves readability, reduces technical debt, and significantly wards off bite-marks in the backside. ๐
When the idioms become boring, I know it's time to pick up a new language or learn a new aspect of a known language.
@_slotek_ @mtae The idioms of Java are bullshit. It started as a small, trivial subset of C with some ideas from Objective-C, for TV set-top devices and remotes. Java 1.1 and earlier was fun.
Then enterprise got hold of it, and it turned into hell, the drones and FactoryFactoryFactory types took over. There's no reason to respect those people or their "work".
Adding generics made it uglier. It doesn't affect "technical debt" at all. Someone tries to bite my ass, they're going in a dumpster.