Earlier quoted context omitted.
Yes it seems like it. Gotta find VIM script to catch those
listchars works pretty well. I have this in my .vimrc: set list set listchars=tab:>=,trail:~,extends:>,precedes: Edit: you can also configure it to use one type of indentation. I use "set expandtab" so that my files are always indented with spaces.
Ask HN: What did I do so wrong in this coding interview
41–50 of 98 posts
Re: Ask HN: What did I do so wrong in this coding interview
#42I'm trying to figure out how much effort went into this. I ran cloc, and here's what I got: -------------------------------------------------------------------------------- Language files blank comment code -------------------------------------------------------------------------------- Javascript 1803 66480 85484 423029 HTML 57 847 79 20374 SASS 19 21 8 12114 C++ 38 1011 763 7700 C/C++ Header 45 816 713 5165 CSS 16…
Re: Ask HN: What did I do so wrong in this coding interview
#43Disclaimer: I'm posting this under a new dummy account because I don't want this to be seen as feedback from my company. We didn't interview you, but I'm a senior manager and I want to help w/o implicitly dragging my team into it. (The key word is also "help"; I'm not trying to belittle you, just give my honest assessment of this project, quick as it was to create.) tl;dr: I agree with the assessment that this doesn'…
So using abstraction is not something a senior does ? It seems to me like the contrary. The more experience I have the more I like to abstract things instead of making them from scratch. But even so it seems a bit heavy of judgement to disqualify me with such strong word over this choice.
Re: Ask HN: What did I do so wrong in this coding interview
#44[deleted]
Re: Ask HN: What did I do so wrong in this coding interview
#45It may have been a red flag if they asked you for a simple memory game with a tiny back end and you gave them a Laravel install with a Node.js dependency that you admittedly "cut corners" on and left "a couple of minor bugs" in. I don't know exactly what they were expecting from you if anything in terms of efficiency or scale but there is a chance this looks like a massive, bloated chunk of unnecessary dependencies a…
I can't say I'd pass the interview but my idea of how this would work would be:
- simple instal.php script that would use PHP's PDO to create a DB and a table with necessary info - simple api.php script that would take API calls in order to save scores and that's it. You could easily do this in Node as well thus keeping everything javascript - javascript front-end with no PHP involved there. An actual index.html file with everything in it, referencing one (non-minimized) JS file and whatever images and CSS.
This is hindsight 20/20 obviously especially since we all want to show EVERYTHING we know during an interview and I'm guilty of doing things like this as well. I'm guilty of doing the opposite too, keeping things too "prototype-y" and messy.
Re: Ask HN: What did I do so wrong in this coding interview
#46Earlier quoted context omitted.
With all due respect, it's a memory game, not a large-scale web application. I don't understand why "frameworks" are the answer to everything these days. There's nothing wrong with interacting directly with the DOM, especially for something like this.
Perhaps framework was the wrong choice of word. I wouldn't call jQuery a framework, but it certainly would have helped. A library like Rivets.js or similar would have been great to see as well, since at that point there'd be (close to?) 0 manual DOM manipulation required (thus obviating the need for jQuery), and he could still keep the page weight easily under 10k.
Re: Ask HN: What did I do so wrong in this coding interview
#47Eh. These things are highly subjective. Seems competent overall: I'm not wowed, but these types of assignments are, as you surmised, about establishing baseline competency. Some thoughts for the future: 1) PHP was a bad choice; some people have a burning, irrational hatred for it, and it leads them to judge your work in the harshest light instead of an evaluative one. 2) Speaking of burning irrational hatreds: PLEASE…
These things are highly subjective.
Yes.
leads them to judge your work in the harshest light instead of an evaluative one
Should any professionals have to present apologetics for others in his procession doing such a thing? We are all human beings, but shouldn't we be trying not to be this quickly and arbitrarily judgemental?
Speaking of burning irrational hatreds:
Somehow the social expectations of the programming profession are that we can get away with acting these out.
PLEASE DO NOT MIX TABS AND SPACES. Drives me nuts--I would have dinged you for that.
Yes. This can be problematic. The fact that it is still problematic after all these decades is a good indicator of how backwards we are as a profession.
If you look at the various analyses answering the op as detection of signalling -- well, it's all about signalling. I'm not so sure this is too much more substantive than an interview where you need to have the right school name on the right degree and a properly pressed suit.
Re: Ask HN: What did I do so wrong in this coding interview
#48Doing it like this makes me wonder if their real motive is something else. What are they really trying to determine with this sort of test at this time? They do it at a time where there isn't much opportunity to discuss the result, so what's the real goal? Whether, without prompting, you used their favorite language/framework/database and happen to have the same coding style as them? Seems pretty silly to me.
Did you get any possible feeling that maybe they have some hidden or political reason for not wanting to hire you, and threw this test at you as a way to create an excuse for why they won't hire you? That would explain why they gave it after the interviews and don't seem to be interested in discussing why it doesn't meet their standards.
Re: Ask HN: What did I do so wrong in this coding interview
#49Disclaimer: I'm posting this under a new dummy account because I don't want this to be seen as feedback from my company. We didn't interview you, but I'm a senior manager and I want to help w/o implicitly dragging my team into it. (The key word is also "help"; I'm not trying to belittle you, just give my honest assessment of this project, quick as it was to create.) tl;dr: I agree with the assessment that this doesn'…
Re: Ask HN: What did I do so wrong in this coding interview
#50Disclaimer: I'm posting this under a new dummy account because I don't want this to be seen as feedback from my company. We didn't interview you, but I'm a senior manager and I want to help w/o implicitly dragging my team into it. (The key word is also "help"; I'm not trying to belittle you, just give my honest assessment of this project, quick as it was to create.) tl;dr: I agree with the assessment that this doesn'…
What is the "right" amount of time/effort to put into a "job-application" project like this?