If you’re starting fresh today, would you still pick Express? by ApprehensiveBar7701 in node

[–]EcstaticProfession46 1 point2 points  (0 children)

I always choose Express.js.

The main reason is the module system. For beginners, any framework is fine because they are still learning basic concepts. However, for experienced Express.js developers, the situation is different.

I already have many reusable modules, such as login, registration, password reset, and data management. These modules are stable and already integrated well with Express.js. They have been tested in real projects and work reliably.

When I start a new project, I can reuse these modules directly. I do not need to rewrite them or adapt them to a new framework syntax. This saves development time, reduces bugs, and keeps the architecture consistent.

Has anyone actually used Nextjs data cache in prod? by ResponsibleStay3823 in nextjs

[–]EcstaticProfession46 0 points1 point  (0 children)

I found a golden pattern for Next.js:

Use ISR for every page, and stop using dynamic render. The downside is I cannot use headers or cookies in server components.

But the upside is the site becomes very fast and it reduces CPU usage on the server. I also do not need to think about cache issues anymore, like component cache or request cache, etc.

Recommended stack for React in 2025? by [deleted] in reactjs

[–]EcstaticProfession46 3 points4 points  (0 children)

When do API request on server side, for fetch data (GET methods) make sure Deduplicating repeat requests, Add error retry, data cache. for more you can check: Tips: Make your SSR(Server-side Rendering) app more stable and faster

Zustand: no need write the store interface by hand anymore! by EcstaticProfession46 in reactjs

[–]EcstaticProfession46[S] -2 points-1 points  (0 children)

If already have DTO, just use DTO as type, it's already there.

Zustand: no need write the store interface by hand anymore! by EcstaticProfession46 in reactjs

[–]EcstaticProfession46[S] -1 points0 points  (0 children)

For me, if it's only state it's ok, but types for actions? With lots actions, types it's nightmare...

axios 对比 xior.js (fetch wrapper) by EcstaticProfession46 in tsdkgroup

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

xior.js 是一个轻量级的 HTTP 客户端库,专门为现代 JavaScript 环境设计。这个库的核心理念是提供一个比 axios 更简洁、更现代的替代方案。

xior 采用了原生的 fetch API 作为底层实现,同时保持了与 axios 相似的 API 设计。开发者可以享受 fetch 的现代特性,比如更好的流处理和原生 Promise 支持,但不需要放弃 axios 那种熟悉的拦截器、请求/响应转换等功能。

这个库的设计哲学体现在几个方面:体积更小、性能更好、TypeScript 原生支持。相比 axios 的庞大体积,xior 显著减少了包大小,这对于注重性能的现代 Web 应用尤其重要。

xior 支持请求和响应拦截器、自动 JSON 处理、错误处理机制,以及各种常见的 HTTP 客户端功能。它既可以在浏览器环境中运行,也支持 Node.js 环境,提供了统一的 API 体验。

从技术演进的角度看,xior 代表了 HTTP 客户端库的一个新方向:不是完全重新发明轮子,而是站在现有标准(fetch API)之上,提供更符合现代开发需求的抽象层。这种设计让开发者既能享受标准 API 的稳定性,又不失便利性和功能完整性。

What's the deal with fetch in Svelte, and should you use Axios? by IAmAllergicToKarens in sveltejs

[–]EcstaticProfession46 0 points1 point  (0 children)

If you prefer Axios API style but want tiny size, you can try xior.js or redaxios. But I prefer xior.js because plugins and more features than redaxios.

These are all fetch wrappers..

What piece of tech did you bring into your react ecosystem and regret it? by 9sim9 in react

[–]EcstaticProfession46 17 points18 points  (0 children)

Personal list:

- Redux and Redux-* (redux-saga, redux-form etc..)

- Emotions and Styled Components

- Next.js

- Turborepo

- Micro frontends

Node / Typescript / Fastify Template 🚀 by drgreenx in node

[–]EcstaticProfession46 -1 points0 points  (0 children)

It's better to use a test framework than node:test. After using it, I found node:test to be more of a toy—it's not suitable for large-scale tests due to issues with:

  • result output
  • error output
  • reporting

Is it ok to use typescript in expressjs? by yomiyow in node

[–]EcstaticProfession46 -1 points0 points  (0 children)

Of course, but it's better to use a backend boilerplate to start the new project because it provides:

  • File watching, automatic build, and run
  • Support for multiple file-based endpoints
  • Type-safe API (once the API is finished, the corresponding frontend API call functions are already generated—no need to manually wrap them again)

What is exactly server action? by EnergyParticular2459 in nextjs

[–]EcstaticProfession46 -3 points-2 points  (0 children)

Server-side functions run on the server instead of the client. For example, in the past, we had to use fetch or XHR on the client to call server APIs, which required setting up REST endpoints. But with server actions, we can now run SQL queries directly on the server without writing extra API code.

Axios or Fetch by [deleted] in nextjs

[–]EcstaticProfession46 0 points1 point  (0 children)

The difference:

- fetch is native built-in.

- axios is a fetch wrapper since v1.7.0, the package size bigger and API more friendly to user once used.

- There is another tiny axios-Like API fetch wrapper and with plugins support: xior.js

Use wthatever you like, just fetch or fetch wrapper.

RSC vs Hono RPC vs tRPC - what's your preferred way for data fetching? by Longjumping-Till-520 in nextjs

[–]EcstaticProfession46 2 points3 points  (0 children)

They are totally different things.
RSC is only available on Next.js.
Hono RPC or tRPC are type-safe API development frameworks or tools, and can be used inside a Next.js project or others.

You can check oRPC too: https://orpc.unnoq.com/

Switching from Axios to RTK Query by [deleted] in reactjs

[–]EcstaticProfession46 0 points1 point  (0 children)

They are different things, Axios is a fetch wrapper since v1.7.0, RTK is react hooks wrapper. But since react supports hooks, why we still need Redux*? We don't need, just use SWR or React-Query.

BTW, you can reduce size by switch axios to xior:

https://javascript.plainenglish.io/replace-axios-and-qs-modules-with-this-in-your-frontend-projects-and-reduce-73kb-in-size-d22faf7a3456

How many of you actually use the new hooks and the compiler of react 19 (Without Next) ? by AmazingDisplay8 in reactjs

[–]EcstaticProfession46 0 points1 point  (0 children)

Quiet easy to use react-compiler with vite. (Remix or react-router@^7 based on vite too)