Backend
Types First
Have you ever come across a piece of code wrapped in seemingly random validation conditions? Consider this example: public void SaveNewCustomer(string firstName, string lastName, string email) { if (string.IsNullOrWhiteSpace(lastName)) { throw new ArgumentException("Last name is required"); } if (string.IsNullOrWhiteSpace(email)) { throw new ArgumentException("Invalid email"); } var customer = new