|
I've read that if you press Ctrl-Shift-Q that you close all the windows. You might be pressing "Q" by mistake.
|
|
|
|
|
all dark, no moon ... good ... hunting.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
BillWoodruff wrote: all dark, no moon ... good ... hunting.
A religious icon wrote: I am the Light of the world; he who follows Me will not walk in the darkness, but will have the Light of life.
|
|
|
|
|
specific quotes from your-brand-of-scripture is inappropriate on every CodeProject forum for very good reasons. message reported as inappropriate.
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
Sweet,
Should we report your comments about Sanskrit and the Vedic scripture Bill?
Edit:
I'm just pointing out something I find hypocritical, if you check your post history you proclaimed your religion ages ago.
modified 6-Jan-23 4:29am.
|
|
|
|
|
You can report anything you want; anything you feel violates CodeProject's ethos.
There is a big difference between my comments on the history and linguistics of the Vedas and Sanskrit, on the Mahabharata as drama and metaphysical allegory, and a direct quote from a scripture used as a talking point. I very carefully avoided anything that showed disrespect for Hinduism the same way as I would carefully avoid showing disrespect for Christianity, Islam, etc.
The quote (in Urdu) I used from Kabir is poetry.
Glad to hear you read my posts !
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
|
Wrapping every primitive value in a class like that is going to dramatically increase the memory usage of the application, and potentially decrease the performance. After all, there's a reason Java has stack-allocated duplicates of certain heap-allocated classes.
The author should really be using a struct for the wrappers - and preferably a record struct .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
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.
|
|
|
|