News for hackers. Stuff that matters.

jci

Re:RegreSQL: Regression Testing for PostgreSQL Queries on Friday November 14, 2025 @03:39AM (#45925044)
My goto for this lately has been ephemeralpg [0] and pgTAP [1]. It’s been pretty great

[0] https://github.com/eradman/ephemeralpg [1] https://github.com/theory/pgtap

Re:Famous cognitive psychology experiments that failed to replicate on Wednesday September 17, 2025 @07:04PM (#45282508)
Reminds me of Feynman’s Cargo Cult Science speech:

https://people.cs.uchicago.edu/~ravenben/cargocult.html

Re:A Language Server for Postgres on Wednesday February 19, 2025 @05:34PM (#43108637)
Yeah, I’m in the midst of building out something for this. Involves a few pieces, the first is being able to apply the files in the right order https://github.com/joshainglis/topcat Essentially the output of that should be a file that should drop and recreate everything. Easy to build some automation around. And if you’re just operating on functions and views ect that should be all you need to allow a tree based code-base. If you also want to handle tables etc you’ll want to add a diffing tool (migra, atlas) etc.
Re:Post-mortem for last week's incident at Kagi on Tuesday January 16, 2024 @08:42PM (#39022032)
It's been a while since I've used Perplexity, but I've been finding the Kagi Assistant super useful. I'm on the ultimate plan, so I get access to the `Expert` assistant. It's been pretty great.

https://help.kagi.com/kagi/ai/assistant.html

I had this momentarily, but then it disappeared after a refresh. Guessing a feature flag got switched on a little too early. Will be interesting to see how it works. Wonder if it will RAG your chat history.
Guilty as charged… it’s just such a great experience and the incentives align.
Re:Kagi Small Web on Thursday September 07, 2023 @05:30PM (#37425888)
Very happy paying Kagi search and Orion browser user here. Just want to send some general good vibes your way. I really love what you guys are doing, and this just adds to that.
Re:There is no Data Engineering roadmap on Thursday July 13, 2023 @09:59PM (#36718551)
Can’t speak for SQL _in general_ but in Postgres land pgTAP is wonderful. Invest in writing some factory functions, and you have the ability to write a very expressive test suite. We use Postgres functions to provide a data interface that is thoroughly tested. This allows us to ensure that any migration does not break any contracts.
Re:Nine ways to shoot yourself in the foot with PostgreSQL on Tuesday April 25, 2023 @07:38AM (#35699057)
I think I’m this is a commonly stated fact, but I don’t find it particularly true. Like any other technology, you just need to put in some initial effort to set up your test framework. In the case of PostgreSQL, pgTAP does a great job.
Re:I played chess against ChatGPT-4 and lost on Sunday March 19, 2023 @06:04AM (#35217544)
I asked GPT-4 to give me a prompt to use with it in order to set up a game of tic tac toe and it came up with a similar representation and played successfully.

https://pastebin.com/83iZjHuc

I'm still blown away that this is possible.

Re:When the algorithm is your boss on Sunday January 30, 2022 @06:40PM (#30142490)
After reading your comment, I went and read this book. Both terrifying and inspiring. Clearly illustrating two extremes, but it’s obvious in which general direction we’d rather veer. And algorithms as bosses isn’t it. Thanks for the recommendation!