Rūtenis Raila
banner
rutenisraila.bsky.social
Rūtenis Raila
@rutenisraila.bsky.social
Software development consultant.

My website: https://darnadigital.com/
Here's how I implement translations for website animations:
December 17, 2025 at 4:29 PM
Recently, there have been not one, but two security incidents for React Server Components (RSC).
December 16, 2025 at 4:30 PM
When running DAST security scans, I use the default settings for smaller projects.

However, recently I was running it for a project with thousands of pages, so the default settings for the web crawler started timing out.
December 15, 2025 at 4:29 PM
When I write PHPUnit tests that may have many edge cases from one method, I use the dataProvider + yield pattern.

Here's why I like this flow:
December 12, 2025 at 4:32 PM
I've been having a lot of fun building code-based animations for websites.

Here's why I like them:
December 11, 2025 at 4:33 PM
For the longest time, Next.js didn't have an official way to handle translations.

I used to rely on 3rd party libraries for projects that require multiple language support. This would leave me feeling uneasy, because I know how brutal the churn in the JS/TS ecosystem is.
December 10, 2025 at 4:27 PM
I try to automate boring but necessary tasks, such as writing Git commit messages.

This allows me to focus my energy on more productive tasks, such as implementing new features and fixing bugs.
December 9, 2025 at 4:31 PM
If you're using Cloudflare to manage your domains, there's a good chance you're using it mainly because of their DDOS attack protection.

One thing I've found surprising, that by default SST disables this security feature, so I had to enable it like this:
December 8, 2025 at 4:34 PM
Why I use Nextra to document my projects:

1. Free & open source.

- Loads of free themes and plugins.
- I usually just use the defaults, because they're so good out of the box.
December 5, 2025 at 4:32 PM
Here's how I run automated Symfony PHP tests in CI/CD:
December 4, 2025 at 4:32 PM
I find that the raw power of AI models is more important than the user interface I use to work with them.

Tools like Cursor put a lot of focus on the visual DX with their VSCode fork, but for me, a simple terminal is more than enough.
December 3, 2025 at 4:29 PM
When handling large data sets, in most cases, I use pagination.
December 2, 2025 at 4:28 PM
I shipped many Next.js apps to production, both small and large.

One thing I keep noticing is that the middleware (now called proxy) file tends to get incredibly messy.
December 1, 2025 at 4:32 PM
I used to believe that being "a jack of all trades, master of none" is bad.

I was told that as a developer, I should focus on one area: for example, frontend.

I believed that for years.

But I was wrong.
November 28, 2025 at 4:34 PM
After I join or start a project, I force myself to follow the Boy Scout rule.

Basically, the goal is to leave the code better than I found it.
November 27, 2025 at 4:31 PM
By default, shadcn/ui tooltips are dark and have a triangle arrow.

Personally, I style my tooltips with a neutral colour and remove the arrow. To me, it looks cleaner and more minimal.
November 26, 2025 at 4:33 PM
Some 3rd party services require saving application logs for long periods of time for auditing.

I solved this requirement using infrastructure as code.
November 25, 2025 at 4:34 PM
I think that E2E tests are overrated.

I used to make the codebase a large spaghetti bowl without clearly defined boundaries between business logic and dependencies.
November 24, 2025 at 10:04 AM
I find that placing features inside dedicated folders makes it easier to maintain the project over the long run.
November 21, 2025 at 4:28 PM
I like using infrastructure as code for managing domains.

This allows me to configure different domains for production and staging easily
November 20, 2025 at 4:30 PM
Because of better-auth, the JS/TS ecosystem went from the worst ecosystem in terms of auth, multitenancy, billing, and OAuth2, to one of the best.

I find it crazy that one serious open source project can have so much impact in just over a year.
November 19, 2025 at 4:29 PM
I feel like bright red buttons meant for destructive actions like delete, remove, etc, can make the UI look jarring.

So I tend to make the destructive states red only on hover/focus.
November 18, 2025 at 4:26 PM
I like to save money by using the "spot" capacity for staging environments.

Otherwise, running container-based applications can get expensive on AWS.
November 17, 2025 at 4:28 PM
Docker containers are great for deploying applications.

But I also like adding some AWS Lambda for longer tasks, like HTML to PDF conversion
November 14, 2025 at 4:31 PM
In my experience, updating dependencies is tedious for monorepos.

I used to update React in one version, then the other peer dependency breaks. Then I would fix that, and something else would break.
November 13, 2025 at 4:28 PM