Timeline for One-line functions that are called only once
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 28, 2017 at 13:33 | history | edited | Deduplicator | CC BY-SA 3.0 | added syntax-highlighting |
| Jan 9, 2015 at 17:38 | comment | added | joshperry | @Wolf Hey man, yeah. I wrote this quite a while ago :) I definitely do things quite differently now days. In fact, looking at the label content to see if there was an error makes me cringe... Why didn't I just return a bool from CheckInputs()??? | |
| Jan 9, 2015 at 9:35 | comment | added | Wolf | I also prefer extra identifiers over comments. But does this really differ from introducing a local variable to keep the if short? This local (lambda) approach makes the PaymentButton_Click function (as a whole) harder to read. The lblCreditCardError in your example seems to be a member, so also HaveError is a (private) predicate that is valid for the object. I'd tend to downvote this, but I'm not a C# programmer, so I resist. | |
| Sep 12, 2011 at 20:37 | comment | added | Scott Mitchell | @vemv: Looks like C# to me. | |
| Sep 12, 2011 at 20:27 | comment | added | deprecated | Just curious, what language is that? | |
| Sep 12, 2011 at 18:33 | history | answered | joshperry | CC BY-SA 3.0 |