|
Another small rant, two-for-one.
1) Debugging console applications with parameters is painful.
I need to test against all the possible combinations of arguments, can't do it properly though, need to pass through the debug options... which are persistent.
And the console does not stay open (yes the checkbox is unchecked, also ignored by VS).
And the breakpoint after the parsing moves the focus to the VS window hiding the Command prompt.
Every test is a clickity-clickity-typety-clickity-clickity-clickity-clickity-clak.
you Microsoft.
2) Structures in watch window do not stay expanded.
Add other clickity-clickity-claks to a simple test.
Basically the best way to test this behavior is inserting test code and debug prints, as we used to do when we had to chisel bits one by one onto EEPROMS with tiny hammers and a lot of patience.
Told you it was a rant.
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The shortest horror story: On Error Resume Next
|
|
|
|
|
Sounds like a situation where unit tests would work well.
|
|
|
|
|
|
Probably because it was modelled on languages which do allow execution to fall-through, and without an explicit break / return , early adopters might have thought the C# code was falling through.
[Proposal] Case fall through should be allowed · dotnet/csharplang · Discussion #603 · GitHub[^]
See also Eric Lippert's comments on SO:
C# enforces the no-fall-through rule in every switch section, including the last one. This is so that switch sections can be re-ordered arbitrarily, possibly by mechanical tools, without introducing semantic changes in the program.
C# enforces the no-fall-through rule by requiring that the end point of every switch section be unreachable. It is not necessary for a switch section to end in a break. It can end in a break, return, goto, continue, throw, or a detectable infinite loop:
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
For the most common scenario it just adds a line of code that has to be written which has no meaning.
It just clutters the code with additional meaningless lines. Bah, or better, !
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The shortest horror story: On Error Resume Next
|
|
|
|
|
I agree with a specific "end of case" being required - as Richard quoted, it allows the compiler to spot code faults instead of letting them cause runtime problems.
It may be "unnecessary", but it does trap some errors which could be difficult to diagnose at run time.
"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!
|
|
|
|
|
It does allow multiple "entry points", so
case 1:
case 2:
Some code
break;
So it can't just assume a break. Sure they can come up with rules for how it would be interpreted, but kind of glad they didn't.
|
|
|
|
|
Got an email from Dell that some of my data had been compromised. They don't think any financial data was stolen. Another one, sigh.
It seems to me that the people on the dark side have it much easier. I have to screw around with passwords, text messages, and some ugly Microsoft security application on my phone to get to my data.
They just click. Doesn't seem right.
Oh well, every hundred years, all new people.
>64
It’s weird being the same age as old people. Live every day like it is your last; one day, it will be.
|
|
|
|
|
Wordle 1,074 5/6
🟨⬜⬜⬜⬜
⬜⬜⬜⬜🟩
⬜🟨🟨🟨🟩
🟩🟨🟩🟨🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,074 3/6
🟨⬛⬛🟩⬛
🟨⬛⬛🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,074 3/6
🟨⬜⬜⬜⬜
⬜⬜⬜🟨🟨
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,074 3/6*
⬜⬜⬜🟨⬜
🟨⬜🟨🟨⬜
🟩🟩🟩🟩🟩
"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!
|
|
|
|
|
Wordle 1,074 3/6
⬜⬜🟨⬜🟨
🟩🟨🟨🟨⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,074 6/6*
⬜⬜🟨⬜🟨
⬜🟩⬜🟩🟩
⬜🟩⬜🟩🟩
⬜🟩⬜🟩🟩
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
And those who were seen dancing were thought to be insane by those who could not hear the music. -Frederick Nietzsche
|
|
|
|
|
⬜⬜⬜🟨⬜
⬜🟩⬜🟩🟩
🟩🟩🟩🟩🟩
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
|
|
|
|
|
until it is full groan.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Remember The Heroes - YouTube[^]
Points for anyone who can name the second singer without looking.
A special Thank You to those who have served and especially those who paid the ultimate price.
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
|
(I'm not paranoid, but a small description of the link, especically because its on the f-book)
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
|
Good point--changed it.
Thanks
|
|
|
|
|
See more on Facebook
I dont get it?
|
|
|
|
|
I told him i wanted to be happy.
Now I'm working in mine with 6 dwarves.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Never mine ...
I guess you can have chats with Snow White. She tells that she receives a continuous supply of 7Up.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
A miner was pulled over by the police.
The police officer asked him "What do you do, where are you going and whose car is this?"
The minder replied "mine."
|
|
|
|