11
Leave a Reply

avatar
11 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
dai_knapzMarceauKaThomasan1999Ad31_FrRaph0007 Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
pwnedary
Guest
pwnedary

Anyone got a clue on how this was even made possible? Must have been something like this

if (score >= threshold) {
text += “PASSED”;
}

if (score <= threshold) {
text += “FAILED”;
}

Which is exceedingly bad.

DragonMaus
Guest
DragonMaus

> when the edge case is the trigger condition.

netgu
Guest
netgu

Not forgetting the edge cases, but rather forgetting to keep two mutually exclusive cases mutually exclusive. I mean hell, there are only two cases here.

AdrianMan1987
Guest
AdrianMan1987

What test & website is this ?

Some context would be fun 🙂

HadACookie
Guest
HadACookie

Schrödinger’s grade

daniu
Guest
daniu

Looks like someone passed the FizzBuzz implementation in their interview.

Raph0007
Guest
Raph0007

has to be some switch case where the break was omitted

Ad31_Fr
Guest
Ad31_Fr

That could have happened if someone changed a function maybe making it float from an integer.

In development people tend to change function not depending on who use it and how use it.

So don’t trust what an other function sent you, even if you did all yourself because they could change, you could change it or another person can.

Thomasan1999
Guest
Thomasan1999

r/technicallythetruth

MarceauKa
Guest
MarceauKa

> != >=

dai_knapz
Guest
dai_knapz

Well no, but actually yes