Live data from Hacker News

Show HN: I built a Python web framework

github.com

21–30 of 127 posts

Re: Show HN: I built a Python web framework

#24

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.

Meteor was the last time I heard about something like this.

Re: Show HN: I built a Python web framework

#26
post #25

Earlier quoted context omitted.

In what world is this an appropriate comment?

I really wonder what that dude was doing when he was 15 years old, should have been a difficult childhood...

I get what he’s going for I guess but “this isn’t much of an achievement” is sociopathic

Re: Show HN: I built a Python web framework

#27
post #10

Are you really 15yrs old? is the biggest question here..

Have noticed that teens tend to indeed say they're x old on stuff they're doing.

And he's been working on it for a year. So he built a web framework at 14.

And I can't center a div without a google search...

(I am a back-end dev tho, so its a little better than it sounds)

Re: Show HN: I built a Python web framework

#28
post #14

Earlier quoted context omitted.

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.

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-process", and save what is basically code in the same database as content. This will anger most Smalltalk fans, but I think this style of development is a bad idea. I want to know that some folder full of source code is the program, and some other folder is the data, and that if I back up one or the other, it will be independently usable.

I'm not saying 90s IDEs were perfect, but I don't think there's been any successful successor to their style of development. Graphical GUI builders exist, but they usually don't support making web apps, and after working with modern JS GUI frameworks, manually syncing GUI state with app state seems antiquated and needlessly bug-prone. I suppose QML with Qt Creator comes closest.

Re: Show HN: I built a Python web framework

#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, however is there a syntax where I can specify many parameters without taking many LOC?

For example you could have ``@query("name", "age")`` and look at the function signature using the 'inspect' module to determine that name should be a str and age an int. Or maybe ``@query(name=str, age=int)`` .

Also, mention it uses ASGI in the docs, so people are reassured on how to deploy it. And list that it is already compatible with uvicorn and etc.

Post reply on HN