Click here to Skip to main content
15,922,696 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: Why was everything more fun 40 years ago? Pin
Greg Lovekamp11-Jul-18 5:27
professionalGreg Lovekamp11-Jul-18 5:27 
GeneralRe: Why was everything more fun 40 years ago? Pin
Slow Eddie11-Jul-18 5:50
professionalSlow Eddie11-Jul-18 5:50 
GeneralRe: Why was everything more fun 40 years ago? Pin
Kirill Illenseer15-Jul-18 23:27
Kirill Illenseer15-Jul-18 23:27 
GeneralRe: Why was everything more fun 40 years ago? Pin
CodeWraith16-Jul-18 0:34
CodeWraith16-Jul-18 0:34 
GeneralARRRRGGGGHHHH!!! Pin
Munchies_Matt9-Jul-18 22:42
Munchies_Matt9-Jul-18 22:42 
GeneralRe: ARRRRGGGGHHHH!!! Pin
CodeWraith9-Jul-18 22:56
CodeWraith9-Jul-18 22:56 
GeneralRe: ARRRRGGGGHHHH!!! Pin
Munchies_Matt9-Jul-18 22:58
Munchies_Matt9-Jul-18 22:58 
GeneralRe: ARRRRGGGGHHHH!!! Pin
kalberts10-Jul-18 5:13
kalberts10-Jul-18 5:13 
I have made a habit of naming the parameter when supplying contstants and the context doesn't clearly indicate the semantics of the constant, even when the parameter is NOT defaultable.

Sometimes, even literal values are self explanatory, from the function name, like SetLightSwitchOn(false), but my threshold for saying 'No, it isn't quite clear enough' has been adjusted down in several steps.

If my memory is correct, the option to name non-defaultable parameters is quite new in C#. In some of my older code, from when only defaultable parameters could be named, I specified a default that was never invoked, simply to allow me a compact way to document the semantics in every call. Yes, a comment would have served the same purpose, but naming the parameter is more pointed and briefer. Besides, it stimulates you to give even parameters good, descriptive names when you know that the name will be spread all over the application; you can't just say 'Just read the function and see how it is used; its name is inessential'. Exposing your naming makes you a more responsible programmer.
GeneralRe: ARRRRGGGGHHHH!!! Pin
Gary Wheeler11-Jul-18 1:37
Gary Wheeler11-Jul-18 1:37 
JokeRe: ARRRRGGGGHHHH!!! Pin
Eric Lynch9-Jul-18 23:17
Eric Lynch9-Jul-18 23:17 
GeneralRe: ARRRRGGGGHHHH!!! Pin
Munchies_Matt9-Jul-18 23:51
Munchies_Matt9-Jul-18 23:51 
GeneralRe: ARRRRGGGGHHHH!!! Pin
raddevus10-Jul-18 4:46
mvaraddevus10-Jul-18 4:46 
JokeRe: ARRRRGGGGHHHH!!! Pin
V.10-Jul-18 1:16
professionalV.10-Jul-18 1:16 
GeneralWSO CCC OTD 2018-07-10 Pin
OriginalGriff9-Jul-18 21:54
mveOriginalGriff9-Jul-18 21:54 
GeneralRe: WSO CCC OTD 2018-07-10 Pin
Kornfeld Eliyahu Peter9-Jul-18 21:56
professionalKornfeld Eliyahu Peter9-Jul-18 21:56 
GeneralRe: WSO CCC OTD 2018-07-10 Pin
OriginalGriff9-Jul-18 22:09
mveOriginalGriff9-Jul-18 22:09 
GeneralRe: WSO CCC OTD 2018-07-10 Pin
dan!sh 9-Jul-18 22:00
professional dan!sh 9-Jul-18 22:00 
GeneralRe: WSO CCC OTD 2018-07-10 - we have a winner! Pin
OriginalGriff9-Jul-18 22:07
mveOriginalGriff9-Jul-18 22:07 
GeneralRe: WSO CCC OTD 2018-07-10 - we have a winner! Pin
dan!sh 10-Jul-18 0:50
professional dan!sh 10-Jul-18 0:50 
GeneralRe: WSO CCC OTD 2018-07-10 - we have a winner! Pin
MarkTJohnson10-Jul-18 1:32
professionalMarkTJohnson10-Jul-18 1:32 
GeneralRe: WSO CCC OTD 2018-07-10 - we have a winner! Pin
OriginalGriff10-Jul-18 1:47
mveOriginalGriff10-Jul-18 1:47 
GeneralDetails? Pin
Kornfeld Eliyahu Peter9-Jul-18 21:25
professionalKornfeld Eliyahu Peter9-Jul-18 21:25 
GeneralThe "Default Interface Methods" (DIM) is now the longest thread of C# proposal Pin
Robert Vandenberg Huang9-Jul-18 19:33
professionalRobert Vandenberg Huang9-Jul-18 19:33 
GeneralRe: The "Default Interface Methods" (DIM) is now the longest thread of C# proposal Pin
F-ES Sitecore9-Jul-18 23:12
professionalF-ES Sitecore9-Jul-18 23:12 
GeneralRe: The "Default Interface Methods" (DIM) is now the longest thread of C# proposal Pin
#realJSOP10-Jul-18 1:25
professional#realJSOP10-Jul-18 1:25 

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.