« first day (3167 days earlier)      last day (1786 days later) » 

10:00 AM
That blew me away first time I read that
 
The thing was that supplier changed their address, and that postcode is no longer testing one, so we shitspammed them with letters....
They had to contact us so we stop doing that
cool thing we are funeral industry :D
so content was pretty grim
 
Title: "So, you are dead. Here's how we can help"
 
@Neil how do they navigate in Japan?
 
@Raimonds I can imagine freaking someone out in a major way doing that
 
With great difficulty
 
10:01 AM
It's more like "you are about to die anyway, see how we can help"
 
@Raimonds I don't really know actually
I guess they name buildings?
 
@Neil We had enquiry from police because someone is requesting quotes to address they don't live, and that person thinks it's not funny and some way threatening
 
@Raimonds Yep, someone was definitely freaked out by that
 
damnit, I cant get 100% coverage on this function
 
Also something that always bugged me.. In the first Harry Potter book, there were so many owls delivering letters that it was like it was raining letters..
 
10:03 AM
@Wietlol 100% is not mandatory
 
mr5
@CaptainSquirrel example:
Lundevej 35A
8300 Odder
Denmark
35A is the house number
 
Like i mean it's not set in stone
 
@Raimonds ofc it is
 
What stops you?
and how difficult it is to achieve
 
regex: (?'operator'[xX*:\/+\-])
code that uses the operator group
I cant think of any possibility that the default branch is used
 
10:05 AM
so calculator
 
right right right @mr5
 
Every point in the chain must go from bigger address distribution center to smaller address distribution center. Assuming there is a way to achieve this, then it doesn't matter if it is a street address or otherwise
 
unreachable code?
 
Are you not able to display it the way that your data provider gives it to you?
 
unreachable code indeed
 
10:07 AM
is your regex limiting it just to be what your switch statment covers
 
yep
that was the idea of the regex
 
What are you testing then
regex or branches?
 
the public api of the class
 
Well code_never_reaches_default_test ?
ode_never_reaches_default_with_given_alphabet_test ?
 
if we ever become an interplanetary society, we're going to have to include planet on the address
 
10:10 AM
of ffs @Neil now I am upset ;D
Please specify your system / planet / universe
 
if there were parallel universes, then this could become a serious problem
 
Sorry universe you specified has no internet yet.
 
123 Baker Street
22413-2234 Chicago, Illinois
United States
Earth
Sol system
Universe c-137
 
MEANWHILE in a parrell universe where parrell universes don't exist
 
@Neil Sorry can't deliver because alternate universe you is already delivering item
:D
 
10:12 AM
@Raimonds damn quantum mechanics!
 
mr5
@Neil which is the galaxy?
 
Hmm I like @CaptainSquirrel Idea of univere where there is no parallel universe
 
@mr5 Milky Way of course
 
thats a paradox
 
10:13 AM
Or there is limited number of universes
 
technically the universe is all-encompasing, so there's only one universe
"parallel universes" is kind of an oxymoron
 
because with given infinite number there should be one that has limits
 
Considering there are infinite parallel universes (supposedly)
there has to be one that doesn't have parallel universes
 
unless that doesn't count since multiverse is upper layer
 
mr5
@Neil you forgot it in your address. how am I suppose to find you!
 
10:14 AM
@mr5 but my death ray! I paid good money for that!
in reality, there aren't parallel universes, more like the universe is composed of a gigantaic probability wave
there is a universe or every possible situation, however improbable, but that probably will never be our universe because of the vast majority of universes where that isn't the case
so in a real sense, it doesn't exist
 
Does this chat has some spoiler filters?
Just in case someone here hasn't seen ENDGAME
 
well... cant get more than that
3 hideous unreachable codez
 
so that tool u are using @Wietlol basically check for can I get to "return" in function?
 
not really
it checks that all code is being used
(not really complete, but good enough in most cases)
 
Emm what if you put default: on top?
or that is a syntax error?
 
10:19 AM
that wont change anything
because it will still use the other branches
 
default would fall through
 
nope
that is not how switch cases work
the position of each case is irrelevant (assuming it has a break or return)
 
I am just guessing, I never tried to put it elsewhere
like in your case
x:
X:

no break is there so it falls to next switch
 
yep
 
won't it count x: as "used" ?
or your default has some sort of logic
 
10:21 AM
only if at least one test enters the switch case using an "x" as value
 
not just skip
 
(the tool I use now doesnt even do that, it checks if the block under that case is being used, not how it entered)
so at least one test needs to enter the switch case using x or X
and it will mark it as tested
 
do you even need default?
 
but none of my tests enter the default branch, so...
 
like is it required by switch statment
 
10:23 AM
i need the default branch because otherwise, I have a code path without a return (or throw)
the switch case is not technically exhaustive
 
Yeah sounds like I am out of options
 
only logically
 
well you can convert to ifs :D?
 
hence I cant get more coverage than that
even if I convert to ifs, I still have a default branch
the only way how to get it done is by merging the default with other cases
assuming the default can never be reached, it is irrelevant where I place it
 
But in case of ifs you don't need that last case?
Anyhow I don't think meeting 100% in this case is that important
Like there is no point of trying to test code that can't be reached
like multiply by 0
 
10:27 AM
this is basically my current situation
 
Yeah I picked that up long before
 
this gets me 100% coverage, but hideous code
 
I just tryied to look for solutions that would break my logic of how switch statements work
 
and a better coverage tool would still mark it as untested
 
I did suggest that solution previously
I think my explanation wasn't sufficient
 
10:29 AM
9 mins ago, by Raimonds
default would fall through
I thought you meant it would fall through
but that only happens if you remove its (return) body
 
"Emm what if you put default: on top?" not sure how to quote
return would just kill it :O
 
i thought you suggested this: paste.ofcode.org/zwGz2P2rv7mAjSqYEzZR48
 
But I have never seen cases where default: is on top of switch
I will try to be more explicit next time :D
things that are in my head seem so obvious to me
 
mr5
or just throw if the selection doesn't fall into any of the choices
 
then the throw isnt tested
 
10:48 AM
Mr. Smith has two children. At least one of them is a boy. What is the probability that both children are boys?
apparently there are two commonly argued answers to this question
 
49.999% ?
assuming you have a 50/50 chance of the child being a boy
 
51:49
 
well assuming a) there's equal chance of there being a boy or a girl and b) the sex of each child is independent from one another
 
because I say so!
 
and there is the small chance of the boy not agreeing with itself
 
10:51 AM
50% is one answer
1/3 is another
 
hmm... there is the chance of the children being a twin and then both being boys has a larger chance
1/3 is odd imho
 
no, because that doesn't fit with the premise that there's an equal chance of there being a boy or a girl
 
and then both Boys indentify themselves as females
what a mess !
 
1/3, because you have 4 combinations: GG, GB, BG, and BB, right?
if there is at least one boy, you've effectively eliminated GG
so 1/3
 
@Neil 1/2
You already know one is a boy
 
10:57 AM
if you didn't specify which of the two children were the boy, then it could be GB or BG
 
Only two combinations left
 
If I had said that the older of the two were a boy, then yes, it would only be BG or BB
but since you don't know, it is BG, GB, BB
 
@Neil ah, the monty hall problem
 
so the chance of hitting BB is exactly 1/3
 
but here, it doesnt apply
because of the order of information
 
10:58 AM
why wouldn't it apply?
 
@Neil We are talking about combinations not permutations It will not apply
 
knowing at least 1 is a boy, it eliminates one part of the equasion
 
BG and GB are same because combinations not permutations
 
@anand_v.singh that's the argument in the end.. is order relevant
 
it is now either(BB, GB) or either(BB, BG)
 
10:59 AM
Order doesn't matter
@Neil No it is not relevant
 
each have 50% chance and each has 50% chance of both being a boy
@anand_v.singh order matters, because it chooses if permutation or combination
but from a different perspective
anyway, lunch
 
The Boy or Girl paradox surrounds a set of questions in probability theory which are also known as The Two Child Problem, Mr. Smith's Children and the Mrs. Smith Problem. The initial formulation of the question dates back to at least 1959, when Martin Gardner featured it in his October 1959 "Mathematical Games column" in Scientific American. He titled it The Two Children Problem, and phrased the paradox as follows: Mr. Jones has two children. The older child is a girl. What is the probability that both children are girls? Mr. Smith has two children. At least one of them is a boy. What is t...
well it's a known paradox
 
@Wietlol As per the question you will not choose permutation
 
I suppose it's a matter of interpretation
 
11:02 AM
@anand_v.singh See above. Boy or Girl paradox
 
Okay let me complete going through the Wikipedia article
 
You don't have to agree with it, but clearly it is a paradox
If it weren't, I doubt very much they'd write a wikipedia article on it
 
mr5
NextElement="{Binding Source={x:Reference HouseNumber}, Path=GenericView}"
 
I once had a friend who used to edit Wikipedia articles to win bets, but let's see
 
mr5
Is this the right way to obtain the property of HouseNumber?
HouseNumber contains a property of GenericView
 
11:05 AM
> The study found that 85% of participants answered 1/2 for the first formulation, while only 39% responded that way to the second formulation.
Apparently you have a 39% chance of changing your mind
 
@anand_v.singh I hope that, that person stopped being your friend once you found that out
a person like that is fucking toxic
 
@CaptainSquirrel Nah man, we were kids, kids have egos, then they grow up, he just was misinformed and used to interject misinformed pieces into conversations, now he is actually very careful of what he speaks
 
mkai
that isn't so bad
 
@CaptainSquirrel We still tease him about that though ;p
 
lmao
good
 
11:12 AM
regards "What is the probability that both children are boys?"

Well by pure math you have only only 3 options if it order doesn't matter
so
1. boy boy
2. boy girl
3. girl girl

1/3
~33.3(3)%
 
@Neil I am not changing my mind on this one
 
FYI you forgot girl, boy
 
@Raimonds * this will be if order does matter
 
If you want to consider the way they came
Aswell its not 1/3rd becuz of the X-Y Problem
 
11:13 AM
well if boyA boyB isn't same as boyB boyA
I still think both are valid boys
 
Nah, boyA, boyB the same
Eversince gender not persona
 
well they are two ways in which a boy and a girl can both be children of a parent, are they not?
why wouldn't that matter?
that possibility is twice as likely
all you've effectively done by saying at least one is a boy is say that GG combination is not possible
 
@Neil Because that's not what the question says, I am not using Bayesian theorem because no where is it mentioned that we have to take in consideration the order
 
but at that point you are taking that too far
 
you don't have to specify that the order is important
 
11:15 AM
it's like if one of them decides to change gender
are we counting that in? :D
 
If I were to ask you, "what are the odds that at least one child of two children is a boy?"
you'd generate all the possibilities, BB, BG, GB, GG.. and you'd say that 3 out of 4 have at least a boy
that is the normal way you'd approach this problem
 
I am taking more math approach than who my subjects are
 
so what changes when I say that at least one is a boy?
 
@Neil See again in this if you take order or you don't take the order you will arrive at 3/4
 
but aren't you calculating odds on already born children
 
11:17 AM
@anand_v.singh if you don't take order into consideration, you'd have told me 2 out of 3!
which would be wrong, hopefully you'd agree
 
To be continued meeting
 
I think I used very wrong word when said "order" what I meant was can they repeat
like am I using permutations or not
 
right
 
so if they would be numbers am I dealing with 1 and 2 or 1 2 3 and 4
 
by the way, the answer to the question "what are the odds that at least one child of two children is a boy?" is 75%
and if you didn't count BG GB as separate, you wouldn't arrive at 75%
 
11:19 AM
why so high ?
 
why? what would you say the odds are?
 
I see it as I can deliver either B or G
 
but there are two children, not one
what are the odds that at least one is a boy?
 
so it would be combination of B OR G + B OR G
ir dosn't make sense to me because there is no difference in B or G
 
what about B or B?
 
11:21 AM
meaning if you swap it you should have same possibility for G as well
 
that still falls in the category of "at least one boy", right?
 
but its 1 child posibility done twice
 
and so you'd say what.. 2/3rds?
 
it's not like you can deliver 2 kids at same time
like having 2 vaginas is not our case
 
stop
 
11:23 AM
HAMMERTIME!
 
what does that have to do with anything?
 
or doing G dosn't make odds of next one to be different
 
let me put it differently.. I flip a coin twice. What are the odds at least one is heads?
you're telling me 2/3rds now?
 
