Readit News logoReadit News
warpspin commented on Show HN: VillageSQL = MySQL and Extensions   github.com/villagesql/vil... · Posted by u/metzby
warpspin · 4 days ago
One of the major problems of MySQL and its many derivatives is the splintering of the ecosystem.

Would rather prefer people would cooperate on ONE fork, e.g. get your extension framework integrated into MariaDB or something.

warpspin commented on What if writing tests was a joyful experience? (2023)   blog.janestreet.com/the-j... · Posted by u/ryanhn
g8oz · 8 days ago
Expect is a classic Unix testing utility. So naming it expect gives it a connection to that heritage.

https://en.wikipedia.org/wiki/Expect

warpspin · 7 days ago
Hmm, yes, I know that one and one of the reasons why I considered the naming weird. Original Tcl expect is rather automation than testing in the slot in my mind it occupies, even if it maybe could be (badly) used as a testing tool.
warpspin commented on What if writing tests was a joyful experience? (2023)   blog.janestreet.com/the-j... · Posted by u/ryanhn
shruubi · 8 days ago
I realize that the example is contrived, but what is the point of writing a test of a fibonacci function if your test harness is designed to just take whatever it tells you and updates the assert to verify that what it told you is indeed what it just told you.

This assumes the code you wrote is already correct and giving the correct answer, so why bother writing tests? If, however you accept that you may have got it wrong, figure out the expected outcome through some reliable means (in this case, dig out your old TI-89), get the result and write your test to assert against a known correct value.

I wouldn't trust any tests that are written this way.

warpspin · 8 days ago
> This assumes the code you wrote is already correct and giving the correct answer, so why bother writing tests?

It catches regressions. Which is the one thing where such semi-automated testing is most useful in my eyes.

No clue though why they gave it that weird "expect" name. Basically, it's semi-automated regression testing.

warpspin commented on Apple parental controls have more holes than Swiss cheese   twitter.com/MichaelErmer_... · Posted by u/michaelermer
michaelermer · a month ago
This is crazy, friends told me apple was good on this, before we had to get a phone for our self, I now think they simply don't understand whats happening. It looks fine to non-tech parents i guess. The question is, what can be used as an alternative? I had first tried an old Android phone, but theres no way to disable app store, so kid figured out he can watch app store videos with no limit...
warpspin · 19 days ago
Android's not better, unfortunately. We also tried them for the kids, and most protection software back then simply could be killed by rebooting the phone and overloading the phone a bit immediately after reboot.
warpspin commented on The challenges of soft delete   atlas9.dev/blog/soft-dele... · Posted by u/buchanae
indigo945 · 24 days ago
Well, Microsoft SQL Server has built-in Temporal Tables [1], which even take this one step further: they track all data changes, such that you can easily query them as if you were viewing them in the past. You can not only query deleted rows, but also the old versions of rows that have been updated.

(In my opinion, replicating this via a `validity tstzrange` column is also often a sane approach in PostgreSQL, although OP's blog post doesn't mention it.)

[1]: https://learn.microsoft.com/en-us/sql/relational-databases/t...

warpspin · 23 days ago
MariaDB has system-versioned tables, too, albeit a bit worse than MS SQL as you cannot configure how to store the history, so they're basically hidden away in the same table or some partition: https://mariadb.com/docs/server/reference/sql-structure/temp...

This has, at least with current MariaDB versions, the annoying property that you really cannot ever again modify the history without rewriting the whole table, which becomes a major pain in the ass if you ever need schema changes and history items block those.

Maria still has to find some proper balance here between change safety and developer experience.

warpspin commented on Apple parental controls have more holes than Swiss cheese   twitter.com/MichaelErmer_... · Posted by u/michaelermer
warpspin · a month ago
It's totally buggy unfortunately, and has been for years. Also, all time limit features are circumventable by switching time zones for example.

Sometimes apps will randomly appear to have time limits which the parent has never set also.

It's really a bugfest through and through.

warpspin commented on A Remarkable Assertion from A16Z   nealstephenson.substack.c... · Posted by u/boplicity
warpspin · 3 months ago
Wished he'd spend as much as effort on writing endings for his books as on that blog post.

Sorry. Just grumpy, cause I always love the first 80% of his books and then they somehow... just disintegrate.

warpspin commented on A looming 'insect apocalypse' could endanger global food supplies   livescience.com/animals/i... · Posted by u/Brajeshwar
warpspin · 3 months ago
While I support protecting insects and I literally see how their amounts decreased since I've been a child, I wished people would stop the alarmist "food supply in danger" headline. It's not, at least not because of the insects. Most of our food supply is not dependent on wild insects, instead people usually pay for cultivated bees to pollinate their plants. Business is too serious to rely on circumstance.

The real problem is that loads of the wild plant life depends on wild insects, and we do not want to lose that.

Don't get me wrong. Neither I deny climate change, nor do I say we should destroy nature as much as we do.

But we need to start talking the truth instead of invented talking points, or people won't take science serious anymore... even more than they already ignore it.

warpspin commented on Red Alert 2 in web browser   chronodivide.com/... · Posted by u/nsoonhui
warpspin · 3 months ago
I loved Red Alert 2 so much at release. Always was the pinnacle of (single player) RTS for me. The over-the-top characters, the cheesy story, the terrain interactions...

Everything afterwards felt lame and was geared too much towards multiplayer balance, which does not interest me the least.

warpspin commented on What Killed Perl?   entropicthoughts.com/what... · Posted by u/speckx
creer · 3 months ago
> none of them supported mod_perl

Once mod_perl existed (it was late, after lots of CGI perl) - I feel that my clients and I never had significant difficulty in finding providers. PHP was all over the place - it felt - more because there was demand. But there was enough demand for mod_perl that it was always there when we wanted it. We never had to really hunt for a hosting vendor.

warpspin · 3 months ago
> I feel that my clients and I never had significant difficulty in finding providers

Yes, for professional uses. But we lost the next generation of devs. You could put PHP on any shared webspace and people started messing with it and from that messing, the next generation of open source PHP programmers came.

u/warpspin

KarmaCake day631December 4, 2018
About
meet.hn/city/48.9700842,13.1262631/Regen

Socials:

- github.com/warpspin

---

View Original