Click here to Skip to main content
15,890,438 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
Keefer S17-Mar-22 2:51
Keefer S17-Mar-22 2:51 
PraiseRe: Whose idea was this in C\? Pin
Randor 17-Mar-22 5:05
professional Randor 17-Mar-22 5:05 
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
Greg Utas17-Mar-22 6:00
professionalGreg Utas17-Mar-22 6:00 
GeneralRe: Whose idea was this in C\? Pin
Ralph Trickey17-Mar-22 11:31
Ralph Trickey17-Mar-22 11:31 
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 
I'm unaware of any way that auto helps to produce more efficient code. If you don't want a deep copy, you have to write auto& id =.... And if it's const, you have to write const auto id =....

Yes, Herb Sutter wrote an article "Almost Always Auto (AAA)." As far as someone reading the code having to look up the type returned by a function goes, my take is that knowing the type is only the first step to understanding. The reader also needs to know the function's purpose, which means reading its interface documentation. And given that we sometimes fall short on that front, it can also mean reading its implementation. Providing the type can therefore be detrimental by giving a false sense of security.

Although I haven't used C#, I'd be surprised if best practices for when to use the heap versus the stack weren't the same in both languages.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

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 
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 

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.