HNHacker News
TopNewBestAskShowJobs

s4i

1,457 karma · joined May 3, 2017

submissionscomments
s4i··on You wouldn't steal a font
We don’t know what the ads (meaning, the videos) used. We only know what was on their website.
s4i··on Coolify: Open-source and self-hostable Heroku / Netlify / Vercel alternative
The mandatory link about Dokploy’s unclear/questionable license: https://github.com/Dokploy/dokploy/discussions/3
s4i··on Sparks – A typeface for creating sparklines in text without code
There is a gif?
s4i··on Mistral OCR
I wonder how good it would be to convert sheet music to MusicXML. All the current tools more or less suck with this task, or maybe I’m just ignorant and don’t know what lego bricks to put together.
s4i··on Why Ruby on Rails still matters
Can you link said post?
s4i··on Google Pixel 4a's old firmware is gone, trapping users on buggy battery update
I was a Nexus/Pixel user for 10+ years. Majority of the phones I owned during that time had some quirks or issues. The worst examples were Nexus 5X and Pixel 5 – both just suddenly froze one day, shut down, and never turned back on again. After that Pixel 5 surprise I grudgingly switched to iPhone 12 mini.

I still think Google’s Android UI is the best one out there for me, and I despise a lot in the iPhone UX (such as the keyboard) but I just need a phone that works and I can get repaired or replaced easily if I need to. At least in Finland, Google’s customer service has been abysmal over the years.

s4i··on I've acquired a new superpower
Almost certainly a lot of the people saying they are ”crossing” their eyes are actually ”uncrossing” their eyes; focusing the eyes straighter than what would normally happen on the surface where the image is laid out.

This is also how the legendary ”Magic Eye” books were supposed to be viewed. Not by crossing the eyes.

s4i··on Mistakes engineers make in large established codebases
The bigger the codebase, we all eventually find ourselves in scenarios where we were the idiot. Making the APIs as foolproof as possible, utilizing tools like Semgrep, deprecating stuff in the way your language supports that it shows up in the IDE,… all that stuff should be utilized.
s4i··on You need 4 colors
I think the maker of this had a point and I was curious what the crowd here thought about that. I think most people didn’t look further into his argument nor the linked YouTube video, where the idea was that you’d accompany these with darker/lighter variants (depending on dark vs light mode).
s4i··on You need 4 colors
I think the dark mode colors look way better than the light mode (you can switch at the top).
s4i··on Does Your Code Pass the Turkey Test? (2008)
And then there’s the Fennoscandia test: do you convert äöåø with the same rules as for German? Because, if you do, it looks very silly at least in Finnish. This is often the case in international sporting events and is basically a joke among Finns how Räikkönen becomes the insanity of ”Raeikkoenen” etc. ”Raikkonen” would be much preferred.
s4i··on Every UUID Dot Com
That’s not a valid UUID? The version and variant parts are missing.
s4i··on Litdb – type safe SQL for JavaScript/TS
There is Slonik [1] for instance.

[1] https://github.com/gajus/slonik

s4i··on Litdb – type safe SQL for JavaScript/TS
This is the reason I find it odd that most of these tools require their own system/DSL for defining the schema and the migrations. Using vanilla SQL DDL for that part gives you more escape hatches. This is possible with e.g. kysely + kysely-codegen.
s4i··on TrunkVer
What kills me with that website is that an example version string is nowhere to be found. The same thing almost plagues the TrunkVer page (unless you realize that you are supposed to ignore the newlines in that gray intro box), except at the very bottom you can see a dogfooded TrunkVer of the spec page itself.

If you want your thing to be popular, make sure someone dumb like me skimming the marketing blurp can quickly understand what the thing looks like in the wild.

s4i··on Good Software Development Habits
Or even better, do that in CI.
s4i··on Eye Contact Correction: Redirecting the eyes to look at the camera
Really? We FaceTime a lot with my wife and I keep telling her that I can see her looking at her own face in the corner instead or me. Is that tech accurate enough to tell that the person is looking at themselves and not the other participant, and then not correcting the eyes if that’s the case?

