Live data from Hacker News

Show HN: Purview – A server-side component framework

github.com

31–40 of 56 posts

Re: Show HN: Purview – A server-side component framework

#34
> Not React compatible due to the differences listed below, so you can't use existing React components/libraries with Purview.

Existing components/libraries is the only reason I use react.

A good alternative that provides a nice setup for SSR on the initial page load as well as code splitting is nextjs https://github.com/zeit/next.js/

Re: Show HN: Purview – A server-side component framework

#35

God, GOD WHY. Whhhyyyyy. Build APIs, not database calls from templates like Rails or PHP garbage. We know how to do this nowwwwwwww don't make this Rails User.friends.comments garbage DB calls from templates

Why's that garbage? Sometimes a full SPA is not needed.

Re: Show HN: Purview – A server-side component framework

#36
post #4

looks like it's the react version of https://dockyard.com/blog/2018/12/12/phoenix-liveview-intera... ? edit: nvm, it's listed in the readme as inspiration

Yes, that was my inspiration! Chris gave a great talk about it at ElixirConf is anyone is interested in watching: https://www.youtube.com/watch?v=Z2DU0qLfPIY Some differences compared to LiveView: - Type-checking: there are extensive JSX typings ( https://github.com/karthikv/purview/blob/master/src/types/js... ) that ensure you're attaching event handlers with the correct signatures, specifying supported props, using…

You should have a look at JSF (Java Server Faces) that explored, and failed miserably, in the same context for the last 15 years or so. (Probably less, dunno)

Re: Show HN: Purview – A server-side component framework

#37
post #4

looks like it's the react version of https://dockyard.com/blog/2018/12/12/phoenix-liveview-intera... ? edit: nvm, it's listed in the readme as inspiration

Yes, that was my inspiration! Chris gave a great talk about it at ElixirConf is anyone is interested in watching: https://www.youtube.com/watch?v=Z2DU0qLfPIY Some differences compared to LiveView: - Type-checking: there are extensive JSX typings ( https://github.com/karthikv/purview/blob/master/src/types/js... ) that ensure you're attaching event handlers with the correct signatures, specifying supported props, using…

Neat project! We indeed support nesting in LiveView :)

Re: Show HN: Purview – A server-side component framework

#38
post #33

So now we're stuffing sql in our react as well as html and CSS? React is on course to reinvent the PHP that everyone spent so long laughing about

Personally I took a break from frontend work, I'll circle back in a few years once web assembly is ready.

The JS ecosystem is insane once you take a step back and look at it.

Re: Show HN: Purview – A server-side component framework

#39

God, GOD WHY. Whhhyyyyy. Build APIs, not database calls from templates like Rails or PHP garbage. We know how to do this nowwwwwwww don't make this Rails User.friends.comments garbage DB calls from templates

Why's that garbage? Sometimes a full SPA is not needed.

Just take a step back and look at it, you're combining HTML, SQL and JS, on the fucking server.
Post reply on HN