165 points · by kim0 · 7y ago · 101 comments
Dash is awesome for early stage , production ready prototyping.
The state management between the browser and the dash backend is not intended to be touched by a user.
Not that it's not interesting of them to make this, but really, I had little if any temptation to try it out.
Note that it doesn't necessarily mean I think JS/CSS is _better_ suited, but in any case not worse, and I think the leap from one problem domain to another is much more significant than the leap from one language to another.
Given the immense speed of today’s computers, brute force might be enough, though.
Anvil also emphasises their dev tools, it’s quite an integrated environment, between IDE, data, and deployments.
Apparently it should be the case.
> AGPL means you have to share any code you write using this framework
I think you've found the reason?
Why would they not allow AGPL? It's a perfectly valid free software licence.
It's not a webassembly framework, and it doesn't seem to go the "thin client" approach of managing DOM changes and events over a two-way protocol.
Maybe not.
Would anyone use this for “line of business” applications? Internal tools? The signed-in experience on an enterprisey product?
Most definitely.
Guess which one 90% of software falls into.
I work at a tech company, we sell to consumers, we’d never use this for customer facing stuff, but being able to rapidly build web apps that show tabular data and editing controls with various integrations with our services for internal customers and partners is critical. If we built that as fancy React apps all the time we’d never get anywhere.
Why not?
I would say it is the other way around. For any web application project of decent size there is almost always a transpilation step that converts whatever programming language your source code is in, into JavaScript (usually ES5). We also had very successful and widely used projects like GWT for years (GWT was first released in 2006!!!).
Wt: https://en.wikipedia.org/wiki/Wt_(web_toolkit)
JWt: https://en.m.wikipedia.org/wiki/JWt_(Java_web_toolkit)
GWT: https://en.wikipedia.org/wiki/Google_Web_Toolkit
Now we have Babel, ES YYYY, and faster browser release cycles.
I can make a sophisticated python web app with 20 packages. Or in JavaScript I'll need a few hundred that have massive vulnerabilities and conflicts. Hell npm reported the most modern packages I was installing had over 200 vulnerabilities. JavaScript pretty much guarantees shit code. I'll be downvoted to hell, but whatever. Js sucks.
Even javascript itself isn't "bad". There are ugly parts but anything written in the modern spec is basically semantically the same as any other language like python.
The problem is that people writing packages on the backend are bootcamp grads, frontend devs, and any number of other people who don't take the backend as seriously as someone who has been devoted to it using a non-javascript language.
I think the other issue is the javascript community wants to reinvent itself every couple months, instead of having one project that becomes defacto for x function over many years.
"I had a bad experience (being unexperienced and only delving into that ecosystem a couple days ago) so it's bad"
Ok. Now that you got this off your chest and you want to build an application that can run inside a browser (i.e. a platform available to billions)...what do you do?
Of course, there's the "just looking to build something (serious or not) and not concerned about it becoming a profitable business" group of people - like you, perhaps - and that's great! But it generally takes a lot of enthusiasts before a library becomes accepted as mainstream and a certain amount of luck is required for that to happen.
From the few examples in the README I'd say that it makes development more complex than using the usual server side rendering approaches. I'm also not sure Python is the best language for this sort of things. Better than Java but usually Ruby is better at DSLs.
You'd be surprised. Many highly successful websites and services use non-mainstream projects.
Besides that trite observation could have been said for any project (even the most successful ones like Rails) when they first started.
Ultimately, for me, it comes down to what makes sometimes complicated declarative code easier to reason about, read and understand - it's a simple as that.
Some things are just _easier_ to write when you've got the power of a Turing-complete language with a decent standard library behind you; if for example you want to dump out a sorted list and then be able to easily update it later, or print a list of links alongside a hash of the contents of their targets.
I guess if you're building a simple website, anything like this tool could be overkill and you'd risk spending more time setting things up - and maintaining it in the future - than you'd be likely to save by using the tool in the first place. But for more complicated output having more tools to use lets you be arguably more declarative; you just change the input data to generate the desired output. You describe and allow automation of the _transition_ from input data to the desired end point.
I could definitely see how libraries like this would be tremendously useful for generating HTML. As it happens for our AWS infrastructure generation we enforce the use of Troposphere everywhere, because in that case the cost of setting up and maintaining it is essentially just copy-pasting an existing Makefile.
In my experience all these frameworks end up lacking at some point and becoming leaky abstractions sooner than later. I wish they would work because all the front end technologies require lots of training and skill in order to produce a production ready UI.
My hunch is that you strove for making the First Comment considering that the point of this project is exactly what you said it isn't.
https://www.reahl.org/layout, for instance, talks about how styling works.
Taking this further, here's a comment from one of the maintainers on the relevant Google Group:
> Hello.
> We want casual users of Reahl to be shielded from complexities such as client side scripting and CSS.
> HOWEVER, if you are prepared to move to the next level of learning you can build your own Widgets. When you build your own Widget you can do anything you like - using techniques tutorial.pagerbootstraptutorial.pagerbootstrap that you would have used with a traditional framework.
Hopefully this answers your question.
But it may be close, like you can spend 90% of your development time on Python, and write JS components in the remaining 10%.
I really don't think so. It might not be as mature as one might want in production, but from what I can tell, it certainly fulfills the title's assertion in enough useful contexts to be accurate.
About half-way down is "Write code for a JavaScript widget"
You seem pretty steadfast in your commitment that this post misrepresents its content. I believe you should give it a deeper review and reevaluate your understanding.