HNHacker News
TopNewBestAskShowJobs

matthew16550

60 karma · joined May 18, 2018

submissionscomments
matthew16550··on Artificial Confidence [by Corey Quinn]
> "The AI industry generates roughly a trillion words of hype per quarter and approximately four of them are useful. Artificial Confidence exists to find those four."
matthew16550··on Exploring PostgreSQL 18's new UUIDv7 support
The page I linked shows uses after creation where the cost can be different.
matthew16550··on Exploring PostgreSQL 18's new UUIDv7 support
Using UUIDv4 as primary key has unexpected downsides because data locality matters in surprising places [1].

A UUIDv7 primary key seems to reduce / eliminate those problems.

If there is also an indexed UUIDv4 column for external id, I suspect it would not be used as often as the primary key index so would not cancel out the performance improvements of UUIDv7.

[1] https://www.cybertec-postgresql.com/en/unexpected-downsides-...

matthew16550··on Environment variables are a legacy mess: Let's dive deep into them
SOPS can be part of the solution. It takes care of encrypting and decrypting config files.

https://github.com/getsops/sops

matthew16550··on Diff Algorithms
"Approval" / "Golden Master" / "Snapshot" / "Characterization" testing can be very helpful.

They all seem to be names for more or less the same idea.

The first time a test runs successfully it auto captures the output as a file. This is the "approved" output and is committed with the code or saved in whatever test system you use.

The next time the test runs, it captures the new output and auto compares it with the approved output. If identical, the test passes. If different, the test fails and a human should investigate the diff.

The technique works with many types of data:

* Plain text.

* Images of UI components / rendered web pages. This can check that your code change or a new browser version do not unexpectedly change the appearance.

* Audio files created by audio processing code.

* Large text logs from code that has no other tests. This can help when refactoring, hopefully an accidental side effect will appear as an unexpected diff.

See: * https://approvaltests.com/ * https://cucumber.io/blog/podcast/approval-testing/ * https://en.wikipedia.org/wiki/Characterization_test

matthew16550··on Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
https://pkg.go.dev/

Which works together with

https://proxy.golang.org/

matthew16550··on Python has had async for 10 years – why isn't it more popular?
Pythons builtin async always confuses me.

The Trio library felt easy to learn and just worked without much fuss.

https://trio.readthedocs.io/

matthew16550··on Unexpected security footguns in Go's parsers
It's a concept from Fieldings REST thesis that is important to the current meaning of REST:

Transfer Objects are not the Storage Objects.

matthew16550··on Ask HN: How do I learn practical electronic repair?
The Pace soldering lessons on YouTube are good.

https://youtube.com/playlist?list=PL926EC0F1F93C1837&si=U4Jx...

matthew16550··on The Ingredients of a Productive Monorepo
As an asside, I've found IntelliJ very helpful in this situation as it can load many repos into one project then doing commits / pushes / branches etc across various repos at the same time just seemed to work the way I wanted without much thinking about it.
matthew16550··on Mermaid: Generation of diagrams like flowcharts or sequence diagrams from text
Mermaid is sort of a defacto standard because github auto renders it inside markdown files.
matthew16550··on Erlang's not about lightweight processes and message passing (2023)
And Resume padding
matthew16550··on The worst English phrasebook ever written [video]
RobWords on the 1855 book "English As She Is Spoke".
matthew16550··on Ask HN: How do you look for a good open-source project?
The "Awesome First PR Opportunities" list might be a helpful starting point.

https://github.com/MunGell/awesome-for-beginners

matthew16550··on Stacked PRs – Pros and Cons?
Tangentially related, sometimes I find Stacked Git helpful when figuring out complex features or refactoring. Until it's nearly finished I'm not sure what would be worthwhile submitting as a PR but once it's ready then several smaller PRs are much easier to understand.

It's local stacked PRs and you can jump between them to edit as the ideas evolve.

https://stacked-git.github.io/

But if the nearby code is evolving quickly from other people this can be a bad approach because of merge hell when the work is finally submitted.

matthew16550··on Space Elevator
For todays lucky 10,000.

Arthur C Clarke wrote a great story about space elevators called "The Fountains of Paradise".

https://arthurcclarke.org/site/legacy/fiction/fiction-sz/

matthew16550··on Ask HN: Technology/creative books and games for my daughter (7 years)
You both might enjoy an old TV series called Curiosity Show.

It's aimed at children around your daughters age (might be a few years too young, I'm not sure). It covers lots of fun science, craft, music topics and has many small activities that can be made at home.

There is a lot on YT: https://m.youtube.com/user/CuriosityShow

Some of the segments are a bit out of date now but most are still totally relevant today.

matthew16550··on 3D bioprinting inside the human body could be possible
"UNSW researchers unveil prototype device that can directly 3D print living cells onto internal organs and potentially be used as an all-in-one endoscopic surgical tool."
matthew16550··on Ask HN: What are your favorite Essays/Longform blogposts
https://vorpus.org/blog/notes-on-structured-concurrency-or-g...

https://www.infoq.com/articles/slow-down-go-faster/

matthew16550··on Ask HN: How to keep my daughter busy while tickling her curiosity
You both might enjoy an Australian TV series called "Curiosity Show".

It is science / technology focused and aimed at kids around your daughters age.

They explain a lot of fun sciencey things, puzzles and magic tricks that can be made at home from very easy to find parts.

The YT channel has over 1000 short videos : https://youtube.com/c/CuriosityShow

It was made in the 70s and 80s yet much is still totally relevant today. Even the occasional thing that is out of date might be a fun history discussion.

matthew16550··on Ask HN: How do you manage remote work breaks?
This isn't specific to remote because it works in the office as well but it's a simple thing I find helpful.

When programming, just before stopping, I break the code where I'm working by deleting a few random characters.

Getting back to work later, I see the IDE showing some syntax errors and it helps me quickly switch back into the work.

matthew16550··on Ask HN: If TDD is so great, why is it so uncommon in the industry?
TDD is hard to learn and it does ask us to type in more code so the benefit is not immediately obvious.

Most of us do not spend all day just typing in the new code, there is a lot more to it: reading existing code, deciding how new code will fit in, running new code, debugging etc. I've found TDD means I spend less time on all that other stuff.

GeePaw Hill made a nice video where he talks about this as "The Lump Of Coding Fallacy":

https://www.geepawhill.org/2018/04/14/tdd-the-lump-of-coding...