r/webdev • • May 18 '25

Discussion I wonder why some devs hate server side javascript

I personally love it. Using javascript on both the server and client sides is a great opportunity IMO. From what I’ve seen, express or fastify is enough for many projects. But some developers call server side javascript a "tragedy." Why is that?

193 Upvotes

253 comments sorted by

View all comments

Show parent comment

10

u/30thnight expert May 18 '25

This is a great response.

For addressing some of the warts listed:

  • node supports typescript type stripping now - which can be used to reduce your tooling requirements (or just use bun/deno)
  • modern validation libraries adhere to the standard spec and can be used interchangeably. This is useful because modern api servers like hono.js support automatic openapi codegen from your validation schemas like this (Arktype and Zod v4 are great options)
  • in cases where performance is your primary concern, consider your validation library to Typia (the fastest feature complete system I know that doesn’t require writing validation schemas and supports its own openapi spec generation - benchmark
  • use a monorepo structure with NX to share types across domains / packages.
  • for small apis that only have a single JS based consumer, consider using tools like orpc or trpc.
  • for sql orms, very little can compete with EF core but for what we’re talking about - I highly recommend using Drizzle.
  • for package security, many companies I’ve been at used snky.io for dependency checks. Others would mirror packages in our internal setup (GitHub packages or Artifactory). In 2025, I’d advise people to avoid packages that don’t publish provenance data and use checks like this: https://github.com/actions/dependency-review-action

asp.net, golang, and elixir are my choices for most usecases but I personally would choose typescript before ruby or python for general crud work.

10

u/c-digs May 18 '25

You and I think alike.

You might like this deck I put together recently: Nestia + Typia + Kysely which to me is a really, really good stack on Node.js.

2

u/wubalubadubdub55 May 21 '25

Do you have a video walkthrough of that like you have for your .NET modular monolith repo?

2

u/c-digs May 21 '25

I do not 🤣 but I can put it on the backlog!