|
Huh. Perhaps this is a problem for the newbies, but we *cough* more mature(*) *cough* developers often find a solution in refactoring that reduces the amount of code.
An example from earlier in the week:
I had several spots in my product that needed a common feature added. These spots were all explicitly coded, rather than being a single function with arguments, because they weren't complex enough to be worth the indirection. Adding the common feature changed that calculation. I replace around 200 lines of explicit code with calls to a 30 line function. This had the advantage that once I had the function working, it worked everywhere. I didn't have to test the common feature in several locations.
(*) aka old farts
Software Zen: delete this;
|
|
|
|
|
I've recently completed my first foray into writing a C# source generator for Schema.NET. There is a lot to like about source generators however there are a few things I wish I understood more before diving into it. A new .NET feature with pain points? Go on...
|
|
|
|
|
A new study finds your brain changes size from season to season. "It's not a tumor! It's not a tumor...at all."
Big brains help you look good in your bikini.
|
|
|
|
|
|
|
I wanted to learn about new C++20 language features and to have a brief summary for all of them on a single page. So, I decided to read all proposals and create this “cheat sheet” that explains and demonstrates each feature. Because you might want a sample before you run away screaming
Or jump in with both feet, of course.
|
|
|
|
|
IBM COBOL for Linux on x86 1.1 brings IBM's COBOL compilation technologies and capabilities to the Linux on x86 environment Because some people really miss their mainframes?
OK, or minis
|
|
|
|
|
I've been meaning to learn Cobol...
|
|
|
|
|
|
But that wouldn't be news, would it?
TTFN - Kent
|
|
|
|
|
you got me there.
To err is human to really elephant it up you need a computer
|
|
|
|
|
Google's promotion of Rust over C and C++ should lead to fewer memory security bugs. Android has memory bugs?
Still, good to see another big vote for Rust vs. C* (at least for low-level stuff)
|
|
|
|
|
From sticking a magnet on a fridge door to throwing a ball into a basketball hoop, the forces of physics are at play in every moment of our lives. Are midi-chlorians involved?
Beware of wobbling muons
|
|
|
|
|
The fifth force of nature is my youngest granddaughter.
|
|
|
|
|
In this article, we’ll cover new features for pattern matching. Looks like plaid
|
|
|
|
|
Can someone explain what critical problem they are trying to solve by adding this complication?
Although: if (variable is not null) is great in that I can now also confuse my C# with SQL while also being mind bent as I switch between Typescript and C#
cheers
Chris Maunder
|
|
|
|
|
Chris Maunder wrote: Can someone explain what critical problem they are trying to solve by adding this complication?
That simplicity is bad.
Honestly, if you have to "switch" on the type, it seems to me to be indicative of bad design, though there are definitely times when I've needed to -- weird deserializers that instantiate different types comes to mind.
|
|
|
|
|
Microsoft announced quite some time ago that its classic Paint app would be released on the Windows 10 Microsoft Store, and this is finally happening. That sound you hear are the PhotoShop developers quivering in terror
Or laughter, I can't really tell these things.
|
|
|
|
|
The Facebook Phone Numbers Are Now Searchable in Have I Been Pwned Just in case you know someone who might be interested / need to check
Because of course... yours is not going to be there.
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.
|
|
|
|
|
But they probably have my phone number even though I never created an account.
|
|
|
|
|
For sure...
They might not know that that profile is concretely "you" but they probably knew a lot about the person using your devices
Not a secret that they create profiles for "John/Jane Does" that are not signed in
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.
|
|
|
|
|
You may find that mine is 602-123-4567 .
|
|
|
|
|
Don't have FB, don't give away the number.
So, no, it not gonna be in there. If you're not paranoid, you not equipped for the new normal.
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.
|
|
|
|
|
Only because I am paranoid, it doesn't mean that I am not being followed
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.
|
|
|
|
|
Nelek wrote: Have I Been Pwned
That sites states that several (exactly 10) of my accounts have been stolen by hackers... 9 of the listed are sites that I do not even recognize... The 10th is Adobe...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|