Earlier quoted context omitted.
Yeap, great point. We currently sync the time with the server regularly to avoid cheating and given that the servers are under HN rush right now the delay is probably way more significant than it usually is. However, we are trying to figure out a better way to do this to make sure it doesn't start counting before the task loads.
Could you also start the timer after the player has acknowledged they've read the problem? At the moment you're unfairly disqualifying players who have reading difficulties (English isn't their first language, reading difficulties like dyslexia, or even those with partial eyesight so also read slower). Timing the person's ability to read English doesn't prove their ability to write Javascript et al.
Codefights
71–80 of 86 posts
Re: Codefights
#72Re: Codefights
#73Interesting idea. Several of the solutions I encountered are just... plain done wrong. They have a bug, sure, but the bug's actually there cause it was written in a really hacky way instead of the simplest way that would implement the function. I feel like it took me longer to find the bug in the hacky implementation than it would have to rewrite it 'right'. (For instance, the 'right' way to find "largest integer wit…
This reminds me of more than one job interview I've had. One included a puzzler that was "fix this horribly convoluted javascript code by adding exactly four characters." I'd consider myself a pretty good bug finder-and-fixer. As in, I've read multiple books on debugging methods and even given some talks on effective debugging. Nevertheless, these kinds of stumpers make me freeze up. I dunno exactly what puzzles like…
Re: Codefights
#74Re: Codefights
#75Please say which language the problem is in.
Also, many times it seems to hang.
Re: Codefights
#76This is a lot of fun. Please say which language the problem is in. Also, many times it seems to hang.
Re: Codefights
#77Earlier quoted context omitted.
This reminds me of more than one job interview I've had. One included a puzzler that was "fix this horribly convoluted javascript code by adding exactly four characters." I'd consider myself a pretty good bug finder-and-fixer. As in, I've read multiple books on debugging methods and even given some talks on effective debugging. Nevertheless, these kinds of stumpers make me freeze up. I dunno exactly what puzzles like…
I've actually seen this mentality on production code. "The smaller the diff the better. And The less we change the less likely we are to introduce new bugs!!1".
Re: Codefights
#78Maybe I'm just showing my low IQ, but it takes me 20 or 30 seconds just to understand some of the problems. Maybe introduce difficulty levels? Currently, I can't ever solve a problem if it takes me more than 1 minute - I'd like to be able to get to an answer, even if it's then worth zero points (or even goes into negative points?). I like the idea, but I can't play more than 2 or 3 rounds. Or maybe the game just isn'…
I tried, I'm not a coder, submitted 2 of 3 solutions but just got "game over" back. Would be nice to see a solution, even better with explanation. Definitely felt like I was being secretly profiled for a job. Also considered the possibility that if you're good they drop in some segments of code found automatically to have bugs and have you fix them for free ;0)
Re: Codefights
#79Earlier quoted context omitted.
Reading the comments is about understanding what the function is supposed to be doing. Reading the code is about actually finding the bug. I can see the argument for allowing one to understand the problem prior to hunting down the bug.
While I understand point people are making, I think understanding the problem is part of the debugging process, and should be a part of the puzzle and timer. I remember entering programming competitions in high school and college. The first 5 minutes, when everyone is ripping open the envelope of their problem packet and trying to find the easiest problems was always very intense, and fun! Sometimes you would read th…
Re: Codefights
#80Earlier quoted context omitted.
Could you also start the timer after the player has acknowledged they've read the problem? At the moment you're unfairly disqualifying players who have reading difficulties (English isn't their first language, reading difficulties like dyslexia, or even those with partial eyesight so also read slower). Timing the person's ability to read English doesn't prove their ability to write Javascript et al.
Won't people with dyslexia and poor eyesight have trouble reading the code as well?
To use myself as an example, it took me around 30 seconds just to read and understand the first challenge, yet I was able to solve it in around 10 seconds after that despite it being a Javascript language (which is probably the weakest of the dozen or so languages I code in). If I was to go head to head with someone, that 30 second read time would be a hell of a handicap.
As for poorer eyesight, yes you'd have a point there, but at least the playing field would be levelled out a little more.