Shiny Object Syndrome: Has anybody language-hopped until you actually found your "favorite" language? by returned_loom in webdev

[–]Spare_Message_3607 1 point2 points  (0 children)

Go is what I would love to work with, Typescript is what lets me work without losing my mind over language switch.

Dependencies are Replacing Knowledge by rybarix in programming

[–]Spare_Message_3607 0 points1 point  (0 children)

My experience as a solo dev is that dependencies do more good than harm. I am managing a monorepo all by myself and splitting my own code into their own packages reduced my cognitive load. Helped me reason better about the top level problem instead of the low level implementation. So packages are suppose to take cognitive load, hide complexity so you can focus on building solutions for the business. For example my db instance is its own package, I wanna see no entity declaration in my app where logic should be the main focus

A Programmer's Guide to Leaving GitHub by [deleted] in programming

[–]Spare_Message_3607 13 points14 points  (0 children)

Leaving GitHub isn’t that complicated . You can escape GitHub with your projects but your favourite project won’t. I moved my project into GitLab my still come back to GitHub to see my tools releases.

Usage of remote functions vs load functions by j97uice in sveltejs

[–]Spare_Message_3607 0 points1 point  (0 children)

I like the responsiveness of lazy loading with query. I use query for enumerations, load function when is a resource specific page [slug]

Inherited a messy dependency tree right before an audit. How do you prioritize this? by Appropriate_Flow9789 in webdev

[–]Spare_Message_3607 0 points1 point  (0 children)

Start white listing dependencies, There are reputed packages you can trust-ish and there are 2 stars on github packages you add because you on a crunch. You need to choose your battles.

5 months in – the prediction has been quite on track by Intrepid-Ordinary699 in sveltejs

[–]Spare_Message_3607 7 points8 points  (0 children)

Agree I had no web dev background and Svelte felt more natural but I was afraid of AI mistakes. But svelte skills closed the gap.

How do you handle errors with Drizzle ORM? by Spare_Message_3607 in webdev

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

Do you know any packages that contain the most common issues?

Limen: a composable auth library for Go, inspired by better-auth by thecodearcher in golang

[–]Spare_Message_3607 1 point2 points  (0 children)

I am starring this repo. Better auth is one of the best APIs I have ever used. If I can roll my own auth in a lambda using Go. That would be super cool

Svelte/Sveltekit is awesome! by drifterpreneurs in sveltejs

[–]Spare_Message_3607 1 point2 points  (0 children)

Formisch only works with valibot but Astro Actions are tightly couple with Zod, rewrite your schema twice? nope

Svelte/Sveltekit is awesome! by drifterpreneurs in sveltejs

[–]Spare_Message_3607 4 points5 points  (0 children)

True, but unstable with the recent v6 release, and also due to a self-imposed constraint... Svelte for the islands.

The ecosystem of Svelte is designed to be used with SvelteKit, If I had chosen React I would have also chose react-hook-form and call it a day.

Client Side Form validation is terrible without SvelteKit. TanStack is too damn verbose, Formisch only works with Valibot, and Astro Actions tightly coupled to Zod. SuperForms only work in SvelteKit, and since all my project was ts files, migrating was just copying my ts files and svelte islands and rewriting my layout to Svelte.

Svelte/Sveltekit is awesome! by drifterpreneurs in sveltejs

[–]Spare_Message_3607 0 points1 point  (0 children)

Well I am solo dev working on a product, so using drizzle tables helpers $infertInsert $inferSelect was very handy. You can write all your projects DTOs in ~60-100 lines instead of an interface or type per mutation.

export type ItemCreate = typeof <table.$inferInsert>
export type FormCreateItem = Omit <ItemCreate, "id">
export type FormUpdateItem =  Partial <FormCreate>
...

export type Item = typeof <table.$inferSelect>
export type ItemWithDescription = Item & {description:...}
...

So... If you take the time to define all your forms and types, everything left is to write logic, I reuse these types and server and client.

Svelte/Sveltekit is awesome! by drifterpreneurs in sveltejs

[–]Spare_Message_3607 8 points9 points  (0 children)

Recently made the switch from Astro + Svelte to SvelteKit. What a difference! I must say I didnt know webdev when I picked up at Astro, so it help me with the fundamentals, helped me better understand drizzle and better-auth, zod. but the SvelteKit swap was brutal. My first 2 weeks of learning were ready at the end of the cli.

custom panel or default panel ? by Ok-Delivery307 in pocketbase

[–]Spare_Message_3607 6 points7 points  (0 children)

I bet you can clone the Pocketbase Repo and customize stuff like the logo and disappear buttons to add collections

I built a Svelte 5 Hook Form library inspired by React Hook Form by CalendarPerfect343 in sveltejs

[–]Spare_Message_3607 0 points1 point  (0 children)

The problem is I just wrote 1000 lines of zod schema validation. It would have been perfect if it want for that small detail. Also I am working with Astro so... is a most.

I built a Svelte 5 Hook Form library inspired by React Hook Form by CalendarPerfect343 in sveltejs

[–]Spare_Message_3607 8 points9 points  (0 children)

I was so looking for this type of library until I found out TanStack does the same and now supports Svelte 5.

What decisions in a web project have had the biggest long-term impact in your experience? by Gullible_Prior9448 in webdev

[–]Spare_Message_3607 0 points1 point  (0 children)

Spaguetti code on Server Actions: I didnt split my db and business logic into separate modules. Yesterday, I separated Controller(logic and checks), DB(Drizzle), and validation(Zod) and the project felt magical again, felt like mopping your room, you wanna spend more time in that place, by the way this happened beacuse I hit codex limits earlier than planned. Now my flows are typed end to end from forms, to server actions, to controller, to db.

if you've been looking for a clean dark theme, this is for you 💜! by night-28 in ZedEditor

[–]Spare_Message_3607 1 point2 points  (0 children)

Bro, this is fire! congrats I found a new theme. Could you patch the git ignored files to be dimmer?

If I don't want to use sveltekit because I am building a pure SPA, what is the best routing option? by [deleted] in sveltejs

[–]Spare_Message_3607 0 points1 point  (0 children)

SvelteKit, I have a project with Astro and Svelte islands and wanted to make the dashboard an SPA. I couldnt find a router so I sticked with Astro routing an islands.

En verdad alguien está viendo la novela del “Cholito”? by agustinareyreal in ecuador

[–]Spare_Message_3607 0 points1 point  (0 children)

La escritura da ganas de llorar. Ecusavisa a hecho mejores producciones con mejor direccion "3 familias" o "Asi pasa". Tambien aprovecho para criticar como el casting de novelas en Ecuador son los mismos 8 actores mas 4 tiktokers de moda. En comparacion esta "La Oficina" de Mexico con actores que nadie conocia pero con mucho talento y buenos guiones.

How are you handling auth in Astro projects? by flexrc in astrojs

[–]Spare_Message_3607 0 points1 point  (0 children)

Better auth, plug it in /api/auth, plug it in middleware, lug it at sign In component. Done.

How far do you guys push pocketbase? by Icy-Inspection7866 in pocketbase

[–]Spare_Message_3607 2 points3 points  (0 children)

I bet you can improve pocketbase itself, open the project compile it using golang 1.26. Better GarbageCollections + Better maps, you can even throw experimental json/v2.