efortis

Joined 6 years ago

Karma
833
Submissions
552
Member since
Feb 20
Frontend developer
View on Hacker News

Recent submissions

Comment · 9 days ago
Comment · 9 days ago
IIRC Bill Atkinson said that it is at the top because it was easier to code. at any rate, it’s true that screen edges and corners are easy to click because their hit region becomes infinite in one or two directions
Comment · 12 days ago
Comment · 15 days ago
It's not that he changed his mind. He said there: "The kind of expectations I have is that people do their best and I expect people to understand what they are doing. But that understanding has very little to do with what tools they use."
Comment · 22 days ago
I have little personal notes, and gym tracker apps.

Their backend is just a json file, which I GET and PUT with Nginx + WebDav + Basic Auth

Comment · 25 days ago
I renewed my WebStorm license for $32.90/year and it comes with $3/mo free AI credits, plus cloud-based completions
Comment · 1 month ago
slop
Comment · 1 month ago
Comment · 1 month ago
Comment · 1 month ago
> ${local} is the right target, with global disambiguation where necessary.

How?

---

Another approach is using base52 sequential names, such as `aa, ab, …`. I tried that a few years ago in Webpack, I don't remember but there was an issue, IIRC they weren't deterministic.

Comment · 1 month ago
`zstd --ultra`

    53K _long.css
    11K _long.css.br
    14K _long.css.zst

    38K _short.css
   8.9K _short.css.br
    11K _short.css.zst
Comment · 1 month ago
Here's a comparison using `brotli --best` on my app.

   53K _long.css
   38K _short.css

   11K _long.css.br
  8.9K _short.css.br
Both, dev and prod, have hashes because that's part of what CSS Modules uses to avoid collisions.

Besides download size, smaller names improve parsing speed too.

Comment · 1 month ago
There's room for improvement still. Currently, the production build is using long-dev class names. e.g. `DirectoryContent-module__Box_3__gl6dE` could be compiled to a shorter hash like `gl6DE3a2`.

If you use Vite:

  css: {
    modules: {
      generateScopedName: mode === 'production'
        ? '[hash:base64:8]'
        : '[name]__[local]___[hash:base64:5]',
      }
    }
Comment · 1 month ago
Comment · 1 month ago
Recently, I was screen-interviewed for coding speed with a fairly easy project. The company used a 3rd party platform which gave me 90m to complete 4 levels, each one building upon the other.

I think that was a nice test, but the platform is too buggy to recommend.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton