Amazing ideas but just as one file
Programmers write code in different ways according to their preference and type of the particular project. If a software project is quite large and growing, we usually decompose the whole thing into several files to achieve maintainability. However, programmers often turn awesome ideas into single-file open-source projects amazingly. I found the following projects from Github and I used several things in my projects too. These projects have just one file that contains the main source code.
Electronjs is a very popular choice for cross-platform application development using web technologies. But, every application that was built using Electronjs becomes heavier because the application consists of Node runtime and Chromium browser. On the other hand, the Webview project re-uses the existing web browser library of each operating system and also creates a bi-directional communication channel between the front-end and the back-end to create light-weight cross-platform apps with zero dependencies. Webview has nicely organized platform-specific code in a single C++ header file.
As everybody knows, Docker is a full-featured application containerization platform that offers operating system level virtualization by creating isolated components called “containers”. Someone implemented the basic functionality of Docker using around a hundred lines of Bash by mainly using
btrfs command and a set of administrator utility commands.
React is a very popular and efficient library for building highly dynamic user interfaces by following component-based structure. o is an experimental project that consists of minimal features of the React library. However, it has many basic features of React such as JSX-like template support and hooks.