CodeSOD: An Objectionable Dictionary

This post was originally published on this site

The Daily WTF

You may remember Karl from a few months back. Karl’s organization is notorious for crunch, and it results in some awful sins when you’re trying to cram 50 hours of work into the last five hours before launch.

Karl didn’t write this particular bit, but dreads the day when he has to look at it or change what it does.

private void InitializeDictionaries() { filePaths = new HashSet<string>(); preDecryptionFiles = new Dictionary<string, string>(); trailerInfo = new Dictionary<string, string[]>(); fileHeaders = new Dictionary<bool, Dictionary<string, string>>() { { true, new Dictionary<string, string>() }, { false, new Dictionary<string, string>() } }; separatedFiles = new Dictionary<bool, Dictionary<bool, Dictionary<string, List<string>>>> { { true, new Dictionary<bool, Dictionary<string, List<string>>> { { true, new Dictionary<string, List<string>>() }, { false, new Dictionary<string, List<string>>() } } }, { false, new Dictionary<bool, Dictionary<string, List<string>>> { { true, new Dictionary<string, List<string>>() }, { false, new Dictionary<string, List<string>>() } } } }; }

To read the full article click on the 'post' link at the top.