Click here to Skip to main content
15,867,488 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: Whose idea was this in C\? Pin
Greg Utas17-Mar-22 11:48
professionalGreg Utas17-Mar-22 11:48 
GeneralRe: Whose idea was this in C\? Pin
Dave B 202217-Mar-22 3:31
Dave B 202217-Mar-22 3:31 
GeneralRe: Whose idea was this in C\? Pin
Greg Utas17-Mar-22 3:54
professionalGreg Utas17-Mar-22 3:54 
GeneralRe: Whose idea was this in C\? Pin
Dave B 202217-Mar-22 5:31
Dave B 202217-Mar-22 5:31 
GeneralRe: Whose idea was this in C\? Pin
Greg Utas17-Mar-22 5:55
professionalGreg Utas17-Mar-22 5:55 
GeneralRe: Whose idea was this in C\? Pin
Kate-X25717-Mar-22 4:57
Kate-X25717-Mar-22 4:57 
GeneralRe: Whose idea was this in C\? Pin
Slacker00716-Mar-22 5:39
professionalSlacker00716-Mar-22 5:39 
GeneralRe: Whose idea was this in C\? Pin
JustDre17-Mar-22 7:05
JustDre17-Mar-22 7:05 
Var should be used whenever the type is obvious from the RHS. Most of the time, nobody cares about the specific type of a variable, yet explicitly declaring the type forces maintainers to read it 100% of the time. It's also less DRY: it would be silly to say, "Today I washed my car today".

The counterpart is a newer feature that lets us instantiate without the explicit type, which arguably should only be used when the type is obvious:

private Dictionary<string, ienumerable<int="">> _lookupTable = new();
GeneralRe: Whose idea was this in C\? Pin
TNCaver16-Mar-22 6:16
TNCaver16-Mar-22 6:16 
GeneralRe: Whose idea was this in C\? Pin
Ralph Trickey17-Mar-22 12:22
Ralph Trickey17-Mar-22 12:22 
GeneralRe: Whose idea was this in C\? Pin
Kate-X25717-Mar-22 4:57
Kate-X25717-Mar-22 4:57 
GeneralRe: Whose idea was this in C\? Pin
Kirk 1038982117-Mar-22 4:27
Kirk 1038982117-Mar-22 4:27 
GeneralRe: Whose idea was this in C\? Pin
Dave B 202217-Mar-22 6:34
Dave B 202217-Mar-22 6:34 
NewsInteresting article on the future of Wordle Clones, Archives, and Word List Pin
Slacker00716-Mar-22 0:26
professionalSlacker00716-Mar-22 0:26 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
dan!sh 16-Mar-22 0:54
professional dan!sh 16-Mar-22 0:54 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
Ravi Bhavnani16-Mar-22 4:51
professionalRavi Bhavnani16-Mar-22 4:51 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
Kirk 1038982117-Mar-22 9:06
Kirk 1038982117-Mar-22 9:06 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
den2k8816-Mar-22 2:18
professionalden2k8816-Mar-22 2:18 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
Ravi Bhavnani16-Mar-22 4:50
professionalRavi Bhavnani16-Mar-22 4:50 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
Rage16-Mar-22 5:10
professionalRage16-Mar-22 5:10 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
den2k8816-Mar-22 22:44
professionalden2k8816-Mar-22 22:44 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
Rage17-Mar-22 0:06
professionalRage17-Mar-22 0:06 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
den2k8817-Mar-22 0:34
professionalden2k8817-Mar-22 0:34 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
Amarnath S16-Mar-22 6:29
professionalAmarnath S16-Mar-22 6:29 
GeneralRe: Interesting article on the future of Wordle Clones, Archives, and Word List Pin
Member 1044734223-Mar-22 20:42
Member 1044734223-Mar-22 20:42 

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.