Replies: 1 comment 1 reply
-
The project is 2 years old which you may not consider young by tech software standards. You are right that we should do more in tutorials and examples to instill good practices of code organisation.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I kind of like the whole concept of this project simply because I need a quick prototype application serving as GUI front end to my database of components/vendors/orders/assemblies and so on. At present, I already write SQL anyway (even though I also use general-purpose DB managers). Modern DB managers are pretty powerful, but are not always optimal for day-to-day routine use. For now, I develop/use this database myself, but I also want to be able to share it later, if necessary, with people who are not used to either DB managers or SQL, so a low-code form-based GUI is a good thing.
I tried to look for other options, and decided to try this project for a few reasons. On the one hand, the application I need is centered around presenting/editing structured and semi-structured data stored in an SQL database, On the other hand, I want a lightweight but flexible information manager and could not find anything satisfying among the ready-to-use options. Being able to easily run it on Windows is also an important advantage for me. SQLite is optimal for my needs (as opposed to server/client databases), so full support of SQLite is a must for me as well.
At the same time, SQL is a domain-specific language, so this unorthodox application of SQL does require some stretching of the language, so to speak, and introduction of unusual interpretation of the code to stay within [mostly] plain SQL. It might be tricky at first grasp this interpretation. Still, even recursive CTEs is a fairly convoluted feature, which extends SQL in somewhat similar fashion, making it possible to have a limited analog of for/while loops while again staying mostly within the conventional SQL realm.
In addition to required special interpretation of the code, it appears to be very difficult to navigate any sizeable code. A well-formatted html is much more readable, as it has inherent structure. An SQLpage code is just a wall of SQL. I understand that the project is very young, but I think it is important to figure out and suggest approaches to writing manageable code. The first thing I thought of is that it is particularly important to have a lot of comments here and using comments to structure the code. Splitting larger files and using run_sql might also help (and this is where the thing about having "pre-authorized" hashed files might come in handy in terms of added security).
Beta Was this translation helpful? Give feedback.
All reactions