News for hackers. Stuff that matters.

invaderzirp

Re:Unit Tests as Documentation on Thursday October 17, 2024 @10:09PM (#41875786)
No, you just need to both understand how your system works and then clearly write down what it's doing and why. If projects like Postgres and SQLite and musl libc and the Linux kernel can all do it, I think the CRUD app authors can do it, too. But it's not magic, and another tool won't solve it (source: I've seen a hundred of these tools on scores of teams, and they don't help when people have no clue what's happening and then they don't write anything down).
Re:Unit Tests as Documentation on Thursday October 17, 2024 @10:05PM (#41875761)
Especially on teams where deviance has been normalized, and broken things are just expected. I've been bitten both ways before: is this an obvious mistake? Or the lynchpin holding up the house of cards? Of course, if someone had just written some text explaining it, or perhaps a decent commit message instead of just "WIP", maybe we wouldn't have to do archaeology every single time.
Re:Unit Tests as Documentation on Thursday October 17, 2024 @10:03PM (#41875753)
"Oh yeah, those tests are always flaky. We just rerun them until they pass. Or we turn them off. I mean, Jeff wrote them like three years ago and he quit last year, so..."

I'd rather have the prose. And if it's wrong, then fix it. I'm so tired of these excuses.

Re:Unit Tests as Documentation on Thursday October 17, 2024 @10:01PM (#41875744)
Erm, this is what docs are for. Like a man page, where it'll give you function signatures and return types and explain what those functions do. Unit tests are not that, and they shouldn't be that, because that's not their purpose.

New rule: if you write a function, you also have to write down what it does, and why. Deal?

Re:Unit Tests as Documentation on Thursday October 17, 2024 @10:00PM (#41875738)
What's stopping someone from reading the code, studying it deeply, and then writing down what it does? That's what I do, but I see people struggle with it because they just want to get more tickets done.
Ah yes, states' rights being used to justify treating people poorly. Famously, this has never happened before ever.
Please stop spamming this conspiracy theory. It devalues the discourse. Thank you.
Ah yes, "we can't do anything before an election", despite it always being just before some election, and also it's totally okay when one party does it.
A lot of people's salaries depend on screwing over customers.
I've seen people argue for the most heinous shit here without so much as a slap on the wrist. HN isn't above politics, it's just above the _wrong_ politics.
Because a chargeback is for some sort of fraud, and as scummy as crap like this is, it usually doesn't count. It's not a universal "I want this charge to stop" tool. A human WILL review it, and you WILL get dinged, up to and including account termination, if you do it too much and too frivolously.
You're overthinking it. If there's any confusion, it will go to court, and reasonable humans will decide that, actually, the form being in a filing cabinet in the basement isn't actually reasonable.
If it does, then "record profits" sure is a bizarre way to punish them.
Not sure why you're getting downvoted (jk I know exactly why). HN will have an entire goddamn Bollywood dance number around the fact that big corporations screw people over, and government has to come in and fix it. "Omg wow, this is great! Why didn't we do this sooner?" Well, tech has a spasming tantrum every time anyone even hints at maybe not letting companies do whatever they want all the time, including most of the people here, and Congress has long since been captured by business interests and people who think the government makes hurricanes.

The solutions are not at all technically challenging, our political system just isn't effective anymore. That's why regulatory bodies do what they can to make rules while Congress and tech companies sit around counting their money.

I don't know about anyone else, but I, for one, cannot wait to hear from the Supreme Court about how unconstitutional this is for some made-up reason that just so happens to benefit every company ever. Enjoy it while it lasts.
Re:X still struggles to grow subscription revenue on Tuesday October 15, 2024 @05:32PM (#41853335)
Well yeah, and people aren't clamoring to sign up for my new Face Puncher 9000 robot, either. I wonder why.
Re:X still struggles to grow subscription revenue on Tuesday October 15, 2024 @05:31PM (#41853330)
"Everyone who doesn't want to do business with me is blackmailing me! Also they're very mean!"
Re:Fable is winding down on Tuesday October 15, 2024 @02:56PM (#41851897)
This shouldn't be surprising anymore. This has happened every week since 2010. This is the VC cycle, and it happens over and over and over and over and over again. In fact, I'm sure there's some flashy new thing on the front page right now that will have its own corresponding "goodbye" thread in 2-10 years, and everyone will get screwed by that, too.

We can lament the current state of affairs, but let's not pretend it's abnormal.

Re:Fable is winding down on Tuesday October 15, 2024 @02:54PM (#41851874)
This is what happens when massive amounts of free money slosh around courtesy of ZIRP. Question is: will everybody rush to join whatever new darling graces the front page? Or will they finally learn their lesson?