News for hackers. Stuff that matters.
Re:Goravel, Web framework inspired from Laravel in Golang by DeathArrow on Thursday July 06, 2023 @06:57AM (#36614026)
So they roll their own stuff each time they do a web app?
Re:Goravel, Web framework inspired from Laravel in Golang by maccard on Thursday July 06, 2023 @07:15AM (#36614147)
A lot of go apps bolt together libraries yeah.
Re:Goravel, Web framework inspired from Laravel in Golang by giraffe_lady on Thursday July 06, 2023 @07:37AM (#36614313)
From what I've seen yes. So in practice every go app is a custom & unique framework. Same problem as react. This was also the norm in php until laravel got popular a few years ago.

IMO it's a rough way to make a web page but people keep doing it so it must have some advantages.

Re:Goravel, Web framework inspired from Laravel in Golang by rmilejczz on Thursday July 06, 2023 @07:44AM (#36614362)
It’s not that we roll all our own stuff it’s just that most of us avoid opinionated frameworks. Example I’d wager most go backends are using gorm or sqlx because rolling your own orm would be insane for most
Re:Goravel, Web framework inspired from Laravel in Golang by jamil7 on Thursday July 06, 2023 @07:44AM (#36614368)
Not a go dev but I have dabbled. I get the impression that the sweet spot for go is not in building standard crud web apps but for specialised network services and tooling. For those reasons big heavy frameworks don’t seem popular.
Re:Goravel, Web framework inspired from Laravel in Golang by Philip-J-Fry on Thursday July 06, 2023 @08:48AM (#36614957)
Composition is king.

The standard library defines some decent interfaces already around HTTP handling and SQL calls. Most libraries are built to integrate with them. Then interfaces like io.Reader and io.Writer mean you can pretty much use anything to read requests and write responses.

This means that usually you're composing libraries and some application code together, rather than building everything on top of some jack of all trades framework. You get to choose the best tool for each job.

Re:Goravel, Web framework inspired from Laravel in Golang by kaba0 on Thursday July 06, 2023 @11:14AM (#36617290)
> Then interfaces like io.Reader and io.Writer mean you can pretty much use anything to read requests and write responses.

Yeah, that’s not the hard part at all. What about routing, converting from/to json/params/cookies safely, sessions, authz/n..

Re:Goravel, Web framework inspired from Laravel in Golang by maccard on Thursday July 06, 2023 @05:53PM (#36623621)
I'm a fan of gin over the builtins but:

> What about routing, converting from/to json/params/cookies safely All supported out of the box with the standard library. It's also table stakes, and not the hard part.

> sessions, authz/n

This is where you need to step out of the standard

Re:Goravel, Web framework inspired from Laravel in Golang by out_of_protocol on Thursday July 06, 2023 @09:34AM (#36615517)
Yes and that's frustrating