Live data from Hacker News

Show HN: PyBites Code Challenges

pybit.es

11–13 of 13 posts

Re: Show HN: PyBites Code Challenges

#11
post #6

I don't like the solution template they propose because it will likely stall users from creativly solving the problem. I also don't think this is an idomatic solution to the problem in a pythonic way. You're going from file->list->for loop when you can just go file->for loop.

@gravypod, that's actually a really good point mate! The last thing we want to do is limit creativity. Do you think it'd be more beneficial to just provide a blank file in the individual challenges rather than a template? This was our first real attempt at an open challenge. We were wondering how best to push it. The idea behind the template was to simplify it for the newer coders, almost like a hint. Definitely lovi…

You could have optionally a file like you have. That's perfect for beginners and how my university actually starts some homeworks. For other people it might be good to use output matching since you won't be able to make a unit test to handle every method of solving the problem.

Anyway I'll probably keep solving these, they are pretty fun. I'll just ignore the unit tests, it should be fine (famous last words).

Re: Show HN: PyBites Code Challenges

#12

Earlier quoted context omitted.

@gravypod, that's actually a really good point mate! The last thing we want to do is limit creativity. Do you think it'd be more beneficial to just provide a blank file in the individual challenges rather than a template? This was our first real attempt at an open challenge. We were wondering how best to push it. The idea behind the template was to simplify it for the newer coders, almost like a hint. Definitely lovi…

You could have optionally a file like you have. That's perfect for beginners and how my university actually starts some homeworks. For other people it might be good to use output matching since you won't be able to make a unit test to handle every method of solving the problem. Anyway I'll probably keep solving these, they are pretty fun. I'll just ignore the unit tests, it should be fine (famous last words).

Thanks, creating two templates for the next challenge, a beginner and advanced one.
Post reply on HN