114 points · by davidjnelson · 9y ago · 78 comments
But, ideally I would say here is this database. Let users be able to easily add and update it and search/sort quickly.
I feel react is built to do things like this quite fast. Seen some great examples of autofill and sorted/filtered massive tables within a brilliant UI. Having the ability to work on independently on components also seems like a huge benefit but all solutions seem rather frankenstein-ish.
Maybe I suck. I wish I could find someone to pay that could take the database (or a grouping of csvs) and set up what I'm looking for. Sadly I've tried and the best solution has been hacking together on my own something that "works" but it's not great.
This is why I keep being attracted to these scaffolds hoping one will "click."
Old data is fun!
https://docs.djangoproject.com/en/1.11/howto/legacy-database...
Alternately, you can generate models that fit your data set and import them via Django's ORM and some simple scripting.
Filtering and csv import/export are not built in, but that should be in the application code anyway.
https://starter.cxjs.io/admin/orders
Tools like (i.e. WYSIWYG editing suites) this have a yield point of usefulness and I am not sure open source can get there. There are very few exceptions (Gimp and Audacity spring to mind).
Without WYSIWYG and current web dev you can bring it to a whiteboard and hash out a design and then find out that for some reason that it is really annoying to make work well on everything you need to support. It's really the consensus driver that makes WYSIWYG always a very helpful tool.
No, I haven't, and I was developing before the web existed. I don't doubt there may be much better tools for some things outside the web, but none for a platform with all those features.
If you don't want younger developers to reinvent the wheels you have used for ages, take some under your wing and mentor them.
But hey, complaining on Hacker News about "kids these days" is edgy and gets you upvotes, right?
The hope is that using Reactive programming, you won't need to wrestle what comes out of the tool, since the underlying language and programming model is finally capable of truly supporting components without lots of glue code, boilerplate and exceptions.
You may be interested in what my team is building: https://haiku.ai
Haiku is a UI-builder modeled after Flash, FPGA design tools, VB, Qt, even a dash of HyperCard and Unity. We've sought to 'invent' as little as possible, while adapting proven solutions to the many quirks and challenges of the Web.
If you're curious at all, I encourage you to join our beta list and shoot me an email for access: zack@haiku.ai
HTML/JS is catching up with with Flash a decade ago.
Flash wasn't a bad technology per se (security issues in the plugin aside). It was just annoying, in the same way HTML5/JS is now annoying. When people want to do user-hostile things they will do user-hostile things, no matter what technology stack is popular.
With React, you functionally describe how the UI looks in every possible state.
That's how Qt works too (and the designer is prettier imho) : https://youtu.be/Ko3YPM_tStM?t=47
That seems very wasteful if what you want to do is just to show a bunch of extra controls if a small part of the state changes.
Later when he works with bindings, that's closer, but the expression still had to be written in as code, so no win there. Plus it's classic data-binding, where it can only affect pre-defined properties (usually of primitive types), but not the entire structure of the component.
I wonder if drag-and-drop tools really provide that much value compared to just editing a component with instant live-preview on the side.
Obviously, you don't need to know how to code, but many designers know at least HTML/CSS. You could have some nice basic DSL, plus a good set of layout components that hide the CSS ugliness in this area.
The "code" you would need to write would be little more than JSX with some basic `if`s and `forEach`es, because you are only writing the render function.
The props and state could then be manipulated inside the tool to see all the possible variations (you could even add new props/state fields if you need them, and then export this structure as TypeScript interfaces). You would have a list of components on the side, like the tool in the OP does, to help with discovery.
I've made games with react and I have no idea what that means.
With "traditional" libraries, you either have to imperatively mutate the initial UI (e.g. `button.setText`, `layout.addWidget(new Button)`, `removeWidget(button2)`) or use data-bindings which are pretty limited and you often have to adapt your data for them.
With React, you write the `render()` function that answers the question "given this state, how does the UI look?".
Am I missing something (such as sarcasm?) from your comment?
[1] https://github.com/guyroyse/gilded-rose-javascript/blob/mast...