1 Star 0 Fork 0

懒农/LazyCoder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

懒农 (LazyCoder)

一款实现可视化生成代码的代码生成器

懒农

License   

📖 项目概述

   懒农是一款为只懂得一般电脑操作的用户开发的一款代码生成器,通过懒农提供的可视化操作,可快速生成一些功能并不复杂的应用程序代码,降低开发成本。

STM32生成代码示例

   如 STM32生成代码示例 (上图)所示,懒农提供一系列可视化操作,只需通过功能的添加,并按照文字内容和组件的提示进行内容调整,即可生成所需代码。

   此外,懒农可生成多种编程语言和不同领域的代码,上图所示生成的是使用STM32微控制器进行电路控制的嵌入式应用程序(内容大部分照搬正点原子厂商公开源码)。

微信公众号生成代码示例     微信公众号生成代码示例 (上图)所示生成的是使用java生成搭建微信公众号的简易示例(使用开源框架fastboot)。    虽然懒农的设计初衷是为不具备深入编程技能的用户提供帮助,但这篇文档将向开发者介绍懒农的工作原理,以便更好地理解代码生成的方式,并期待开发者的参与。

⌨️ 生成思路说明

   懒农并不直接生成代码。实际上,它依赖于数据文件。需要开发者根据特定应用场景制作对应的数据文件,用户只需导入这些数据文件,即可通过可视化界面生成代码。 <img alt="示例数据文件">

   前面所示通过可视化操作生成的STM32的嵌入式程序以及搭建简易公众号的程序,是作者制作了2个作为示例使用的数据文件,用户导入对应的数据文件后,便可通过对应数据文件生成所需的程序。同样,要生成其他的程序,也需要开发者使用懒农制作对应的数据文件。

🡾▶ 应用开发的目的和意义

   懒农的目标是为那些不具备深入编程技能的用户提供帮助,并尝试通过这种方式,降低一些需求的实现成本。有时候,我们遇到一些繁琐的机械化工作,完全可以通过程序来代替。这些程序通常不需要复杂的逻辑,只需实现简单功能以满足实际需求。然而,这类程序并没有太大的经济价值,用户基本也不会为它花费过多的费用,而且如果通过像以往通过用户和开发者进行沟通的方式来进行定制化开发制作,也容易出现由于沟通或者理解不清楚而带来成品最终效果无法满足实际需求等情况,懒农正是为这类用户的类似需求而设计的。

   虽然这些需求可能没有巨大的经济价值,但懒农的协作方式可以降低开发成本。开发者围绕着某种应用场景制作数据文件,用户找到合适的数据文件后,根据需求生成代码。当数据文件种类丰富时,懒农将覆盖多个领域和编程语言,满足一般用户的简易程序开发需求。而且,如果一个数据文件可以让终端用户应用到实际用途,可以持续用于生成代码,便能在后续用户的使用中,让数据文件的开发者作者可以以一种相对较低的开发成本,并付出一定合适的售后服务成本的方式,满足用户此类需求,以创造价值。

   当然,懒农并不是万能的。它更适用于生成简易程序,而不是复杂的应用。但随着以后项目的发展和迭代更新,以及数据文件的丰富还有人工智能技术等应用,懒农有望更进一步实现地覆盖、并满足更多的用户需求。

   懒农并不是解决最终成品实物的方法,但它为用户提供了一种快速生成代码的途径。当生成代码可以通过数据文件作者预先知悉以后,后续的编译、部署等环节也可以由数据文件作者进行引导,甚至可以进一步提供快速完成的可能性。作者想通过懒农提供的,不仅仅是一个代码生成器,更是想通过懒农这个应用的发展,在一定条件下进行现有技术的整合,以更进一步降低软件开发的成本,并带来一种协作方式的改变,让现有的编程技术的应用可以进一步的下沉,使得这类简易的应用程序需求得以快速实现,得以整合并具备成为市场需求,形成经济价值的可能。

生成代码操作指引

📦 安装说明

运行安装包,点击【下一步】。

注意到这里选择安装路径的时候不要安装默认路径安装,要重新选择安装路径,否则软件安装后无法运行,安装路径不能有空格或者特殊符号,最好不要安装在C盘。

比如将安装路径改为“D:\LazyCoder\”,然后点击【下一步】。

点击【安装】。

然后等待程序安装完成即可。

   

生成代码使用引导

使用懒农生成软件,首先需要导入数据文件,以下以导入示例数据文件为例说明。

点击【懒农数据源】

点击【懒农数据源】

点击【在此导入数据源】,按提示将数据文件导入,每次只能导入一个数据源,导入完成以后退出软件

再打开软件,点击【生成程序】

点击【生成程序】

选择要用来生成代码的数据文件,填写项目名,并设置项目文件存放路径,点击【确定】

选择所需模块,然后点击确定

稍微等待一会,进入代码生成界面,鼠标放在左上角中已选择的模块,可以添加对应模块的功能到当前橙色的面板上,中间为可视化控制面板,通过里面文字和组件结合,按提示操作对代码进行调整,其中里面有个带有蓝色的“…”图形的按钮,点击可以展开对应的面板,并使得该面板为橙色。

点击【生成源码】,即可生成对应代码文件,项目文件的源码文件夹里面的就是生成源码,使用文档文件夹里面为使用该数据文件生成代码的使用引导文档。

   

制作数据文件使用引导

点击【懒农数据源】。

点击【懒农数据源】

在新建 【数据源/文件夹】处选择【数据源】,输入数据源的名字,点击【确定】,即可创建数据文件,双击对应数据文件可进入编辑界面进行内容编辑,具体操作可在每个界面上点击附近的【?】按钮查看操作指引,或者询问笔者。

点击【数据源】

数据文件编辑界面   

导出数据文件

点击【懒农数据源】。

点击【懒农数据源】

找到需要导出的数据文件,点击【导出该数据源】,按提示操作即可

点击【导出该数据源】   

☎️ 联系作者

项目开源地址 githubgitee    

  • 如果您对懒农这个应用,想要反馈 Bug、提供产品意见,甚至进行迭代优化,欢迎联系作者,或者加群讨论。

作者qq:3606515004

作者微信:lanzai2020

qq交流群:893613856

📦 ️ 客户端下载地址

客户端下载地址

客户端百度云链接 提取码:yrxi

客户端百度云链接

客户端蓝奏云链接 密码:6s7q

客户端阿里云盘链接

🤭记得点个小星星Starred

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

懒农,一款实现可视化操作的代码生成器 展开 收起
README
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/lazy-coder/LazyCoder.git
git@gitee.com:lazy-coder/LazyCoder.git
lazy-coder
LazyCoder
LazyCoder
master

搜索帮助