Click here to Skip to main content
15,887,746 members

Survey Results

Do you use full variable names in trivial lambda expressions?

Survey period: 24 Aug 2015 to 31 Aug 2015

eg "Items.Select(x => x.Id)" vs "Items.Select(product => product.ID)". Are you brief or expressive?

OptionVotes% 
I tend to use short (eg single letter) variable names in throw-away lambda expressions.54039.16
It depends on the context or complexity of the lambda40429.30
I tend to use full variable names for lambda expressions21315.45
I don't use lambda expressions22216.10



 
GeneralFirst letter Pin
Troy Bryant27-Aug-15 6:40
Troy Bryant27-Aug-15 6:40 
GeneralFirst Letter Pin
cjb11025-Aug-15 21:46
cjb11025-Aug-15 21:46 
GeneralRe: First Letter Pin
Wastedtalent25-Aug-15 23:00
professionalWastedtalent25-Aug-15 23:00 
GeneralRe: First Letter Pin
cjb11026-Aug-15 21:50
cjb11026-Aug-15 21:50 
GeneralAll Greek to me PinPopular
Amarnath S25-Aug-15 2:10
professionalAmarnath S25-Aug-15 2:10 
GeneralRe: All Greek to me Pin
Cimak66629-Aug-15 20:00
Cimak66629-Aug-15 20:00 
GeneralFirst letter of object type Pin
Wastedtalent25-Aug-15 1:57
professionalWastedtalent25-Aug-15 1:57 
GeneralI always use x because...math(s) PinPopular
Alexander DiMauro25-Aug-15 1:09
Alexander DiMauro25-Aug-15 1:09 
GeneralRe: I always use x because...math(s) Pin
Lincoln Pires25-Aug-15 7:25
professionalLincoln Pires25-Aug-15 7:25 
GeneralIn my case.. Pin
Afzaal Ahmad Zeeshan24-Aug-15 7:25
professionalAfzaal Ahmad Zeeshan24-Aug-15 7:25 
GeneralRe: In my case.. Pin
Mycroft Holmes25-Aug-15 17:23
professionalMycroft Holmes25-Aug-15 17:23 
GeneralIt is my habbit Pin
Sanjay K. Gupta24-Aug-15 4:04
professionalSanjay K. Gupta24-Aug-15 4:04 
GeneralSomewhat contextual for me PinPopular
Dan Neely24-Aug-15 3:46
Dan Neely24-Aug-15 3:46 
GeneralRe: Somewhat contextual for me Pin
Rob Grainger26-Aug-15 22:18
Rob Grainger26-Aug-15 22:18 
Dan Neely wrote:
Since Products is normally sufficient to type it. I generally prefer the latter style because Products >> Items in overall readability.


Now you're just confusing us, why would you want to shift Products right by Items bits?
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

GeneralI be use expression lamda long? PinPopular
Slacker00724-Aug-15 1:47
professionalSlacker00724-Aug-15 1:47 
GeneralRe: I be use expression lamda long? Pin
Sander Rossel24-Aug-15 3:34
professionalSander Rossel24-Aug-15 3:34 
GeneralRe: I be use expression lamda long? Pin
Slacker00724-Aug-15 5:21
professionalSlacker00724-Aug-15 5:21 
GeneralMake readability a habit PinPopular
Jörgen Andersson24-Aug-15 1:18
professionalJörgen Andersson24-Aug-15 1:18 
GeneralRe: Make readability a habit Pin
Nemanja Trifunovic24-Aug-15 2:40
Nemanja Trifunovic24-Aug-15 2:40 
GeneralRe: Make readability a habit Pin
Kevin McFarlane25-Aug-15 3:09
Kevin McFarlane25-Aug-15 3:09 
GeneralRe: Make readability a habit Pin
PIEBALDconsult24-Aug-15 4:48
mvePIEBALDconsult24-Aug-15 4:48 
GeneralRe: Make readability a habit Pin
Jörgen Andersson24-Aug-15 7:02
professionalJörgen Andersson24-Aug-15 7:02 
GeneralRe: Make readability a habit Pin
CDP180224-Aug-15 7:48
CDP180224-Aug-15 7:48 
GeneralNice feature BUT ... Pin
KarstenK24-Aug-15 0:50
mveKarstenK24-Aug-15 0:50 
GeneralAll code should pass the 3 and 10 test PinPopular
Duncan Edwards Jones23-Aug-15 23:47
professionalDuncan Edwards Jones23-Aug-15 23:47 

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.