|
Because wiping the deck with us over games of Go really isn't that tough anymore. 2b | !2b?
|
|
|
|
|
Huge news.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
In this post, I introduce a simple new language feature of C# 8 called using declarations. As opposed to using statements, using blocks, and using hard drugs
mostly
|
|
|
|
|
The most useful using was actually in VB.
Using someObject
.Property1 = ""
.Property2 = somethingElse
.Etc = 42
End Using
I do miss that since I've been doing c# forever now.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
I thought I remembered some other use for using... Dang, but it's been ages since I've written any VB either.
TTFN - Kent
|
|
|
|
|
No reason to miss that feature.
C# has it, but better and cleaner...
Especially the indentation behavior in VS for VB sucks, it's really terrible, but works as you'd expect in C#.
Also, no need to turn Option Strict Off for anonymous types and mess up a whole file... Or isn't that necessary anymore?
var so = new SomeObject
{
.Property1 = "",
.Property2 = somethingElse,
.Etc = 42
};
|
|
|
|
|
That's not the same feature. This is for object initialisation, the VB one can be used on any object at any time.
IIRC there were very good reasons for avoiding it. I cannot recall the details any more though.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Further, it seems that you're "using" the wrong statement, you're thinking of "With".
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Oh, I'm thinking of With, yeah.
But C# has using too...
So in that case I'm not sure what you mean.
Are you just setting some properties without having to type the variable name?
|
|
|
|
|
Yes. The VB using syntax can be done any time; not just when creating the object.
Turbo Pascal had something similar and I've missed it for the last 20+ years.
PS thanks for making me feel old this morning.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing 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
|
|
|
|
|
Dan Neely wrote: and I've missed it Have you really missed it?
Sounds like just some syntactic sugar to me...
Dan Neely wrote: PS thanks for making me feel old this morning. It beats not getting old so you're welcome
|
|
|
|
|
Sander Rossel wrote: Dan Neely wrote: and I've missed it Have you really missed it?
Sounds like just some syntactic sugar to me...
Really nice syntactic sugar.
If I wanted to keep everything in the language as verbose as it was 15+ years ago, I'd do Java instead. Virtually nothing is being done to deverbose that language.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing 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
|
|
|
|
|
What a long article, just for introducing a short style of writing.
Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!
|
|
|
|
|
Cool. Finally! It always bugged me to have to use the brackets and needlessly create nested scopes.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Verizon Media, the media and digital offshoot of telecommunications giant Verizon, has launched a “privacy-focused” search engine called OneSearch. You know it's private, because they tell you!
Because if you want to trust someone, it would definitely be those great telecom companies, right?
|
|
|
|
|
|
A “module initializer” is a function that is run when an assembly is first loaded. In many ways this is like a static constructor in C#, but rather than applying to one class it applies to the entire assembly. We all have to start somewhere
This one scares me for some reason. I guess it's because I can imagine someone stuffing something into an assembly to autorun when loaded.
|
|
|
|
|
|
Thread Local Storage callbacks, anyone?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
The cooperation is somewhat of a departure. In the past the NSA has kept some flaws secret to use them as part of the U.S. tech arsenal. The backdoor expired?
I'm sure it's a coincidence this falls on the day Win7 support ends?
"It is unclear how long the NSA knew about the flaw before reporting it to Microsoft." Long enough?
|
|
|
|
|
Every piece of code we write is unique, or pretty much. However, there are things that are common in a lot of code, even across various codebases, and even across various languages: the physical shape that code has. "Methinks it is like a weasel"
|
|
|
|
|
Quote: Shapes of things code before my eyes
Just teach me to despise
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
You only have to worry if it weighs the same as a duck.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Circles are Pointless - Meme Center[^]
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
Chrome will move to a new technology called Client Hints, part of the newer Privacy Sandbox project. Now how will I know if that browser is Mozilla-compliant?
|
|
|
|