Hacker News new | ask | show | jobs
by patrickdavey 1298 days ago
That is a neat enumeration, but, the question did ask for classes and inheritance which this definitely isn't.

Would you really just ignore the requirements and give the simplest starter as a way to start a conversation?

2 comments

It’s important to be solving an actual problem. Modelling a deck of cards is probably not the problem — what are we actually solving? Building a new hearts.exe? Rendering a custom deck for a laser cutter? Tracking casino fraud?

Those would be better questions which could start off with a discussion about the general solution, followed by a quick “how would you model the cards part of this?” component.

When applying for a senior role, yes. Part of a senior developer’s job is to push back against “requirements” that don’t further business needs; in this case, an accurate, maintainable, and useful model of a deck of cards.