Tag Info

Hot answers tagged

9

I agree with the comments that he was likely looking for HTML5 local storage, and may have expected you to have experience with it. Frankly, unless it was an integral requirement of the job and you stated you had experience with it, his expectation and reaction were unreasonable, in my opinion, for anyone with any amount of experience. Why? Because, three ...


6

The 'correct' answer - at least, the one they were looking for - was indeed HTML5 LocalStorage (an excellent link by Steven Burnap). And the interviewer was probably being...well, I believe the technical phrase is "a bit of a knob". This is basically arrived at by process of elimination, in that a cookie cannot be anywhere near big enough, sessions are ...


4

Along with use of semicolons in Javascript, whether to use vi or emacs in the Unix world and whether to use a single return statement in a function it's a controversy that often doesn't make sense to most production coders. If it makes sense to use it and the code remains clear, then I think you'll be fine. If not, then don't use it. Now knowing the ...


4

I once asked that question to a friend whom is currently employed at microsoft (at was at the time employed in the team working on Project Volta, now known as "Reactive Extensions"), because at university my lecturers used to say that "breaks are bad". He had a chuckle and said it was probably a lecturer whom never wrote industry code. Seeing as they use ...


4

This is my advice, and it has nothing to do with whether using break is good or bad: Code the way you code. They want to know how you code, not how you think they code. You may be thinking that it's best to outsmart the interviewer by telling them what they want to hear. In a worst case scenario they'll hire you, and then you'll look like an idiot because ...


3

Don't prepare. An interview, when done reasonably, isn't a test that you can cram for. Sure, you can go and memorize all the different ways that static is used in Java. Or go and try to remember if some language is call by value or call by reference. Or the specifics of MVC and what each layer does and what not. However, those are really the boring ...


2

This question is at risk of being a duplicate of Are `break` and `continue` bad programming practices? but I will try to give a more theoretical explanation. I forgot the reference but I would appreciate if someone can find it and I will be happy to include it here, or you can edit into my answer without asking if you have the reps. The theoretical ...



Only top voted, non community-wiki answers of a minimum length are eligible