These types of projects always remind me of MS Access. Access is forms on a database, and really easy to use. It obviously has its drawbacks but nothing has come close to it. I've never understood why MS didn't capitalise on it by extending and improving it.
I never saw an Access database that didn't become a regretful mess after a couple of years - the person that made it left, no-one knew how to update it. Fancy validation built into the form that just got in the way when requirements changed. Thus I came to the conclusion that any Access database is probably better off being a spreadsheet, even with all the chaos that not having forms as a front end and not having rel…
Form to DB
121–129 of 129 posts
Re: Form to DB
#122Earlier quoted context omitted.
So the user would have to submit the form and be met with 10s of errors? I'd rather tell them immediately.
Sure, and React is the best way to show a message in response to an input in a web form, right? Let me tell you some news, they just launched an integration of this new HTML thing with javascript, so you can have JS listening to inputs and displaying information anywhere on the page. Cool, isn't it? Ah, but the sad part, again, is you don't get to download an unnecessary library for that. It comes baked and activated…
I don't care about resumes, I own my consultancy. I care about quickly solving business problems for my clients, not making new problems in the process, and reusing the solutions. I am not paid hourly, I don't make money from fixing spaghetti code broken by adding a stateful form control elsewhere.
Re: Form to DB
#123Earlier quoted context omitted.
Why though? It's much easier to do a simple API (or use a pre-made one like this one) from the web and the app. And no need to change the backend code on design updates. I just don't get what you're chasing after. All this seems more complex (to develop, to maintain, to operate, to manage) than what I'm doing with (P)React (Native) and APIs. And where are the thousands of pre-made components like React has?
well, an extended answer is offered in the essays linked above, but, to take some numbers from https://htmx.org/essays/a-real-world-react-to-htmx-port/ , here's why: - no reduction in app ux - code base reduced by 67% (21,500 LOC to 7200 LOC) - total JS dependencies reduced by by 96% (255 to 9) - web build time reduced by 88% (40 seconds to 5) - Time-to-interactive reduced by 50-60% - htmx allowed them to display muc…
Time-to-interactive has never been a problem for me. My code-splitted bundles are so small they're pre-loaded quicker than the server-rendered HTML code. And builds? My apps - even big ones - build in single digit seconds (using swc or esbuild), and small ones like forms we're talking about in less than a second. The only thing that takes long time is TypeScript typechecking, I do that in a separate task in my CI while the build is long done and tests are in progress at the same time.
I'm not saying all this is super easy - obviously it's the product of using React literally since it's first public beta release. But it's also not impossible to do, and setting up a htmx and a server to run it on is IMHO similar complexity.
The biggest mistake people do - they use stuff like create-react-app with a bunch of absolutely unnecessary cruft. And then they follow some tutorials made by a dude who knows React for 2 months. Just read the React docs (except for the create-react-app part) and you're good to go.
BTW: jQuery is 85.1 kB minified and 29.7 kB gzipped. Preact (same API/dev experience as React, minimal performance impact) is 11.4 kB minified and 4.5 kB gzipped.
Re: Form to DB
#124Earlier quoted context omitted.
well, an extended answer is offered in the essays linked above, but, to take some numbers from https://htmx.org/essays/a-real-world-react-to-htmx-port/ , here's why: - no reduction in app ux - code base reduced by 67% (21,500 LOC to 7200 LOC) - total JS dependencies reduced by by 96% (255 to 9) - web build time reduced by 88% (40 seconds to 5) - Time-to-interactive reduced by 50-60% - htmx allowed them to display muc…
Sorry but this sounds like they just didn't know how to write React and didn't take the time to learn it. You can write React and have 2 runtime dependencies in total - react and react-dom. Or you can go for preact and have exactly 1 runtime dependency - preact. Everything you need is there. Time-to-interactive has never been a problem for me. My code-splitted bundles are so small they're pre-loaded quicker than the…
there's always gonna be a hypothetical objection if you want there to be
maybe read the essays and/or book, maybe try it out on a simple project
or don't, doesn't really matter much
Re: Form to DB
#125Earlier quoted context omitted.
> What about complex validation rules? I wpould use my server-side form and database library, Bozen[1] to do this. > [1]: https://github.com/cabalamat/frambozenapp
So the user would have to submit the form and be met with 10s of errors? I'd rather tell them immediately.
Re: Form to DB
#126It's strange this doesn't support plain nosql databases. I'm not sure I see the value in a full blown relational setup for... form submissions.
Re: Form to DB
#127Earlier quoted context omitted.
Hm, sorry you found us to be expensive. Two notes: * Forms (ie the product here) is free. * We’ve always aimed to build a sustainable business where we charge reasonable prices and can guarantee we’ll stay in business ourselves. It’s true there are other products that are cheaper, but every single one of those companies is unprofitable and many will probably be dead in a few years. See, for example, Airplane, Interva…
Just wanted to echo I love your product but the pricing is too prohibitive. My use-case is wanting to offer a dashboard to my own clients. But the business pricing was $50/mo per user and also gave each user editor privileges. I want to create customer accounts, apply settings (e.g. I delimit the data their account can access, basically adding WHERE clauses on a per-account basis), and they can access white-label rea…
Would be more than happy to talk through your use case; feel free to reach out at antony[at]retool[dot]com.
[0] https://retool.com/pricing [1] https://retool.com/products/portals
Re: Form to DB
#128Plenty “SSR” (the only place to render, so it wasn’t called that) tempting engines of the day, if you had an ODBC connection, you could generate form handlers with “one click”.
Of course, this was also before OWASP (started circa 2001)...
Re: Form to DB
#129Earlier quoted context omitted.
> What about complex validation rules? I wpould use my server-side form and database library, Bozen[1] to do this. > [1]: https://github.com/cabalamat/frambozenapp
So the user would have to submit the form and be met with 10s of errors? I'd rather tell them immediately.