TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The FizzBuzz that did not get me the job

550 点作者 Andugal4 个月前

86 条评论

constantcrying4 个月前
What a genuinely terrible interview. Seems like a great way to learn absolutely nothing about the candidate.<p>I would have walked out half way through. These types of questions are very telling of an organization which is extremely insecure in its own abilities.<p>For anyone who is a somewhat experienced programmer it is not hard to tell if someone else knows what he is talking about. You do not need to waste 45 minutes of someone&#x27;s time on whether they can correctly interpret and execute some joke requirements.
评论 #42821261 未加载
评论 #42822736 未加载
评论 #42822580 未加载
评论 #42821183 未加载
评论 #42821569 未加载
评论 #42821545 未加载
评论 #42823791 未加载
评论 #42842913 未加载
评论 #42821154 未加载
评论 #42822476 未加载
riffraff4 个月前
I loved the article and would probably have hired this person. But as a suggestion to them: if an interviewer says &quot;I don&#x27;t think that will be a good idea&quot; just take the hint that it won&#x27;t be what the expect and change it.<p>Also reminded me of my compiler class, we had some homework to write a pascal&#x2F;C transpiler and a friend of mine somehow managed to implement it via bison errors(?). The teacher was not happy but had to agree it worked and gave him full marks.
评论 #42820765 未加载
评论 #42821656 未加载
评论 #42820705 未加载
评论 #42821341 未加载
评论 #42820892 未加载
评论 #42820999 未加载
评论 #42823039 未加载
评论 #42837776 未加载
评论 #42820800 未加载
darkwater4 个月前
Since I&#x27;m in the process of seeking a job, I would like to share a somehow related experience in one technical interview, this time for a senior DevOps role. So, after the initial introductions and talking a bit about infra as code with Terraform, they interviewer asked a question:<p>&quot;What would you use if you cannot use Terraform for a project?&quot;<p>To which I initially answered, since it was a SENIOR position, with a warning about mixing Terraform and non-Terraform managed infra because it can lead to unforeseen issues, especially if there are less visible dependencies between the 2. I then mentioned anyway it could be done with Python + boto3, with AWS CLI + bash, with Pulumi, with CDK and then after some extra talk, also with Ansible.<p>They didn&#x27;t want a long answer with lessons learned in real prod, they wanted a oneliner answer: Ansible. They told me then to be shorter in next answers and proceeded to ask like 30 questions in a row involving bash, Linux, Terraform and Kubernetes knowledge, to which I answered all correctly (and with the one-liner answer).<p>The result: discarded, because I chaotically answered to that first question. Although I was somehow offended because I don&#x27;t like to be discarded, I think I dodged a bullet in this case.
评论 #42823087 未加载
评论 #42821143 未加载
评论 #42823921 未加载
评论 #42822589 未加载
评论 #42821450 未加载
评论 #42836283 未加载
guccihat4 个月前
I will go against the grain and say I do not consider OPs fizzbuzz solution to score particular well on readability or maintainability. And these were the only two stated core requirements.<p>The solution is clever and demonstrates solid knowledge of TS. However, in my experience getting too clever with the type system is not always a good idea for ordinary application code maintained by a team of average TS developers.
评论 #42821156 未加载
评论 #42829015 未加载
评论 #42822098 未加载
评论 #42822446 未加载
评论 #42821069 未加载
评论 #42821210 未加载
评论 #42828432 未加载
stevoski4 个月前
I predict that very soon you are going to be offered a remote job paying more than €50,000&#x2F;year.<p>That’s due to this excellent post about your excellent abilities and reasoning appearing on HN.<p>¡Mucha suerte!
评论 #42820736 未加载
skeeter20204 个月前
Did the interviewer caution about the candidate&#x27;s direction because they cared about the candidate and wanted to help, or because the solution was unique, unfamiliar and made them feel uncomfortable?<p>If you tightly script your interview, but then present it as open-ended and flexible: that&#x27;s on you.<p>My take if I was interviewing (and forced to use this approach): appreciate what a interesting interview this was, explicitly tell them &quot;wow! that&#x27;d didn&#x27;t go as we planned, but interesting approach!&quot;, maybe steer conversation to the pros&#x2F;cons of unique&#x2F;efficient solutions vs. less terse &#x2F; bog-standard approaches, have some prepared code to debug and refactor (instead of expecting the candidate to produce it).<p>I do a lot of interviews and most of them are so boring and forgettable. The best ones are unique and the candidates shows passion about &lt;anything&gt; in any demonstrable way.
评论 #42822327 未加载
sjducb4 个月前
I think you’re an A player. You were rejected by a B player that was looking to hire C players.<p>Apply to other companies. In this case it’s not you, it’s them.
评论 #42820744 未加载
z3t44 个月前
I think this might be a troll post, but here&#x27;s my comment anyway.<p>The reason why you didn&#x27;t get this job is because they filtered out themselves, it was not you that was bad, it was them thinking you where too smart for them. It took a lot of time for me to figure out this, that in a relation you want someone that are on the same level. I used to think that companies want to hire the smartest people... But no, they want to hire people that are like them.<p>Here&#x27;s my tip: Start filter out jobs instead of having them filter you out! There are many jobs, especially if you are willing to relocate.<p>Only apply for places that are as much into types and functional programming that you are! Or at least on your &quot;nerd&quot; level generally.<p>Do the company have a technical blog that writes about this stuff? Do the company have a technical speaker that speak about this stuff? Is anyone at the company writing technical articles about this stuff?<p>If you see a good article, reach out to the author and ask if they have any openings or can recommend a good company to work for.<p>Also if you are applying for a senior position, and you get to an interview, you should be talking to them as if they where 5 year olds. Even if they say they have 30 years of experience, explain stuff like if you where talking to a kid. For me it&#x27;s much easier to come up with a better algorithm then explaining to others why it&#x27;s better. It feels like explaining it to my dog.
评论 #42822553 未加载
评论 #42821685 未加载
camel-cdr4 个月前
I&#x27;ve got a hard time imagining they were going for a solution other than you adjusting the base.<p>That seems to be what all restrictions, especially #7, lead to and it is a concept everybody that understands how module works should understand.<p>&gt; 15. Hardcoding matrices is forbidden.<p>This was definitely meant to nudge you into the direction of adjusting the base.<p>The excessive number of rules was really weird, surely they could&#x27;ve just asked you to consider simpler a solution.<p>&gt; Asked the interviewer if it was OK to rewrite it using only types, she asked her partner and he told me it was but that he couldn’t see the point of it and advised me it would not be the right tool for the problem given that there would be many more rules<p>I suppose this might&#x27;ve been such a hint.
评论 #42820870 未加载
评论 #42823171 未加载
评论 #42821403 未加载
评论 #42823370 未加载
jcz_nz4 个月前
Very clever! Also, I’d steer absolutely clear of any company that does this.<p>This doesn’t assess anything meaningful, it’s an ego trip for the interviewer. Ugh.
评论 #42820809 未加载
评论 #42820923 未加载
评论 #42820769 未加载
评论 #42820807 未加载
mgaunard4 个月前
Normally, you learn during high school that when you take any exam, you should not reply with the best or smartest answer, but with the answer the teacher expects.<p>The same applies to interviews.
评论 #42821075 未加载
评论 #42820869 未加载
评论 #42820939 未加载
评论 #42823262 未加载
评论 #42844539 未加载
kej4 个月前
I&#x27;m curious what the full starting instructions were, and I concede that this might be a regional or cultural thing, but this entire article is missing that in the traditional children&#x27;s game and in most online FizzBuzz problems you have to output the original number for numbers that aren&#x27;t multiples of 3 or 5. That is, the input [1, 2, 3, 4, 5] should yield the output [1, 2, &quot;fizz&quot;, 4, &quot;buzz&quot;].<p>I&#x27;d be nervous about an applicant that came up with a very clever solution for the hard part of a problem but completely overlooked the simple part. (Again, not sure whether this is what happened here, but the change from how the problem is usually presented makes me wonder.)
andyjohnson04 个月前
I&#x27;ve been doing interviews and coding tests recently, but this beats anything I&#x27;ve seen in terms of awfulness. To me, the only thing worse than being tested on your ability to write clever code would be to end-up working in an organisation where everyone had been selected on their ability to write clever code.<p>I can&#x27;t make up my mind whether these interviewers are simply staggeringly unaware, or gatekeeping, or that they enjoy making people suffer. The latter because, for every candidate like the author, there will be multiple candidates for whom this kind of test leaves them frozen and anxious. I wish people involved in interviewing would think more about what they&#x27;re doing.
ch_1234 个月前
If this coding test was what they used to assess the quality of candidates, I would say that the author of this article dodged a very large bullet by not getting hired.
rokkamokka4 个月前
Interestingly, unlike many in this thread I would&#x27;ve avoided hiring this person based only on the code example.<p>This code is almost unreadable to me, certainly to most on my team. I would request changes it if it was a PR going into production (ignoring that the problem itself is made up). The code I would&#x27;ve liked to see would be easy to read, easy to follow, and would make me understand the underlying rules that made the code look like it is. This, I feel, achieves none of that.<p>But of course, everyone is different, and certainly many in this thread feel different. I just wanted to add my perspective :)
评论 #42820983 未加载
评论 #42821318 未加载
评论 #42821001 未加载
评论 #42820976 未加载
评论 #42821688 未加载
评论 #42821364 未加载
adhamsalama4 个月前
You need an enterprise FizzBuzz implementation to pass the interview.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;EnterpriseQualityCoding&#x2F;FizzBuzzEnterpriseEdition">https:&#x2F;&#x2F;github.com&#x2F;EnterpriseQualityCoding&#x2F;FizzBuzzEnterpris...</a>
评论 #42822415 未加载
rho44 个月前
The 30-lines rule annoyed me the most.<p>Don&#x27;t force &#x27;clever&#x27; solutions if you&#x27;re looking for readability, maintainability, changeability, debuggability etc.<p>On the other hand, our company doesn&#x27;t do any technical interviews at all, so there&#x27;s that.
评论 #42821740 未加载
forgotpwd164 个月前
Code looks simultaneously impressive, elegant, and monstrous. Are such snippets found in TS codebases? Would like to see how it compares to a more conventional approach. Still, cool code. (Even if weren&#x27;t hired.)
评论 #42822821 未加载
codingdave4 个月前
I wish I could have seen the code at each step instead of just, &quot;That was easy.&quot; Because he seems to have focused on the functionality of the code, not on the clear message that their goal is to see how robust, reliable, and readable you can make your code. I don&#x27;t think this interview was actually about the code, it was about long-term maintenance and risk avoidance.<p>So while I am not saying I love this interview method, and other comments are correct that weird tricks seem to be required... I still think the interview served its purpose. OP is not a good match for this company. No judgment implied there - this is the purpose of interviews: for both sides to see if they work well together. In this case, they do not.
评论 #42821202 未加载
评论 #42821347 未加载
sixothree4 个月前
I used to give fizz buzz with zero additions. Just write me a fizz buzz in c#. We didn’t actually want to take up a lot of the interviewee’s time. There were other tests, tests better than any programming tests. They had to take like one for SQL and one with nothing but logic puzzles, the latter of which is most indicative of whether a person will be competent at the job.<p>Fizz buzz just lets me see their coding style (single letter variables, lack of curly braces after ifs, comments, platform - console, web, service) and whether they’re willing to allow simple mistakes into their finished product. So many mistakes.<p>But it’s the least I can do to get some information out of a candidate who is already overburdened by the process.
评论 #42821408 未加载
trhway4 个月前
The author really looks like a junior, though unquestionably smart, dev. What he wrote isn&#x27;t enterprise. Enterprise is spaghetti - the first version would be simple number array and division, and once numbers became strings and math isn&#x27;t allowed, instead of division just run over the digit characters doing simple modulo 3 math in non-math way - as required - using say if&#x2F;case as matrixes aren&#x27;t allowed ( &quot;3456&quot; -&gt; 6 mod 3 is 0, 5 and 0 mod 3 is 2, 4 and 2 is 0, 3 and 0 is 0 -&gt; Fizz ). Met not digit -&gt; drop that number, move to the next. Met decimal dot -&gt; start modulo again (set remainder to 0), and if it is not a first dot in that number -&gt; drop the number, move to next. Basically any new rule is just an additional if&#x2F;case branch or a flag&#x2F;counter. Kind of self-documenting and easy to add and to remove&#x2F;modify.<p><pre><code> switch (ch) { case &#x27;1&#x27;: case &#x27;4&#x27;: case &#x27;7&#x27;: switch(rem) { case 0: rem = 1; break; case 1: rem = 2; break; ... break; case &#x27;2&#x27;: case &#x27;5&#x27;: ...</code></pre>
评论 #42844560 未加载
sd94 个月前
The interviewers would&#x27;ve been a lot happier if they&#x27;d just prescribed a language up front.
spamizbad4 个月前
Boy do I feel for that candidate. As a manager, while this is not the kind of question I&#x27;d ever ask, if I saw a candidate work through a problem like this I&#x27;d take it as a strong signal for a possible hire. Ghosting is a dick move period, but especially after a performance like that. I would like a follow-up discussion probing how open&#x2F;accepting they&#x27;d be to skilling-up in their weaker areas, how they go about asking for help, try to suss out if they&#x27;re prone to getting stuck in &quot;ruts&quot;. But if I didn&#x27;t see any red flags my vote would&#x27;ve been yes.
cvoss4 个月前
If the interviewers thought the hardcoded sum table was cheating, they surely should have said that demanding the inputs come in base 15 was also cheating. (I think base 15 is the best solution though. The instant I saw the rule that permitted the dev to choose the input representation, I knew this would be the way to go.)<p>But if the interviewers have to be persuaded that 0 is divisible by 3, I guess you can&#x27;t expect too much from them. Or anything from them.
leoff4 个月前
I&#x27;ve created a joke Python library, hoping that I would get asked to code it in an interview. No luck so far<p><a href="https:&#x2F;&#x2F;github.com&#x2F;leoffx&#x2F;fizz">https:&#x2F;&#x2F;github.com&#x2F;leoffx&#x2F;fizz</a>
评论 #42820891 未加载
评论 #42824178 未加载
评论 #42820886 未加载
iLoveOncall4 个月前
&gt; 1. Max of 30 lines. Lines taken by the input array do not count.<p>&gt; 2. Max width of 100 characters. Lines must break on natural breakpoints and not with the aim of optimizing for following the rules. Comments do not count toward this limit and would be positively valued if they are helpful.<p>This is the point at which I would say that I&#x27;ve heard enough and I&#x27;m not interested in working for their company, before I hang up the call.
BobbyTables24 个月前
Never considered using base-15 for FizzBuzz - that’s brilliant!<p>This may sound surprising, but interviews are equally about convincing the candidate to join the company as they are about convincing the company to hire the candidate. The former involves much more than just the number for compensation.<p>I think you dodged a bullet here.<p>Once found myself in a similar ridiculous situation (Google interview). Looking back, I have to wonder if they expected me to put my foot down and tell them why their scenario was getting ludicrous instead of continuing along. In the end, they determined I wasn’t even fit to be a sysadmin, much less a SRE, despite 10 years of relevant development experience with a wide technical background and numerous patents.
raverbashing4 个月前
I&#x27;m getting peeved by interviews that asks for tests (especially take home tests)<p>The main issue that I see is that interviewers get extra picky with all the minor details and they fail candidates due to minor issues that would get solved in a code review or just with a bit more time<p>And while fizzbuzz using strings only is cool, it seems it didn&#x27;t add anything to the predictive power of the interview
评论 #42822620 未加载
bhaney4 个月前
&gt; I don’t think it would be fair to name and shame them.<p>I disagree, but of course that&#x27;s entirely up to you.
评论 #42820878 未加载
评论 #42821781 未加载
评论 #42821045 未加载
chvid4 个月前
Asking a trivial question is a simple way to test a person’s basic skill but also more importantly his ability to communicate and work with others who may not have the same level of expertise.<p>If you use it as a chance to make a mockery of the interview process&#x2F;interviewer then perhaps that is not a good idea if you actually want the job.
评论 #42820933 未加载
评论 #42820828 未加载
评论 #42820885 未加载
jonathanlydall4 个月前
From a lot of the comments it feels like many people don’t seem to understand what the interviewers were looking for.<p>To be clear upfront, it wasn’t simply getting the right answer spat out by the candidate’s solution.<p>At one level they were trying to asses that you did in fact know how to write code, but since they’re assuming most of their candidates can write code, they were also checking to see what you would do when presented with evolving requirements and constraints.<p>If I were the interviewers (considering candidates are more stressed than they would normally be on a job), I wouldn’t necessarily require the candidates got all the requirements met as long as they were clearly on the right track and able to explain what they were doing.<p>Although the technical assessment was contrived (which is okay in an interview), it was absolutely not a “leet code” style problem, but instead super approachable and easy to understand. It doesn’t seem they were doing anything to “try catch people out” so as to disqualify them, but made it interesting enough that they could hopefully get a bit of insight into how the candidate tends to think and behave.<p>I do think the interviewers were silly to entertain the candidate’s approach for as long as they did, after it was clear that it was very impressive, even if highly impractical for the actual task at hand (which was to show the interviewers your typical day-to-day approach to coding tasks), they should have said very clearly to the candidate “your solution is very impressive and clever, but as we’re trying to gain insight on your approach to typical day-to-day coding, please change your approach such that we’re able to do so”. And they kind of did say something similar, which the candidate essentially ignored to… outsmart them?<p>If you ask me, the candidate is very skilled and intelligent, but at the same time not very smart in terms of understanding what other people actually “need”.<p>Most properly experienced software developers have learnt that often what customers “ask for” isn’t actually what they need, very often you give them what they asked for and when they actually see it in action, they realize it won’t actually do what’s needed and then iteration happens.<p>The candidate in this case gave the interviewers what they asked for, but not what the interviewers needed from them.<p>The hard parts of software development is almost always not about building something that technically works, but rather working out what’s actually needed.<p>My message to the candidate is, you seem very technically talented, but you don’t seem to understand very well about how the world and most people in it tend to “work”.
评论 #42821592 未加载
kevinventullo4 个月前
Am I crazy or is “conversion to base 15” very much a numeric method&#x2F;operation?<p>Like sure the API itself may have string input&#x2F;output, but under the hood there’s no way it’s not doing integer divisions and modulos.
评论 #42822618 未加载
ibloomt4 个月前
If you are still looking for a job -&gt; ping me
评论 #42821020 未加载
martimchaves4 个月前
Cool read! I loved it when you changed the numbers to base 15, I thought that was a beautiful solution.
评论 #42821062 未加载
moi23884 个月前
It’s not your technical skills.<p>I guarantee it’s due to you not living in the Netherlands and not being fluent in English.<p>No matter if the job offers says they accept remote people, in the Netherlands they really value face to face contact and good and open communication.
评论 #42826856 未加载
firesteelrain4 个月前
What if the interviewers were offended that this guy is smarter than them?<p>I once was given an interview question for a position at a company. Wanted me to create build scheduler in any language. It was a build engineer position. I started to do their at home exercise but ended up telling the recruiter I won’t do the exercise. It was pointless since Bamboo, Jenkins, or GitLab is what they should be using. Not some home grown build system.
Cthulhu_4 个月前
I&#x27;ve worked for companies in NL whose tech interview wasn&#x27;t nearly this involved but the wages offered were comparable or better; I seriously doubt any of the skills asked or demonstrated in the interview would actually be necessary for this job, not when it&#x27;s just node which in all likelihood means it&#x27;s mostly REST like APIs and some business logic. (I&#x27;m making some sweeping generalizations here)
moffkalast4 个月前
&gt; Changing the programming language after starting was also forbidden.<p>&gt; Max of 30 lines.<p>&gt; Max width of 100 characters.<p>Putting arbitrary rules where none are really required is actually quite informative. It shows how the company culture is set up and it&#x27;s probably gonna be lots of long days working on things that make no sense because some manager is power tripping over pointless arbitrary decisions. You must be truly desperate to come to them for work.
zogomoox4 个月前
From your description I think you accidentally applied for a position in an administrative sub-branch of Hell. This was the giveaway: &quot;I had a little discussion with the interviewer, who said 0 was not a multiple of 3 and 5&quot;.
crosser4 个月前
Small company in Netherlands? My guess: management realized that they don&#x27;t have money, and axed the position. They cannot say it openly, so had no choice but to ghost the interviewee. Which is of course still very frustrating!
lcnPylGDnU4H9OF4 个月前
It reminds me of <i>Typing the Technical Interview</i> (highly recommended if one is unfamiliar) but seemingly more likely to be non-fiction, given the difference in storytelling style. I wish the author luck in their search.<p><a href="https:&#x2F;&#x2F;aphyr.com&#x2F;posts&#x2F;342-typing-the-technical-interview" rel="nofollow">https:&#x2F;&#x2F;aphyr.com&#x2F;posts&#x2F;342-typing-the-technical-interview</a>
yosito4 个月前
This article describes everything that&#x27;s wrong with tech hiring these days. There is zero evidence that success on these arbitrary programming riddles have any correlation with success on the job, and yet we force candidates through a gauntlet of completely unrealistic brain teasers solving problems that they will literally never have to solve on the job.<p>I&#x27;ve recently completed half a dozen 2-4 hour coding challenges, gotten a perfect score according to the tests provided, and after a couple of weeks, gotten a boilerplate rejection email.<p>What&#x27;s the point?
评论 #42820858 未加载
评论 #42820934 未加载
评论 #42820893 未加载
hihiandrew4 个月前
Can imagine the interviewers squirming as they lose control to an OP candidate.
评论 #42820868 未加载
MattyRad4 个月前
There&#x27;s notable similarities between this article and this parody piece.<p><a href="https:&#x2F;&#x2F;www.richard-towers.com&#x2F;2023&#x2F;03&#x2F;11&#x2F;typescripting-the-technical-interview.html" rel="nofollow">https:&#x2F;&#x2F;www.richard-towers.com&#x2F;2023&#x2F;03&#x2F;11&#x2F;typescripting-the-...</a><p>I&#x27;m not drawing any conclusions, just pointing out the odd coincidence.<p>Discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35120084">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=35120084</a>
ben-schaaf4 个月前
What&#x27;s the plan for the candidate choosing C when they hit rule 7 and simultaneously have to use strings but the `char` type is banned? How are they supposed to loop through the input array without an increment operation? Pointers are basically also numerical types, are those banned as well?
评论 #42822914 未加载
评论 #42821701 未加载
评论 #42822708 未加载
KingOfCoders4 个月前
I love FizzBuzz as an interview question and then dive into tail recursion and compiler optimization. I learned a lot from candidates. I miss my interviewing days.
评论 #42820692 未加载
评论 #42820599 未加载
mariomash4 个月前
You have the coding and reasoning part perfect (but maybe not straightforward to understand) and you also know the things you are missing. - University degree: not necessary, get certifications or equivalent experience (upwork)? - English: this part is really important. find or hire a native speaker and start practicing. - AWS&#x2F;GCP&#x2F;anything else... get certifications or free courses.<p>My only complaint about your code: in a company you probably want them to approve your PRs, sometimes your peers will code worse than you, so better if the code is less stilted and maybe objectively “worse”, but easy to understand at a glance. but that part also depends on the interviewer.... better to ask first, it&#x27;s part of working in a team.<p>I&#x27;m sure you&#x27;ll soon be hired for 50k+.<p>Suerte.
评论 #42822489 未加载
ahoka4 个月前
I think the best “debugging” skill is to think about the problem first and choose a solution that makes the corner cases impossible. Dijkstra smiles on you!
teddyh4 个月前
The author seems to constantly conflate “not failing the interview” with “having the program produce correct output according to the rules”. But it was an inverview, not a logic puzzle.
rapidaneurism4 个月前
the point of this exercise was (1) to weed out people who could not code at all, (2) have people fail after 7, so that they could low ball them to below 50k as they &#x27;failed the test but they might deserve a chance&#x27;
vander_elst4 个月前
If what&#x27;s written on the blog is true, the interviewee knows their stuff technically and the interviewers were just bad: they wanted to check some boxes, feel good about themselves and be done. Nonetheless, by self admission the interviewee also didn&#x27;t speak English very well (&quot;This was my first interview for a foreign company and the first time in life I spoke english&quot;) and that could also be part of the problem or something we didn&#x27;t know is how the overall communication went, this might have played a part in the rejection. A candidate, but also an employee, might be very strong technically, but they should be able to clearly communicate their solutions and play well within a team, having a genius Anarchist might not always be the best. Anyway, from the post, I&#x27;d have moved forward with the candidate and if they were rejected they probably dodged a bullet. Best of luck with the next interviews!
theptip4 个月前
This sounds like a bad interview IMO. But also, don’t be this interviewee.<p>Solving a problem like this with the type system is setting off all kinds of “too clever for their own good” alarm bells. The goal of a coding interview is to showcase as concisely as possible that you know the craft of software engineering. Fizzbuzz should not be considered an IQ test.<p>The progressive requirements in the interview, while clunky, are getting at the reality of software development: there rarely exists a spec for what you are building. You need to be flexible to future requirements, and you need to write maintainable code that others on your team can understand.
yobbo4 个月前
The base conversion insight was great. With this insight, the solution could have been just as compact and much more readable without using types.<p>Sometimes it is possible to be too clever.
评论 #42827446 未加载
wbxp994 个月前
Your solution seemed very smart, and I have no doubt that you are an excellent programmer. However, I think you way over-complicated things by choosing to go the functional route. Here is my go in imperative Python. The base-15 trick is still needed, but the rest of it seems a lot easier to understand for someone reading the code later.<p><a href="https:&#x2F;&#x2F;pastebin.com&#x2F;trD9Ezf1" rel="nofollow">https:&#x2F;&#x2F;pastebin.com&#x2F;trD9Ezf1</a>
yreg4 个月前
OP, you are not the author, right? Do you know them? It seems like they might be interested in the comments here, unless the article is ancient.
shusaku4 个月前
Crazy answers to fizzbuzz is a great genre of fiction, but there is so much backstory here I’m half believing this really happened.
xkbarkar4 个月前
Interesting article and congrats on the original solutions, but wow!<p>Is there any other field where applicants are subjected to this?<p>Nepalese Ghhurkas perhaps ?<p>I once backed out of an interview when they sent me an 85 page manual on how to prepare for the interview with them. It was not even a FAANG company, just a small IT solution with mediocre benefits.
squiffsquiff4 个月前
To me, the rules given to you are pure gatekeeping. The fact that even after they had given successively more restrictive rules for what should be a trivial program they then verbally restricted you further confirms this. I would question whether this was actually an interview for a real job or not but in any case it&#x27;s not you it&#x27;s them.
divbzero4 个月前
&gt; <i>The algorithm must work at least for integers in the range 1-1000. We do not care for numbers outside that range.</i><p>In that case, a list of 1000 strings should work just fine. Fast lookup and can accommodate any new rule that comes in.
revskill4 个月前
&quot;Clever&quot; alone is not enough. It&#x27;s also about clarity and scalability. But it&#x27;s a requirement for start.
评论 #42822392 未加载
stonekyx4 个月前
Maybe I missed something, but if DATA is given as an array at runtime, is there a way to put it into the type system? And if the result is in type system, is there a way to print it out at runtime without looping through all permutations of the possible characters?<p>The solution was impressive and fascinating, regardless.
MrDresden4 个月前
Honestly, reading these coding golf rules gives off the sense that they were written by a either very inexperienced or insecure individual. These are not a good way to measure a candidates abilities.<p>As has already been mentioned in other comments, these are clearly red flags and grounds for not taking the application process further.
grujicd4 个月前
Some of these rules look like straight from Severance TV show. This would be a huge red flag for me.
joeguilmette4 个月前
Does anyone have the contact information of this person? Are they still looking for work?
rvz4 个月前
&gt; The position was for a Node.js backend developer.<p>Seeing this being used in the backend is really questionable. In fact, I then question the overall skillset of the team as to why they need to use Node.js or JS-related technologies in the backend.<p>As soon as I see any recruiter or company mentioning <i>any</i> usage of Node.js or JavaScript or TypeScript in the backend in the job description, I just laugh and delete the email and never reply back.<p>Introducing such unsound technologies into a production system responsible for maintaining a critical service is a recipe for complete chaos and disorder and tells me that your company is a joke that exists to prepare their developers for failure.
pavel_lishin4 个月前
&gt; <i>They didn’t want to tell me if I would be a contractor or an employee during the personal interview. They told me that they were just looking for the right person and that technicalities would be discussed later.</i><p>... that&#x27;s not a &quot;technicality&quot;, that&#x27;s a crucial distinction that&#x27;s as important as salary range or other benefits. This would be a huge red flag for me.
PinkSheep4 个月前
The fact the author hadn&#x27;t responded to multiple requests to contact here, makes me think too, it is a made up story.
horns4lyfe4 个月前
Why have we allowed interviewing in this industry to become such a humiliation ritual? It’s on its way to not even being financially worth it
bhk4 个月前
The interviewers were fans of Franz Kafka, I presume.
cranky908canuck4 个月前
Big smell on this is rules 9&#x2F;10&#x2F;11.<p>These say that you will have to play a lawyering game.<p>The OP didn&#x27;t have the time to immediately see that.
umvi4 个月前
Am I the only one that thinks TypeScript types are a terrible choice?<p>His solution is clever, but if that&#x27;s indicative of how he&#x27;s going to do engineering work at my company, I guess that means I can expect clever solutions for everything, which usually leads to esoteric, architect astronaut code bases that will be difficult for his non-clever colleagues to grok&#x2F;maintain.<p>&quot;Now the easy part! I just have to encode the numbers in base 15 and I could apply the 2 and 5 rule to 3 and 5!&quot; Encoding things in base 15 is too clever for me.<p>Back to the original statement I made: TS types are a terrible choice because TS types are not debuggable. If you get too fancy with them, you need a god in TypeScript to debug because you cannot set breakpoints inside of types and step through to see how generics and constraints propagate (as would be required by a mere mortal in order to debug).<p>&quot;Hey, there&#x27;s a bug in Joe&#x27;s fizzbuzz function, but he&#x27;s out on PTO, can you fix?&quot;<p>&quot;Sure, I&#x27;ll step through with a debugger real quick... Oh wait, it&#x27;s 100% typescript types, I can&#x27;t step through with a debugger. I took a look but it looks like it&#x27;s encoding numbers into base 15 for some reason... I don&#x27;t want to break anything further, let&#x27;s just wait for Joe to get back&quot;<p>&quot;Actually, can you just re-write it using normal conditional flow logic? We want more than just Joe to be able to touch the code.&quot;
评论 #42822355 未加载
评论 #42822345 未加载
fildevtronic4 个月前
I was expecting to read that this was some big time FAANGing company interview…but .no
tmtvl4 个月前
I know it&#x27;s bad form to complain about technical issues with the site rather than engaging with its content, but I can&#x27;t do the latter as I get redirected to a page telling me to activate javascript... even after activating js. Considering I expect the page itself to just be static text I&#x27;d appreciate if anyone could give a quick summary. Even the Wayback Machine can&#x27;t show the page, for crying out loud.
评论 #42822609 未加载
tanepiper4 个月前
Honestly, if you are still using FizzBuzz in 2025 as a hiring question, you don&#x27;t deserve the best developers. If you&#x27;re still demanding a university-level education for a full stack developer you&#x27;re going to be missing out on some great individual contributors.<p>I get that smaller companies can&#x27;t afford to mis-hire, but they are also not a FAANG - when I read this, I doubt I would have passed.
Cypher4 个月前
They were looking for someone who ignored the rules.
yujzgzc4 个月前
It&#x27;s not that the candidate is underqualified, it&#x27;s that they demonstrated more hacking skill than programming skill in that interview. I feel like the rules about program length were mistaken for coding golf rules?<p>A small company hiring a programmer isn&#x27;t looking for super clever type system hacks, they&#x27;re looking for someone to crank out code to solve problems fast. It&#x27;s not readable or efficient to use the type checking system as a general purpose computation system. If this is the code that your teammate wrote and now you have to debug it, good luck...<p>The candidate is certainly smarter than the average code monkey, just not &quot;housebroken&quot;. Once they&#x27;ve worked at a team where they mostly get to fix and improve long-gone coworkers&#x27; code all day is when they gain more of an understanding of what programming is about...
评论 #42821385 未加载
评论 #42841924 未加载
b2124 个月前
I think DHH was right all along. Typescript is cool if you use it alone but from my experience code like the one produced by the OP gets written by some ex-Java ninja and out of 1000 devs maybe 5 could fully comprehend what the code actually does. AI writes this kind of TS a lot. I don’t say TS is bad but most of the time I feel it’s like trying to kill a fly with a nuke. The worst part is I almost never had the issues TS tries to solve, after all adding prototypes to React took 1&#x2F;10th of the time than annoyances with TS take.<p>Great job OP, but my eyes bleed.
pockmarked194 个月前
If this is what people imagine when they hear of whiteboard interviews, no wonder they hate them! What this was and what a technical interview is supposed to be could not be any more different. This interview reminds me of some experiences I&#x27;ve had in my early career, and now I know better than to spend more than 5 minutes with this kind of nonsense.<p>The easiest tell is the adversarial nature of it, but the moment the &quot;max of 30 lines&quot; slide was revealed I&#x27;d be out. Scratch that - I&#x27;d be out when I saw there were slides. The point of a technical interview isn&#x27;t to repeatedly try and throw caltrops in front of someone, and a company that doesn&#x27;t know that is unlikely to be a great place to work.
joeguilmette4 个月前
are you still looking for work?
astura4 个月前
Dumb hazing exercise.<p>I would have walked out.
stefs4 个月前
looks like they failed this interview, not you.
randomcarbloke4 个月前
in 45 minutes for a node.js role?<p>FML.
joshstrange4 个月前
This is a horrible interview process. I’m not even going to comment on the salary other than that company must be quite full of themselves to offer that low and give a stupid technical test that proves nothing.<p>Hazing-style technical tests are just dumb and this absolutely qualifies. On top of that, I hate technical interviews that tell you that you can’t search the internet or use toolsets that you would use daily in your job. Why do companies waste everyone’s time on exercises that are not representative of the work&#x2F;working conditions?<p>When I ran a hiring round last year I spent a good chunk of time putting together a test&#x2F;process that tried to closely mirror the type of code&#x2F;problems you would be solving as an IC. I had almost every candidate (even the ones we passed on) commented on the process and how it was no-nonsense and letting them use whatever tool&#x2F;resource&#x2F;etc they wanted to solve it made it less stressful.<p>I even told people they were free to use LLM&#x2F;AIs. After competing the base test (which they did without us watching, it’s an easy base problem) we asked candidates to modify the code to handle one more use-case (very simple, nothing like the silly rules the OP was given) and it was very clear which people understood the code they&#x2F;the AI had written vs the ones that could prompt for a solution but didn’t understand it and thus failed to modify it to account for the new use-case (or struggled heavily for something that was a 1-3 line fix depending on how you implemented the original code).<p>I truly despise the hiring process from both sides. Both parties are asked to make life-altering decisions on very little data. We had a 4-step interview process:<p>* Introduction, ask basic questions, get to know you<p>* Technical test and problem solving test (the problem solving test was talking through a real issue we had run into, asking you to talk through possible ways to solve it. There is no &quot;right&quot; answer or rather there are multiple right answers)<p>* Debugging test, we produce code with bugs in it, you find&#x2F;fix all the bugs<p>* Final interview with owners of the company<p>Last time I talked about this in HN I had at least 1 person complain about how long the process was. Normally we&#x27;d get through it in 2 weeks or less with a candidate (depending on scheduling) and it was a total of about 5-6hr (depending on how long the tests took). I&#x27;m not a fan of long and drawn out interview processes, but this was the bare minimum process I could come up with that would test candidates in the areas that we cared about. Also, I wanted to give ourselves multiple chances to interact with the interviewee as some people came across great in the first few rounds, and by the later rounds issues had started to surface.<p>Is 6hr really a crazy amount of time to spend deciding if you want to commit to 40hrs a week to a company for potentially years of your life? Yes, yes, yes, I know you can leave after a week if you are unhappy and I know the company can let you go after a week if they are unhappy but it&#x27;s never that easy and switching jobs is hard&#x2F;painful&#x2F;stressful (as is firing someone). I am strong opposed to the &quot;just hire them and fire them quickly if it doesn&#x27;t work out&quot;, in fact I find it morally repugnant to play with people&#x27;s lives in that way. Also, I assume the people who suggest such a corse of action are not the ones that have to onboard new hires (a process that is very involved and takes a lot of time, for me at least).<p>This was an interesting post for how to solve FizzBuzz in an unorthodox and just &quot;cool&quot; way but this test tells you nothing. In fact, if a developer wrote code trying to be this clever, I would reject it at PR time. It&#x27;s cool for code-golfing but LoC is always a stupid measurement when it comes to maintainable code.<p>I wish the OP the best of luck finding a job that doesn&#x27;t make them jump through hoops like this again.
TZubiri4 个月前
Here&#x27;s my attempt, if OP can read this:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;TZubiri&#x2F;fizzbuzz2.0">https:&#x2F;&#x2F;github.com&#x2F;TZubiri&#x2F;fizzbuzz2.0</a><p>Apologies to the employers that I uploaded it to Github, but I was trying to keep my green squares thingy streak. I didn&#x27;t upload the requirements so that it&#x27;s harder to google&#x2F;scrape into an LLM.<p>My first note is that, the quality of the code was very high, evidently the code worked and it did so in a manner that introducing changes either required little or no effort. It is unfortunate that the interviewers were annoyed by this rather than satisfied, it reads as if the interview process was written by one person and the interview was executed by someone else and was trying to check some boxes and get to his lunch.<p>My second note is that, while not incorrect, the approach was a bit academic and certainly harder for others to read. The functional approach is not the most common and definitely not as easy to read as the procedural approach. The interviewer, potentially a coworker, would be reading this and thinking that he would have to read this as part of their job. I don&#x27;t see any upside to a functional approach here, perhaps in cases with more complexity if I were keen to this approach the pros and cons would be weighted more closely, but it feels overkill.<p>In a sense it reminds me of the satirical <a href="https:&#x2F;&#x2F;github.com&#x2F;EnterpriseQualityCoding&#x2F;FizzBuzzEnterpriseEdition">https:&#x2F;&#x2F;github.com&#x2F;EnterpriseQualityCoding&#x2F;FizzBuzzEnterpris...</a> . Where it takes the POV of someone overengineering the fizzbuzz with javalike GO4 patterns.<p>Third, yes, the requirements are very weird and don&#x27;t correlate very well with real problems, in some scenarios it forces the developer to do some weird things to the point where you are not sure how someone will evaluate you. If I were an employer I wouldn&#x27;t be able to distinguish between someone that does 10 ifs in a row because he doesn&#x27;t know how to use more expressive language constructs, or because he is trying to avoid an array or whatever fucky condition was placed.<p>Finally, requirement 7, to not use numerical literals and functions, indeed does require to reimplement some basic math, but it was not necessary to implement all of the math. You implemented base 10 addition. My solution just implemented signle digit base 3 addition with overflow. I think overimplementing is a common trap in programming, where you find a solution in 1 minute, and then spend 60 minutes implementing that solution, whereas if you spend some time looking for more efficient solutions, you might cut that implementation and debugging time in the long run.<p>I wouldn&#x27;t say that the approach was wrong, it certainly would have bode well with more academic types that value functional approaches, perhaps if they use functional languages like F#, haskell, Scala, Clojure, etc.. But a javascript shop just screams pragmatism and lack of love for the programming language, I don&#x27;t think you read the room here.<p>Oh and also, definitely make an AWS account and play with the free tier, just launch a vm (ec2). AWS was hugely influential in terms of design and pricing in the SaaS industry. Remember that AWS was the first big Cloud provider Google and Azure followed, so it&#x27;s not as important to make an account with the other big cloud providers.<p>Best of lucks! I&#x27;m sure you&#x27;ll find something.
评论 #42821366 未加载
haspok4 个月前
&gt; ...the first time in life I spoke english.<p>Well, there you go. Typescript can only get you so far. Unless you want to be a low-paid code monkey, time to learn natural languages.<p>ps. I have many Spanish colleagues, and I have a hard time understanding them in general (when they speak English). Only one other nation is worse, the French...
评论 #42820794 未加载
Dansvidania4 个月前
The interviewing company does seem like a dodged bullet at first glance, but:<p>- the requirements being weird might very well be modeling how weird things often get in reality. Rules are often not recorded and not repeated, and very often they seem arbitrary from the POV of the developers.<p>- the interviewers hinted that the direction was not what they were looking for<p>- a senior dev needs to apply his own common sense to understand what the truly appropriate solution is given the stated priorities (readability and maintainability were stated)<p>- not to mention the fact that if the interviewers don&#x27;t understand your code, things won&#x27;t go smoothly for you either way<p>The fact that they said, paraphrasing &quot;..pick any esoteric language..&quot; might investigate whether, given technical freedom (EG: to pick your own stack) you will build an incomprehensible codebase that will be hard for the company to deal with in the future<p>I think the author is indeed very clever and I learned a few things from reading this write up (thanks for sharing!) but I think the interviewers were right not be impressed.<p>If I were you, I&#x27;d try to dumb it down for your colleagues.
评论 #42842289 未加载
评论 #42821708 未加载
评论 #42828460 未加载