4 ms·
I haven't had a chance to dig into the analysis part of the code yet, but here's an amusing variable assignment that jumped out at me in `FST.Common/ComparisonD
by foob 9y ago
I haven't had a chance to dig into the analysis part of the code yet, but here's an amusing variable assignment that jumped out at me in `FST.Common/ComparisonData.cs`.
compareMethodIDSerializationBackupDoNotMessWithThisVariableBecauseItsAnUglyHackAroundACrappyLimitiationOfTheFCLsCrappyXMLSerializer = comparisonID;
- thirstysusrando 9y agoLink for those interested: https://github.com/propublica/nyc-dna-software/blob/master/FST.Common/ComparisonData.cs https://github.com/propublica/nyc-dna-software/blob/master/F...
- slackingoff2017 9y agoI love this type of thing in C# because it's such a terse and well designed language. It's easy to make something stand out. A cult favorite of devs at my previous employer was to (ab)use the power of LINQ to try to create the longest single line methods possible. I held the unofficial record for a while with a LINQ statement over 1200 chars. Innocent enough since resharper can unwrap them into sane code but lots of fun
- sixothree 9y agoI love/hate it when someone writes a linq statement and ends with "look, one line".