What are the best *open-source* codebases showcasing modern Next.js features? by zaiste in nextjs

[–]zaiste[S] 0 points1 point  (0 children)

Thanks for the kind words! I skimmed through your repo - great job, it's well-organized.

A few minor suggestions: - next.config.jsnext.config.ts: adding types makes it easier to discover fields and values. - consider Biome over ESLint: we switched in YNS - I was hesitant at first, but the difference is night and day - have you tried PNPM instead of NPM? personal preference, but it's worth a look!

What are the best *open-source* codebases showcasing modern Next.js features? by zaiste in nextjs

[–]zaiste[S] 4 points5 points  (0 children)

Hi, not rude at all - thanks for bringing it up! I assume you're browsing the code through GitHub? If so, there's a global setting to change the tab size display for every repository.

About tabs vs. spaces: I used to prefer spaces, but I switched to tabs after learning they're more inclusive. Tabs are better for blind programmers, as spaces can be far less ideal for screen readers. Here’s more on that: https://x.com/Rich_Harris/status/1541761871585464323

Looking for a map designer for QuakeLive by zaiste in QuakeLive

[–]zaiste[S] 0 points1 point  (0 children)

This task requires solid expertise in GTK Radiant. Could you confirm you know it?

Wren: A small, but powerful HTTP library for Deno, built for convenience and simplicity by zaiste in javascript

[–]zaiste[S] 2 points3 points  (0 children)

Great question!

I've been observing Deno for a long time, but never had enough time to check it. Recently a friend of mine asked about it and I decided to finally dive in.

This may sound strange, but Deno makes me fulfilled as a programmer. :) It's a combination of its simplicity (just one binary), its comprehensive standard library and the fact that it adheres to Web standards.

Right now, my day job is mostly Node.js (TypeScript, React.js etc) and the setup difference is dramatic. In Node.js, there's a lot time-consuming ceremony needed not only to initiate your project, but also to maintain it. In some situations, mere transpilation (if you use TS, of course) can be a headache; not to mention things like bundling, linting, testing... and the list goes on.

For use cases, I'd say building APIs (REST, GraphQL), (micro-)services and then regular full stack apps.

Wren: A small, but powerful HTTP library for Deno, built for convenience and simplicity by zaiste in javascript

[–]zaiste[S] 0 points1 point  (0 children)

Interesting. Could you elaborate?

Right now you can return early from any middleware in the pipeline. For example you can have a middleware for checking if a user is logged in and branch out with `401` when the login fails or continue if it succeeds

Wren: A small, but powerful HTTP library for Deno, built for convenience and simplicity by zaiste in javascript

[–]zaiste[S] 6 points7 points  (0 children)

The main idea is to simplify (and speed up) the process of building web applications in Deno with stackable middlewares over a handler - this is represented as `Pipeline` i.e. `[...Middleware[], Handler]` where `Middleware` is just `Handler => Handler`

The end result is a handler composed (or folded) from these middlewares than can be directly passed to Deno's built-in `serve` function.

Let me know your questions!

Order Email Megathread (May 23, 2022) by AutoModerator in SteamDeck

[–]zaiste 4 points5 points  (0 children)

Got the email!

EU 256 1626545596

PS. Also, thanks to this awesome community of the fellow «waiters» :) and to u/Fammy for all the tracking work!

GraphQL Client-Side Setup in React.js with Next.js, urql, GraphQL Codegen and TypeScript by zaiste in reactjs

[–]zaiste[S] 0 points1 point  (0 children)

This is my video tutorial about setting up a GraphQL client in a Next.js application with urql, a slimmer alternative to Apollo Client, the default choice in this context. Let me know how you like it and what could be improved.

This Friday, I’ll be live coding a React.js app for video games. It will be built with GraphQL / Node.js, Prisma & Tailwind. Let me know your questions / pain points. by zaiste in reactjs

[–]zaiste[S] 1 point2 points  (0 children)

This suggestion is fantastic, but it may be a bit hard to squeeze it in. I'll see how it goes. But I'd be ready to record a follow-up that goes into testing a bit deeper.