|
However, Roslyn has been out since a while. But the feature that I love about the C# 6 is the nullables. You can write this
int? variable = SomeObject?.GetField?.CallMethod();
.. alot of nullables. I love this one, and just can't wait to test it. Because until now I am not sure whether above code works or not. because I have not yet tested, but have heard about the every-object-can-be-nullable stuff.
Favourite line: Throw me to them wolves and close the gate up. I am afraid of what will happen to them wolves - Eminem
~! Firewall !~
|
|
|
|
|
I don't know how I feel about some of the new syntactical sugar. Your example is one of them. On one hand it streamlines what can be some messy code. On the other hand its readability is in question.
|
|
|
|
|
Afzaal Ahmad Zeeshan wrote: Because until now I am not sure whether above code works or not.
I can only imagine the nightmares that this will cause, where real errors now return null, only to be incorrectly handled in upstream code where null might be a valid situation, but the result is that an actual error case gets lost. I imagine VB'ers are rejoicing at this feature!
Marc
|
|
|
|
|
There will probably be some horror stories coming out of this decision.
Also - do all the nullables have to be base type consistent?
|
|
|
|
|
Marc: I can only imagine the nightmares that this will cause
This was the first thing that came to my mind too. What about the NullReferenceException then? Exactly!
However, all of this just proves that the software architecture is no longer considered the vital thing, that all of the professional programmers (age ~50) are talking about. New programmers just try to work out the softwares that are error free. This would cause less exceptions and less breaking of the software. But the efficiency and the thing the software needs, good approach for the users, will be missing.
I feel sorry for the developers of the Win32 API, I feel sorry for the programmers who gave up 2-5 years learning C and then ending up having no opportunity for survival due to .NET programmers. More of these types of helpfull codes that help the new developers to less get their hands dirty with the Exception is a major reason that new developer aren't even aware that there stands a language called C. 90% programmers start their journey since C++ or even Java and C#.
I guess, C# as it is, was a great language, adding such features to hide the actual error is not a good approach, how ever I have also read that there is another feature that will let us execution a catch block depending on the content of the Exception, like an if else block. That I guess was a better addition of features to the library rather than this nullable every object.
Favourite line: Throw me to them wolves and close the gate up. I am afraid of what will happen to them wolves - Eminem
~! Firewall !~
|
|
|
|
|
Afzaal Ahmad Zeeshan wrote: However, all of this just proves that the software architecture is no longer considered the vital thing, that all of the professional programmers (age ~50) are talking about. New programmers just try to work out the softwares that are error free.
Indeed. And what you say fits really well with this new Insider News post.[^]
Afzaal Ahmad Zeeshan wrote: 90% programmers start their journey since C++ or even Java and C#.
I think we're ignoring the vast Linux community that does indeed still do a lot of C and C++ programming. And even the hobbyist with their Beaglebones or Arduinos are needing to dust off the brain to do C/C++ coding on those devices.
Marc
|
|
|
|
|
Nice article. Yeah, I've seen most of it before but this one is more in depth than the others I've read. Big plusses from the article for me include:
1) Showing that auto-property initializers are needed to make primary constructors work instead of just being a gimmick.
2) NameOf() This is an addition I don't recall seeing before and which has the potential to make some fugly reflection code in one of my codebases a lot less brittle. Now if they'd only create a bit of syntax sugar to let me replace. int temp = MyIntPropery; Frobinate(var temp); MyIntProperty = temp; with something closer to Frobinate(var MyIntProperty);
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
|
|
|
|
|
Microsoft is in the middle of a massive restructuring right now, with around 18,000 employees being let go. And while most of those employees are redundant thanks to the Nokia purchase, it looks like the company is focusing on other divisions as well. Who wants all that cool stuff associated with Microsoft anyway?
|
|
|
|
|
Who didn't see that coming? The first thing a new CEO does is what they call restructure and what everybody else calls firing/letting go a host of employees to improve the bottom line. If in doubt restructure or in other words if you can't use your skills to lead a company to making a profit you just start letting people go until the bottom line improves.
R&D, we don't need no stinking R&D!
New version: WinHeist Version 2.1.0 Beta
Have you ever just looked at someone and knew the wheel was turning but the hamster was dead?
Trying to understand the behavior of some people is like trying to smell the color 9.
I'm not crazy, my reality is just different than yours!
|
|
|
|
|
I'm surprised they didn't just sell it to Google to stash in its secret underground lab hoarding robotics and AI technology. Though I hope this doesn't spell an end for Project Adam, which was actually interesting.
|
|
|
|
|
The people from the Adam project will just go somewhere else and continue their research leaving uSoft where it always is on the trailing edge of technology.
New version: WinHeist Version 2.1.0 Beta
Have you ever just looked at someone and knew the wheel was turning but the hamster was dead?
Trying to understand the behavior of some people is like trying to smell the color 9.
I'm not crazy, my reality is just different than yours!
|
|
|
|
|
With the arrival of the iPhone 6 (and 6 Plus), this may be a good time to review smartphone market share and usage share trends around the world. So that's who's buying Windows Phone
|
|
|
|
|
Western Europeans seem to love those live tiles...
|
|
|
|
|
As much as developers have enjoyed new options in programming languages, databases, and more, they're increasingly asking for consolidation to simplify development. In the end, they're all just 1s and 0s
|
|
|
|
|
"Shaka, when the walls fell."
(who knows the source of that quote without googling?)
Marc
|
|
|
|
|
Marc Clifton wrote: "Shaka, when the walls fell."
One of my favorites.
I do wonder how individual words can be translated but not the whole statement.
|
|
|
|
|
Star Trek: The Next Generation
'Timbah, his arms wide'
|
|
|
|
|
Darmok
A positive attitude may not solve every problem, but it will annoy enough people to be worth the effort.
|
|
|
|
|
I found the database ranking that is referred to comforting. Yet Cache is still ranked too high -- it must be wiped out! And where's RDB? Is it combined in Oracle? http://en.wikipedia.org/wiki/Oracle_Rdb[^]
|
|
|
|
|
Back in May, Microsoft announced their decision to openly share their platform roadmap via status.modern.IE. Yesterday, IE team announced another round of updates to their plan. These updates include new ECMAScript, Networking, Performance, Media, CSS, and DOM features under consideration and in development. Coming eventually to a browser near you (or already there if you use the right browser)
|
|
|
|
|
Kent Sharkey wrote: These updates include new ECMAScript, Networking, Performance, Media, CSS, and DOM features under consideration and in development.
Oh, you mean trying to make the sh*t compliant?
|
|
|
|
|
Injecting a bit of code through paper ballots. Sadly, alert('l') didn't win
|
|
|
|
|
It's developer season at my company. Unlike with deer season, we’re hiring rather than shooting, though not all survive the interview process. Blue. My parachute is blue.
|
|
|
|
|
Interview questions reveal quite a lot about the interviewer (and their company). In the example in the article, question 3 translates as "We get errors that have escaped into production and we don't have sufficient diagnostics to know why. Can you help us round up these velociraptors and put them back in their papier mache cages and tell us how you think they escaped?"
|
|
|
|
|
At the same time, "it all went kersplat" is the most interesting troubleshooting case. When you've got a nice error log reporting exactly what's wrong it's an easy fix; hunting down the gremlins when you discover that one of your 3rd party components has a silent fail condition (or some idiot managed to slip an exception eater into production) really is the make or break between poor and good trouble shooting skills.
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
|
|
|
|