Skip to main content
8 events
when toggle format what by license comment
Feb 11, 2016 at 10:27 comment added Sebastian Redl When I read this, I am confused because you assign a boolean value to a string variable. With the ternary operator being on the same indentation level as the variable declaration, I don't recognize it as part of the same statement.
Feb 9, 2016 at 22:51 history edited Legato CC BY-SA 3.0
added 46 characters in body
Feb 9, 2016 at 21:48 comment added corsiKa As a matter of style, I do this as well, but the !isNameBlank gets a few extra spaces. I've seen some folks do String message = ( true \n && !isNameBlank \n && isDestinationValid... just so the && lines up, although myself I'm not a fan of going that far.
Feb 9, 2016 at 16:19 history edited Legato CC BY-SA 3.0
added 285 characters in body
Feb 9, 2016 at 15:42 history edited Legato CC BY-SA 3.0
deleted 1 character in body
Feb 9, 2016 at 8:02 vote accept k_rollo
Feb 9, 2016 at 8:02 comment added k_rollo Hello, this looks cleaner than mine, thanks!
Feb 9, 2016 at 6:53 history answered Legato CC BY-SA 3.0