Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have them refactor a 200 line program and then discuss with them why they did what they did.

Or given the same codebase have them add a feature and some form of testing.

There are many ways to simulate in a highly compressed manner the typical tasks of a programmer without resorting to algorithmic puzzles.



As a side note, these kinds of tasks are also pretty common in at my university in the practical computer science courses.

Often, you aren't supposed to write a big thing at once, but you are given some partially working code, with some incomplete set of test cases. You then have to finish the implementation, and you are also encouraged to add more test cases.

I found it especially interesting that the test cases were incomplete on purpose - you are supposed to understand and solve the given task, not just to blindly write some code that happens to pass a given set of tests.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: