Live data from Hacker News

Reflex – Web apps in pure Python

github.com

131–140 of 152 posts

Re: Reflex – Web apps in pure Python

#131
post #45
post #14

Earlier quoted context omitted.

I don't know where you work, but at my company, I'm struggling to get people to use anything but Python.

Good luck with that! I think using python for anything beyond a simple script or PoC, should be taken as a red flag in development and immediately revise that decision of using it.

Could you elaborate as to why? I’ve used to program in PHP and have moved (since I forgot most of PHP) to Python and I don’t get why people are displeased by it.

Re: Reflex – Web apps in pure Python

#132
post #125

Earlier quoted context omitted.

That answers the "what does it actually do" part, but not the "how". Github and hackernews are both places where developers exchange ideas, so it helps if you explain which tech you build on and what challenges you faced.

> which tech you build This is literally a link to the source code repo!

That and even if it were just a readme, that's not marketing bs, it's how you use it.

Re: Reflex – Web apps in pure Python

#133
post #126

Django + Unicorn has a similar goal except: - you still use html and a templating language for the views - it mostly looks like old ssr code but you can transparently call methods on the server (like meteorjs) - you get one of the best ORMs in existence with great relationship handling and generated admins https://www.django-unicorn.com/examples/search Not 1.0 yet but I'm using it in production and omgosh is it easy…

This is kind cool. Closer than the Reflex thing to what I think would be cool. I wonder if anybody has made any kind of Python/Django system that lets you just write the front-end stuff in React but handles all the state synchronization stuff between React and your Python server.

Re: Reflex – Web apps in pure Python

#134
post #41
post #5

Why are we trying to fit a square peg into a round hole

Some people are die hard python fans, trying to use a scripting language for everything. I encountered some where they try to use Python in embedded (robotics to be exact) and oh boy how terrible it was, a “collision avoidance” was taking few seconds to respond..

Some of us just need a simple webform for our project. Keeping all code in Python makes sense. Nearly all generative AI projects with a web frontend on Github use libraries like Streamlit etc.

And, while Phyton would not be my preferred choice for robotics, I did write kernels for small 'autonomous' mobile robotics a long time ago in C. The systems ran at 20 hz. I'm pretty confident modern embedded computers running Phyton can achieve 20 hz sense/think/act cycles.

Re: Reflex – Web apps in pure Python

#135
post #31

Worth noting is that this framework has telemetry [1] enabled by default [2] which gathers and sends off various information about your system unless you explicitly disable it. [1] https://github.com/reflex-dev/reflex/blob/919f239168d789056d... [2] https://github.com/reflex-dev/reflex/blob/919f239168d789056d...

It's amazing how even open source software is becoming tainted by surveillance. We can no longer assume that code written by our peers will be free of such nonsense.

Re: Reflex – Web apps in pure Python

#137
post #80

Earlier quoted context omitted.

They serve no purpose, other than make life hard for disabled people. I expect tests to always be passing before merging anything. pypi metadata has the list of supported python versions, in text format A link to your documentation? Ok but why can't it be a regular link? I use forums or IRC, so the online users on whatever aren't super meaningful to me personally.

Can you be more specific in your criticism wrt disabled people? It's a lot easier for someone to receive feedback when it's specific, especially when discussing something like a README. It can be helpful to others reading who are on the fence about badges and their ilk, too. What, specifically, is the issue with the badges concerning accessibility? Most badges I see can be reduced to a div containing two spans and so…

They can, but are they?

If a test is not working/outdated, remove or fix the test. It's not what the badge is showing anyway.

Re: Reflex – Web apps in pure Python

#138
post #41
post #5

Why are we trying to fit a square peg into a round hole

Some people are die hard python fans, trying to use a scripting language for everything. I encountered some where they try to use Python in embedded (robotics to be exact) and oh boy how terrible it was, a “collision avoidance” was taking few seconds to respond..

> Some people are die hard python fans, trying to use a scripting language for everything.

Kind of a weird thing to say when the domain is web frontend where the default (which this wraps) is JS, another “scripting language”, to the extent that label actually means anything (which it mostly doesn’t.)

Re: Reflex – Web apps in pure Python

#139
post #131
post #45

Earlier quoted context omitted.

Good luck with that! I think using python for anything beyond a simple script or PoC, should be taken as a red flag in development and immediately revise that decision of using it.

Could you elaborate as to why? I’ve used to program in PHP and have moved (since I forgot most of PHP) to Python and I don’t get why people are displeased by it.

> I don’t get why people are displeased by it.

By and large "people" are not "displeased" by Python. But every language has a set of diehards, people who dedicated decades to this or that and resent adopting anything else. They will complain no matter what. Python is displacing a lot of other platforms in its continued rise, so the noise keeps going up.

In addition, there are groups of nerds that love to formalize absolutely everything in their code, development speed be damned; and people who will optimize every line they write to an inch of their life (again, dev speed be damned). Both those camps are often uneasy in an ecosystem built on duck-typing, "practicality beats purity", and an overall approach favouring development speed over machine speed.

Re: Reflex – Web apps in pure Python

#140

Earlier quoted context omitted.

This is literally Vercel for Python, and Vercel as a company has performed extremely well so far. It's not really much of a stretch to understand why they got funding.

I'm not sure I understand what you mean because we can already use Flask or Django in serverless functions on Vercel.

Python on Vercel is in beta and it's not their core competency: https://vercel.com/docs/concepts/functions/serverless-functi....

Vercel is synonymous with Next.js and JavaScript, not Python. Flask and Django also don't have full integration with React like Next.js (Because it's all JS) and Reflex (Feature of the framework) do.

The value prop is very clear to me. Next.js is extremely popular for good reason, I see a lot of value in bringing that to the Python ecosystem as well, especially with all the Python ML SDKs.

Post reply on HN