|
In a similar vein, the ClubMember type in particular made me wish (again) that C# supported enum types with methods.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Extension methods will get you close to that:
public enum ClubMember
{
NonMember,
Member,
}
public static class ClubMemberExtensions
{
public static decimal CalculateAmount(this ClubMember member, decimal productValue) => member switch
{
ClubMember.Member => productValue - 10,
_ => productValue,
};
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
What, no "stringly" typed data?
|
|
|
|
|
|
I thought the author’s “fixed” code was awful.
Why leave email as a string?
Boolean is the worst primitive for this, why did the author leave a boolean?
I am trying to get a law passed that all booleans should be converted enums.
If I see a class named ClubMember, I would never expect to call ClubMember.isMember(), ever.
Maybe ClubMember.getMembershipStatus().
Oof!
|
|
|
|
|
englebart wrote: I am trying to get a law passed that all booleans should be converted enums.
That's easy:
public enum Bool
{
True,
False,
FileNotFound,
} What Is Truth? - The Daily WTF[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Too funny. I used to visit that site, but their security was so bad that I thought I would pick up a virus from the comments.
That very meme flashed through my mind while I was posting.
|
|
|
|
|
Slack suffered a security incident over the holidays affecting some of its private GitHub code repositories. The company name also describes its security practices?
|
|
|
|
|
If I was cynical, I might have suspected this had something to do with recent layoffs at Slack/Salesforce.
|
|
|
|
|
It has won this title because C++ gained most popularity (+4.62%) in 2022. It might just go places now
|
|
|
|
|
You'll still be able to upgrade your graphics card, but don't be surprised if the shark bites back. Looks like I have to get a new PC case
|
|
|
|
|
During AMD’s CES 2023 keynote, it revealed the first AI engine on an x86 processor — and Microsoft’s Panos Panay says those capabilities are the future of Windows. New AI for designing icons and curving window corners!
|
|
|
|
|
"Everyone now has almost 3 GHz computers. How can we add even more lag to their systems?" - Evidently a Microsoft's CEOs main responsibility.
|
|
|
|
|
David O'Neil wrote: "Everyone now has almost 3 GHz computers. How can we add even more lag to their systems?" On a "dedicated AI engine"?
|
|
|
|
|
Don't worry - there will be a synchronous wait!
|
|
|
|
|
Ugh, that hadn’t occurred to me. Of course they have to slow things down again.
TTFN - Kent
|
|
|
|
|
Kent Sharkey wrote: those capabilities are the future of Windows. Looking at the recent past, it might even be an improvement
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.
|
|
|
|
|
one word comes to mind: debacle.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
"Amazon says it plans to lay off more than 18,000 employees.
Several units will be affected, including Amazon Stores and its human resources department, according to a statement from CEO Andy Jassy."
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
|
|
|
|
|
I do give them, that there is a lot of people in the wrong jobs that doesn't deserve being there. (I would have fired several people I had to work with, and would fire even more where I am now).
The big question is... are they even checking who they fire? Or is it just by pointing with the finger at a list of ranges of personal ID-Numbers until they get the amount?
I think more the second option (or something similar, but equally unfair for some of the fired), and that's what I don't like.
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 won't say with who or what my limited experience with Amazon (well, AWS) was, but I too concur with this sentiment.
Jeremy Falcon
|
|
|
|
|
Low skilled and low IQ humans will have an interesting time finding any job in the next 10-20 years, with the onset of mass AI and ML, etc.
When billions of people around the world have been replaced by machines. what happens then?
|
|
|
|
|
That's what I've been saying for the last few years - except I think it applies to even skilled and higher IQ workers. I work for a company that automates industrial processes. A single one of our machines can replace dozens of manual workers. Yet our machines are currently hand built.
When I asked our machinists and assemblers if they feared being replaced by robots they showed real concern - they had obviously thought about it.
When I asked our office staff (accountants, engineers, devs, general staff, etc...) if they feared being replaced by AI they laughed and mocked the possibility. 
|
|
|
|
|
"Just one year ago, Apple was riding high, celebrating becoming the first US firm to reach a market value of $3 trillion.
But it’s a very different story 12 months later, with Apple shares plunging by more than 4 per cent on Tuesday, and the tech juggernaut going into 2023 with a market value below $2 trillion for the first time since early 2021.
It means the company saw a staggering $1 trillion wiped out in just one year, joining Amazon which became the first public company to ever lose more than $1 trillion in value in November 2022."
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
|
|
|
|
|
How sad... poor guys.
Don't get me wrong, it is an interesting post worth to be known
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.
|
|
|
|