Ugh, I hate to start an article straight with a piece of code. But, really, this is the best way to show you the problem and then a clear solution for it. So, please take a look at this controller action and see if you can spot the problem with it

This is a question I’ve been asked during the interview for a job offer I’d like to apply for. It is a highly subjective list of certain ‘rules to follow’ when writing code and making decisions during the app development