Click here to Skip to main content
15,907,001 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Does anyone consider using the "using static" and why? Pin
PIEBALDconsult6-Oct-15 8:12
mvePIEBALDconsult6-Oct-15 8:12 
GeneralRe: Does anyone consider using the "using static" and why? Pin
PIEBALDconsult6-Oct-15 8:11
mvePIEBALDconsult6-Oct-15 8:11 
GeneralRe: Does anyone consider using the "using static" and why? Pin
Mario Z6-Oct-15 9:14
professionalMario Z6-Oct-15 9:14 
GeneralRe: Essential C# 6 Features You Need to Know! Pin
Rob Grainger5-Oct-15 23:02
Rob Grainger5-Oct-15 23:02 
GeneralRe: Essential C# 6 Features You Need to Know! Pin
Kevin McFarlane6-Oct-15 1:04
Kevin McFarlane6-Oct-15 1:04 
JokeRe: Essential C# 6 Features You Need to Know! Pin
PIEBALDconsult6-Oct-15 11:44
mvePIEBALDconsult6-Oct-15 11:44 
GeneralRe: Essential C# 6 Features You Need to Know! Pin
Dominic Burford6-Oct-15 2:47
professionalDominic Burford6-Oct-15 2:47 
GeneralRe: Essential C# 6 Features You Need to Know! Pin
Dan Neely6-Oct-15 3:22
Dan Neely6-Oct-15 3:22 
Quote:
Static Using Syntax


I'm also struggling to see a good use for this. Maybe if you had a huge number of Console.WriteLine() statements in a block?

Quote:
Auto-Property Initializers


I like this. Having to move the initialization to the constructor is one of the things I find mildly annoying about properties.

Quote:
Dictionary Initializers


Cleaner looking perhaps, but I don't see how it's supposed to be less error prone.

Quote:
String Interpolation


Meh. Combined with nameof() this might make writing a custom ToString() for debug purposes a bit better ( return "{nameof(var1)} = {var1}, {nameof(var2)} = {var2}, ..."; ); but you're supposed to use a different syntax for that instead of abusing ToString() anyway.

Quote:
nameOf Expression


You could do this with reflection before but IIRC it was rather fugly. It'd be nice to see if this could make some reflection heavy code I wrote years ago easier to read and less brittle.

Quote:
Expression Bodied Function & Property


Yuck! I'm only not doing my giant Dead | X| [^] here for space reasons.

Quote:
Exception Filters


Not sure. His example sucks, but I could see this potentially being useful in other cases.

Quote:
Await in a Catch and Finally Block


Sounds useful but I haven't written any async code yet so not sure.

Quote:
Null Conditional Operator


I've wanted this for years. The example isn't that bad with the old syntax, but try drilling down through 3 or 4 levels of nullable properties/members and checking at each point. Saying elephant it and slapping a try/catch for null reference exceptions was the least unreadable version if not something you'd want to do in hot loops.

BEST NEW FEATURE EVER!!!!!!!!!!!!!!!!!!!!!!!!!111oneoneone111elventyone11!11
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius

Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt

RantRe: Essential C# 6 Features You Need to Know! Pin
Richard Deeming6-Oct-15 5:35
mveRichard Deeming6-Oct-15 5:35 
GeneralRe: Essential C# 6 Features You Need to Know! Pin
Joe Woodbury6-Oct-15 18:03
professionalJoe Woodbury6-Oct-15 18:03 
GeneralRe: Essential C# 6 Features You Need to Know! Pin
Richard Deeming7-Oct-15 3:06
mveRichard Deeming7-Oct-15 3:06 
GeneralRe: Essential C# 6 Features You Need to Know! Pin
Joe Woodbury7-Oct-15 6:05
professionalJoe Woodbury7-Oct-15 6:05 
NewsCoding Like It's 1999 Pin
Kevin Priddle5-Oct-15 11:09
professionalKevin Priddle5-Oct-15 11:09 
GeneralRe: Coding Like It's 1999 Pin
PIEBALDconsult5-Oct-15 11:36
mvePIEBALDconsult5-Oct-15 11:36 
GeneralRe: Coding Like It's 1999 Pin
FIorian Schneidereit5-Oct-15 11:47
FIorian Schneidereit5-Oct-15 11:47 
GeneralRe: Coding Like It's 1999 Pin
Rob Grainger5-Oct-15 23:04
Rob Grainger5-Oct-15 23:04 
GeneralRe: Coding Like It's 1999 Pin
FIorian Schneidereit6-Oct-15 7:28
FIorian Schneidereit6-Oct-15 7:28 
NewsIBM Scientists Find New Way to Shrink Transistors Pin
Kevin Priddle5-Oct-15 11:05
professionalKevin Priddle5-Oct-15 11:05 
GeneralRe: IBM Scientists Find New Way to Shrink Transistors Pin
PIEBALDconsult5-Oct-15 11:09
mvePIEBALDconsult5-Oct-15 11:09 
GeneralRe: IBM Scientists Find New Way to Shrink Transistors Pin
Mike Hankey5-Oct-15 18:59
mveMike Hankey5-Oct-15 18:59 
GeneralRe: IBM Scientists Find New Way to Shrink Transistors Pin
Member 116832515-Oct-15 19:10
Member 116832515-Oct-15 19:10 
NewsWe Need to Control Our Algorithms Before They Destroy the Environment Pin
Kevin Priddle5-Oct-15 11:02
professionalKevin Priddle5-Oct-15 11:02 
GeneralRe: We Need to Control Our Algorithms Before They Destroy the Environment Pin
PIEBALDconsult5-Oct-15 14:01
mvePIEBALDconsult5-Oct-15 14:01 
GeneralRe: We Need to Control Our Algorithms Before They Destroy the Environment Pin
Dan Neely6-Oct-15 3:23
Dan Neely6-Oct-15 3:23 
NewsEdward Snowden interview: 'Smartphones can be taken over' Pin
Kevin Priddle5-Oct-15 10:56
professionalKevin Priddle5-Oct-15 10:56 

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.