HNHacker News
TopNewBestAskShowJobs

smjburton

125 karma · joined February 17, 2025

Currently building finesse.cash (receipt-powered budgeting and personal finance).
submissionscomments
smjburton··on Advanced Python Features
We're discussing Python, not SQL or any other language. Using more arcane elements of a language like Python, which emphasizes readability, often makes your code less understandable, difficult to debug, and harder to maintain. I also suggest you read the Zen of Python for an understanding of the language's design principles.
smjburton··on Creating your own federated microblog
> To simplify the tutorial, we'll impose the following feature constraints:

> There is no search functionality.

This makes sense for the tutorial, but search functionality would be awesome for discovery, both in terms of people finding your blog as well as finding other interesting blogs to follow. Niche blogs seem more difficult to find these days when Google only seems to surface websites with the right keywords.

smjburton··on Advanced Python Features
That's exactly my point. Having to search for the meaning of the operator at all makes the code less readable. I recommend reading the Zen of Python, which covers the design principles of the language.
smjburton··on Advanced Python Features
One of the main objectives of Python is readability. IMO, features that take away from this objective become a detriment to the language.
smjburton··on Advanced Python Features
Some of these newer features don't seem like improvements to the language (e.g. the Walrus operator):

'''

# ===== Don't write this =====

response = get_user_input()

if response:

    print('You pressed:', response)
else:

    print('You pressed nothing')
# ===== Write this instead =====

if response := get_user_input():

    print('You pressed:', response)
else:

    print('You pressed nothing')
'''

The first implementation is immediately clear, even if you're not familiar with Python syntax. If you don't know what the ":=" operator does, the code becomes less readable, and code clarity is traded away in favor of being slightly more concise.

smjburton··on A flowing WebGL gradient, deconstructed
This is so cool. These flowing gradients have a mesmerizing effect (almost like watching a lava lamp), and seem like a great way to add visual interest to a page. I'll have to play around with this and see if I can incorporate these flowing gradients into some of my web projects. Awesome job detailing the design process for this post.
smjburton··on .localhost Domains
Yeah that's right. You can use something like https://github.com/joohoi/acme-dns or something similar to validate the DNS-01 challenge.
smjburton··on Hacking a Smart Home Device (2024)
Agreed, the ideal solution would be to control these devices without being on your home network at all.
smjburton··on Hacking a Smart Home Device (2024)
> For better or worse, the engineers behind the service decided not to implement a standard protocol like DTLS.

> We're not certain if each device has its own unique private key, but whether it does or not, both have downsides ... If all devices share the same firmware private key, the attacker needs to reverse engineer just a single device to MITM attack any other devices.

If anything, this article further highlights that security on these type of devices isn't as rigorous as other consumer electronics like laptops or smartphones. Anyone using smart devices should look into DD-WRT, OpenWrt, Tomato, or Asuswrt-Merlin and isolate these devices in their own VLAN away from the rest of your private network.

