Click here to Skip to main content
14,301,895 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.
 
GeneralHuzzah! Pin
#realJSOP29-Jul-19 9:33
mve#realJSOP29-Jul-19 9:33 
GeneralRe: Huzzah! Pin
honey the codewitch29-Jul-19 9:39
memberhoney the codewitch29-Jul-19 9:39 
GeneralRe: Huzzah! Pin
Mark_Wallace29-Jul-19 12:36
memberMark_Wallace29-Jul-19 12:36 
GeneralRe: Huzzah! Pin
Mike Hankey30-Jul-19 3:31
professionalMike Hankey30-Jul-19 3:31 
GeneralHuzzah!4 Pin
#realJSOP29-Jul-19 9:32
mve#realJSOP29-Jul-19 9:32 
GeneralRe: Huzzah!4 Pin
pkfox29-Jul-19 11:28
professionalpkfox29-Jul-19 11:28 
GeneralRe: Huzzah!4 Pin
Mark_Wallace29-Jul-19 12:38
memberMark_Wallace29-Jul-19 12:38 
Generalwho decided this was a good idea, and can we mock them? Pin
honey the codewitch29-Jul-19 8:15
memberhoney the codewitch29-Jul-19 8:15 
Visual Studio's "code suggestions" are atrocious. "Let me nag you to use all the latest language features and make actual stylecop rules get buried under spurious suggestions about not using explicit tuples"

Worse, they can change the semantics of the code.

And I'm a stickler about having *no* messages on a final build, so this stuff is just nuts. I don't want to turn it off - i just want it to be sane.

Look at this mess:


// ensures that rule1 and rule2 are checked before any state changes
if (null == rule1) throw new ArgumentNullException("rule1");
if (null == rule2) throw new ArgumentNullException("rule2");
Kind = kind;
Rule1 = rule1;
Rule2 = rule2;
Symbol = symbol;


// versus the Visual Studio (2017) "code suggestion"

Kind = kind;
Rule1 = rule1 ?? throw new ArgumentNullException("rule1");
// if rule2 is null, rule1 and kind have already been set.
Rule2 = rule2 ?? throw new ArgumentNullException("rule2");
Symbol = symbol;

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: who decided this was a good idea, and can we mock them? Pin
Kaladin29-Jul-19 8:40
memberKaladin29-Jul-19 8:40 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
honey the codewitch29-Jul-19 8:43
memberhoney the codewitch29-Jul-19 8:43 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
Richard Deeming29-Jul-19 9:14
mveRichard Deeming29-Jul-19 9:14 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
honey the codewitch29-Jul-19 9:16
memberhoney the codewitch29-Jul-19 9:16 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
PIEBALDconsult29-Jul-19 9:22
protectorPIEBALDconsult29-Jul-19 9:22 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
honey the codewitch29-Jul-19 9:24
memberhoney the codewitch29-Jul-19 9:24 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
Marc Clifton29-Jul-19 9:27
protectorMarc Clifton29-Jul-19 9:27 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
honey the codewitch29-Jul-19 9:28
memberhoney the codewitch29-Jul-19 9:28 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
  Forogar  29-Jul-19 9:36
professional  Forogar  29-Jul-19 9:36 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
honey the codewitch29-Jul-19 9:37
memberhoney the codewitch29-Jul-19 9:37 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
Mark_Wallace29-Jul-19 11:40
memberMark_Wallace29-Jul-19 11:40 
GeneralRe: who decided this was a good idea, and can we mock them? Pin
Super Lloyd29-Jul-19 17:16
memberSuper Lloyd29-Jul-19 17:16 
GeneralThought of the Day Pin
OriginalGriff29-Jul-19 5:15
protectorOriginalGriff29-Jul-19 5:15 
GeneralRe: Thought of the Day Pin
W Balboos29-Jul-19 5:19
mveW Balboos29-Jul-19 5:19 
GeneralRe: Thought of the Day Pin
jeron129-Jul-19 5:20
memberjeron129-Jul-19 5:20 
GeneralRe: Thought of the Day Pin
lopatir29-Jul-19 5:33
memberlopatir29-Jul-19 5:33 
GeneralRe: Thought of the Day Pin
  Forogar  29-Jul-19 5:37
professional  Forogar  29-Jul-19 5:37 

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.