forked from sqlpage/SQLPage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path12_blog.sql
185 lines (137 loc) · 8.66 KB
/
12_blog.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
CREATE TABLE blog_posts (
title TEXT PRIMARY KEY,
description TEXT NOT NULL,
icon TEXT NOT NULL,
external_url TEXT,
content TEXT,
created_at TIMESTAMP NOT NULL
);
INSERT INTO blog_posts (title, description, icon, created_at, content)
VALUES
(
'SQLPage versus No-Code tools',
'What are the advantages and disadvantages of SQLPage compared to No-Code tools?',
'code-minus',
'2023-08-03',
'
# Choosing Your Path: No-Code, Low-Code, or SQL-Based Development
The platform you select shapes the entire trajectory of your application.
Each approach offers distinct advantages, yet demands different compromises - a choice that warrants careful consideration.
## No-Code Platforms: Speed with Limitations
No-Code platforms present a visual canvas for building applications without traditional programming. Whilst brilliant for rapid prototypes and straightforward departmental tools, they falter when confronted with complexity and scale.
**Best suited to**: Quick internal tools and simple workflows
### **Notable examples**
- [NocoBase](https://www.nocobase.com/)
- [NocoDB](https://www.nocodb.com/)
- [Saltcorn](https://github.com/saltcorn/saltcorn)
## Low-Code Platforms: The Flexible Middle Ground
These platforms artfully combine visual development with traditional coding. They maintain the power of custom code whilst accelerating development through carefully designed components.
**Best suited to**: Complex applications requiring both speed and customisation
### **Notable examples**
- [Budibase](https://budibase.com/)
- [Directus](https://github.com/directus/directus)
- [Rowy](https://github.com/rowyio/rowy)
## SQL-Based Development: Elegant Simplicity
SQLPage offers a refreshingly direct approach: pure SQL-driven web applications.
For those versed in SQL, it enables sophisticated data-driven applications without the overhead of additional frameworks.
**Best suited to**: Data-centric applications and dashboards
**Details**: [SQLPage on GitHub](https://github.com/sqlpage/SQLPage)
## The AI Revolution in Development
The emergence of Large Language Models (LLMs) has fundamentally shifted the landscape of application development. Tools that once demanded extensive coding expertise have become remarkably more accessible. AI assistants like ChatGPT excel particularly at generating SQL queries and database operations, making SQL-based platforms surprisingly approachable even for those with limited database experience. These AI companions serve as expert pair programmers, offering suggestions, debugging assistance, and ready-to-use code snippets.
This transformation especially benefits platforms like SQLPage, where the AI''s prowess in SQL generation can bridge the traditional expertise gap. Even complex queries and database operations can be created through natural language conversations with AI assistants, democratising access to sophisticated data manipulation capabilities.
## Making an Informed Choice
Selecting the right development approach requires weighing multiple factors against your project''s specific needs.
Consider these key decision points to guide your platform selection:
### **Time Constraints**
- Immediate delivery required → No-Code
- Several days available → SQLPage or Low-Code
### **Data Complexity**
- Structured data manipulation → SQLPage
- Complex workflows → Low-Code
### **Team Expertise**
- SQL skills → SQLPage
- Limited technical expertise → No-Code
- Varied technical capabilities → Low-Code
### **Control Requirements**
- Precise data layer control → SQLPage
- Visual design flexibility → Low-Code
- Speed over customisation → No-Code
## Further Investigation
For a thorough demonstration of SQLPage''s capabilities: [Building a Full Web Application with SQLPage](https://www.youtube.com/watch?v=mXdgmSdaXkg)
');
INSERT INTO blog_posts (title, description, icon, created_at, external_url)
VALUES (
'Repeating yourself thrice won''t make you a 3X developer',
'A dive into the traditional 3-tier architecture and the DRY principle, and how tools like SQLPage helps you avoid repeating yourself.',
'box-multiple-3',
'2023-08-01',
'https://yrashk.medium.com/repeating-yourself-thrice-doesnt-turn-you-into-a-3x-developer-a778495229c0'
);
INSERT INTO blog_posts (title, description, icon, created_at, content)
VALUES (
'3 solutions to the 3 layer problem',
'What is the 3 layer problem, and how SQLPage solves it?',
'adjustments-question',
'2023-08-10',
'
# 3 solutions to the 3 layer problem
> Some interesting questions emerged from the article [Repeating yourself thrice doesn''t turn you into a 3X developer](https://yrashk.medium.com/repeating-yourself-thrice-doesnt-turn-you-into-a-3x-developer-a778495229c0).
> This short follow-up article aims to answer them and clarify some points.
Hello all,
I am Ophir Lojkine, the main contributor of the open-source application server **SQLPage**.
The previous article focused on the conventional model of splitting applications into three distinct tiers:
1. a graphical interface (_front-end_),
2. an application server (_back-end_),
3. and a database.
In many projects, this results in three distinct implementations of the application’s data model:
1. First, in SQL, in the form of tables, views, and relationships in the database,
2. Then, in _server side_ languages such as Java, Python, or PHP, to create an API managing access to the data, and to implement the business logic of the application,
3. Finally, in JavaScript or TypeScript to implement data manipulation in the user interface.

---
The topic of interest here is the duplication of the data model between the different layers,
and the communication overhead between them.
We are not talking about how the code is structured within each layer.
It can follow a Model-View-Controller pattern or not, it doesn''t matter.
This three-layer model has several advantages:
specialization of the programmers,
parallelization of work,
scalability,
separation of concerns,
and an optimal exploitation of the capacities of the infrastructure on which each layer is deployed:
web browser, server application and database.
Nevertheless, in large-scale projects,
there is often a certain redundancy of the code between the different layers,
as well as a non-negligible share of code dedicated to communication between them.
For small teams and solo developers, this becomes a major drawback.
## 3 solutions
Fortunately, there are several approaches to solving this problem:
1. For **UI-centric applications** without complicated data processing needs,
you can almost completely abandon server-side development and **directly expose the data to the frontend**.
Open-source tools available in this space include Supabase, PocketBase or Hasura.
2. For **applications with a predominant business logic**, traditional _web frameworks_
solve this problem by centralizing frontend and database control in the backend code.
A common solution involves using an ORM and templating system instead of a dedicated javascript application.
Popular solutions include Django, Ruby on Rails, or Symphony.
3. For simpler applications, it is possible to **avoid both backend and frontend development**
by adopting a _database-first_ approach.
This alternative, although less widespread, allows taking advantage of under-exploited modern capacities of relational databases.
The purpose of the original article was to introduce this lesser known approach.
* **SQLPage** is representative of this last category,
which allows designing a complete web application _in SQL_.
This leads to a loss of control over the precise visual appearance of the application,
which will get a “standardized” look and feel.
On the other hand, this translates into significant gains in terms of development speed,
simplicity and performance.
This solution is not intended to compete with traditional _frameworks_,
but rather integrate earlier in the life cycle of a project.
It thus makes it possible to quickly develop a data structure adapted to the application,
and to iterate over it while benefiting from continuous visual feedback on the final result.
Then, when the application grows, it’s easy to add a classic frontend and backend on top of the existing database,
without having to start from scratch.
Whichever approach is chosen in the end,
a solid understanding of the conventional three-tier architecture,
as well as a clear perspective on the challenges it creates and the possible solutions,
facilitates decision-making and the evolution of the project with the best suited technologies.
'
);