|
Did you replicate the immutability, or do your operators mutate the list?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I am going to do a rework on it a bit to make it immutable (creating a new list each time).
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???
|
|
|
|
|
You might want to look at the Immutable Collections[^] package, rather than building on the existing mutable collections.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I'll look at that. I may end up removing the class instead.
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???
|
|
|
|
|
IMO, arithmetic operator overloading is evil, and I see no reason to replace .NET's Remove , RemoveAt , Add , InsertAt and AddRange methods.
Of course, the duck-typed advocates love this sort of crap because you can have a function that takes a string, an array, a number, whatever, and "+" will do whatever the interpreter deems appropriate for the types. I will never be comfortable with that kind of madness.
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
|
|
|
|
|
If it walks like a duck, and quacks like a duck, it’s probably gonna throw exceptions at runtime.
|
|
|
|
|
Marc Clifton wrote: arithmetic operator overloading Aids in abstracting bugs, something which code maintainers really appreciate.
Peter Wasser
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts." - Bertrand Russell
|
|
|
|
|
I kind of stumbled upon this track and was just blown away by the sound.
Marcus Warner - Wings[^]
if (Object.DividedByZero == true) { Universe.Implode(); }
Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016
|
|
|
|
|
Very good
|
|
|
|
|
Seriously? In the world of self driving cars, AI stock brokers, and a fake White House, to get a listing of files in a folder I have to open a console window and do that?
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
|
|
|
|
|
Using that you can't see what is listed. You have to use
dir /b >files.txt & type files.txt instead
|
|
|
|
|
But I don't want to see it, I just want to send the list of files to someone.
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
|
|
|
|
|
dir /b | more
"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
|
|
|
|
|
|
Holy hell. I never knew this!
Jeremy Falcon
|
|
|
|
|
This I learned here in CP
Unfortnatelly I can't find the post where it was described/mentioned to give credit to
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Old dog, new trick. Thanks!
Software Zen: delete this;
|
|
|
|
|
Thank you, I learned this here at CP
modified 19-Jan-21 21:04pm.
|
|
|
|
|
That doesn't seem to work from the Explorer address bar in Windows 10. It just opens the default browser and searches for "dir | c:\windows\system32\clip" - and to make matters worse, it searches with Bing!
I guess I should be grateful that they're honouring my default browser, even if they're going to ignore my default search engine.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thank you for your Feedback.
W7, private Laptop: Ok
W8.1, Company Desktop: Same what you reported
W10: not tested...
I think there will be some tricks to make it work also for W8/10
modified 19-Jan-21 21:04pm.
|
|
|
|
|
For me it opened chrome.
John
|
|
|
|
|
Richard Deeming wrote: and to make matters worse, it searches with Bing!
Hey I love bing! Bing bribes me with xbox live subscriptions
On the other hand, you have different fingers. - Steven Wright
|
|
|
|
|
0x01AA wrote: it was also in the Lounge when somebody described that one can Launch cmd directly by the adress bar in the Windows Explorer.
Yes, I remember that and have started using it quite a bit! I think I missed the post on the "clip" thing though. Thanks for reposting!
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
|
|
|
|
|
You can go direct to the clipboard - dir | clip will do it.
But I agree, it's a bit poor all round.
There are apps out there to do it - and it's simple enough to add one of your own!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
That is plagarized from the message above
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|