Earlier quoted context omitted.
This looks like the regular server side web framework with helpers to create html. State is (likely) managed by using the appropriate python library, or just a global variable or dict if race conditions don’t matter.
Then why compile to JS? And what happens when the client performs any actions, e.g clicks a button that should send an outgoing request either from the client or from the server?
Show HN: I built a Python web framework
111–120 of 127 posts
Re: Show HN: I built a Python web framework
#112Re: Show HN: I built a Python web framework
#113What 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.
Re: Show HN: I built a Python web framework
#114Earlier quoted context omitted.
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
#115Wow I like it, simple like Flask, but with the HTML in the same file (as opposed to the jinja templates) which is a pattern I really like! Makes me wonder if you could integrate this ambition to do the web-stuff in your Python file with the FastAPI/Pydantic BaseModel situation. Like a HTML templating library made out of Python data classes (or Pydantic BaseModels). Either way, I respect the ambition! :) Always cool t…
Flask's routes return strings, there's nothing stopping you from doing this. The render_template function is just a convenience.
Re: Show HN: I built a Python web framework
#116Earlier quoted context omitted.
Then why compile to JS? And what happens when the client performs any actions, e.g clicks a button that should send an outgoing request either from the client or from the server?
Does it compile to JS? I didn't see a mention in the repo, where did you see that?
Re: Show HN: I built a Python web framework
#117Flask is decent. Can’t we use that?
Whatever happened to web2py? I remember that being brought up a lot in these discussions…
However, the focus has moved to py4web [1] which has many of web2py's strengths (including the DAL), but with a more orthodox architecture at the cost of a little more complexity and a slightly steeper learning curve.
Re: Show HN: I built a Python web framework
#118Earlier quoted context omitted.
What’s your honest appraisal of this code? Would you ever under any circumstances use it? If not, then be honest and tell them to keep pushing. The quote is that it is not much “yet”. It’s a good first step, but having too high of a self-appraisal is just as bad as having too low. As an elementary school kid I worked for several years on a BASIC game where you could fly an ASCII art ship around the screen. It was not…
You are heavily projecting onto him. You don’t know anything about him and even if you did unless he’s being openly belligerent it’s not your place to fix him Just let people build things. There’s no need to aggressively tear them down. Programming for fun is not serious
Re: Show HN: I built a Python web framework
#119Earlier quoted context omitted.
What’s your honest appraisal of this code? Would you ever under any circumstances use it? If not, then be honest and tell them to keep pushing. The quote is that it is not much “yet”. It’s a good first step, but having too high of a self-appraisal is just as bad as having too low. As an elementary school kid I worked for several years on a BASIC game where you could fly an ASCII art ship around the screen. It was not…
You don't know anything about this kid. You definitely don't know that what they need in their life is discouragement. Don't conflate their childhood with yours. If a 15 year old wanted to show me a project, and I wanted to help them understand what would improve it, I'd ask them questions and engage them in a Socratic process to lead them that direction. I wouldn't tell them that their work was trash. That would eit…
I think you guys are expecting a 15 year old to be treated like a 5 year old. 15 is old enough to make real contributions to open source. Aaron Swartz is the obvious example, but lots of other young people make big contributions. It’s honest to say “good for you and keep working but this isn’t ready for the front page of Hacker News and if you think it is you will hold yourself back.”
Re: Show HN: I built a Python web framework
#120Earlier quoted context omitted.
I never have because, and no disrespect to the author here, I feel I'd be seeking attention. It brings my brain back to that "14-Year-Old Prodigy Programmer Dreams In Code" video, actually.
Oh wow, I remember that. Whatever happened to that kid? Edit: ML research at Apple[0] [0]: https://www.linkedin.com/in/slgonzalez