Hacker News new | past | comments | ask | show | jobs | submit | nullserver's comments login

I inherited an ancient project that had literally tens of thousands of test.

I reviewed hundreds of them, tried rewriting dozens of them. Eventually, realize that essentially all of the tests were just testing that mock data being manually manipulated by the test gave the result of test expected.

Absolutely nothing useful was actually being tested.

Some team spent a couple of years writing an unholy number of tests as a complete waste of time. Basically just checking off a box that code had tests.


The first box on the testing checklist states that the test should first fail. I wonder how they managed to not test anything while seeing the tests transition from failure to success.


From the GP: mock data being manually manipulated by the test gave the result of test expected.

These tests are easy to write - your mock returns something, and then you verify that the API does nothing (thus the test fails), then returns whatever the mock does and the test passes. These tests are easy to write and they do fail until code is written. However they are of negative value - you cannot refactor anything as the code only calls a mock, and returns some data from the mock.


I can't imagine writing a function that is nothing more than an identity function would be easy to write (unless it was explicitly intended to be an identity function, I suppose). There must be some terrible gut wrenching feeling that goes along with it, if nothing else? Frankly, I don't understand how this situation is possible in practice, but perhaps I misunderstand what is written?


I've never seen that but I've heard the claim before.

So . . . is the team of devs who spent years writing and maintaining those tests incompetent or is it the new dev with the complaint? If it was the whole team, how did that happen?


Flipside, you can get a lot done with rails very quickly, so your odds of success are much higher.


I left a job due to almost entirely for poor pay. Entire department got an immediate 10% raise to stop more people from leaving.


My wife and most of her friends have all lost their original accounts. She got an email that password was changed. We immediately took action. They had changed the email associated with account. No way to change it back. Only thing we could accomplish was getting the account disabled. Zero way to contact Facebook. These are all woman that FB was primary storage place for kids photos.


Sometimes laws need to be broken. Censoring ability to talk about government crimes is quick path to genocide.


I don't think you understand the situation. The alternative is no Google in Russia.

You can not ask a corporation to act criminally, that is an absurd demand.


Like the rail companies legally sending Jews like cattle to deathcamps?


That’s my experience. Eating one slice of pizza feels like eating the entire pizza normally would.


My wife takes full dose. Shes lost 60 pounds in six months. I have been taking the smallest dose.

Normally i can eat a full meal, and be hungrier at the end of it, then when i started.

For a couple of days after taking the small dose. I get full after a small amount. Then feel full for most of the day. I need to go up to a higher dose as this effect fades before next dose.


> Normally i can eat a full meal, and be hungrier at the end of it, then when i started.

how?! what exactly are you eating that's making you feel hungrier, not full?



You’re forgetting all the billionaires that were flying places like Epstein Island.

Bill Gates had something like 23 or more visits there.


Right. Or the celebrities who are photographed landing with a date which isn't their spouse? There have been some high-profile divorces that started from evidence like that. The larger point is that this is for the benefit of "The League of the Very Special" and not out of an actual interest in privacy of PII.



Been hearing about this for 35 years. Same old same old


Hardly suprising given this is a National Geographic article specifically targeted to teenagers that looks to have been written at any time in the past 20 years.

There's nothing current or new here, just basic high school level ENSO material.


It's a normal cycle. However, climate change means that the effects tend to be more severe than they were 35 years ago.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: