You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,40 +271,40 @@ SQLPage will re-parse a file from the database only when it has been modified.
271
271
272
272
## Frequently Asked Questions
273
273
274
-
###**Why use SQL instead of a real programming language? SQL isn't even [Turing-complete](https://en.wikipedia.org/wiki/Turing_completeness)!**
274
+
>**Why use SQL instead of a real programming language? SQL isn't even [Turing-complete](https://en.wikipedia.org/wiki/Turing_completeness)!**
275
275
276
276
- You're focusing on the wrong issue. If you can express your application declaratively, you should—whether using SQL or another language. Declarative code is often more concise, readable, easier to reason about, and easier to debug than imperative code.
277
277
- SQL is simpler than traditional languages, often readable by non-programmers, yet very powerful.
278
278
- If complexity is your goal, note that [SQL is actually Turing-complete](https://stackoverflow.com/questions/900055/is-sql-or-even-tsql-turing-complete/7580013#7580013).
279
279
- Even without recursive queries, a sequence of SQL statements driven by user interactions (like SQLPage) would still be Turing-complete, enabling you to build a SQL-powered website that functions as a Turing machine.
280
280
281
-
###**Just Because You Can Doesn’t Mean You Should...**
281
+
>**Just Because You Can Doesn’t Mean You Should...**
282
282
— [someone being mean on Reddit](https://www.reddit.com/r/rust/comments/14qjskz/comment/jr506nx)
283
283
284
284
It's not about "should" — it's about "why not?"
285
285
Keep coloring inside the lines if you want, but we'll be over here having fun with our SQL websites.
286
286
287
-
###**Is this the same as Microsoft Access?**
287
+
>**Is this the same as Microsoft Access?**
288
288
289
289
The goals are similar — creating simple data-centric applications — but the tools differ significantly:
290
290
- SQLPage is a web server, not a desktop app.
291
291
- SQLPage connects to existing robust relational databases; Access tries to **be** a database.
292
292
- Access is expensive and proprietary; SQLPage is [open-source](./LICENSE.txt).
293
293
- SQLPage spares you from the torment of [Visual Basic for Applications](https://en.wikipedia.org/wiki/Visual_Basic_for_Applications).
294
294
295
-
###**Is the name a reference to Microsoft FrontPage?**
295
+
>**Is the name a reference to Microsoft FrontPage?**
296
296
297
297
FrontPage was a visual static website builder popular in the late '90s. I hadn't heard of it until someone asked.
298
298
299
-
###**I like CSS. I want to design websites, not write SQL.**
299
+
>**I like CSS. I want to design websites, not write SQL.**
300
300
301
301
If you want to write your own HTML and CSS,
302
-
you can create custom components by adding a [`.handlebars`](https://handlebarsjs.com/guide/) file in `sqlpage/templates` and writing your HTML and CSS there. ([Example](./sqlpage/templates/alert.handlebars)).
302
+
you can [create custom components](https://sql.datapage.app/custom_components.sql)
303
+
by adding a [`.handlebars`](https://handlebarsjs.com/guide/) file in `sqlpage/templates` and writing your HTML and CSS there. ([Example](./sqlpage/templates/alert.handlebars)).
304
+
You can also use the `html` component to write raw HTML, or the `shell` component to include custom scripts and styles.
303
305
304
-
Are you human? [Humans hate CSS](https://uxdesign.cc/why-do-most-developers-hate-css-63c92bce36ed).
305
-
306
-
SQLPage believes you shouldn't worry about button border radii until you have a working prototype.
307
-
We provide good-looking components out of the box so you can focus on your data model.
306
+
But SQLPage believes you shouldn't worry about button border radii until you have a working prototype.
307
+
We provide good-looking components out of the box so you can focus on your data model, and iterate quickly.
0 commit comments