|
Not really, replace needs target text to be replaced, this function does it on character index.
|
|
|
|
|
Not really, you can have an offset and a length. There is no "find" implied in replace. It was about "word play", not implementations.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
modified 23-Jul-20 10:12am.
|
|
|
|
|
Stop paying attention to what you read - it will only confuse the rest of us.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Any computer I work on will end up with a folder off the root called Stuff, in which I put... well, stuff that I might need.
|
|
|
|
|
I always have a folder called _A in the root of each (fixed) drive on my systems. This means it's always at the top of the directory listing and quicker to find than "stuff". All "temporary" or "uncategorisable" stuff goes in there and every few months I have a cleanout.
|
|
|
|
|
Me: "What do you do at work?"
Cushion maker: "Stuff."
Me: "Alright then, keep your secrets."
|
|
|
|
|
Works for a Taxidermist as well
|
|
|
|
|
Those cushion makers have too much fun; they're always in stitches.
|
|
|
|
|
I can actually forgive that. This was just for demonstration's sake and does not really do anything else. Why make up fancy names that distract from what you are trying to demonstrate?
I never got this obscession with code styles and conventions. We're writing code, not poetry. I'm used to writing machine code on a RISC processor. It does not get any more abstract than that, but by going down to the lowest level you really can see how little information you need when reading someone else's code. That's mostly about what resources are going to be used, what is being accomplished with them and possibly to point out critical or unusual code and the logic behind it. There actually is no need to make an art out of it.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
CodeWraith wrote: We're I am writing code, not poetry FIFY
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Do you recite your poetry before an audience? When will you publish your next book and where must I go to hear you read from it?
for (X = 0, y = 42; x < math.Pi && y > 0x1A; x++, y--)
{
}
I just can't wait...
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
It is recited on hundred of desktop - every day - all day.
The audience appreciation is the comfort with which they use it and the other artist who can create, because of it's natural beauty, interfaces and outputs with ease. The applause - in a special way - include the silence resulting from everything working as expected.
And the audience appreciation probably extends to the bi-weekly paying customer.
The site is, for now, internal, only - so you'd need to work here.
Surely, by now, you've seen sh*t masquerading as software. They have some here, too, built by their contractors.
My target is a comfortable flowing experience for the developer through users - and also keeping it eye-friendly as most of them stare at it all day.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
How romantic.
The truth is that your audience gets my totally unromantic binaries and your poetry may or may not survive as debug information.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
rose = Red;
violet = Blue;
CodeWraithsUseOfDescriptiveAndPoeticNames = 0;
|
|
|
|
|
F8 00 BD BE AC AD AE AF
F8 FF BC BF 7A
There you go. RGBA in two register pairs and the rest in a the microcontrollerish I/O flag Q. Big deal.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Ya' know what? I think you would benefit from buying some of that computer memory that comes with colors and fins and looks almost ready to fly. Maybe some colored lights, too.
"For in the land of the blind, he with one good eye is king"
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Not quite coding, but...
12 + 144 + 20 + (3 * 4^1/2)) / 7) + (5 * 11) = 9^2 + 0
to be read: "a dozen, a gross and a score, plus three times the square root of four, divided by seven, plus five times eleven, equals nine squared plus not a bit more"
|
|
|
|
|
I'm trying to figure out why that function even exists other than for obfuscation purposes.
|
|
|
|
|
Wow, thanks for that! Perfect timing as I just now happen to need something to swap out only the first 7 characters of an id field in a bunch of tables in multiple dbs. (prepping a demo) This works perfectly!
"Go forth into the source" - Neal Morse
|
|
|
|
|
What happens if you call it twice?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Could be worse. Back in 2003 I worked on a codebase (which had copyright notices going all the way back to 1991) that had "DoProcessing1()", "DoProcessing2()", etc scattered all over.
Come to think of it, it also had variables named "ByteArray1", "ByteArray2", etc scattered all over too.
|
|
|
|
|
I don't understand your comment. I use the STUFF function regularly and it seems perfectly named.
From macmillandiction.com:
Stuff (verb transitive): to fill a container or space with something
So we have the following evolution:
Stuff [space] with [something]
Stuff [<this> from <here> for <length>] with [something]
Stuff 'SQL Tutorial' from (character 1) for (3 characters) with 'HTML'
STUFF('SQL Tutorial', 1, 3, 'HTML')
It seems to me whoever named it came up with a very precise and succinct name.
|
|
|
|
|
We have a method named MixMaster . We were at the whiteboard and didn't know what to call something; drew a box and labeled it Mix Master just to avoid being stuck. The method name has survived about 7-8 years...
Brian Hughes
modified 24-Jul-20 21:11pm.
|
|
|
|
|
|
Hello From My Basement featuring Barbra Lica
I just love her voice.
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|