Better HN
topnewbestaskshowjobs
Log inSign up

efortis

833 karma · joined Feb 20, 2020 (6y ago) · 552 submissions

Frontend developer
Submissions

comment 1mo ago · link · parent

In this video Bill explains why he moved it. At 28 min he says: "…and if the window is near the bottom, how are you going to show all the choices? Well, I tried moving the menus to the top of the screen."

https://www.cs.cmu.edu/~bam/uicourse/05440inter2019/Bill-Atk...

comment 1mo ago · link · parent

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 1mo ago · link · parent

Related. Neil deGrasse Tyson has a nice and short video explaining it.

https://www.youtube.com/watch?v=Xqc8P0WcPTM

comment 1mo ago · link · parent

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 1mo ago · link · parent

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 1mo ago · link · parent

I renewed my WebStorm license for $32.90/year and it comes with $3/mo free AI credits, plus cloud-based completions

comment 1mo ago · link · parent

slop

comment 1mo ago · link · parent

I see them in mobile, but not in desktop:

https://x.com/efortis/status/2103319003754275262

comment 1mo ago · link · parent

Also, incomplete sections. This site below has an FAQ section without answers.

https://ai.meta.com/muse

comment 1mo ago · link · parent

> ${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 1mo ago · link · parent

`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 1mo ago · link · parent

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 1mo ago · link · parent

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 2mo ago · link · parent

I’m working on projects for rendering code more legibly without editing it.

One project is a proportional coding font, Camelana, which has left-padded uppercase letters when they are part of a camel case identifier.

Also, it has custom ligatures. e.g. the keywords ‘return and ‘throw look like a sticker with a solid background, so it is easy to spot exit points.

https://github.com/ericfortis/camelana

Another project is TabularEye, which renders some code blocks in columns without editing the whitespace.

https://github.com/ericfortis/tabular-eye

And other little projects like that

comment 2mo ago · link · parent

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.

comment 2mo ago · link · parent

One tell is: if you can code that hero there's no excuse for the silly bugs.

For example, the hero is fairly impressive in mobile but it's broken in desktop. And then you scroll down to the next section and there's overflowing text.

IOW, the skill level is inconsistent.

comment 2mo ago · link · parent

Yes, but it can be regardless of being a cache miss.

If you are curious about the use case: https://github.com/ericfortis/aot-fetch-demo/blob/main/optio...

comment 2mo ago · link · parent

Is there a way to stream the ESI in a chunk? I'm asking for different use case.

comment 2mo ago · link · parent

> In contrast, bug reports to a typical end-user application go into a black hole from the moment they’re submitted.

True, but not always, I've heard PMs saying: "this was a user-submitted bug", meaning you better fix this ASAP.

But yes, for the most part they don't like it. I recall reporting a bug and then they obfuscated their SPA bundle.

Funny enough, today I spent like an hour thinking: should I report this, should I ever report bugs at all. It was a P0 but I didn't report it, and I noted it as my first time considering giving up on my career.

Last week I reported a list of medium-bugs and I ended with: "I'm not sure if you'll ever read this, so I'm not adding more details that could help you debug, but feel free to reach out…" They responded: "We will share this feedback with the appropriate team. No further action is required on your end. Your ticket 124443 is solved. Please rate us!"

comment 2mo ago · link · parent

Two tips I learned from Sorin's yt channel:

- Bend the tips

- Don't buy an expensive iron, use a cheap one and assist it with a hot air gun

Sorin is incredibly skilled. Here he is fixing a ribbon cable:

https://youtu.be/P81IG0DZ1kg?t=494

comment 2mo ago · link · parent

> fetch, XMLHttpRequest : Nothing — these are the ones everybody checks.

That's one of the things I don't like about security scanners, they just check for fetch and friends, and without context, they downgrade your security score.

For example, I have a fully local client-server package that makes no external requests but it gets flagged with "Supply Chain Risk" because it uses `fetch`.

comment 2mo ago · link · parent

FWIW, YouTube, instead of SSR, simply includes the critical API data in the HTML document.

Here’s a PoC of that technique, see option 2.

https://github.com/ericfortis/aot-fetch-demo

comment 3mo ago · link · parent

Is recording for creating stubs possible with that local setup?

comment 3mo ago · link · parent

haven’t done it, but I’d try a rain sensor. and if the child is into music, a guitar tone knob.

comment 3mo ago · link · parent

An easy improvement could be offsetting the cuts a bit so the result doesn't feel choppy. See J Cut and L Cut.

A more complex improvement could be analyzing the movement and/or focal point so cuts flow better. For example, if in ClipN the focal point ends at 30%-top,30%-left try to get the starting focus point of ClipN+1 around that area too.

comment 3mo ago · link · parent

Currently, on ways to render code more legibly:

- Camelana. A proportional coding font with custom ligatures for `return` and `throw` keywords

- Tabular Eye. IDE plugin for tabularizing mono and non-monospace fonts without adding whitespace

https://github.com/ericfortis/camelana

https://github.com/ericfortis/tabular-eye

comment 3mo ago · link · parent

CSS Modules are a better solution. They compile classnames into unique identifiers, so there's no need for BEM or SMACSS conventions:

https://x.com/efortis/status/1888304658080256099

comment 3mo ago · link · parent

For the backend of my personal webapps I’m using Nginx with its WebDAV module.

WebDAV is a protocol for managing files. So I basically have plain json files I read and overwrite.

  GET /mydata.json
  PUT /mydata.json
For auth, Basic auth, which is built-in in the module and in browsers. so it’s just a text file with a username and a hashed pwd.

On the phone, I “Add to Home Screen” from Safari

For backups, in my home router I have a cron that rsyncs the json files.

The VPS costs $12/mo

12345
19