Live data from Hacker News

Show HN: I built a Python web framework

github.com

31–40 of 127 posts

Re: Show HN: I built a Python web framework

#31

Earlier quoted context omitted.

What do you mean by headless UI components?

Basically the ui layer and the backend layer which and the operational layer need to be combined into one seamless tool. Right now you have the write a "frontend" and a "db connection + backend logic layer". And by headless I mean something which builds on what the web provides like buttons but adds a whole lot more of components which are used but are unstyled.

Sounds a bit like https://directus.io/

Re: Show HN: I built a Python web framework

#33

Earlier quoted context omitted.

What do you mean by headless UI components?

Basically the ui layer and the backend layer which and the operational layer need to be combined into one seamless tool. Right now you have the write a "frontend" and a "db connection + backend logic layer". And by headless I mean something which builds on what the web provides like buttons but adds a whole lot more of components which are used but are unstyled.

> Basically the ui layer and the backend layer which and the operational layer need to be combined into one seamless tool. Right now you have the write a "frontend" and a "db connection + backend logic layer".

Solving this “problem” just doesn’t seem like a good use of a time. There are now 4738484 different viable ways to build a website, adding another way is just a waste of everyone’s time

Re: Show HN: I built a Python web framework

#36

What is missing from the web framework space is a headless ui components merged with a db layer. Most of these frameworks repeat old patterns. Nothing has been able to break through and give us something truly revolutionary like Rails did. Web frameworks need to be a visual medium where you can create ui using visual tools and the "backend" side of things merge seamlessly.

maybe streamsync [0] comes close to what you describe?

"Streamsync is an open-source framework for creating data apps. Build user interfaces using a visual editor; write the backend code in Python." [0] https://github.com/streamsync-cloud/streamsync

Re: Show HN: I built a Python web framework

#39
post #28
post #14

Earlier quoted context omitted.

Then you've invented Visual Basic in the 90s, WordPress in the 00s and I don't know Squarespace or something in the last decade. For business cases beyond that, this is simply not how "the backend" works.

Visual Basic and other "RAD" builders were pretty neat and I think platforms like WordPress or Drupal never captured their charm. For one, any apps built on them need a rather complex runtime, which feels worse to me than a language's standard library or the JVM. It's a far cry from dragging in a button and then referencing it as a variable in code. Second, the graphical niceties of these platforms often run "in-proc…

VB was probably the charmingest language I’ve ever used, especially for GUI. It takes the cake for “rather complex runtime” though. As I recall, they bundled the entire VB interpreter into every executable. This seemed scandalous to me at the time.

Re: Show HN: I built a Python web framework

#40
post #30

I would say, focus on what makes your web framework different. i.e. if you want to implement py-to-js, don't also reinvent routing at the same time. Grab an existing py-to-js engine and make something tiny with it. If it shows the value of the idea, then it will be picked up by the wider community. I like the idea of decorators for turning query and body parameters into function parameters, I haven't seen that before…

The decorator for body params reminds me a bit of Spring's @RequestBody annotation.

However, fastapi manages this without a decorator, only a type hint. Is there any gain doing it like this?

Post reply on HN