|
Failure to understand some basics really bites later… usually in production.
e.g
A validation of a list to detect duplicates.
Duplicates must match on eight unique fields.
Retrieval of some of the fields make a trip to the database.
First implementation consists of three nested loops; full loops with no shortening. Works great in test with 40 items.
Hits production with 500 items and takes minutes to complete. This is an interactive function with a user waiting for a response.
Final solution:
Make one pass through the list to build/combine the comparison fields once.
Then 2 nested loops, but the inner loop is adjusted based on the outer loop.
(if you already compared index 5 to index 23, you do NOT need to compare index 23 to index 5, and you really do NOT need to make the comparison six times like the original algorithm.
This is basic programming!
|
|
|
|
|
...
modified 10hrs 20mins ago.
|
|
|
|
|
Just noting that there are books, many of them, that deal with loneliness.
It is unlikely to be be simple as such expecting a small/quick solution is unlikely to work.
|
|
|
|
|
adriancs wrote: The following info might not work for everyone or in every situation What you call loneliness, I call solitude and I prefer it that way.
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: solitude
Amen, brother.
Nowadays if you have the ability to stay on your own without any sort of distraction, focus on something and actually enjoy that time you're left with nothing but your own thoughts, you're told you're on the spectrum and probably need to be medicated. To which I say, no, that used to be the normal mode of operation for human beings. Society has evolved until that was no longer the case for various reasons, and the biggest offender of them all is the smartphone, which seriously did us a disservice and dumbed us all down.
You have to be able to function without constant external stimuli.
|
|
|
|
|
Yupe, that's a nice point of view 😉
|
|
|
|
|
Get a cat. You'll never feel lonely.
|
|
|
|
|
No get a dog and you'll never feel lonely.
Get a Cat and feel rejected, neglected and you're only reason for being there is to serve the feline.
I don't think before I open my mouth, I like to be as surprised a everyone else.
PartsBin an Electronics Part Organizer - Release Version 1.3.0 JaxCoder.com
Latest Article: SimpleWizardUpdate
|
|
|
|
|
Mike Hankey wrote: you're only reason for being there is to serve the feline
In short, not feeling lonely, isn't it?
|
|
|
|
|
Hmmm, I frequently report blog drivers, but you're not new here so I'll let it slide.
I would recommend though that you put this in your CP blog rather than in the lounge -- so it will stick around rather than fall off the page.
|
|
|
|
|
I actually did had consulted the CP content management team about before this. The response is while they think this is a helpful post for anyone, the content posted on CP should try to stick to development-specific problems and solutions.
That's why I didn't post this (as an article or blog). I know eventually this will fall off the page. but it's ok ![Wink | ;)](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_wink.gif)
|
|
|
|
|
Only happens when I forget to turn on my hearing aids.
>64
Some days the dragon wins. Suck it up.
|
|
|
|
|
Doctors[^]
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Exactly. My signature is so illegible I have been asked on multiple occasions if I'm a doctor.
|
|
|
|
|
good one
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I’ll have to send that one to my sister. She’s an OB/GYN so I’m sure she’ll get a kick out of it.
|
|
|
|
|
Dog with copper award inside could be cool ? (8)
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
This may be my brain totally misfiring since I can't justify it at all, but... CUCUMBER?
[edit]
And as soon as I'd posted, I got it:
Dog with CU R
copper CU
award MBE
inside could be cool
CUCUMBER
[/edit]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Nothing wrong with your noggin welcome back YAUT
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
“Cool as a cucumber” could be an unfamiliar simile.
That is my interpretation (after you solved it)
|
|
|
|
|
Yesterday I spent in bed, mostly. I had to get up to feed and water the cat and Herself, and several other times to do the bits Herself needs through the day but other than that dozing and trying to find a comfortable position. I think my immune system went "You again? I'll have you cully!" and attacked everything just to be on the safe side ...
Today, I still have aches and pains - back and shoulders mostly - but my head is pretty clear and I can sit at my computer. (Yesterday, I couldn't even cope with the surface in bed!) I've had a couple of paracetamol this morning because I have a really busy day with thing I needed to do yesterday but couldn't (and if you know me, you'd know how rare is it for me to take pills of any kind) but they don't seem to be helping at all.
If you do have the latest Covid booster, be aware you may be out of order for a day or so following - but do have it as the virus itself is the same, but spread over two weeks ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Covid, no less!
What are you talking about?
It was eradicated several years ago, wasn't it?
Have a great day!
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
I had mine the same day as you and still have aching bones ( back mainly ) I've never reacted to any of the others.
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Had mine Monday, Tuesday was not as bad as you, but no fun as it affected my breathing. Wednesday was OK. Glad I didn't try for the flu shot at the same time.
|
|
|
|
|
Just made an appointment for my 5th jab on saturday, it will be Pfizer this time. Hope I will not have the same symptoms as you had.
|
|
|
|