|
"they're nullable already surely?"
The point is by opting into nullables it makes them NON-nullable by default, rather than nullable by default.
I've dived in with both non-nullable reference types and C# 9 records in a greenfield project. A few sprints in and I'm really pleased with how it's influenced / affected the codebase. Records are wonderful for letting details stand out in simple classes, and their immutability drives your design down a positive path. Similarly with the non-nullable reference types, it can be a little jarring at first, but it pretty much just means the compiler can infer more than it could before, and points you to more issues. Sometimes they're "non-issues", that wouldn't really have mattered, but there have definitely been a couple of points where it's caused me to think something deeper that may have been an issue.
Null has its uses, and you're not stopped from using it. By introducing Nullable Reference Types into your codebase you're not avoiding the use of null, you're just making it absolutely clear when something can and when something can't be null. And in my opinion that's strong a positive.
|
|
|
|
|
... or just too many people feels they have to put their marks on the most visible parts of VS...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: put their marks You have to consider it in the correct context. I'll help you out on that:
This explains it and suggests some ways to improve the situation.[^]
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Assembly level one in mournful music (10)
|
|
|
|
|
So you are up tomorrow - what was the solution, I got nothin'.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
...is the great comments people post. I've submitted two simple articles (one was actually just a short tip) yesterday and the day before, and the feedback was excellent. Not only did I learn some things, but the reader who peruses the comments may learn a thing or two. Very nice!
|
|
|
|
|
amen !
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
All the time I thought that is all you need to know. The rest follows.
| 0 1
=========
0 | 1 1
1 | 1 0
Ok, this works just as well:
| 0 1
=========
0 | 1 0
1 | 0 0
Please don't tell me that there is more to write articles about.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Agreed, but I wish more people would comment and vote. I have an article that was viewed more than 7,000 times and the project was downloaded over 500 times, yet only a handful of viewers cared to vote or comment. Not that I only expect praise, I find all constructive comments very useful.
Get me coffee and no one gets hurt!
|
|
|
|
|
Does your article answer a popular homework question?
My peeve is voters who don't give it 5 but don't bother to comment. Even if they give it 4, their feedback might improve the article.
|
|
|
|
|
True!
Get me coffee and no one gets hurt!
|
|
|
|
|
My career started to take off after I'd written a very bad article and people pointed me in the right direction*.
I didn't have people with that knowledge around me so I'm glad I got it here.
* That's the nice version of the story, the real version involves me taking a verbal beating and swallowing my pride
|
|
|
|
|
I had to get my binoculars in order to read the last sentence.
|
|
|
|
|
Sander Rossel wrote: after I'd written a very bad article and people pointed me in the right direction
This[^] (link is to the "educated!" comment) was my first C# article.
|
|
|
|
|
High Efficiency Image File Format - Wikipedia[^]
Just making an observation.
Started noticing the images my phone takes are no longer jpg but heic. I think this happened on the last updated. Interesting.
I know for some of you, this is old news. I just need to make sure that my PC (Win 10) has the codecs installed.
|
|
|
|
|
So how will this work out in the world of comparability, by which I mean if one of my offspring sends me a photo from their iFauxn, will I be able to view it?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
I have no idea. I just noticed this today. Going to test on my PC after work. I would guess that Windows already has the codecs to view this image file format, but not certain.
|
|
|
|
|
I gave it a Wikipedia look. Supposedly twice the compression of jpg with the same quality. Windows doesn't natively support it but a Win10 update is available from MicroSloth.
Not to worry ! There was a reference to a free downloadable codec for this that worked in Win7 and up. Some browsers support it (experimentally). Apparently, it's not so much a format as a container (or some version of that - it's an alphabet soup).
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Slacker007 wrote: I would guess that Windows already has the codecs to view this image file format
FWIW:
I don't think I have anything that can create an actual .heic file, but if I create a 0-byte .txt file, and change the extension to .heic, I can see that Explorer, even though it doesn't display a custom file type string, displays a custom icon for it.
And if I double-click on the file, I'm prompted what to open it with - Win 10's built-in Photo app, Paint, or Paint.NET. So it at least knows it's some sort of image format.
And I can see that Paint.NET's File Open has an entry for HEIC. Maybe it registered the file type as known...this is where I stopped investigating.
|
|
|
|
|
|
Followed that link, which links to the Microsoft store, which says "HEVC Video Extensions from Device Manufacturer is currently not available ". Have they run out of them? Are people panic-downloading codecs these days? (Maybe the download server is hosted on a Google site.... )
|
|
|
|
|
Well, you know what it's like - when you run out of TP, you'll use anything!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You tell it the demolition man...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I've turned it off a while back because of some compatibility issues.
Maybe it has been fixed.
I'd rather be phishing!
|
|
|
|
|
Looks like this weekend, I'll be busy writing article on how to load HEIC image on Windows Form and WPF.
|
|
|
|