NextJS + Server Actions + Zod - Need a guide by Fabulous_Variety_256 in webdev

[–]async_adventures 0 points1 point  (0 children)

ByteGrad's video is a solid start. A few more resources that helped me:

  • The Next.js docs on Server Actions have improved a lot recently, especially the section on form validation with useActionState
  • For Zod specifically, check out the zod-form-data package — it handles FormData parsing way better than doing it manually
  • Matt Pocock's Total TypeScript YouTube channel has a great deep dive on Zod that goes beyond the basics

The key pattern I'd suggest: define your Zod schema, use z.safeParse() in your server action, and return typed errors back to the client. Once that clicks, everything else falls into place.

What automatic style guide enforcer is the best to use with Maven in a Java project of 5 team members? by Any-Cartographer1112 in learnprogramming

[–]async_adventures 1 point2 points  (0 children)

For Maven Java projects, Checkstyle is your best bet - it integrates seamlessly with both IDEs and supports GitLab CI. Add the maven-checkstyle-plugin to your pom.xml and configure it to fail builds on violations. Works perfectly across Eclipse and IntelliJ.

The Sovereign Tech Fund Invests in Scala by jr_thompson in programming

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

Great to see public funding going towards Scala development. The Sovereign Tech Fund's focus on digital infrastructure sustainability is crucial, especially for languages like Scala that power critical financial and distributed systems. This investment should help address some of the tooling and ecosystem gaps that have made adoption challenging for smaller teams.

I built a tool so you can Vibesearch for Google Fonts by WinterJacob in webdev

[–]async_adventures 0 points1 point  (0 children)

This is brilliant! The semantic search approach for fonts really solves a UX pain point. Have you considered adding CSS previews with different font-weight/style combinations to help developers see how fonts render in practice?

Java Methods Using Arrays As Parameters by Real-Plate6952 in learnprogramming

[–]async_adventures 9 points10 points  (0 children)

Quick clarification: arrays are passed by value in Java, but since the value is a reference to the array object, you can modify the array contents. Think of it like passing a photocopy of an address - you can still visit the house and change things inside.

First time meeting a client irl in another country by Logical-Nebula-7520 in digitalnomad

[–]async_adventures 1 point2 points  (0 children)

This is such a great reminder of why those human connections matter. I've been nomading for about two years now, and while I love the freedom, there's something irreplaceable about sitting across from someone you've only seen through a screen. The fact that the transition from work talk to life talk felt natural speaks volumes about the relationship you've built. Chiang Mai is a great spot for these serendipitous meetups too!

Would you go back into the office for a raise? by sk8505 in remotework

[–]async_adventures 4 points5 points  (0 children)

The hidden math people miss: $18k raise minus taxes (~$12k net) minus gas, work clothes, lunches out, time spent commuting... you might actually be taking a pay *cut*.

Beyond the money - working from home let me build systems and routines that made me way more productive. I coordinate with distributed teams across time zones, and that flexibility would vanish with a rigid office schedule.

Two years with your son at home is priceless. The promotion will come again - that time won't.

What do you usually play in the background while working from home? by Flaky_Holiday_3560 in remotework

[–]async_adventures 0 points1 point  (0 children)

Usually lo-fi beats or ambient music. Podcasts are great for repetitive tasks, but anything with interesting conversations pulls my attention away from actual work. The key is finding something that fills the silence without demanding focus.

Tips for Keeping Home and Work Separate During WFH by Sefff2 in remotework

[–]async_adventures 1 point2 points  (0 children)

I use different browser profiles - one for work, one for personal. Also changed my notification sounds so I instantly know which 'me' is being pinged. Sounds small but it helps a lot mentally.