|
Member 7989122 wrote: So I cannot agree that the strategy is silly in every case. Sometimes it makes perfect sense.
Great examples but not quite the same as the OP where it doesn't make sense to try the same command again right away.
This also brought to mind a program I have to migrate database objects...those having a dependency yet to be created fail and get put into a recursive 'try again' queue.
"Go forth into the source" - Neal Morse
|
|
|
|
|
Member 7989122 wrote: I have fairly recently programmed a couple "try again" cases: On a quite heavily loaded file system, the number of exceptions due to confliciting accesses was higher than desired. So, when making modifications to a set of files, I make one try for each. Those failing are put into a list for retrying, and a second attempt is made once the first round was completed. Only after a second try, the user is notified. We went from too many access collisions to almost none. Sometimes, the second try came too fast, and the file was still busy. So I added a 5 ms sleep before starting a second round, and after that I haven't seen a single collision.
So, you just assumed that whoever/whatever else had been writing to the file had been doing nothing worthwhile? Personally, if I detect any changes to a file I would avoid writing to it, and notify the user. Better still, open it for exclusive write.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
|
Try try until you succeed !!!
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
DM's Esoteric Programming Languages - Petrovich[^]
What.
The.
F***.
Was.
That.
Guy.
Smoking?
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
|
David Morgan-Mar wrote: And in case you think this is entirely a joke, imagine a Petrovich layer over another operating system, such as Microsoft Windows (TM). Every time Windows does something you don't like, you could punish it, and it would never do it again... Windows is performing automatic updates. After 6 million arbitrary files have been downloaded and applied your machine will reboot.
Petrovich> punish punish punish
Edit: oh, and in answer to your question. Probably half a page load of lsd-25 or stronger.
|
|
|
|
|
Patch 1.05 Combo Damage Table : MECoOp[^]
Appearently the Multiplayer Damage stuff is taken from the host's Singleplayer data tables.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
I remember this bug from single/multi player games...in the 90's.
The last time I saw this you needed a dial-up modem to pwn the plebs.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
I have a few SQL scripts as embedded resources in my app, for EF seeding. To make sure other coders, or me much later, don't go looking for these scripts, I added the following comment to the first line of each one:
-- This file is used as an embedded resource and not included in the build output.
Then I build a little ResourceManager that for now just reads embedded files, and when I tried it out:
var script = ResourceManager.ReadEmbeddedTextFile("SeedIdTypes.sql");
and hovered over the script destination var, I never saw past the comment, which I had forgotten about, saying This file is used as an embedded resource and not included in the build output , and I assumed it was the CLR complaining about my build settings for the script file. A wasted half hour later, I looked closer, and saw the SQL, realised the script was being read, and the "error message" was my own comment.
Immanentize the Eschaton!
|
|
|
|
|
|
Ouch.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Brady Kelly wrote: and I assumed it was the CLR complaining
That's what happens when you create professional looking comments. If you'd written "hey, dumb*ss, you can't do this!" you would have figured it out right away!
Marc
Latest Article - Merkle Trees
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Immanentize the Eschaton!
|
|
|
|
|
How is it you've lucked out and never had an IDE call you a dumb*ss?
Software Zen: delete this;
|
|
|
|
|
Brady Kelly wrote: comment
... not if I can't see them ...
|
|
|
|
|
Ouch!
I have been bitten in the rear with similar comments. Now I sign my comments with my initials and data. An added benefit, I can search for my comments.
-- This file is used as an embedded resource and not included in the build output. [BK 20170418]
|
|
|
|
|
I used to do exactly the same, but I so seldom work on shared code-based these days, it's all my own, so that sort of ell by the wayside.
Except I used to put the [BK 20170418] first, so it's always in the same left side of the sreen, regardless of comment length.
Immanentize the Eschaton!
|
|
|
|
|
Everything is more simpler. Words and more words but reason does not matter. How to distinguish truth in an ocean of false information? How to find the best path for everyone if nobody cares and everyone accelerates? How will we know the truth if we ask for evidence that is impossible to obtain?
modified 15-Apr-17 1:24am.
|
|
|
|
|
What the f did i just read?
|
|
|
|
|
I think we may be in the presence of the mighty J.P.Montford (I think he was the President of the Solar System and Member of the Galactic Parliament for Milky Way West the last time he emailed me but I struggle to keep abreast with interstellar politics these days).
Slogans aren't solutions.
|
|
|
|
|
I'm me, and I have some Kool-aid you can have.
|
|
|
|
|
Excellent! Clearly there is a shortage of Kool-Aid.
... such stuff as dreams are made on
|
|
|
|
|
I did not know about the existence of that Kool but now I like it and I want it. Start applying it now because I want the new place to be Kool.
|
|
|
|
|
It's getting better and better
|
|
|
|