Hacker Newsnew | past | comments | ask | show | jobs | submit | eweise's commentslogin

I haven't worked in a codebase in 20 years that didn't have some sort of tests.


Out of interest, what language ecosystems do you tend to work in?

My guess is that some languages - like Go - have a more robust testing culture than other languages like PHP.


Not who you asked but I think it comes down to risk/reward. The consequences of some user finding a big in most websites is low, compared to the risk of an astronaut finding a bug the hard way whilst attempting re-entry.

There is genuinely a reasonable and rational argument to “testing requires more effort than fixing the issues as users find them” if the consequences are low. See video games being notorious for this.

So, industry is more important than language I’d say.


I don't see testing as a quality thing any more, I see it as a developer productivity thing.

If my project has tests I can work so much faster on it, because I can confidently add tests and refactor and know that I didn't break existing functionality.

You gotta pay that initial cost to to get the framework in place though. That takes early discipline.


Depends again on the type of work, and it absolutely has something to do with quality. You’re caring about not breaking existing functionality, you’re refactoring, you’re moving forward with confidence in your code.

That’s absolutely a quality thing. I can assure you that you could move a lot faster if you didn’t try and meet such standards, not that it’d be a good idea necessarily, but in isolation it proves the point.


Developer testing is checking whether the code does what the developer themself thinks it should. QA testing is checking whether the code does what the customers / users / rest of the world thinks it should.


It’s a lot faster and easier than it used to be. Things like xUnit in the .net world make setting up tests friction free to the point where I question a codebase that doesn’t have some kind of basic unit tests. It doesn’t make mock testing or integration testing easier but I would argue if you know the base code and logic is sound those tests are less relevant.

One thing I found is that if testing is easy, your code structure does change a bit to aid with a “test first” approach and I don’t hate it. I thought it made me slower but it doesn’t, it ensures that when all the ground work is finished, the gnarly part of wiring everything up goes much faster.


Yeah I've found the same, having good test discipline influences my code design in a positive way because code that's easier to test is also code that's easier to integrate and understand.


Here's a real schedule: CEO: we need to launch x end of Q2 PM: Here are the four monthly milestones Engineer Mgr: Let's estimate the stories. Now put them into eight sprints Go!


Part of that I think is the culture and not the language. Personally I try to use the least powerful method that gets the job done and that usually keeps me unblocked. In practice that usually means using it as a better Java and not going down the functional monad path. I know scala has gone through a rough patch and maybe migrating from 2 to 3 is painful. But if you try starting a new project now with the latest Scala 3, I think you'll find that its pretty nice. Even IDE support is pretty good.


Isn't that how it always is when new technology disrupts an existing market? We no longer have telephone operators, toll booth agents, gas pump attendants, etc


Those all eliminated the work so that no one had to pay for it anymore, which freed up that money to be spent elsewhere in the local economy. Waymo is not cheaper than Lyft/Uber. So it's more of a direct wealth-transfer than the most cursory analogies were.


If Waymo is not cheaper, I don't see how it replaces Lyft/Uber. I imagine that not having to pay drivers and the deal with the associated liability, will eventually be cheaper so will free up money.


Eventually, it will be General Motors, Ford etc. who are getting their revenue streams obliterated by self-driving vehicle.


AI says legumes are anti-inflammatory.


WHO says meat gives you cancer.


my AI says they aren't


Try Google


Dairy is not healthy fats.


One reason I just bought a 2025 Miata, is that has physical buttons for almost everything. Even the touchscreen can be operated with physical buttons. That and the manual transmission, makes it feel almost retro. It does have a lot of alerts like lane change monitors, but it doesn't bother me too much.


If it doesn't tell me distance to the hole, then its just a pretty bracelet.


How far can you stretch your arm?


Its all about the oil.


Yeah, Trump directly said it multiple times throughout his speech today.


At least he's honest, even if it's more like he lacks an effective filter. "bannana republics" and "bigger gun diplomacy" don't quite describe Trumps approach to foreign policy. One thing i can say about the operation is that it's a lot cheaper and less bloody then a ground invasion.

Someone should tell him Iran has loads of oil and China is getting it all...


HOV lanes in the bay area are terrible. We pay to build these lanes and then the government makes us pay to use them? Seems terribly unfair. Its also unfair to make the poorer people spend more of their time commuting than the wealthy.


You don’t have to be wealthy to pay to use them, you just have to value the time savings more than others. Imagine a “poor” person late for their job where they will get fired, they might value the lane more than a “rich” person just cruising around for fun. Whereas if it weren’t an option at all the poor person in this scenario loses their job and is strictly worse off.


Your assumption that rich people spend less for fun than poor people can afford to spend to survive is not something I think I'm confident enough in to trust it as the basis for policy like this.


I feel like you dont live in the bay area. In peak traffic time, those lanes cost like $20+ to drive in.


Also isn’t it more fair to charge people using the roads than everyone? What if someone doesn’t even drive should they have to pay taxes for roads?

And in the absence of these congestion fees we’d likely have to take taxes overall. That would probably be even worse for poor people.


Who doesn't use the roads? How would you get anywhere without taking a road? Even if you didn't drive, whatever transport you're using except maybe a helicopter, would use the road.


Not everyone uses the roads the same amount. It would disincentivize having a job with a 40 mile commute.

Also trains/subways are obviously another non-road transport option.


i don’t agree with the notion that everything provided by the government must be free at point of use, seems like a childish and foolish way of running a society with real resource constraints.


Childish and foolish? That's the way these roads have been utilized for decades before someone figured out a way to extract more tax dollars from the public.


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

Search: