|
A friend of mine, who is absolutely clueless about computer, asked me "what is this multithreading error I was talking about, about?"
And I came up with this brilliant analogy, even if I do say so myself, to explain it: "it's like when you have 3 different managers all asking you to do different conflicting top priority things. in the end nothing much might happen!"
She got it right away!
|
|
|
|
|
You should be a teacher.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
Yay!
|
|
|
|
|
|
cute!
and close..
|
|
|
|
|
Multithreading? Drive to work every morning and you can learn all about it. Traffic lights show you everything about locks, deadlocks, race conditions and the strange phenomenon that some threads keep misunderstanding some part of green or red.
I have lived with several Zen masters - all of them were cats.
|
|
|
|
|
On the one hand, you want to have your cake; on the other hand, you want to eat it too.
|
|
|
|
|
good one hey!
|
|
|
|
|
Super Lloyd wrote: even if I do say so myself, to explain it: "it's like when you have 3 different managers all asking you to do different conflicting top priority things. in the end nothing much might happen!"
Ahh...and then a deadlock would be....
When you just say f*ck it and leave work early for happy hour.
|
|
|
|
|
My mom is watching a TV show, and a woman on it was going on about a two page speech she had written about the pain and suffering she had gone through making Jell-O (Yes. Jell-O). Her husband (I think) then interrupted her and told her to stop being so Jell-O-dramatic.
I Laughed.
What corny jokes do you guys have?
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???
|
|
|
|
|
Man that joke was like paper.
Because it was tearable.
Pretty basic stuff from my end.
|
|
|
|
|
When this is what you get from sitcoms...it's time to turn off the TV.
What show was that?
|
|
|
|
|
I don't know. She hates it when I ask her what she is watching.
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???
|
|
|
|
|
Hello all. I'm kinda ranting with Microsoft and I wanted to ask CPian community about it, because I may be overreacting.
For a new project I'm using unit testing, with vanilla unit tests. Many of these tests include throwing exceptions, such as ArgumentNullException, etc. Then I use VS 2017 Live Coverage to track how many code blocks are being tested and how many remain untested. I think this is a really useful tool, but I'm having this issue: when you run a test method with ExpectedExceptionAttribute, the Live Coverage marks the closing brace as not covered. Weird. This adds a small percentage of non-covered code blocks. So, as the project grows in size, and so do the unit tests, the % of non-covered blocks increase. In my project, I get a 8% of non-covered blocks just because of this scenario!
I filed a bug report[^] with Microsoft, and they replied that this was by design and thus they won't fix it.
So, what do you think, am I overreacting? I don't see the usefulness of a test coverage tool that will nevr yield a 100% coverage score unless I stop throwing exceptions altogether. Thoughts?
|
|
|
|
|
On my behalf of understanding i think you overreact and misunderstood the purpose of Expected exceptions!
Your Test is expecting that an exception is thrown at some place because (probably test data is, input parameters are forcing this).
So you can only test until the exception is thrown, which results in non full coverage of the method, but the test is correct!
If you want to do it completely right you might test a method way more than 10 times. Then you get 100% coverage on that method and yeah, obviously are running fully through it multiple times
SO microsoft is completly right on this behaviour because you broke your method somewhere (Exception).
I for my self write minimum 1 happy path, 1 total failure, and for each input param one test, plus if there is more than one input param several more where 1 param is good the other bad and vice versa.
I learned this thinking at DWX on a Software Testing session and this guy was totally right. 16 Tests for one method? Wow, overload, but no, you find the bugs, kill them and your method is 100% unbreakable
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
You're unlikely to get 100% coverage on all methods from a single unit test, you generally need a unit test per path through your code, and probably more on top. As well as the test that tests null arguments and exceptions you need tests that exercise the "happy path" and all other paths until you get 100% coverage. That's just what unit testing is.
|
|
|
|
|
If life gives you melons, are you probably dyslexic?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
that comment is out of order, where's the moderator?
Installing Signature...
Do not switch off your computer.
|
|
|
|
|
Will selling melons make me a melonaire?
... such stuff as dreams are made on
modified 23-Nov-17 11:45am.
|
|
|
|
|
What a fruity thought!
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
careful, too much fruity makes you tooty
Installing Signature...
Do not switch off your computer.
|
|
|
|
|
If life hasn't given you melons, find a girl to whom life has.
|
|
|
|
|
Great Forum discussion and best topic as well I really get amazed to read this. It’s really good. I would like to share something really helpful for education.
modified 24-Nov-17 10:37am.
|
|
|
|
|
If life gives you onagers, you definitely are dyslexic.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Ha! I seed what you mean.
/ravi
|
|
|
|