smjburton··on .localhost Domains
If you really want to keep things local without paying any fees, you could also use Smallstep (https://smallstep.com/) to issue certificates for your services. This way you only need to add one CA to your trust store on your devices, and the certificates still renew periodically and satisfy the requirements for TLS.

I suggested using a domain given they already have Caddy set up and it's inexpensive to acquire a cheap domain. It's also less of a headache in my experience.

smjburton··on .localhost Domains
It's not, just a different way of satisfying the certificate challenge. Look into a DNS-01 challenge vs a HTTP-01 challenge. Let's Encrypt has a good breakdown: https://letsencrypt.org/docs/challenge-types/.
smjburton··on .localhost Domains
OP: If you're already using Caddy, why not just use a purchased domain (you can get some for a few dollars) with a DNS-01 challenge? This way you don't need to add self-signed certificates to your trust store and browsers/devices don't complain. You'll still keep your services private to your internal network, and Caddy will automatically keep all managed certificates renewed so there's no manual intervention once everything is set up.
smjburton··on Apache ECharts
I was just looking into charting libraries for React/React Native, and Apache ECharts seems like a great contender for cross-platform data visualization. The libraries that I came across - react-echarts (https://github.com/hugocxl/react-echarts) and react-native-echarts (https://github.com/wuba/react-native-echarts) - both seem to be actively developed, and the fact that it's under Apache is a huge plus for future development prospects and maintenance of the project.
smjburton··on Your Startup Doesn't Need to Be a Unicorn
Although it's good to look into alternatives to bootstrapping vs VCs, the funding source isn't the only factor to consider. Balancing how quickly you need to enter the market and how much ownership you feel comfortable having over the final product will ultimately drive the decision on how to fund a venture too.
smjburton··on On JavaScript's Weirdness
That's a fair point. Adding that to the original post would help provide context about why some of these quirks are still relevant to consider even when using a framework. I believe the assumption is often that frameworks abstract the Javascript "weirdness" away.
smjburton··on On JavaScript's Weirdness
While interesting and possibly helpful to new coders, are these quirks of the language still relevant when most development in Javascript is done using a framework (React, Vue, etc) these days? How often do these "gotchas" factor into "modern" Javascript development, especially in production? These type of articles seem to critique mechanics of the language that don't come up as often in practice.
smjburton··on Everything is Ghibli
This is what I'm most excited about as well. Prior to 4o image generation, most GPTs I came across really struggled with this type of image generation. The only one that seemed to come close was Ideogram.
smjburton··on Self-Hosting like it's 2025
This is a great introduction to self-hosting, good job OP. As some of the other comments mentioned, discussion about self-hosted security and the importance of back-ups would be good to include. Also, you link to some great resources for discovering self-hosted applications, but it would be interesting to hear some of the software you enjoy self-hosting outside of core infrastructure. As I'm sure you're aware, self-hosters are always looking for new ideas. :)
smjburton··on How I Choose What to Work On (2023)
I saw that too but took it to mean that he lives lean even when times are good by traveling as minimalistic as possible (cheapest flights, hotels, gear), and has set his life up in a way that he could survive even if he has very little to no money.
smjburton··on How I Choose What to Work On (2023)
> Part of the reason I’ve been able to do this is because I’ve always designed my life such that it can benefit from having money (pinball arcade rooms and all that…) but is also compatible with having no money.

Good observation from the OP. Living lean opens up the possibility to do more things; but it also requires sacrifices that most aren't able to make, and why it's so difficult to work on the things you want to. Sometimes it's nearly impossible to give up life's commitments, comforts, and responsibilities.

smjburton··on Why Anthropic's Claude still hasn't beaten Pokémon
> But despite recent advances in AI image processing, Hershey said Claude still struggles to interpret the low-resolution, pixelated world of a Game Boy screenshot as well as a human can.

> We built the text side of it first, and the text side is definitely... more powerful. How these models can reason about images is getting better, but I think it's a decent bit behind.

This seems to be the main issue: using an AI model predominantly trained on text-based reasoning to play through a graphical video game challenge. Given this context, the image processing for this model is like an underdeveloped skill compared to its text-based reasoning. Even though it spent an excessive amount of time navigating through Mt. Moon or getting trapped in small areas of the map, Claude will likely only get better at playing Pokemon or other games as it's trained on more image-related tasks and the model balances out its capabilities.

smjburton··on Whose code am I running in GitHub Actions?
I've moved away from Gitea and suggest others do the same given the controversy in the project's management.
smjburton··on Whose code am I running in GitHub Actions?
A better solution would be to use something like Forgejo Actions, Woodpecker CI, or Drone for a self-hosted, private setup and avoid the dependency on GitHub Actions altogether. Some of these self-hosted solutions have compatibility with GitHub Actions syntax, so the workflow would be more or less the same while having less risk for these type of attacks.
smjburton··on Notetime: Minimalistic notes where everything is timestamped
That's great to hear! Hope to see an update on HN when the self-hosted version is ready.
smjburton··on Quadlet: Running Podman containers under systemd
> ... the old method was too hacky and involved the usage of redundant commands.

> There must be an easier way, you might think. Especially if you experienced the convenience that Docker Compose provides.

I really hope this new approach helps people migrate from Docker to Podman. Docker-Compose is the reason a lot of people resist switching (including myself), and admittedly, Podman didn't really have an answer until Quadlets. If you were hesitant about migrating from Docker because of Docker-Compose, Podman with Quadlets is a much more comparable alternative. You probably won't miss Docker as much as you think, and you'll benefit from enhanced security running rootless containers.

smjburton··on Notetime: Minimalistic notes where everything is timestamped
This is really sleek. I like the focus on minimalism since what I often need is a simple interface to take down quick notes, thoughts, and ideas. Any plans to offer a self-hosted version?
smjburton··on FOSS infrastructure is under attack by AI companies
Outside of disruptive measures like requiring accounts, captchas, or payment, one possible solution would be to use AI against itself by training machine learning models to monitor, flag, and issue challenges to web requests exhibiting "bot-like" behavior. This way, not all web traffic would be disrupted with challenges until the machine learning models have reason to believe the traffic is coming from a bot.
smjburton··on The model is the product
> So what is happening right now is just a lot of denial. The honeymoon period between model providers and wrappers is over. > In short the dilemma for most successful wrappers is simple: training or being trained on. What they are doing right now is both free market research for the big labs but, even, as all outputs is ultimately generated through model providers, free data design and generation.

This is a great observation on the current situation. Over the past few years, there's been a proliferation of AI wrappers in the SaaS space; however, because they're use proprietary models, they become entirely dependent on the model providers to continue to offer their solution, there's little to no barrier to entry to create a competing product, and they're providing free training data to the model providers. Instead, as the article suggests, SaaS builders should look into open source models (from places like Github, HuggingFace, or paperswithcode.com) or consider researching their own, and training custom models if they want to offer long-term services to their users.

smjburton··on A look at Firefox forks
If Mozilla needs additional funding, I'd much rather contribute to the project with an "opt-out" subscription plan (say for $20/year) to help support the project without giving away personal data. The author correctly points out that these forks are dependent on Firefox's continued upstream development; however, having this option would provide people with the choice to support the project without giving up personal data, and Firefox and its forks could continue to be sustainably developed.
smjburton··on Open-UI: Maintain an open standard for UI and promote its adherence and adoption
> And so, all-too-often today's web developers turn to heavy JavaScript frameworks to build the user interfaces their designers are asking for. These custom interfaces are rarely fully accessible. They slow down the page, consume power, open security vulnerabilities and exclude people.

I'm running into this issue now using React/TailwindCSS to create a modern UI for a website when I'd much rather use native/built-in UI elements, especially since these Javascript frameworks are hit-or-miss for SEO. The needs of the modern web and the tools available are very disjointed at the moment, and I hope this initiative is successful is in addressing the issue.

← PreviousPage 2 of 3Next →