Here is something I see all the time. Maybe done by lazy programmers. This is real in production code. What is wrong with this type design and why? public class Metadata { public int videoId = 0; public string Filename = string.Empty; public long Filesize = 0; public double Speed = 0; public long Time … Continue reading What’s Wrong With This Code: Type Design
Tag: What’s Wrong With This Code
What’s Wrong With This Code: Class Design
Here is the second post in this series. Proper class/ type design is very important for your app for many reasons. Unfortunately I see issues all the time! Even with supposed senior programmers (like in the example below). So lets see if you can spot all the issues with this class below... there are multiple … Continue reading What’s Wrong With This Code: Class Design
What’s Wrong With This Code: Exceptions
This is my first post on a series of posts that are going to be devoted to seeing if you can spot the problem with this code. All code is REAL code in production or close to going live. Here is the first one: Not properly handling Exceptions is .NET is very important part of … Continue reading What’s Wrong With This Code: Exceptions
