Hacker News new | ask | show | jobs
by swyx 1287 days ago
just chiming in for others that i've had a job specifically waive a coding test because they saw me livecode in front of 2000 people and my fave amazon interview story was a guy that walked in with his laptop open to my blog saying "this is just a formality i've read your work" lol

TLDR why leetcode in private when you can work in public*

(*yes yes, not everyone can work in public, but i bet a fair amount of you can but havent given it a real shot)

2 comments

Last time I had a coding test during a job interview, I was left alone for an hour with a laptop that was screen-shared with a number of interviewers that was unknown to me. It felt a little like live coding in public but without any audible feedback. That might stress some people out I’d guess, but it felt chill to me. I did my usual thing, even used StackOverflow for some quick syntax & library tips, and finished the program (a Tetris-like game with an AI player, in Python). Got the job. It was pretty fun TBH, even with a lot of experience, I’d prefer the live-coding interview over talking through database schemas or whatever.
That's quite a bit for an interview. How long did it take? Did they gave you code to plug a piece into? Or did you have to write the whole game?
It was a whole game from scratch in the programming language of my choice. They only specified the rules. It was keyboard and console only, btw, no graphics or controllers or sound. I took the whole hour and was mostly done when I ran out of time. I forgot to write the score keeping before the interviewer came back. The AI player was “extra credit” and I finished that, so it helped excuse my scoring oversight.

It wasn’t that much or that bad, really. The setup was pretty simple, and quite doable for junior devs IMO (though full disclosure I had just left a position as a lead game programmer, so for me specifically it would have looked a little bad if I didn’t smash this particular interview question). It also helped that the problem was open-ended with extra credit features. I learned later when giving the interview myself that most people never finished the basic game, the majority never tried to write an AI player, and the interviewers were quite forgiving with their ranking & scoring - it was adaptive to the candidates. The coding part of the interview was just trying to be a bit fun and not just be pure dumb LeetCode problems. IMO it worked, I totally enjoyed the interview. The rest of the 4 hour interview included some whiteboard questions (on DB schemas, which I flubbed pretty hard) and also a lot of just talking about experiences and goals.

Yea that would do it for me haha. My bread and butter is embedded C! Technically it's C++ but we try to ease off the ridiculous C++isms because this stuff needs to be readable to the person that was waken up with a phone call at 3am and needs to explain some random behavior lol.

I've never done anything spectacularly fancy with CLI terminals. I could rig up a UI with c++ and qt, or python and tkinter.. but it's been a while. Longer ago, I used to do objc but that was forever ago!

So yea, I'd die on this one hahaha.

I should try it sometime. I love tetris!

Oh you could do what I’m talking about in C, no problem. By console and keyboard only, what I mean is that this is a game done in the shell with a REPL using printf() and scanf(), it was not graphical or anything. The programming problems weren’t about game programming, it was just design a little data structure to hold the board state, implement valid move checking, detect win/lose states. Really simple stuff, I guarantee it wouldn’t be hard for you.

Re: ridiculous C++isms and embedded C, I’ve been in the same spot for my entire career. After learning C++ in college, I joined a CG film company that had banned C++ (dumb story) so I learned how to write object oriented C. Working in console games after that, we weren’t allowed to use any built-in memory management or exceptions or a current compiler, so very restricted C++. (And the worst bug I ever fixed was when someone tried to get clever with their C++ copy constructor.) These days I use CUDA, which is also technically C++ but basically C.

So your suggestion is to just become a content developer and start marketing yourself online? Getting your work in front of others and getting the amount of reach that you have is also a lot of luck. Not everyone can get the same amount of reach as you have - I've seen hundreds of developers shouting out into the void without any recognition.
> Getting your work in front of others and getting the amount of reach that you have is also a lot of luck

I think this is dismissive of their talent, relative to other people who might try doing the same.

To be fair, swyx was also being dismissive of their talent "Just work publicly and you don't have to prove your coding skills!", which of course assumes your talent will be evident to anyone glancing at your public work. In my opinion, making incredibly complex work look effortless, and therefore easy to follow, requires exceptional talent.

> I think this is dismissive of their talent, relative to other people who might try doing the same.

I believe those who are popular content creators are also better at marketing and sales. Getting their work recognized means that their marketing talent is good and not necessarily their programming skill relative to other people who are doing the same.

When looking from that perspective - are you optimizing for hiring people with good programming skills or those with good marketing skill?

You don't need to become a Twitch streamer or anything, I expect the main developer of a significant open source library would have a similar advantage in adjacent industries.

You can take a traditional career path, or you can carve out a niche somewhere.