Friday, September 9, 2016

suggestions from a coworker on good code

  • Look at how a feature will behave at the database before writing any code. Figure out the steps needed at the database considering the existing schema.
  • LINQ (Find, First, FirstOrDefault, Where) is for finding something and foreach for doctoring up records. Don't go finding with foreach.
  • Try to write your own test cases.

Addendum 9/10/2016: Find isn't really LINQ-related, strictly-speaking.

No comments:

Post a Comment