Live data from Hacker News

Codefights

codefights.com

71–80 of 86 posts

Re: Codefights

#71
post #40
post #18

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.

Won't people with dyslexia and poor eyesight have trouble reading the code as well?

Re: Codefights

#72
post #69
post #68

This is like a hackathon project I had this year at HackRU.

I am still working on mine though, who made codefights? I would like to get in contact.

Sounds like Tiks is on the team that made it, commenting throughout.

Re: Codefights

#73

Interesting 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…

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

#77
post #73

Earlier 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".

If you don't have tests, it's probably true.

Re: Codefights

#78

Maybe 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)

Dude, if you win it, the aliens come and take you away to hack in space. They've got some bugs that, if not solved, and quickly, could mean the end of galactic civilization.

Re: Codefights

#79
post #58

Earlier 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…

I can definitely see both arguments. I think that they both have merits, and it's just a difference of opinion. :)

Re: Codefights

#80
post #40

Earlier 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?

Not with dyslexia, no. Because the problem lies with the syntax and semantics of the language and since programming languages are logic based rather than evolved from grunts with complex non-obvious rules, many people with learning difficulties (including myself) find it massively easier to parse code than English.

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.

Post reply on HN