• 0 Posts
  • 5 Comments
Joined 3 years ago
cake
Cake day: March 4th, 2024

help-circle


  • I personally haven’t looked at the port myself, but generally LLM/AI agents generate “slop” until a human expert reviews all of it. Which in most cases never happens. Instead they just review with another “higher tier” model.

    As someone on hacker news put it regarding a subject about using LLMs for everything:

    A decent proxy right now is that if you have zero external dependencies then your solution is probably a toy.

    This can be related because unless they are actually using the best libraries in the ecosystem while they are porting then it’s going to be a mess to maintain and also alienates the ecosystem.


  • These kinds of struggles with JavaScript and TypeScript are part of why I moved to Rust. I value the sanity checks the compiler provides: warning when a Result is ignored and refusing to compile when a match on an enum is missing a branch.

    Also, in Rust, Result is for recoverable failures, while panic! is generally reserved for bugs, broken internal assumptions, or cases where the program has reached a state that it believed should be impossible.


  • I skimmed the article and they just say:

    • Don’t roll your own page scrolling.
    • Don’t roll your own link navigation.
    • Don’t roll your own text selection.
    • Don’t roll your own context menu.
    • Don’t roll your own copy and paste.
    • Don’t roll your own password field.
    • Don’t roll your own date picker.

    For a date picker I initially disagreed but then their argument about how you can just use 2x input type=date for the start and end date and then it’s consistent across every site was pretty reasonable. I’m not gonna go read mdn on its capabilities right now so maybe there’s still some valid use cases for not using one, like conveying to the use what valid ranges they can select.

    But yes I agree you shouldn’t use a library for something simple like left-pad