Anyway, I’d much prefer if Apple didn’t silently alter the eye direction of people calling me.

s4i··on A $1k Wheelchair
If you’re not in the market, I find it ironic you think you can assess if that $999 electric chair or those sub-$500 manual chairs are good deals. From the other comments here it seems like they aren’t.
s4i··on B-Trees and Database Indexes
I think it's "value #0", "value #1", etc. Confused me too.
s4i··on Font with Built-In Syntax Highlighting
I was thinking the same thing. The style reminds me of 90’s computer/game magazines or something… So it looks sort of professional (sans the first letter in the headings) but also whimsy at the same time. Love it.
s4i··on NodeSwift: Bridge Node.js and Swift
> I don't think I'd trade the freedom in nodeJS for Swift's type safety

Surely you have considered TypeScript for your Node project then?

s4i··on AI-powered conversion from Enzyme to React Testing Library
”Just add support for selectors” in a library of which whole philosophy is built around ”you test the app like the user would” (via WAI-ARIA roles [1] and text visible to screen readers).

Of course they could’ve forked the lib but that’s definitely not a ”just” decision to commit to.

[1] https://developer.mozilla.org/en-US/docs/Web/Accessibility/A...

s4i··on Why Choose ULIDs over Traditional UUIDs or IDs for Database Identification?
Depending on your read and write patterns, overflowing even every few days might be appropriate, and also obfuscate the creation time [1] more.

[1] https://news.ycombinator.com/item?id=40272446

s4i··on Why Choose ULIDs over Traditional UUIDs or IDs for Database Identification?
This topic resurfaces quite frequently, I've noticed. One thing I find quite frustrating is that most of the time this is discussed, people don't remember that exposing the creation time of a database row to the public is not acceptable in many systems. This makes v7 UUIDs, ULIDs, KSUIDs, etc. not appropriate for the task.

In any application where the user is able to first create a draft of something (a video upload, a news article, a blog post, ...) and then release it some day in the future, we probably don't want the public to be aware of when the author created the initial draft. For instance, news websites often start drafting articles about people that are speculated to pass away soon.

The problem also affects numeric/auto-incremented IDs. The "Finnish BBC" YLE uses numeric IDs in their news article URLs, making it possible to ballpark when the article was first started. Here's [1] an article about the death of former president Martti Ahtisaari from 2023/10/16 and here's [2] the next integer ID dated 2023/5/5 (5 months before).

[1] https://yle.fi/a/74-20030335

[2] https://yle.fi/a/74-20030336

s4i··on TypeSpec: A new language for API-centric development
I wonder if they have plans to introduce any default emitters as part of the package? Nothing about that in the docs that I could find. [1]

[1] https://typespec.io/docs/extending-typespec/emitters

s4i··on Ask HN: What software sparks joy when using?
Google Earth is often a nice balance between usefulness and delightfulness.
s4i··on Htmx and the Rule of Least Power
SQLite, plain localStorage in the browser, the file system for desktop apps, …?
s4i··on Htmx and the Rule of Least Power
There are painpoints in working with ”modern web stuff”. But:

> My counter-argument is that the simplest tool has the largest chance of not breaking over long periods of time. I have dynamic websites I built 10 years ago that still run almost untouched because I used the simplest stack possible.

My whole argument was that any reasonable frontend stack can work if your requirements stay constant. But let’s say in a startup you definitely don’t know on day one what you’ll need to implement. So it’s understandable why people pick something that’s popular and capable.

s4i··on Htmx and the Rule of Least Power
Ok, why then do we pick Postgres for many projects that could be build on something simpler?

The ”YAGNI” motto usually needs to be combined with ”don’t paint yourself into a corner”.

s4i··on Htmx and the Rule of Least Power
Don’t get me wrong, I’m not a Next.js fan either. Could’ve widened my list of examples to any SPA libraries and server-side JS frameworks. I just wanted to highlight the issue with the analogy: unlike some criminal a police officer is using force against, the nature of issues to be tackled in most software projects will keep changing.
← PreviousPage 2 of 4Next →