Click here to Skip to main content
15,904,024 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: How can i save 2d array in SQL by Entity Frameork-Code First ? Pin
RossMW16-Jul-16 10:51
professionalRossMW16-Jul-16 10:51 
GeneralRe: How can i save 2d array in SQL by Entity Frameork-Code First ? Pin
Majlesi11016-Jul-16 10:57
professionalMajlesi11016-Jul-16 10:57 
GeneralRe: How can i save 2d array in SQL by Entity Frameork-Code First ? Pin
Marc Clifton16-Jul-16 14:44
mvaMarc Clifton16-Jul-16 14:44 
GeneralRe: How can i save 2d array in SQL by Entity Frameork-Code First ? Pin
RossMW16-Jul-16 15:36
professionalRossMW16-Jul-16 15:36 
GeneralRe: How can i save 2d array in SQL by Entity Frameork-Code First ? Pin
Nish Nishant18-Jul-16 4:24
sitebuilderNish Nishant18-Jul-16 4:24 
GeneralRe: How can i save 2d array in SQL by Entity Frameork-Code First ? Pin
RossMW18-Jul-16 9:12
professionalRossMW18-Jul-16 9:12 
GeneralRe: How can i save 2d array in SQL by Entity Frameork-Code First ? Pin
Nish Nishant18-Jul-16 1:55
sitebuilderNish Nishant18-Jul-16 1:55 
GeneralUsing IEnumerable nonsense for everything PinPopular
harold aptroot16-Jul-16 5:41
harold aptroot16-Jul-16 5:41 
You've probably seen this style if you're done anything with C# after 2007 or so.
someStuff.Where(c => c != What).Select(d => d + The).Foreach(e => Hell(e));

Instead of, you know, a plain old for loop with an if in it and so on. Or maybe foreach if you want to be fancy.

So, now we have nearly a decade of experience with this, can we finally settle this question:

Is this style cancer?

I still think it is, and the retort "you just have to get used to it" isn't going to work any more. I file this firmly under "stupid one-liner 'clever' code with no benefits to compensate". Yes, I've argued in the past that "clever code" isn't necessarily bad, and I'll keep saying that - there's a time and a place for it. But not if you're just trying to be cute. "Oh look at me, I put everything on one line, +1 nerd points for me"

And this is even worse. It's not just cute with no benefits to compensate, it's cute and harder to read.

Side question, why is this style popular?
GeneralRe: Using IEnumerable nonsense for everything PinPopular
PIEBALDconsult16-Jul-16 5:48
mvePIEBALDconsult16-Jul-16 5:48 
GeneralRe: Using IEnumerable nonsense for everything Pin
Nish Nishant16-Jul-16 7:30
sitebuilderNish Nishant16-Jul-16 7:30 
GeneralRe: Using IEnumerable nonsense for everything Pin
PIEBALDconsult16-Jul-16 8:00
mvePIEBALDconsult16-Jul-16 8:00 
GeneralRe: Using IEnumerable nonsense for everything Pin
Nish Nishant16-Jul-16 8:04
sitebuilderNish Nishant16-Jul-16 8:04 
GeneralRe: Using IEnumerable nonsense for everything Pin
PIEBALDconsult16-Jul-16 8:24
mvePIEBALDconsult16-Jul-16 8:24 
GeneralRe: Using IEnumerable nonsense for everything Pin
James Curran18-Jul-16 4:20
James Curran18-Jul-16 4:20 
GeneralRe: Using IEnumerable nonsense for everything Pin
Nish Nishant18-Jul-16 4:24
sitebuilderNish Nishant18-Jul-16 4:24 
GeneralRe: Using IEnumerable nonsense for everything PinPopular
Mladen Janković17-Jul-16 0:24
Mladen Janković17-Jul-16 0:24 
GeneralRe: Using IEnumerable nonsense for everything Pin
PIEBALDconsult17-Jul-16 6:39
mvePIEBALDconsult17-Jul-16 6:39 
GeneralRe: Using IEnumerable nonsense for everything Pin
obermd18-Jul-16 15:04
obermd18-Jul-16 15:04 
GeneralRe: Using IEnumerable nonsense for everything Pin
Mladen Janković18-Jul-16 15:57
Mladen Janković18-Jul-16 15:57 
GeneralRe: Using IEnumerable nonsense for everything Pin
Richard Deeming18-Jul-16 3:11
mveRichard Deeming18-Jul-16 3:11 
GeneralRe: Using IEnumerable nonsense for everything Pin
PIEBALDconsult18-Jul-16 3:28
mvePIEBALDconsult18-Jul-16 3:28 
GeneralRe: Using IEnumerable nonsense for everything Pin
MiddleTommy18-Jul-16 6:47
MiddleTommy18-Jul-16 6:47 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot18-Jul-16 8:50
harold aptroot18-Jul-16 8:50 
GeneralRe: Using IEnumerable nonsense for everything Pin
F-ES Sitecore16-Jul-16 5:54
professionalF-ES Sitecore16-Jul-16 5:54 
GeneralRe: Using IEnumerable nonsense for everything Pin
harold aptroot16-Jul-16 5:58
harold aptroot16-Jul-16 5:58 

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.