]> vaikene.ee Git - evaf/commitdiff
Added web page files to the repository.
authorEnar Väikene <enar@vaikene.net>
Thu, 21 Jul 2011 12:26:02 +0000 (15:26 +0300)
committerEnar Väikene <enar@vaikene.net>
Thu, 21 Jul 2011 12:26:02 +0000 (15:26 +0300)
www/evaf.css [new file with mode: 0644]
www/index.html [new file with mode: 0644]
www/overview.html [new file with mode: 0644]

diff --git a/www/evaf.css b/www/evaf.css
new file mode 100644 (file)
index 0000000..88bf274
--- /dev/null
@@ -0,0 +1,36 @@
+body, td, th, dd, dt, h1, h2, h3, h4, h5, h6, p, ol, ul, li {
+    font-family: verdana,arial,sans-serif;
+}
+body, small {
+    font-size: 10pt;
+    background: #FFFFFF;
+}
+code {
+    color: blue;
+    font-weight: bold;
+}
+pre, .box {
+    background: #E0E0E0;
+    margin-left: 40px;
+    padding-top: 1em;
+    padding-bottom: 1em;
+    padding-left: 1em;
+    padding-right: 1em;
+    overflow: auto;
+}
+h1 {
+    font-size: 160%;
+    margin-left: 0px;
+    font-weight: bold;
+}
+h2 {
+    font-size: 150%;
+    margin-left: 20px;
+}
+p {
+    margin-left: 1.5em;
+    margin-right: 0.5em;
+}
+p.main {
+    text-align: justify;
+}
diff --git a/www/index.html b/www/index.html
new file mode 100644 (file)
index 0000000..d407dff
--- /dev/null
@@ -0,0 +1,92 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="et" xmlns="http://www.w3.org/1999/xhtml" xml:lang="et">
+
+    <head>
+        <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" />
+        <title>eVaf</title>
+        <meta name="Author" content="Enar Väikene" />
+        <meta name="description" content="eVaf -- C++ cross-platform application development framework using Qt" />
+        <meta name="keywords" content="evaf c++ application development framework" />
+        <link rel="StyleSheet" href="evaf.css" type="text/css" media="all" />
+    </head>
+
+    <body>
+
+        <h1>eVaf</h1>
+
+        <h2>Introduction</h2>
+
+        <p>eVaf is a C++ cross-platform application development framework using <a href="http://qt.nokia.com/">Qt</a>.
+        It can be used to build modular applications for Windows and Linux.</p>
+
+        <ul>
+            <li><a href="overview.html">eVaf overview</a></li>
+            <li><a href="/evaf.api">eVaf API documentation</a></li>
+        </ul>
+
+        <h2>Copyright</h2>
+
+        <p>The eVaf C++ application development framework is Copyright &copy; 2011 Enar Väikene.</p>
+
+        <p>You may use, distribute and copy the eVaf C++ application development framework under the terms of
+        <a href="http://www.gnu.org/licenses/gpl-3.0.html">GNU General Public License version 3</a>.
+        Commercial license is available upon request.</p>
+
+        <h2>Getting eVaf</h2>
+
+        <p>Use git to clone the repository:</p>
+
+        <pre><code>git clone http://www.vaikene.net/git/evaf</code></pre>
+
+        <p>The repository can also be browsed <a href="/gitweb/gitweb.cgi?p=evaf;a=tree">online</a>.</p>
+
+        <h2>Building eVaf</h2>
+
+        <p>To build eVaf, you need:</p>
+
+        <ol>
+            <li>Qt version 4.7 or newer;</li>
+            <li>CMake version 2.6 or newer.</li>
+        </ol>
+
+        <p>Run the following commands in the eVaf root directory.</p>
+
+        <p>Linux:</p>
+
+        <pre>evaf $ <code>mkdir build</code>
+evaf $ <code>cd build</code>
+evaf/build $ <code>cmake ..</code>
+evaf/build $ <code>make</code></pre>
+
+        <p>Windows:</p>
+
+        <pre>evaf&gt;<code>mkdir build</code>
+evaf&gt;<code>cd build</code>
+evaf\build&gt;<code>cmake -G "NMake Makefiles"..</code>
+evaf\build&gt;<code>nmake</code></pre>
+
+        <p>or:</p>
+
+        <pre>evaf&gt; <code>mkdir build</code>
+evaf&gt; <code>cd build</code>
+evaf\build&gt; <code>cmake ..</code></pre>
+
+        <p>and then open the generated Visual Studio solution file.</p>
+
+        <h2>Contact information</h2>
+
+        <p>On any questions or requests, please contact <a href="mailto:enar@vaikene.net">enar@vaikene.net</a>.<p>
+
+        <script type="text/javascript">
+            var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+        </script>
+        <script type="text/javascript">
+            var pageTracker = _gat._getTracker("UA-5064426-1");
+            pageTracker._initData();
+            pageTracker._trackPageview();
+        </script>
+
+    </body>
+
+</html>
diff --git a/www/overview.html b/www/overview.html
new file mode 100644 (file)
index 0000000..594ec7b
--- /dev/null
@@ -0,0 +1,95 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang="et" xmlns="http://www.w3.org/1999/xhtml" xml:lang="et">
+
+    <head>
+        <meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8" />
+        <title>eVaf overview</title>
+        <meta name="Author" content="Enar Väikene" />
+        <meta name="description" content="eVaf -- C++ cross-platform application development framework using Qt" />
+        <meta name="keywords" content="evaf c++ application development framework" />
+        <link rel="StyleSheet" href="evaf.css" type="text/css" media="all" />
+    </head>
+
+    <body>
+
+        <h1><a href="/evaf">eVaf</a> overview</h1>
+
+        <h2>Introduction</h2>
+
+        <p>My background is from industrial automation where the same application was used by several different customers who usually were also competing with each others. It was quite a challenge to develop an application that could be universal enough to satisfy all their needs and at the same time be unique for each customer.</p>
+
+        <p>Every customer had their own specific requirements starting with different communication methods with their servers and ending with changes to the user interface. One option was making these additional functions and features configurable to turn them off for installations where they were not needed. The problem was that with every new configuration parameter the total number of combinations increased and required more and more testing. The final configuration was done by service technicians on the field and they were extremely good at turning on options that were not designed to work together.</p>
+
+        <p>The solution was to make the software modular, where all the different features and functions were implemented in separate modules. The final application included only modules required for the particular customer and/or installation without any need or possibility to configure it on the field. <a href="/evaf">eVaf</a> is my attempt to take this idea to a new level and make a generic application development framework to help rapid development of modular applications. It is not for making fancy user interfaces; it is for making complex modular applications.</p>
+
+        <h2>Main executable</h2>
+
+        <p>Usually the application's main executable implements most of the application's logic. External modules or plugins are used to extend the main application.</p>
+
+        <p>This is not so in <a href="/evaf">eVaf</a> applications. The <a href="/evaf">eVaf</a> main executable is an empty container that needs to be filled with external modules to provide the required functionality. The <a href="/evaf">eVaf</a> main GUI executable, if run without external modules, shows just an empty window that can be closed to terminate the application. The <a href="/evaf">eVaf</a> main CLI executable runs until terminated with CTRL+C.</p>
+
+        <h2>Modules</h2>
+
+        <p><a href="/evaf">eVaf</a> modules are loadable libraries (.so or .dll files) that implement the features and functions of the application. By combining together different modules, an unique application can be made in very little time. Every module implements a specific function or feature and only when put together, the actual application is created.</p>
+
+        <p>Modules should should implement as little features as possible, but do it as good as possible. While it is possible create one 'monster' module that implements all the required features, it is not the spirit of the <a href="/evaf">eVaf</a> and not why this framework was made. <a href="/evaf">eVaf</a> modules should be small, with well specified input and outputs. Only then can the same module be reused in many different applications.</p>
+
+        <p>For example, an application that downloads pictures from a digital camera and uploads them to Facebook, could have at least 3 modules:</p>
+
+        <ul>
+            <li>A module that downloads pictures from the specific digital camera;</li>
+            <li>A module that resizes pictures making them smaller;</li>
+            <li>A module that uploads pictures to Facebook.</li>
+        </ul>
+
+        <p>By replacing the camera module with another one or making it possible to select the camera module, we make sure that the same application can work with different cameras. Or use the same camera module in a different application that stores pictures from digital cameras into local database.</p>
+
+        <p>The picture resizing module can be replaced with another image processing module when we need it. The same picture resizing module can be used in other applications where images need to be resized.</p>
+
+        <p>The Facebook upload module can be reused in an application that uploads pictures from the local computer or the module can be replaced with another one uploading pictures to ImageShack.</p>
+
+        <h2>Interfaces</h2>
+
+        <p>Interfaces are the way how the functionality of <a href="/evaf">eVaf</a> modules is used. Every feature implemented by a module has an interface used to feed the module with data or request information from the module.</p>
+
+        <p>Interfaces should be kept even more specific and simple. It is perfectly valid for a module to implement more than one interface if these interfaces have different purposes. For example, the digital camera module could implement two interfaces – one for downloading pictures and another to control the connection to the camera.</p>
+
+        <p>All the interfaces are identified by a unique name and published in a global interface registry. Modules that implement interfaces, register their interfaces in the global registry; modules that need to use interfaces published by other modules, query them from the same global registry. Modules can even change their internal logic if an optional interface is found in the global registry.</p>
+
+        <p>Interfaces can also be reimplemented. The global registry of interfaces keeps only the last registered interface with the same name making it possible to create interface chains where basic implementation of the interface is done in one module and extended functionality added by another module. Any module querying for the interface would get the latest implementation without knowing that some request are handled by two or more modules.</p>
+
+        <h2>Events</h2>
+
+        <p>Events are used by modules to send out information that they have collected or processed. While interfaces are the way how to feed modules with data or requests, then events are mostly for spontaneous data. For example, the digital camera module could send out an event when a new picture is downloaded from the camera.</p>
+
+        <p>Similar to interfaces, every event type is identified by a unique name and needs to be registered before use. Registering is usually done by the module from where the event will be originating. Other modules interested in the specific event query for the event and then subscribe to it. When the event is sent out or broadcast, the <a href="/evaf">eVaf</a> event queue forwards the event to every individual subscriber.</p>
+
+        <p>Multiple modules can subscribe to the same event and they all would receive it unless one of the modules decides to consume it. Consuming the event means that no other module receives it. For example, there could be an extra module that receives camera events with pictures before the module that uploads pictures to Facebook. This extra module shows a list of available pictures with an option to choose which ones should be uploaded. By consuming the event the module makes sure that the Facebook upload module does not upload any pictures until the user has made their selection.</p>
+
+        <h2>Reference-counted data</h2>
+
+        <p>Events broadcast by modules can have data objects attached to them. To avoid unnecessary copying of data, these data objects are shared and reference-counted. When the data object is attached to the event, its internal reference counter is increased by one. When the <a href="/evaf">eVaf</a> event queue has delivered the event to all the subscribers, it destroys the event and decreases the reference-counter of the data object by one. If no other module kept the data object, then the data object's reference counter becomes zero and it is destroyed too.</p>
+
+        <p>This way modules don't have to worry about the life-time of data objects that they send out in events. They can send and forget the data. If some other module needs to keep the data, it is their responsibility to increase the reference counter and decrease again when the data is no more needed.</p>
+
+        <h2>Effects on development</h2>
+
+        <p>In our small group of software developers everybody worked on their own projects and applications. Usually nobody wanted to touch somebody else's code, which meant that whole applications were developed and supported mainly by one developer only.</p>
+
+        <p>When we introduced a similar modular application development framework, we all started working on the same applications without any changes to the organization or to the way how we worked. Everybody was still working on their own modules and even when there was a need to modify somebody else's code, keeping modules small and simple made it much easier to dig into that code.</p>
+
+        <p>In our case the modular architecture of the application made it easier to develop and maintain applications even when it took a little more time to split the application into functional blocks. Well designed generic interfaces and modules made it much quicker to develop new applications and the initial investment was well worth it.</p>
+
+        <script type="text/javascript">
+            var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+        </script>
+        <script type="text/javascript">
+            var pageTracker = _gat._getTracker("UA-5064426-1");
+            pageTracker._initData();
+            pageTracker._trackPageview();
+        </script>
+
+    </body>
+
+</html>