507
CompareBooleans (sh.itjust.works)
submitted 8 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 21 points 8 months ago* (last edited 8 months ago)
var CompareBooleans = new ComparatorFactory().BooleanComparator(new BooleanComparisonByEqualityPolicy());
if (CompareBooleans(a, b) == true) {
     System.Out.PrintLn("Sames!!!");
}

...

But now that I've written this, it's C#, so it's missing dependency injection.

[-] [email protected] 6 points 8 months ago

I can imagine Uncle Bob be proud of this Clean Code (TM)

this post was submitted on 28 Oct 2024
507 points (98.3% liked)

Programming Humor

3222 readers
1 users here now

Related Communities [email protected] [email protected] [email protected] [email protected]

Other Programming Communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

founded 2 years ago
MODERATORS