Congratulations on shipping. The demo looks great. I see views and controllers in the documentation, but the only mention of model is that "model" is a reserved directory. What are your plans for models and persistence?
Thanks for your comment and question @onionisfruit. Top-notch handle too! >> What are your plans for models and persistence? I haven't worked out all the details, but it's going to be some blend of https://github.com/xo/xo and https://sqlc.dev/ . Design goals: 1. High-level, type-safe "ORM" that's generated from your database schema. 2. sqlc as a fallback to cover the more complex SQL queries in a type-safe way. The…
Show HN: A Full-Stack Web Framework for Go
91–100 of 103 posts
Re: Show HN: A Full-Stack Web Framework for Go
#92Re: Show HN: A Full-Stack Web Framework for Go
#93Cool project but I think building a full stack web framework in a language without features like operator overloading is a fool's errand. Yes, Go has nice standard templating and HTTP serving libraries, and nice dependency management. These are all important features for a web framework. No, it will never be productive as its competitors in the web framework space, because you simply cannot write expressions like `or…
I see where you're coming from, but tbh the more I work on web backend code the more I disagree with this. I really think database interactions should be made explicit, even early on, rather than hidden by ORMs (or overriding a dot operator).
Re: Show HN: A Full-Stack Web Framework for Go
#94Cool project but I think building a full stack web framework in a language without features like operator overloading is a fool's errand. Yes, Go has nice standard templating and HTTP serving libraries, and nice dependency management. These are all important features for a web framework. No, it will never be productive as its competitors in the web framework space, because you simply cannot write expressions like `or…
Thanks for your comment @pphysch! So for authoring an app, I tend to agree with you. Languages like Ruby/Python/Typescript are probably faster to get something working. I try to consider productivity holistically though. With Go, there's a lot less fussing with the tooling. I've also found Go saves a lot of time when onboarding new teammates. This is because of Go's intentional decision to be conservative with syntax…
Ultimately you will be teaching the framework, not the language, when it comes to large frameworks like this. Both Go and Python are easy to learn, but frameworks always add a lot of complexity.
> I respectfully disagree with your preference to split your backend up over gRPC or HTTPS. I prefer the approach Shopify takes to break up it's monolith:
I'm not arguing for this or that architecture cargo cult. I prefer monoliths too, but sometimes you really need distributed microservices and Go+gRPC is one of the most maintainable ways to do that.
Re: Show HN: A Full-Stack Web Framework for Go
#95Earlier quoted context omitted.
Something like https://github.com/caddyserver/certmagic perhaps?
Yes! This might be the one I add to Bud! Seems like a more mature version of: https://pkg.go.dev/golang.org/x/crypto/acme/autocert
Re: Show HN: A Full-Stack Web Framework for Go
#96Earlier quoted context omitted.
Thanks for your comment @pphysch! So for authoring an app, I tend to agree with you. Languages like Ruby/Python/Typescript are probably faster to get something working. I try to consider productivity holistically though. With Go, there's a lot less fussing with the tooling. I've also found Go saves a lot of time when onboarding new teammates. This is because of Go's intentional decision to be conservative with syntax…
> I try to consider productivity holistically though. With Go, there's a lot less fussing with the tooling. I've also found Go saves a lot of time when onboarding new teammates. This is because of Go's intentional decision to be conservative with syntax. After all, most developer time is spent reading, not writing. Ultimately you will be teaching the framework, not the language, when it comes to large frameworks like…
Re: Show HN: A Full-Stack Web Framework for Go
#97Earlier quoted context omitted.
I see where you're coming from, but tbh the more I work on web backend code the more I disagree with this. I really think database interactions should be made explicit, even early on, rather than hidden by ORMs (or overriding a dot operator).
That's fine, but you are making a trade off with productivity here.
Re: Show HN: A Full-Stack Web Framework for Go
#98Congratulations on shipping. The demo looks great. I see views and controllers in the documentation, but the only mention of model is that "model" is a reserved directory. What are your plans for models and persistence?
Thanks for your comment and question @onionisfruit. Top-notch handle too! >> What are your plans for models and persistence? I haven't worked out all the details, but it's going to be some blend of https://github.com/xo/xo and https://sqlc.dev/ . Design goals: 1. High-level, type-safe "ORM" that's generated from your database schema. 2. sqlc as a fallback to cover the more complex SQL queries in a type-safe way. The…
Re: Show HN: A Full-Stack Web Framework for Go
#99People interested in this might also find my project Pagoda [0] interesting. It's a full-stack web dev starter kit for Go, rather than a framework with any strict patterns or lock-in. It leverages Echo (web) and Ent (ORM) but they can be easily swapped out, if desired. It also has HTMX [1] integration to create slick/modern UI behavior without writing any JS. [0] https://github.com/mikestefanello/pagoda [1] https://h…
Thanks for sharing @mstef9! I somehow missed this one in my research. I'm a huge fan of all efforts to make Go a serious contender for building full-stack web applications. Ent is a nice choice for the ORM. For models, I'm planning to go with a combo of sqlc + xo. I want to tie the DB schema to your application.
relevant hn thread https://news.ycombinator.com/item?id=30290225