Home New Trending Search
About Privacy Terms
Posts
Andreas Roth's posts

Ah I see.
I wonder if prefixes could work here.
When you have lib-p-5, consumers could add second tailwind compile step, that handles these classes with the prefix to generate the library css?

1 year ago 0 0 1 0

What do you mean with „transpiling away“ the classes?

Non tailwind users would still include your Stylesheet with the tailwind classes that were used in your lib?

1 year ago 0 0 1 0

Consumers can just add the library’s dist folder to their tailwind config and it will generate the classes in its own css file. Of course, this could break styles when size classes are different.

1 year ago 0 0 1 0

Is upgrading to websockets an option?
TCP should already guarantee order of packets.

1 year ago 2 0 1 0

I’m sure I read more than 10 posts from you explaining path traversal attacks but I can’t remember a single one that shows the solution to preventing them 😅

1 year ago 0 0 1 0
Preview
Deploying: Static Exports | Next.js Next.js enables starting as a static site or Single-Page Application (SPA), then later optionally upgrading to use features that require a server.

No, sadly you are correct.
The docs on static export explicitly mention that dynamic params without genereagteStaticParams is not supported.

nextjs.org/docs/app/bui...

1 year ago 1 0 0 0

Is the exploration part coming? :D

1 year ago 1 0 2 0
Graph of the State of JS 2024 results showing frontend frameworks on a chart with two dimensions: used /not used, and positive vs negative sentiment. Over the years, all of them seem to drift towards the center.

Graph of the State of JS 2024 results showing frontend frameworks on a chart with two dimensions: used /not used, and positive vs negative sentiment. Over the years, all of them seem to drift towards the center.

Frontend world seems to be converging.
General trend seems to be moving towards the center of the chart. And this aligns with the framework directions as well. Many are adopting similar reactive primitives and similar control flow approaches. So people seem to care less about the specific choices.

1 year ago 2 0 0 0

Hm, and of course I can’t find the twitter thread anymore…

1 year ago 1 0 1 0
Preview
'use server' directive – React The library for web and native user interfaces

Didn't we discuss that JSX isn't a valid return type for Server functions? @tkdodo.eu , @nilshartmann.net , @adamrackis.bsky.social

Looks like the docs changed: react.dev/reference/rs...
It’s about arguments but also links to Server Component return types as valid for server actions.

1 year ago 1 0 1 0

Inngest is such a cool concept. Directly integrating into your app, where all dependencies are already set up is brilliant.

1 year ago 1 0 0 0

But curly braces are so hard to type on German MacOS keyboards 🤪

1 year ago 1 0 0 0

While working on this, the LLM use case became a quite obvious candidate for streaming so I wrote up this article:

www.esveo.com/en/blog/stre...

1 year ago 0 0 0 0

Bye bye forwardRef!
Hello cleanup functions for refs!

Pretty amazing how such small changes can improve your life so much!

1 year ago 0 0 0 0
Post image

Same :D

1 year ago 1 0 0 0

React is fast because of the virtual DOM?

1 year ago 0 0 0 0

Are you already at the place where you bore yourself because you realise that you are repeating the same jokes and stories?
Happened to me a couple of years ago when I gave a training for the 4th time…

1 year ago 0 0 1 0

$scope.apply()

1 year ago 0 0 1 0
Preview
Why React Should Not Adopt Signals by Andreas Roth Today I want to talk about why React should not adopt signals. By adopting signals in React, we can automatically track dependencies for effects and memos, leading to more efficient component renderin...

Recently, we had so many discussions about react hooks, signals and more. How fitting that gitnation now published my lighting talk where I discuss why React should NOT adopt signals.

gitnation.com/contents/why...

1 year ago 0 0 0 0

Wow, this content looks really cool!

I almost skipped this because the only thing above the fold is the table of contents and the enroll button. A simple or continue free lessons with a down arrow could fix this risk.

1 year ago 2 0 1 0

What really surprised me was that there are some starting positions,that need EIGHT clicks to get to the end position...
Sadly, this kind of killed the game for me, because it feels like it's really unlikely that I will memorize these harder states, so I will always have to fall back to guessing...

1 year ago 1 0 0 0

github.com/andrewgreenh...
Whole source code can be found here.

1 year ago 1 0 1 0
Murdle Moriarty Console Solver

So after a long day of work in front of my laptop, I decided to not spent time with my wife and open up my macbook again to build a solver...
And now, 2 hours later, it's done:
andrewgreenh.github.io/moriarty-con...
Each grid displays a number (the steps to finish) on the next cell to click.

1 year ago 1 0 1 0

It became apparent quickly, that there are "easy" starting positions and "hard" ones. For the harder ones, I always ended up randomly clicking around until I found a familiar place, where I knew how to finish.

And then I wondered what the optimal way was to solve each starting position

1 year ago 1 0 1 0

In this minigame, you have a 3by3 grid of cells. Each cell can be on, or off. By clicking on a cell, you toggle the cell and the direct neighbours (NOT DIAGONALLY).

Your task is turn the whole grid "on" as quickly as possible on as many random start positions as possible.

1 year ago 1 0 1 0
Preview
MURDLE by G. T. Karber Solve a new murder mystery every day!

I got nerd sniped...
Recently someone (I believe it was @erikras.com ) wrote something about murdle.com. Besides the excellent logic puzzle, there is this mini game called moriarty console: murdle.com/console/

1 year ago 1 0 2 0

No no, that’s taxidermy. You are looking for taximeter.

1 year ago 1 0 0 0

I absolutely love what you all are currently doing with node.js
In the last, I did not really care about node releases but now, every release contains something awesome!

1 year ago 1 0 0 0

public static void main() {}

Me too!

1 year ago 3 0 1 0

🍖🍖🍖🦴🦴
🔋🔋🔋🪫🪫

1 year ago 1 0 1 0
Andreas Roth
Andreas Roth
@xent.dev
45 Followers 154 Following 75 Posts
Posts Following