TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you make a NoCode/LowCode application?

11 点作者 notadev超过 3 年前
I&#x27;m not asking how to use NoCode or LowCode tools, I&#x27;m asking how do you make a NoCode&#x2F;LowCode interface for any tool?<p>For a web application, is it just using JavaScript to drag-dropping divs&#x2F;images that represent certain actions that get converted to actual code behind the scenes?

4 条评论

speedgoose超过 3 年前
A classic and elegant way to design visual programming or a programming language is to write a meta-model.<p>Then you write two ways binding between text source code &#x2F; visual elements and your model (an instance of the meta-model).<p>A lot of research and tools have been built around that. But basically it’s div&#x2F;images bound to a model, and a model to code convertor. Or you interpret the model directly.
roskoalexey超过 3 年前
Basically, it&#x27;s two parts.<p>1. UI (visual editor) that produces a schema of an application (sometimes it&#x27;s called DSL (domain-specific language), or AST (abstract syntax tree), or meta-model (as @speedgoose wrote)).<p>2. Interpreter&#x2F;compiler that converts the schema&#x2F;DSL&#x2F;AST&#x2F;model of your application into the code. Sometimes it&#x27;s compiling real text code like HTML&#x2F;JS&#x2F;CSS. Sometimes it&#x27;s interpreting in runtime.<p>Usually, it should do both. Code for the output&#x2F;export&#x2F;deploy. Runtime for your editor&#x27;s canvas or preview mode.
dorait超过 3 年前
Blockly is an example of no-code app that generates code. It is a good starting point to understand how you can build a no code framework. Blockly is...<p><a href="https:&#x2F;&#x2F;developers.google.com&#x2F;blockly" rel="nofollow">https:&#x2F;&#x2F;developers.google.com&#x2F;blockly</a><p>High level concepts<p>1. A workspace 2. A set of pre-defined componets that map to functions or statements 3. A way to connect components to back-ends (like spreadsheets or database columns) 4. Some semantics(behavior) for connections. 5. An implied or explicit sequence of interactions between components.
dtagames超过 3 年前
Yes. Microsoft MakeCode is a good example. You drag on-screen blocks (ala Scratch) to define behaviors. These are then converted to runnable code.<p>In the case of MakeCode (and the delightful MakeCode Arcade[0]), both the builder UI and the code conversion are open source, so that you can see how the conversion is done (to Typescript, in this case) or use the building tools in your own product, perhaps with a different output language.<p>[0] <a href="https:&#x2F;&#x2F;arcade.makecode.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;arcade.makecode.com&#x2F;</a>
评论 #30230743 未加载
评论 #30230886 未加载