|
System.Data.SqlTypes.SqlString
|
|
|
|
|
Quote: .NET 6, aka .NET Core 6 I think they ended .NET Core line with .NET 5; bringing it all (Core, Standard, Framework, etc. etc.) together in a single platform.
Personally, I'd like a .NET version that doesn't have a lifespan of 2-3 years only. I stopped caring about .NET versions, to be honest.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
They ended the core branding with .NET 5; but .NET 5 is still .net core; not .net framework.
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
|
|
|
|
|
I like .NET6
Null checks are a fine way to prevent some silly error.. granted they might seem annoying occasionally, but you can then use the ! operator like so: string s = null!; , go ahead, try it!
|
|
|
|
|
At this point I have no idea which .NET version is which or even which I'm using at any given time.
|
|
|
|
|
|
Well, I'm definitely not doing upgrades - my curiosity is for new personal projects. I've been using .NET Core 3.1 and have been recently poking at .NET 6. So far so good, but again, these are greenfield projects, not upgrades.
|
|
|
|
|
I see no reason to keep using .net Core 3.1. .Net 6 is LTS, can be used with the same good old syntax and has wider compatibility with other OSes. Also, they fixed quite a few bugs in the runtime libraries - but I guess one could use the most recent NuGets with older runtime versions.
We have both .net webforms (4.8) apps and razor (6.0) apps sharing the same logic libraries, so in those we use multitargeting and reference NetStandard where possible. If only MS made EF6 compatible with .net standard 2.1 we could get rid of multitargeting altogether (EF Core is not a valid alternative for our use cases).
We are also exploring how to replace Windows-specific dependencies with portable ones, mostly because from our preliminary tests running unit tests under Linux seems to be much faster.
One thing I really cannot stand: the new main syntax (Should the console project template use top-level statements · Issue #27420 · dotnet/docs · GitHub[^]). Maybe I'm just getting old
Luca
The Price of Freedom is Eternal Vigilance. -- Wing Commander IV
En Það Besta Sem Guð Hefur Skapað, Er Nýr Dagur.
(But the best thing God has created, is a New Day.)
-- Sigur Ròs - Viðrar vel til loftárása
|
|
|
|
|
Luca Leonardo Scorcia wrote: One thing I really cannot stand: the new main syntax
It sure takes a bit getting used to, at least visually. I was quite taken aback when I started with a .NET 6 Web API template. Where's Startup.cs? WTF is going on in Program.cs?
Once I realized what happened, my brain started to slowly adjust -- but it's still adjusting.
|
|
|
|
|
My personal motto is not to stick to previous versions unless there's a REALLY good reason to use them. To name an example, .NET source generators still require a .NET standard project, so I'm running mine on .NET standard instead of upgrading it to .NET 6.
The null checks are great! I've enabled them in .NET 5 (where they were optional) and am very glad they're enabled by default now. Having the null as a conscious & explicit construct, rather than something which just happens & is kept implicit, is a huge boon for safety!
Knowing for sure that a string parameter (as opposed to a string? parameter) will not be null (and it it is, I'll get an exception way before control flow forks into this particular method) helps a lot!
I also came to use null explicitly if I want an erroneous value which doesn't warrant an exception. When, an example I often work with, parsing a protocol with optional fields, I initialize those fields to null in the output structure. Knowing that the only way for a null to get there is for my parser to put it there because null is explicit.
|
|
|
|
|
|
|
This is why I am nervous about crypto. Are there any old school banks with years of protecting electronic accounts that will hold crypto for you? For a fee, of course!
|
|
|
|
|
The banks put the controls in place, the consumer keeps looking for "bridges" so they won't have to think, etc.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Are we surprised?
Safes are hackable - but in most case it involves a lot of noise and that draws attention...
Software is hackable - and it can be done in your comfort zone and without any attention at all...
Cryptocurrency came to life to go under the radar, but on the way it also lost the protection the bank system gives... Some was thinking it worth, other learned it may not be such a good idea...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Around five years ago, my then-employer wanted to go big on Blockchain.
Don't get me wrong, they were a fine tech company with skilled people in .NET and Azure, and they didn't bet on a single horse, but they had a weak spot for the latest greatest (they always wanted to be in on it before clients started asking about it).
I attended some presentations about blockchain and one thing I heard is that it was unhackable.
Blockchain was so simple and so transparent that it just couldn't theoretically be done, the math was clear on it.
I rolled my eyes and waited, not too long, before the first news articles about hacked blockchains came rolling in
NOTHING is unhackable (Chrome doesn't even recognize "unhackable" as an existing word, while "hackable" is ).
|
|
|
|
|
According to the article, they didn't hack the blockchain, but a "bridge"; sounds more like a victim of agile.
Bridges use wrapped tokens, which lock tokens in one blockchain into a smart contract. After a decentralized cross-chain oracle called a “guardian” certifies that the coins have been properly locked on one chain, the bridge mints or releases tokens of the same value on the other chain. Wormhole bridges the Solana blockchain with other blockchains, including those for Avalanche, Oasis, Binance Smart Chain, Ethereum, Polygon, and Terra.
But what if you can’t trust the guardian? AT lengthy analysis posted on Twitter a few hours after the heist said that Wormhole’s backend platform failed to properly validate its guardian accounts.
..and Compounding the difficulty, the new hack came shortly after a recent change was made in some of the software involved.
“The bridge didn’t expect that users could submit a signatureset, since the change to facilitate that was a recent one in the Solana runtime,” Guido explained. “By submitting their own signature data, an attacker short-circuited a signature check that allowed them to take ownership of a large amount of tokens.”
A change in the software, which "did not expect" a signature.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: Bridges use wrapped tokens, which lock tokens in one blockchain into a smart contract. After a decentralized cross-chain oracle called a “guardian” certifies that the coins have been properly locked on one chain, the bridge mints or releases tokens of the same value on the other chain. Wormhole bridges the Solana blockchain with other blockchains, including those for Avalanche, Oasis, Binance Smart Chain, Ethereum, Polygon, and Terra.
But what if you can’t trust the guardian? AT lengthy analysis posted on Twitter a few hours after the heist said that Wormhole’s backend platform failed to properly validate its guardian accounts. This is mostly mumbo jumbo to me (and I suspect in general), so I have no idea what they're talking about
When I say "hacked" I mean in the broadest term of the word, social, technical, directly, indirectly...
Basically, people are manipulating blockchains where I was told that isn't possible (because hashes would fail and you can't fake hashes blah blah...)
|
|
|
|
|
Sander Rossel wrote: This is mostly mumbo jumbo to me (and I suspect in general), so I have no idea what they're talking about Lack of knowledge doesn't stop you from venting an opinion
Sander Rossel wrote: Basically, people are manipulating blockchains where I was told that isn't possible The blockchain wasn't hacked, but a "bridge".
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Ok, I'm going to water it down even further.
Blockchain was untouchable according to the fanbois.
It obviously isn't, as was to be expected.
That's really my whole point.
And I get it, it's not blockchain, but a bridge, blah blah... The fact is, someone had their money "safely" inside an "untouchable blockchain", and now it's gone.
Eddy Vluggen wrote: Lack of knowledge doesn't stop you from venting an opinion Welcome to the internet
|
|
|
|
|
Sander Rossel wrote: Ok, I'm going to water it down even further.
Blockchain was untouchable according to the fanbois.
It obviously isn't, as was to be expected.
That's really my whole point.
And I get it, it's not blockchain, but a bridge, blah blah.. Let me repeat that, the blockchain isn't hacked.
Your "point" is invalid. You might want to learn how it works, so you can actually say something about it that is viable.
Aw, I don't own anything on a blockchain; I'm a silver-bug.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I didn't even use the word "hacked" in that post.
I said "untouchable" to be more on-topic for this particular post (how dare I post about blockchain being hacked in a topic on a bridge connecting to a blockchain being hacked).
Hacked or not, blockchains can be manipulated in ways that were earlier not accounted for.
For my earlier comments about it being (un)hackable:
Blockchains Were Supposed to Be “Unhackable.” Now They’re Getting Hacked.[^]
Once hailed as unhackable, blockchains are now getting hacked[^]
My point, that blockchain isn't as secure and airtight as once believed, stands.
I've said absolutely nothing that wasn't true.
Your "argument" that my entire point is invalid because I don't know enough about the subject is what we call an "ad hominem", attacking the person rather than their argument, and is completely uncalled for.
A more appropriate response would be "Not blockchain, but a bridge, was hacked, so you're slightly off-topic."
Got out of the wrong side of the bed this morning?
|
|
|
|
|
Sander Rossel wrote: Your "argument" that my entire point is invalid because I don't know enough about the subject is what we call an "ad hominem", attacking the person rather than their argument, and is completely uncalled for. Not attacking the person, but his "ideas". It's not personal. Sorry if you feel that way.
Sander Rossel wrote: Got out of the wrong side of the bed this morning? I got out of the wrong bed. Lucky guess.
Sander Rossel wrote: I've said absolutely nothing that wasn't true. Didn't you? You just proven to lack knowledge on the subject, yet act as an authority.
--edit
Nearly forgot your main argument; you call it a personal attack, because I point out your lack of knowledge on the subject. If being dumb is an ad hominem, I admit.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: Didn't you? You just proven to lack knowledge on the subject, yet act as an authority. This is how it feels to me.
Authorities on the subject: Blockchain can't be hacked.
News: Blockchain got hacked! (and ok, in this case a bridge to blockchain got hacked, resulting in stolen funds from blockchain)
Me: I knew it! People said blockchain couldn't be hacked, but it got totally hacked.
You: Your point is invalid because you have absolutely no knowledge of blockchain!
I never said I have knowledge of blockchain and I did not act as an authority, I really have no idea where you got that idea.
My story was really simple, everything can be hacked, including blockchain, despite authorities' earlier claims.
That point was proven and I don't need to know any technical details to make that claim.
Eddy Vluggen wrote: Not attacking the person, but his "ideas". It's not personal. Sorry if you feel that way. There's no "idea" that I, personally, have no knowledge about blockchain and there's also no "idea" that it's hacked even though people said it couldn't, so yeah, you're totally attacking me personally.
You're even going as far to say my anecdote and proven claim is invalid because I have no knowledge on the subject.
So anyway, I'm done talking to you for the time being.
|
|
|
|
|
Sorry, sorry, you misread me, or I used the wrong words. Probably the latter
Sander Rossel wrote: News: Blockchain got hacked! (and ok, in this case a bridge to blockchain got hacked, resulting in stolen funds from blockchain) It didn't. Consider the blockchain a bank; it wasn't hacked. A bridge was hacked, a third party.
Imagine you spend "real" money from your wallet, but transaction go through me. I steal from you. Does that mean your wallet is hacked?
Sander Rossel wrote: I never said I have knowledge of blockchain and I did not act as an authority, I really have no idea where you got that idea. Might be due to your posting on the topic where you say "PROOF IT BEEN HACKED".
Sander Rossel wrote: That point was proven and I don't need to know any technical details to make that claim. You don't need knowledge to make what claim? To be able to hack a readonly ledger that is copied often?
Sander Rossel wrote: There's no "idea" that I, personally, have no knowledge about blockchain and there's also no "idea" that it's hacked even though people said it couldn't, so yeah, you're totally attacking me personally. NOOO!
Ah, dammit, I'm just gonna shut up then. I hold you in high regards FWIW.
Sander Rossel wrote: You're even going as far to say my anecdote and proven claim is invalid because I have no knowledge on the subject. A non sequitur, because it works different from what you painted. "Te kort door de bocht", to use a saying you familiar with.
My apologies for making it feel like an attack. I guess I needn't send in my resume once your company grows?
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|