I think I'm going crazy, someone calms me.
public class MyFile { public static byte[] ReadBinaryFile(string fileName) { return File.ReadAllBytes(fileName); } public static void WriteBinaryFile(string fileName, byte[] fileContents) { File.WriteAllBytes(fileName, fileContents); } }
People continue to add code, as shown above, to our code base, of course, this is wrong and terrible, and I make the world a favor by deleting it and replacing all (or both in this case ...) links to it with internal code.
Is there any real justification for this kind of thing? Can I skip the big picture? We are pretty YAGNI -centric on our team, and it seems to be flying in the face of this. I could understand if this was the beginning of something more, however this code did not sleep for many months until I stumbled on it today. The more I search, the more I find.
gingerbreadboy
source share