<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mark Johnson on Medium]]></title>
        <description><![CDATA[Stories by Mark Johnson on Medium]]></description>
        <link>https://medium.com/@evoljoh?source=rss-5ba223f7db77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QEpmQnkwx1Ij3v6N-AoUcQ.jpeg</url>
            <title>Stories by Mark Johnson on Medium</title>
            <link>https://medium.com/@evoljoh?source=rss-5ba223f7db77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:26:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@evoljoh/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reclaiming flight search: The top of the user acquisition funnel … or …]]></title>
            <link>https://medium.com/@evoljoh/reclaiming-flight-search-the-top-of-the-user-acquisition-funnel-or-d6a6239af7af?source=rss-5ba223f7db77------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6a6239af7af</guid>
            <category><![CDATA[travel-technology]]></category>
            <category><![CDATA[airlines]]></category>
            <dc:creator><![CDATA[Mark Johnson]]></dc:creator>
            <pubDate>Thu, 02 Nov 2017 18:16:09 GMT</pubDate>
            <atom:updated>2017-11-02T18:16:09.153Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVR1aFJJXX6BC1qyhGLr3w.png" /></figure><p>“Make flight search YOUR business” as we ended up titling our presentation during IATA’s Word Passenger Symposium.</p><p>As one of the winners of IATA’s NDC hackathons we were invited to present <a href="https://travelful.co/">Travelful.co</a> to over 700 delegates.</p><p>Our goal to invite airlines to use the technology we have developed, to make it easy for <em>business travelers</em> (and people attending events in general) to search and book flights.</p><p>This, from the comfort of the websites they visit to get information and register for the events they are planning to attend.</p><p>“ ‘Search’ is one of the first activities done during trip planning, capture that search and ‘buy’ will likely follow”</p><p>We showed a video similar to the one below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsBZs79xfJKM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsBZs79xfJKM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsBZs79xfJKM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/50228a1dce254915c2967e9cdcf35955/href">https://medium.com/media/50228a1dce254915c2967e9cdcf35955/href</a></iframe><p>Not following? <strong>fish</strong>=flight search, <strong>bear</strong> = Travel technology in the right place at the right time to capture the search, <strong>river</strong>= Event’s websites (MICE, Rock in Rio, etc. websites.)</p><blockquote>Meeting and events can provide an abundant supply of potential travelers, but you need to be in the right place at the right time. Being in the right place at the right time goes a long way to help you optimize results. Whether it is catching fish or selling flights.</blockquote><p>Currently the traveler’s options for finding flight information and booking flights include:</p><p>The “<em>We have hotels but not flights</em>” option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HCDMHK1aNsm-4oG87GhqbA.png" /></figure><p>The “<em>Please take note of the code you need to type in a field you will find after you click a link that will take you to another website</em>” option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2_Ztl-C47-qLHnZou4Yazw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U_kLds0jDfki6wfTJwvPDg.png" /></figure><p>Many of these didn’t work due to pop-up, ad blockers or cookies not enabled.</p><p>We everything else fails</p><p>The “Search in google” option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gPtWqK6L-gjsnUOumrBHuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SU07riyQ7sCAHKsfmOWAPA.png" /></figure><p>There is no doubt that airlines no longer dominate or own much of travel search. Google does, and big OTAs and Metasearch engines.</p><p>And it seems like Google might be <em>“building a dam in the river” </em>by shutting down <a href="https://www.theverge.com/2017/11/1/16591850/google-ita-matrix-shut-down-qpx-express-api">QPX</a>.</p><h3>Travelful’s approach</h3><p>As we said we focus on “travel generating” websites, such as MICE related, concerts, etc.</p><p>Here is a demo:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FegdwW2chkq0%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DegdwW2chkq0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FegdwW2chkq0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/990fb52e9f82d7240a0b14019dbaf512/href">https://medium.com/media/990fb52e9f82d7240a0b14019dbaf512/href</a></iframe><p>By capturing that search, along with contact information, you can:</p><p>— Establish an early connection with the future traveler, creating a first good impression.</p><p>— Send the traveler relevant information during their shopping journey.</p><p>— Be the first airline that will come to mind when they are ready to buy.</p><h3>Final Toughts</h3><p>Travelful aims to provide the tools airlines can use to reach out to future travelers before they go search elsewhere. We want to help you “Make search YOUR business”</p><p>Remember #capturethesearch , reach out to a captive audience and reclaim flight search.</p><p>If you are going to <a href="http://www.ibtmworld.com/">IBTM World</a>, please come see us in stand P105.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6a6239af7af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Here is how we replicated Kitura’s TodoList sample application with Generatron.]]></title>
            <link>https://medium.com/@evoljoh/here-is-how-we-replicated-kitura-s-todolist-sample-application-with-generatron-ff1572c1ac2a?source=rss-5ba223f7db77------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff1572c1ac2a</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[swift-programming]]></category>
            <dc:creator><![CDATA[Mark Johnson]]></dc:creator>
            <pubDate>Sat, 26 Mar 2016 18:48:07 GMT</pubDate>
            <atom:updated>2016-03-26T18:48:07.145Z</atom:updated>
            <content:encoded><![CDATA[<p>Learning the syntax or how to architecture an application, how to connect the pieces and expressing all that through a QWERTY keyboard, is very often time and resource consuming.</p><blockquote>The goal of Generatron is to synthesize (write) software starting from a general description of the problem. This general description is the data model.</blockquote><h3>‘Write’ the backend.</h3><p>For this example we are going to use <a href="https://github.com/IBM-Swift/Kitura">Kitura</a>, one of IBM’s newest frameworks.</p><p>We are going to use a nodejs CLI to interact with Generatron, lets install it and create an account.</p><p><strong><em>npm install -g generatron</em></strong></p><p><strong><em>gtron signup</em></strong></p><p><strong><em>gtron login</em></strong></p><p>1) Create the data model</p><p>First of all lets start by creating a data model similar to that on the Kitura <a href="https://github.com/IBM-Swift/Kitura-TodoList">TodoList</a> sample. The <em>TodoItem</em> struct seems to be the the only data entity we will need to store.</p><p>There are other options (like importing a model from CoreData) but we will use YAML to define our model like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*M__aw0L4rgbVzZMhK6xJqw.png" /></figure><p>After we have committed our model to <a href="https://github.com/generatron/TodoListKituraModel.git">git</a>, is time to make Generatron aware of it, by ‘harvesting’ the model and other configurations.</p><p><strong><em>gtron harvest https://github.com/generatron/TodoList.git TodoList</em></strong></p><p>Generatron will explore <strong>model.yaml</strong>, and use it as input for the templates used to generate code, and <strong>generatron.yaml </strong>to control the output, in this case in which repos,branch,subdirectory to place to output.</p><p>2) Generate the code</p><p><strong><em>gtron generate TodoList using Kitura-REST</em></strong></p><p>3) Download and run</p><p>You can see the resulting code <a href="https://github.com/generatron/TodoList">here</a>, under the Generatron branch. Follow instructions on README to run the resulting application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*ZnNBuU3hnyayarx5X_qeRw.jpeg" /></figure><p>If you are kind of underwhelmed it is because we wanted to remove the ‘<em>overwhelmedness</em>’ developers and companies experience when writing code for a new software project or implementing new technology or when deadlines are super tight.</p><p>Googling, pouring through tutorials,StackOverflow and Github, let alone typing all that code is resource and time consuming.</p><p>Our goal is: through a very simple interface and a very powerful code generation engines, keep you less overwhelmed and more productive. Concentrate in building a great product more than on coding.</p><h3>Model reusability: ‘Write’ the frontend</h3><p>You could use something like Curl, or Postman to test the REST backend, or why not, write an app, but of course that might be out of the question, you probably don’t have the time.</p><p>Because models in Generatron are reusable, we can also write a frontend/client application, that automatically knows what is on the backend we just created using Kitura/Swift. Or a backend using javascript to compare performance.</p><p>By leveraging <a href="http://ionicframework.com/">IonicFramework</a> we will write an app to talk to our backend.</p><p><strong><em>gtron devs </em></strong>[this command is optional, to see what other generators are available]</p><p><strong><em>gtron generate ionic-1.7.14 </em></strong>[this is going to take a little longer, about 3 minutes]</p><p>download code.</p><p><strong><em>npm install</em></strong></p><p><strong><em>bower install</em></strong></p><p><strong><em>ionic serve</em></strong></p><h3>What else can you do with Generatron?</h3><p>We used a Todo List as an example, but Generatron is a platform that can be used to create software from any data model for any platform we support.</p><p>If you want to try with a different model, feel free to fork the repo, and modify the model to add a Task entity and some attributes, then regenerate the code.</p><p>Support for OneToOne or OneToMany relationships is next</p><p>If you just want to generate an blank Kitura project do the following</p><p><strong><em>gtron init &lt;ProjectName&gt; Kitura-Init [optional Github RepoURL]</em></strong></p><h4>Make sure you add generatronServer as a collaborator for git integration to work.</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff1572c1ac2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generatron is Swift…swifter]]></title>
            <link>https://medium.com/@evoljoh/generatron-is-swift-swifter-a43e688bc80d?source=rss-5ba223f7db77------2</link>
            <guid isPermaLink="false">https://medium.com/p/a43e688bc80d</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Mark Johnson]]></dc:creator>
            <pubDate>Sun, 21 Feb 2016 19:10:18 GMT</pubDate>
            <atom:updated>2016-02-22T18:53:09.563Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*pTgdZ9g1tzUk1DWV3Fmydw.png" /></figure><blockquote>Generatron is a SaaS platform to empower startups and their developers to write software faster, by minimizing the time that is spent figuring out <strong>what code</strong> needs to be <strong>typed</strong> and the time spent <strong>typing</strong> that code.</blockquote><p>This is I follow up of sorts to my piece on <a href="https://medium.com/@evoljoh/generatron-principle-1-representing-the-structure-of-data-and-application-in-a-way-it-can-be-re-fb7bde978b6b#.9u25aafdh">Generatron and Model Reusability</a></p><p>Some time ago I read about Apple open sourcing Swift and I wondered if one could come up with a way of creating a server side solution that could run on Linux.</p><p>The advantage being that you could code in Swift both on the front end and in the backend, with a minimal learning curve. (I have some thoughts on this “Look Ma’ same language on the frontend and in the backend”, but that’s a separate post, for now lets say it’s convenient).</p><h3>Swift on the server</h3><p>I came across several projects: <a href="https://github.com/tannernelson/vapor">Vapor</a>, <a href="https://github.com/izqui/Taylor">Taylor</a> (Swift, get it?!),<a href="https://github.com/PerfectlySoft/Perfect">Perfect</a> and <a href="https://github.com/IBM-Swift/Kitura">Kitura</a>. I decided to take Perfect for a spin, mostly because it provided connectors to store data using MySQL, SQLite, and Postgres. Only problem is that you will be dealing with writing SQL right on your code.</p><h3>Swift writing code</h3><p>With the help of the examples they provided, other projects that implemented solutions using Perfect I set out to create a <a href="http://www.generatron.com/#/sample"><em>generatron</em></a> for this technology which i aptly named PerfectSwift. Which is a long process of writing templates, generating, testing, modifying templates….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*QPEQXQY7kzuYPr7KSFpTfg.png" /></figure><h3>Testing PerfectSwift generatron</h3><p>I wanted to test against a random data model that wasn’t written by me I went “shopping” and found this <a href="https://github.com/ChappyA12/Homework_iOS">HomeWork app</a> which i forked <a href="https://github.com/generatron/Homework_iOS/">here</a> and added a <strong>generatron.yaml</strong> file to control the output of the <em>generatron</em>, which repo it would commit the code to, you can see the results <a href="https://github.com/generatron/HomeworkBackend.git">here</a></p><p>We also tested with a model written from scratch using <a href="https://bitbucket.org/ejohnsonw/fashnclubui/src/7dcea7ee211a89144a93190422dfbd20edaba213/model.yaml?fileviewer=file-view-default">yaml</a>. you will notice that there is an ionicframework app that was generated from it and here is the Perfect Backend available <a href="https://bitbucket.org/ejohnsonw/fashnclubbackendswift/src/ae727d373eebe82a3805577b0b3c5ccb63319f7b?at=master">here</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3oSUeNRigYc%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3oSUeNRigYc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F3oSUeNRigYc%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ecb0c8d8922a0c3de2307010e678cc55/href">https://medium.com/media/ecb0c8d8922a0c3de2307010e678cc55/href</a></iframe><p>We saw some problems with the backend loosing connection to the db, malloc errors, we suspect that could be due to threading problems because the IonicFramework app sends about 3 simultaneous requests to populate things in the UI.</p><p>We will be investigating a little more to try to find the source. The generator code has not been moved to production yet, until we are able to test even further. Anyway, feel free to clone the projects and experiment with them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a43e688bc80d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yay!!! we landed a rocket!!… on Earth? and what that’s got to do with Software Engineering]]></title>
            <link>https://medium.com/@evoljoh/generatron-principle-1-representing-the-structure-of-data-and-application-in-a-way-it-can-be-re-fb7bde978b6b?source=rss-5ba223f7db77------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb7bde978b6b</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[code-generation]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Mark Johnson]]></dc:creator>
            <pubDate>Mon, 04 Jan 2016 01:11:36 GMT</pubDate>
            <atom:updated>2016-01-04T01:11:36.372Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*qov14m-M4w_1IJB9vv3MYw.png" /></figure><h4>Generatron principle #1: Representing the structure of data and application in a way it can be (re)used to create systems in multiple platforms with reduced effort and time.</h4><p>Very recently if you reading this story on or after late 2015 you have might have seen the news about successfully landing space rockets on Earth.</p><p>This amazing feat, first by <a href="https://www.youtube.com/watch?v=9pillaOxGCo">Amazon’s Blue Origin</a> and then by <a href="https://www.youtube.com/watch?v=ZCBE8ocOkAQ">SpaceX’s Falcon 9</a> rockets has taken [In]numerable hours of planning, design, engineering and and I would guess, [In]numerable amounts of money to accomplish. So what’s the big deal?</p><p>From <a href="http://www.nbcnews.com/tech/innovation/here-s-why-spacex-rocket-landing-such-big-deal-n484481">www.nbcnews.com/tech/innovation/here-s-why-spacex-rocket-landing-such-big-deal-n484481</a></p><blockquote>This is a big deal because rockets are expensive. The Falcon 9 that SpaceX uses costs around $60 million to build, the company told NBC News. Fuel costs per launch are about $200,000.</blockquote><blockquote>Most rockets are designed to burn up during re-entry. That means rebuilding a $60 million rocket for every single space mission — not exactly the most cost-effective system.</blockquote><blockquote>Reusable rockets, however, would mean cargo could be sent into space with only the fuel and maintenance costs to consider.</blockquote><p>By reusing the rocket you they are not only reusing the physical object, they are also reusing all those (wo)man hours and resources invested to complete the project.</p><h4>Reuse in Software engineering</h4><p>For many years in software engineering we have been using practices that allow us to reuse those expensive ‘rockets’ we build every day, in the form of code, designs, etc.</p><p>Following the DRY principle , we store algorithms, routines, business knowledge, in libraries, frameworks; ready to use for our next project. Here it is as explained by Wikipedia</p><blockquote>In <a href="https://en.wikipedia.org/wiki/Software_engineering">software engineering</a>, <strong>don’t repeat yourself</strong> (<strong>DRY</strong>) is a <a href="https://en.wikipedia.org/wiki/Principle#Principle_as_axiom_or_logical_fundament">principle</a> of <a href="https://en.wikipedia.org/wiki/Software_development_process">software development</a>, aimed at reducing repetition of information of all kinds, especially useful in <a href="https://en.wikipedia.org/wiki/Multi-tier_architecture">multi-tier architectures</a>. The DRY principle is stated as “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.”</blockquote><blockquote>Besides using <a href="https://en.wikipedia.org/wiki/Method_(computer_science)">methods</a> and <a href="https://en.wikipedia.org/wiki/Subroutine">subroutines</a> in their code, Thomas and Hunt rely on <a href="https://en.wikipedia.org/wiki/Automatic_programming">code generators</a>, automatic build systems, and scripting languages to observe the DRY principle across layers.</blockquote><h4>Generatron and Reuse</h4><blockquote><a href="http://www.generatron.com/">Generatron</a> is a Generative Coding as a Service (GCaaS ?) platform, where you can input a data model in a “black box” and on the other end, receive relevevant source code that can understand and interact with that data.</blockquote><p>Ok that’s a mouthful , so lets consider a few example use cases where you will want to reuse something you have to create something new:</p><ol><li>You have data stored in a database (<strong>Oracle, DB2, MySQL, etc.</strong>), lets say in a legacy application and you want to create a <em>web and/or mobile application</em>.</li><li>You have built an IOS or Android application that stores data in a local database (<strong>CoreData,SQLite</strong>), but now you want to interact with and store data in a <em>backend system</em>.</li><li>You are starting a new software system and you know you will want to write/build both <em>backend and frontend systems</em> For that you would like to reuse your <strong>data design, </strong>to minimize effort in building those systems<strong>.</strong></li></ol><p>Depending on your situation, you would have to hire a number of resources front end /backend developers, architects, DBA’s; to help you transform what you have (<strong>bolded)</strong> into something you don’t currently have (<em>italicized</em>).</p><blockquote>Generatron aims to reduce the time it takes to get everybody in the same page, and then the time it takes to type all that code, and make it production ready.</blockquote><h4>Becoming model literate</h4><p>It became evident that to maximize <strong>reuse</strong>, <a href="http://www.generatron.com/">Generatron</a> needed to be able read and understand different ways we convey data structure to a software system: databases (MySql, DB2, Oracle, Access), domain models (Grails, Rails, Sailsjs domain or model objects), documents (YAML , Excel, JSON files).</p><p>We could then import them into <a href="http://www.generatron.com/">Generatron</a> and get them ready for reuse in the form of Code Generation.</p><p>It made sense to separate these functions and we ended up building <a href="http://www.modelatron.com/">Modelatron</a>, were you provide us with the url to a publicly readable git repository, containing your application’s data structure, we will clone it and then explore it for metadata. Currently we support the following model types, <em>with varying degrees of success </em>as we are still developing/testing:</p><ol><li>IOS CoreData models</li><li>Grails 2.3.x+ Domain Models</li><li>SailsJS Domain Models</li><li>YAML documents.</li></ol><p>Support for other formats is in the works, late 2016.</p><h4>Model reuse in action</h4><p>Let’s start with a small use case:</p><blockquote>As a developer I want to create an IOS app with core data model and use Modelatron/Generatron to create a backend to store data. I don’t want to use a BaaS (Backend as a service).</blockquote><p>Instead of writing a new app, we will just go to to GitHub and choose a ‘donor’ that uses CoreData. We settled for <a href="https://github.com/ChappyA12/Homework_iOS">https://github.com/ChappyA12/Homework_iOS</a> . For this <em>proof of concept </em>(at this point a fully runnable project is not being created)<em> </em>will create backend code using Swift by leveraging Perfect.org Let’s see the process.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FbReIWBUXD5I%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbReIWBUXD5I%26feature%3Dyoutu.be&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FbReIWBUXD5I%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5e6b22459589b2548c12e2af40901e2/href">https://medium.com/media/a5e6b22459589b2548c12e2af40901e2/href</a></iframe><p>It works!</p><p>Once we have the data model imported nothing would stop us from also writing a node express backend or a grails backend, all of this in less than 10 <strong>minutes!</strong></p><p>We are very excited of the results we have seen so far, the weeks and months to follow we will be doing more development to fine tune the platform to make sure it is producing working code 99% of the time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb7bde978b6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computers writing code… not humans?.]]></title>
            <link>https://medium.com/@evoljoh/computers-writing-code-not-humans-7fe4ab7a9fa4?source=rss-5ba223f7db77------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fe4ab7a9fa4</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[code-generation]]></category>
            <dc:creator><![CDATA[Mark Johnson]]></dc:creator>
            <pubDate>Sat, 17 Oct 2015 04:30:49 GMT</pubDate>
            <atom:updated>2015-10-17T04:30:49.242Z</atom:updated>
            <content:encoded><![CDATA[<h4>The TL;DR</h4><p>Generative Coding is concerned with reducing the time [chronos] and effort [prospátheia] required to write software, by using input supplied by the developer and transforming it automatically into code the computer can understand with minimal keyboard intervention. This is an introduction to what Generatron (<a href="http://www.generatron.com/#/">http://www.generatron.com/</a>) does.</p><h4>High School… check!, now what’s next?</h4><p>After high school and after dropping out college (for a while), I started ( at my mother’s behest) taking a few courses in computer programming.</p><p>While learning how to write Dbase III programs, a question popped in my mind:</p><h4>“Can you write a computer program to write computer programs?”</h4><p>How could I communicate to the computer what I intended to build, without typing a lot, and it would write the source code I needed. One of my teachers mentioned that Dbase itself was written using something called ‘C language’.</p><p>Long story short I end up learning C and was able to reverse engineer the structure of the “.dbf” to read the tables and the fields, and then write code i could use to display fields on a screen, and save the data.</p><p>Since then I have written many different generators, targeting different languages and platforms, including Generatron. A question to get us started</p><h4>Can we reduce the time [chronos] and effort [prospátheia] it takes to write software?</h4><p>That is a question that developers, project managers, stake holders will often ask, and has been approached in many ways, sometimes adding more “brains and hands” seems to be the logical answer.</p><p>Software developers have come up with many ways of reducing the time and effort it takes to write a software system, to mention a few:</p><p>Using better tools (compilers, IDE, choosing the best programming language for the job), writing code that is clean,modular, scripts to automate tasks, using libraries and frameworks. And then there are code generators, or Automated Coders as we will call them.</p><p>As of today, software creation is “tightly coupled”, inextricably linked, to our keyboards and mouses. This is how the thoughts in our brains are transformed into something computers can understand and execute, and it is a relatively slow , error prlorne, I mean error prone process.</p><h4>What is a code generator?</h4><p>Code generators or generative coders are the YES answer to the “Can you write a computer program to write computer programs?”.</p><p>Generative Coders have existed for decades in many shape of forms, inside IDEs, on the command line, inside programming languages, compilers and as specialized products.</p><p>Lets define a generative coder’s purpose:</p><blockquote>To help a developers write software in less time [chronos], with less effort [prospátheia] by automating the process of creating code.</blockquote><p>An input (ideally, smaller than the final output) is taken and then transformed into code that is useful and meaningful to the developer and the computer.</p><p>The input can be: a database, other source code, command line commands, UML documents, YAML documents, anything a computer can read.</p><h4>Boiler plate Code and Scaffolding.</h4><p>Let’s introduce a couple of concepts, from their Wikipedia entries.</p><blockquote>In <a href="https://en.wikipedia.org/wiki/Computer_programming">computer programming</a>, <strong>boilerplate code</strong> or <strong>boilerplate</strong> is the sections of code that have to be included in many places with little or no alteration. … i.e. the programmer must write a lot of code to do minimal jobs.</blockquote><blockquote>The need for boilerplate can be reduced through high-level mechanisms such as <a href="https://en.wikipedia.org/wiki/Metaprogramming">metaprogramming</a> (which has the computer automatically write the needed boilerplate text), <a href="https://en.wikipedia.org/wiki/Convention_over_configuration">convention over configuration</a> (which provides good default values, reducing the need to specify program details in every project) and <a href="https://en.wikipedia.org/wiki/Model-driven_engineering">model-driven engineering</a> (which uses models and model-to-code generators, eliminating the need for boilerplate manual code) <a href="https://en.wikipedia.org/wiki/Boilerplate_code">https://en.wikipedia.org/wiki/Boilerplate_code</a>.</blockquote><blockquote><strong>Scaffolding</strong> is a technique supported by some <a href="https://en.wikipedia.org/wiki/Model-view-controller">model-view-controller</a> <a href="https://en.wikipedia.org/wiki/Software_framework">frameworks</a>, in which the programmer can specify how the application database may be used. The <a href="https://en.wikipedia.org/wiki/Compiler">compiler</a> or framework uses this specification, together with pre-defined code templates, to generate the final code that the application can use to <a href="https://en.wikipedia.org/wiki/Create,_read,_update_and_delete">create, read, update and delete</a> database entries, effectively treating the templates as a “<a href="https://en.wikipedia.org/wiki/Scaffolding">scaffold</a>” on which to build a more powerful application. It is usually used by company to for creating as a web-base program. (<a href="https://en.wikipedia.org/wiki/Scaffold_%28programming%29">https://en.wikipedia.org/wiki/Scaffold_(programming)</a>)</blockquote><p>Source code scaffolding is the de facto answer approach to reduce how much boiler plate code a developer needs to actually type on a keyboard.</p><p>Several things a can be automated, and usually include: a) Creating a project and/or folder and file structure require by a framework, b) creating default configurations, c) prepare automated testing, and many more.</p><h4>What’s out there</h4><p>The approach and scope of what they do varies, and go from visual oriented editors to command line aids, from full applications to starter kits. Not to be immodest lets see who other than Generatron are doing work on this space. The list is not, by any means, exhaustive. You can do a search on twitter by the following hashtags: #appgenerators or #codegeneration, and will find many, many applications</p><p><strong>Yeoman Generators (</strong><a href="http://yeoman.io/"><strong>http://yeoman.io/</strong></a><strong>)</strong></p><blockquote>Yeoman helps you to kickstart new projects, prescribing best practices and tools to help you stay productive.</blockquote><blockquote>To do so, we provide a generator ecosystem. A generator is basically a plugin that can be run with the `yo` command to scaffold complete projects or useful parts.</blockquote><p>Is probably the most active community of source code generators. With the explosion of javascript and its related frameworks, developers have come with ways of of easing the burden of getting a project of the ground by writing custom generators.</p><p><strong>Apache Cordova (</strong><a href="https://cordova.apache.org/">https://cordova.apache.org/</a><strong>)</strong></p><blockquote>Mobile apps with HTML, CSS &amp; JS</blockquote><blockquote>Target multiple platforms with one code base</blockquote><blockquote>Free and open source</blockquote><p>Generates among other things native source code that enabled javascript based applications to run on IOS/Android</p><p><strong>Ionic Framework</strong> (<a href="http://ionicframework.com/">http://ionicframework.com/</a>)</p><blockquote>Free and open source, Ionic offers a library of mobile-optimized HTML, CSS and JS <a href="http://ionicframework.com/docs/components/">components</a>, gestures, and tools for building highly interactive apps. Built with <a href="http://sass-lang.com/">Sass</a> and optimized for <a href="http://angularjs.org/">AngularJS</a>.</blockquote><p>Runs on top of Cordova and generates even more stuff, also provides out of the box UI components.</p><p>On the backend</p><p><strong>Ruby on Rails</strong> (<a href="http://rubyonrails.org/">http://rubyonrails.org/</a>)</p><blockquote>Web development that doesn’t hurt</blockquote><blockquote>Ruby on Rails® is an open-source web framework that’s optimized<br>for programmer happiness and sustainable productivity. It lets you<br>write beautiful code by favoring convention over configuration.</blockquote><p>It also inspired some of the *ils frameworks below.</p><p><strong>Grails Framework</strong> (<a href="https://grails.org/">https://grails.org/</a>)</p><blockquote><strong>Grails</strong> is a <strong>powerful</strong> web framework, for the Java platform aimed at multiplying developers’ productivity thanks to a Convention-over-Configuration, sensible defaults and opinionated APIs. including integrated ORM, <strong>Domain-Specific Languages</strong>, runtime and compile-time <strong>meta-programming</strong> and<strong>Asynchronous</strong> programming.</blockquote><p>Grails is one of our favorite tools, after all Generatron has been rewritten using Grails. A simple and powerful backend can be written in a matter of minutes, no kidding. Latest version comes equipped with ‘profiles’ that lets you even greater control of what is generated out of the box.</p><p><strong>SailsJS</strong> (<a href="http://www.sailsjs.org/">http://www.sailsjs.org/</a>)</p><blockquote>Sails makes it easy to build custom, enterprise-grade Node.js apps. It is designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture.</blockquote><p>This is a NodeJs based framework, has nice ORM features, also allows you to quickly create REST based webservices.</p><p>Visual, Drag and drop component based, application building.</p><p><strong>TreeLine</strong> (<a href="https://treeline.io/">https://treeline.io/</a>)</p><blockquote>Treeline makes it easy to build custom, high-performance apps for Node.js. It is designed for building practical, enterprise-grade backends in a matter of hours — not months.</blockquote><p>This comes from the creators of SailsJS, and takes a visual approach to building apps.</p><p><strong>Stamplay</strong> (<a href="https://stamplay.com/">https://stamplay.com/</a>)</p><blockquote>The modular backend platform<br>for web developers</blockquote><blockquote>Create web applications without writing tons of backend code</blockquote><p>They have quite a few tutorials on how to write, popular websites clones (instagram, twitter, etc.) using their tools.</p><p>Generators can be general purpose (Autocode <a href="http://crystal.sh/#intro">http://crystal.sh</a>/) on the languages, platforms they target, Or very specific here is one used to aid in creating code for Unity3d game engine,<a href="https://github.com/sschmid/Entitas-CSharp">https://github.com/sschmid/Entitas-CSharp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fe4ab7a9fa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use Generatron to write code for your next project.]]></title>
            <link>https://medium.com/@evoljoh/how-to-use-generatron-to-write-code-for-your-next-project-36289201a8?source=rss-5ba223f7db77------2</link>
            <guid isPermaLink="false">https://medium.com/p/36289201a8</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Mark Johnson]]></dc:creator>
            <pubDate>Sat, 17 Oct 2015 04:29:48 GMT</pubDate>
            <atom:updated>2015-10-17T04:29:48.313Z</atom:updated>
            <content:encoded><![CDATA[<p>Generatron is a source code generator and a Source code generator is:</p><h4>A computer program that writes other computer programs, with minimal human intervention.</h4><p>It’s very useful when: your project is data centric, and you need to move information from a backend to a frontend and viceversa. It will give you a starting kit of sorts and you can take it from there to implement a full fledged application.</p><p>It will take an input model and use it to figure out what software components it can write. Lets take a look</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRXtd89XIeAw%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRXtd89XIeAw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRXtd89XIeAw%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b4212c2dfe055ed905a2c88a9aaa313/href">https://medium.com/media/1b4212c2dfe055ed905a2c88a9aaa313/href</a></iframe><p>In our video we start with a simple document, that describes the structure of the data we want to store. We imported it into Generatron, choose a few generators and then watched a preview online.</p><p>You can import via the web interface</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*Qp82PtNj_82smjJAx6Pw0g.png" /></figure><p>Or via Slack, through Generatron’s robot.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FItKKDLy1a1A%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DItKKDLy1a1A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FItKKDLy1a1A%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae683c88e56d609ecd06e82fa98e8aa7/href">https://medium.com/media/ae683c88e56d609ecd06e82fa98e8aa7/href</a></iframe><p>This is a sample document</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*4VlU9lDDnVndjgsItMQCbg.png" /><figcaption>YAML Input document</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*5LtGMD3gdHRgPjX7KLXNDQ.png" /><figcaption>YAML Git Section</figcaption></figure><p>With this section we tell the generator where to put the output, based on the bundle name, matched with a regular expression, In this case all source code will be committed to the same repository. (Git delivery is a free feature for now will be moved to a premium layer)</p><p>For this to work need to give write rights on your repo. On BitBucket please give <a href="https://bitbucket.org/generatronServer/">https://bitbucket.org/generatronServer/</a></p><p>After importing the document into Generatron, all you have to do (for now), is to click on the generator(s) you want to use. In the near future we will allow for input parameters to customize code generation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*C-hmemhq58MpTu4mbNtReA.png" /><figcaption>Generation buttons</figcaption></figure><p>Wait for it… Wait for it</p><p>This is a small sample of the code that is generated</p><h4>Ionic Framework</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*3sN7lba1dsomNszCVy9eAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*L54Zw3ewz8u6EBA8lO1Y3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*GnvA3QF-XYGxZLqI-mg67Q.png" /></figure><p>Android (Retrofit Interfaces)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*PpF9hT3okcpt4xvDhLG23A.png" /></figure><h4>Extending and Customizing Generatron</h4><p>You can change what is generated by the platform by using your own templates, here is how to do it. In settings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*DRFfkLUoUNGf1U2tV0kwiw.png" /></figure><p>Your repo should look something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*DGWMsc0WKzIaN89DRqYqeA.png" /></figure><p>You can fork the repo, add an Experiments folder, other templates there and use the “Experiments” Generator to make tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*NKHs44hrB2l18o3OXvUnKg.png" /></figure><p>To override something simply locate the <em>Template</em>: in the header and follow the directory structure, or you can simply add other template files to generate other documentation. Templates are written using Apache Velocity (<a href="http://velocity.apache.org/engine/devel/vtl-reference-guide.html">http://velocity.apache.org/engine/devel/vtl-reference-guide.html</a>), with <strong>HandleBars</strong> support coming soon.</p><p>Templates ending on .vmg, are generated once per generation job. those ending on .vm are generated multiple times, once per entity in the model.</p><p>Check <a href="https://github.com/generatron/GeneratronPublic">https://github.com/generatron/GeneratronPublic</a> for more detail on templates.</p><p>We are constantly changing, fixing, and breaking things, so please be patient and write to system at generatron . com, to join our Slack Community, follow @generatron on twitter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36289201a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>