Click here to Skip to main content
15,891,033 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
honey the codewitch18-Jul-19 5:33
mvahoney the codewitch18-Jul-19 5:33 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
Richard Deeming18-Jul-19 1:19
mveRichard Deeming18-Jul-19 1:19 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
Nathan Minier18-Jul-19 1:23
professionalNathan Minier18-Jul-19 1:23 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
jsc4218-Jul-19 2:20
professionaljsc4218-Jul-19 2:20 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
honey the codewitch18-Jul-19 5:19
mvahoney the codewitch18-Jul-19 5:19 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
honey the codewitch18-Jul-19 5:16
mvahoney the codewitch18-Jul-19 5:16 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
Richard Deeming18-Jul-19 1:28
mveRichard Deeming18-Jul-19 1:28 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
honey the codewitch18-Jul-19 1:34
mvahoney the codewitch18-Jul-19 1:34 
I love var but some of what you posted is too much. C# 12 will end up looking like perl at this rate. :/

I'm a fan of yoda conditionals for two reasons:

The first is old habits from back when compilers were more primitive (preventing accidental assignment)

The second is I've found that if you must use a series of ifs on the same target value it is easier to visualize what you're doing when the target is on the left hand side. For example

C#
if("foo"==target)
else if("bar"==target)
else if("baz"==target)


that one obv is simple and can be changed to a switch but once you start adding || and && in there and breaking each subcomparison out on it's own line the difference is clear. yodaized looks better in the source in terms of figuring out what you're doing. The target being on the right makes it less distracting
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
  Forogar  18-Jul-19 3:57
professional  Forogar  18-Jul-19 3:57 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
Marc Clifton18-Jul-19 6:28
mvaMarc Clifton18-Jul-19 6:28 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
honey the codewitch18-Jul-19 6:30
mvahoney the codewitch18-Jul-19 6:30 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
W Balboos, GHB18-Jul-19 6:30
W Balboos, GHB18-Jul-19 6:30 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
honey the codewitch18-Jul-19 6:31
mvahoney the codewitch18-Jul-19 6:31 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
Super Lloyd18-Jul-19 14:30
Super Lloyd18-Jul-19 14:30 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
honey the codewitch18-Jul-19 23:38
mvahoney the codewitch18-Jul-19 23:38 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
AnotherKen19-Jul-19 7:24
professionalAnotherKen19-Jul-19 7:24 
GeneralRe: Sometimes when I can't figure out a problem I taunt myself Pin
honey the codewitch19-Jul-19 7:25
mvahoney the codewitch19-Jul-19 7:25 
GeneralFor pointyhairs and other friends of hollow phrases Pin
CodeWraith18-Jul-19 0:06
CodeWraith18-Jul-19 0:06 
GeneralRe: For pointyhairs and other friends of hollow phrases Pin
musefan18-Jul-19 0:34
musefan18-Jul-19 0:34 
GeneralRe: For pointyhairs and other friends of hollow phrases Pin
lopatir18-Jul-19 0:56
lopatir18-Jul-19 0:56 
GeneralRe: For pointyhairs and other friends of hollow phrases Pin
glennPattonWork318-Jul-19 4:34
professionalglennPattonWork318-Jul-19 4:34 
GeneralRe: For pointyhairs and other friends of hollow phrases Pin
Sander Rossel18-Jul-19 1:23
professionalSander Rossel18-Jul-19 1:23 
GeneralRe: For pointyhairs and other friends of hollow phrases Pin
Richard Deeming18-Jul-19 1:31
mveRichard Deeming18-Jul-19 1:31 
GeneralRe: For pointyhairs and other friends of hollow phrases Pin
den2k8818-Jul-19 3:02
professionalden2k8818-Jul-19 3:02 
GeneralRe: For pointyhairs and other friends of hollow phrases Pin
Zafar Sultan18-Jul-19 0:52
Zafar Sultan18-Jul-19 0:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.