Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
code_rules_for_gamedev [2015/07/05 19:19]
chris
code_rules_for_gamedev [2015/07/05 19:19] (current)
chris
Line 23: Line 23:
  
 ### Avoid LINQ ### Avoid LINQ
-There might be some cases where LINQ is fine, but in general, avoid it.  Under the hood, LINQ uses the same mechanisms as `foreach`, so it can be slow.  It's also very easy to get carried away with LINQ and create some bloated code that's very /very/ slow.+There might be some cases where LINQ is fine, but in general, avoid it.  Under the hood, LINQ uses the same mechanisms as `foreach`, so it can be slow.  It's also very easy to get carried away with LINQ and create some bloated code that's very //very// slow.