Modular programming and modular editor

xiaoxiao2021-03-06  98

This article describes an author's envisioned programming mode, as well as an editor that is designed to facilitate this mode. Modular programming mode refers to programming "module" as a basic unit. A module is a collection of code. This module is conceptually compared to a small program of programming base units in the traditional sense, specifically, a module corresponds to a class declaration, or a function definition.

About this idea itself

This imagine is that I have recently conducted C (currently I only learned to C and Pascal, I also learned a bit of BASIC), I found that the mainstream IDE did not solve the problem, that is: these mainstream IDE will be a long The code (including a variety of declarations and definitions of a variety of classes) is placed in a file, so that a particular code segment will be found more or less inconvenience. I only have some initial understanding, but I think a thought of software engineering is to modulize the problem. By breaking up a big problem into a number of small problems, if a small problem is not "a glimpse", then This small problem continues to decompose until the last small problem is "natural". But through my recent observation experience, C a lot of library files and header files are hard to do at a glance, because the document is often too long, if you don't carefully read the document, it is difficult to "look". So I joked an idea that I couldn't take the file in order, and then divided into many modules. Each module is just a category declaration or a function of a function. Is it convenient for many?

Of course, only this idea may have many problems, if there is no problem, do you have a small code that contains very little code directly? This is obviously not enough, because, there will be too many files that will have too many files. Moreover, this way to directly change the direct change program design is definitely not accepted by all programmers. Therefore, I envisage only to change only the IDE editor section, and then do as compatible with the compiler and debugger, and finally, it can be integrated with embedded ways.

It has to be said here, because I am just a shallow, it is not very understanding of the current development in this area, maybe my thoughts have already thought of and practical, or some places in my thoughts are not realistic, I hope everyone will see The function is to accommodate this idea with a tolerant attitude. If there is any childish place, please be used as a laugh: People communicate.

Module editor three elements

转载请注明原文地址:https://www.9cbs.com/read-100065.html

New Post(0)