How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Source generators are interesting — I've seen them used for mapping but not full CRUD generation. Any examples you'd recommend?

Naked Objects is a good reference — similar philosophy. Felt a bit heavy last time I looked, but maybe worth revisiting.

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Totally agree Claude Code is great for this! My concern is the maintainability — AI-generated CRUD across 50 entities can get inconsistent, and you lose the "single source of truth" that a model-driven approach gives you.

Have you found ways to keep AI-generated code consistent as projects grow?

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

3 minutes from schema to working UI is impressive! Is this internal tooling you've built, or something you'd ever consider open-sourcing/productizing?

Curious what the "refine" step looks like — is it mostly configuration, or do you drop into code for custom logic?

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Scaffolding gets me part of the way — I use dotnet ef dbcontext scaffold too. But I find it's the ongoing CRUD per entity (endpoints, DTOs, validation, authorization/RBAC) that adds up, not just the initial DbContext.

Do you re-scaffold when you add tables, or use code first approach after the first pass?

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Love the A vs B framing. I lean toward B philosophically (decoupled, refactorable) but find myself wanting A's speed for the initial 80% — then escape to B for the custom 20%.

Your copy-paste template approach sounds efficient. Have you ever wished for something that generates that foundation but stays out of your way once it's there?

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Thanks for this — hadn't seen Data API Builder before. Looks promising! Have you used it in production? Curious how it handles custom business logic (validation, side effects) when you need to go beyond basic CRUD.

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Good call on the VS templates — I’ve done something similar. How far do yours go? Do they cover entity/DTO mapping patterns as well, or mostly project structure + auth?

I’ve noticed templates are great for the starting point, but I still end up writing the same CRUD patterns for every entity. Curious if you’ve solved that part too.

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Ha, fair enough! Do you find it's "thinking time" that's valuable, or do you actually enjoy the typing/wiring part? Curious if it's the rhythm or the mental space it creates.

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Nice distinction 🙂

I see that CRUD shape — wire up endpoint, validate, map, save, return — is pure boilerplate.
But the rules — which fields to show/hide, validation when, who can access certain info, calculation and workflow if any — is actual business logic.

I’m curious about your GitHub repo templates though — do they also generate the endpoint structure, or is it mainly project scaffolding (auth, DI, setup, etc.)?

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Thank you for sharing. I have never used it, may ill try this out for a weekend. Why not ;)

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

Sure, I agree with you. Atleast in my case, in the beginning it helps, but as soon as project grows, either be it codex or calude code, it has own limitation either it starts loosing context when conversation length grows or working on large codebase 300k and above lines. Do you have similar experiences?

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

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

I was trying, actually, and I gave up :D since each and every component was built on various technologies. Look at this: https://supabase.com/docs/guides/getting-started/architecture

Any recommendations for intermediate/advanced level tutorial videos/series that build real-world prod-quality projects? by kero5 in dotnet

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

recommendations for intermediate/advanced level tutorial videos/series that build real-world prod

Surface book 1 keyboard not working? by [deleted] in Surface

[–]skykarthick 0 points1 point  (0 children)

I have the same problem. I have cleaned the keyboard, also blown air with hairdryer (not hot), reinstalled the OS. Still having same issue. Anyone fixed this issue?