DEV Community

Discussion on: Those silly mistakes we all make

Collapse
 
metalmikester profile image
Michel Renaud

I spent all day yesterday on a problem only to realize that it was an array index off by one (some code was in JavaScript, some in C#/Razor, and I didn't notice the C# part was generating the wrong numbers in the HTML). Of course, the code was trying to resolve something in the wrong set of data, leading to very weird results.

Expletives were used.