andy,
@andy@bell.bz avatar

I’ve been doing some research on Next JS for some potential client stuff and it just makes everything more difficult than it has to be lmao.

It’s a good reminder that the annoyances I have with nunjucks are nothing really because Eleventy makes everything easy

ryantownsend,
@ryantownsend@webperf.social avatar

@andy my team have been using it for years (a decision I deeply regret signing off on) and I’ve found that if you know what you’re doing with the Web Platform, you’ll just fight against it.

It feels like it sets an ‘okay’ (i.e. not ‘good’) baseline for people that would otherwise deliver ‘bad’, but if you treat ‘good’ as a minimum and strive for ‘great’, it’s an uphill battle.

andy,
@andy@bell.bz avatar

@ryantownsend I think that’s a perfect summary tbh. The big ol’ bundles don’t feel worth it as it stands

matuzo,
@matuzo@front-end.social avatar

@ryantownsend @andy I have to bookmark that post. That's a fantastic quote!

nicod,
@nicod@diaspodon.fr avatar

@ryantownsend Do you have a link that explains why this is not a good choice?
@matuzo @andy

ryantownsend,
@ryantownsend@webperf.social avatar
andy,
@andy@bell.bz avatar

I got a failed production build on vercel because I [checks notes] used an <a> instead of <Link> 🥴

iamschulz,

@andy so do they use <a> to generate <link> as well?

andy,
@andy@bell.bz avatar

@iamschulz no idea tbh

trys,
@trys@mastodon.social avatar

@andy what a world

andydavies,
@andydavies@hachyderm.io avatar

@andy WTAF!

andy,
@andy@bell.bz avatar

@andydavies maddening stuff

nickautomatic,
@nickautomatic@mastodon.social avatar

@andy In my previous job a new starter argued that we weren't following "best practices" because we were using <a> instead of <Link> in our code base. Left me feeling that NextJS is giving people some distinctly unhelpful ideas about HTML.

andy,
@andy@bell.bz avatar
matthiasott,
@matthiasott@mastodon.social avatar

@andy been there… you’ll also have to reinvent on-page anchor links in case you need them. 😉 Also, good luck with lazy loading images etc 😅🤞
When I did a project with Next.js a while ago, all images were showing up with a huuuuuge delay on live. It was unusable, basically. The problem was that Next uses (used?) Squoosh to resize images on the fly which was just too slow in production. Installing the additional “sharp” library fixed it…

andy,
@andy@bell.bz avatar
matthiasott,
@matthiasott@mastodon.social avatar

@andy “best-practice developer platform lock-in”

hazelweakly,
@hazelweakly@hachyderm.io avatar

@andy https://astro.build is what I'm looking at for what will be the "next generation" of something beyond nextjs

Not sure it'll be literally that, but I think it has a lot of the right ideas (same for https://remix.run). A lot of which feel very similar to 11ty

Which, I love 11ty, but component authoring and consumption feels leagues better as a UX cycle with JSX than with most html templating. (I just wish JSX didn't currently imply "throw out the whole ass web browser" 🙄)

hazelweakly,
@hazelweakly@hachyderm.io avatar

@andy that said, everyone seems to slowly finally be moving to a healthy blend of

  1. Static first is good actually
  2. Generate and strip out what you can
  3. Server side render what you can't
  4. Make simple server logic very lightweight to integrate
  5. Only ship the runtime for the last-mile of what actually needs to be interactive

And nextjs has a ton of legacy stuff in it making the dev experience rough for sure. But I think it's a sign there's better things coming soon (I hope)

andy,
@andy@bell.bz avatar

@hazelweakly that’s my dream overall: partial hydration of server generated stuff

flenny,

@andy @hazelweakly if you like html then you’ll love https://htmx.org plus whatever backend you like that can return HTML fragments.

hazelweakly,
@hazelweakly@hachyderm.io avatar

@flenny @andy I like html but I've never personally gotten into htmx. I know people who like it though!

flenny,

@hazelweakly @andy it’s nicely done. low ceremony. Lightweight. Feels like a natural extension to HTML.

andy,
@andy@bell.bz avatar

@hazelweakly yeh I’ve sorta thought maybe Astro might be better too because clients wanna use react components, which I totally get tbh, but if the framework around it makes things silly for folks in the studio — designers — I ain’t interested

hazelweakly,
@hazelweakly@hachyderm.io avatar

@andy yeah that's super fair. I've continued to be disappointed in how little everything has focused on a11y, designers, collaboration, and making things amenable to low-code integrations (CMS + page builders as concrete examples)

Like... WordPress is still eating the world in a lot of ways, and for good reason. I just don't see that changing until people start figuring that out and actually addressing it 🤷‍♀️

andy,
@andy@bell.bz avatar

@hazelweakly +1 on that

Di4na,
@Di4na@hachyderm.io avatar

@andy yeah I actively recommend clients to avoid it. I have had at least 2 projects to move out of Next and not only was Next the reason to move out, it made the process hard af.

I see what attract people to it, but it does not deliver.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • everett
  • osvaldo12
  • magazineikmin
  • thenastyranch
  • rosin
  • normalnudes
  • Youngstown
  • Durango
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • JUstTest
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • Leos
  • anitta
  • modclub
  • khanakhh
  • cubers
  • cisconetworking
  • megavids
  • provamag3
  • tester
  • lostlight
  • All magazines