3 ms·
Had they had unit tests, this would never have gotten that far. Have unit tests!! Could you do other things with those credits, like use them in the cafeteria
by fefe23 4y ago
Had they had unit tests, this would never have gotten that far.
Have unit tests!!
Could you do other things with those credits, like use them in the cafeteria or resell them? Why were they so frantic to close the loophole?
- fbdab103 4y agoMaybe we are misinterpreting the urgency of the messaging. I could just as easily read it as, "Hey guys having a problem with the pseudo-money credit. Shutdown until further notice."
- wrigby 4y agoNo, the credits could only be used to run ads. However, the ads were run publicly, and competed in ad auctions with campaigns from actual customers paying actual money. If employees had a $25k ad budget, that would mean increasing the demand for ad placement by $25k, which could actually affect the ad campaigns of real customers - definitely not ideal.
- bornfreddy 4y agoTo be pedantic, you would need integration tests to catch this. Both of the units (probably) worked just fine. So: Have unit tests and integration tests!! :)