33% if it can land on side
but 50%
let me put it this way
do odds change with each flip?
 
no
 
11:24 AM
so for B and G thing it should be
odds of attempt 1 + attemp 2
 
so 50% + 50%? 100%?
 
it's not how it works in algebra
it will remain at 50
 
that is how it works in algebra.. that's not how statistics works as you described
 
there are 3 formulas
permutation combination variation
 
I'm asking you another question with respect to earlier.. listen carefully.. I flip a coin twice. What are the odds at least one is heads?
 
11:26 AM
I think we are looking into variation here
 
I'm pretty sure @anand_v.singh would be in agreement with me here..
The odds are 75%
 
We are looking for only 1 scenarion, with two given options it will give you 50%
Does it make sense to you?
 
the answer to this question isn't "we are looking for only 1 scenarion..." It is a simple percentage..
I flip a coin twice. What are the odds at least one is heads?
 
by 1 scenario - thing we are interested in
think of dice
 
ok, I gave you one last chance
you're officially a troll to me
 
11:28 AM
enough!
:D
 
There is no point in discussing it further
 
right, because I was the mark
 
I do see where you get your 75% but this makes no sense anyway
since if you reverse variables you will get same odds for G as well
It's more likely that we are arguing on two different matters from two different perspectives.
Where both of us are right
Linux distributives: how do I know what are common terminal commands
Question would be will I run into issues if I google how do I copy stuff
google gives me functionFoo but my linux distributive uses functionBaz
can it be case?
 
Oh bloody hell
Jdoe got an alt or something?
 
Nah, he's right there
 
11:40 AM
I have 2 browsers on my pc
Well, 4, but IE and Edge don't count
 
@CaptainSquirrel "Rai is right [with his argument]", or [JDoe] is right there [in the user list]" ?
 
@Squirrelkiller yes
😃
(JDoe is in the user list)
 
@Neil I am afraid not, but I am known to disagree with common accepted things
at least, the interpretation is pretty solid, but there are two approaches to reach the answer
one of them results in 1/2 and the other in 1/3
assuming you use the approach as described by the wiki article
> From all families with two children, one child is selected at random, and the sex of that child is specified to be a boy. This would yield an answer of 1/2
imo, this approach is just plain wrong
> At least one of them is a boy.
you ignore this factor, which means that
> From all families with two children,
could also have two girls
and therefor be an invalid pool of children to select one from
however
> From all families with two children, at least one of whom is a boy, a family is chosen at random. This would yield the answer of 1/3
this does a categorization (or partition)
which is a bit more complex
 
JDoe is blocked in my case :D
So there is nobody that would try to convince me that I am thinking of something I am not actually thinking
 
@Wietlol and so, what's your verdict?
 
11:55 AM
Wietlol is giving examples of different calculations
with different constraints
 
I think the wiki explains it
(but I dont understand anything of what it actually says)
 
wiki author probably googled it somewhere and had no understanding so it's uncut edition
 
under Analysis of the ambiguity
 
well I understood it from the point of view of eliminating one of four possible scenarios
and then determining the statistics from that
 
12:12 PM
100% & 100% & 100% & 85% & 0% = 50%
i love not getting progress :(
 
12:30 PM
if con is the opposite of pro, what is the opposite of progress?
 
What you gals think about putting a function into a nother function
doStuff()
{
   doPartA() { /* logic logic */ }
   doPartB() { /* logic logic */ }
   doPartA();
   doPartB();
}
 
yoDawg()
{
}
 
user10864482
good morning
 
morn
 
good morning :D
 
12:43 PM
@Neil Nice try, but that's not how English works. Progress is not a compound word so that won't work.
 
I'm not progress or congress, I'm just gress.
 
-gress was a suffix in late-latin languages apparently, meaning to walk or to step
 
user10864482
decadence, decay, decaying, declension, declination, decline, degeneracy, degeneration, degradation, descent, deterioration, devaluation, downfall, downgrade, ebbing, falling, weakening. Antonyms of progression. regress, regression, retrogression, reversion.
 
user10864482
an opposite word is an antonym
 
12:58 PM
yo
 
user10864482
yo
 
transgress means walking or stepping the trans?
 

« first day (3167 days earlier)      last day (1786 days later) »