<?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 Markku Kero on Medium]]></title>
        <description><![CDATA[Stories by Markku Kero on Medium]]></description>
        <link>https://medium.com/@markkukero?source=rss-5d7deeb137bc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WbYGkGcJKJeCUdj0LRRF7w.jpeg</url>
            <title>Stories by Markku Kero on Medium</title>
            <link>https://medium.com/@markkukero?source=rss-5d7deeb137bc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:52:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@markkukero/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[Brand new legacy code is developed every day]]></title>
            <link>https://medium.com/@markkukero/brand-new-legacy-code-is-developed-every-day-7409a5472fc9?source=rss-5d7deeb137bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/7409a5472fc9</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[information-technology]]></category>
            <dc:creator><![CDATA[Markku Kero]]></dc:creator>
            <pubDate>Thu, 17 May 2018 18:49:04 GMT</pubDate>
            <atom:updated>2018-05-17T18:49:04.854Z</atom:updated>
            <content:encoded><![CDATA[<p>A few years ago, we discovered that <a href="http://www.eqela.com/">Eqela</a> technologies had a very useful and important application in projects involving modernization of older software systems, often labelled “legacy systems”. As a result, we have spent a lot of time over the past few years helping large companies and government organizations in the planning and execution of the modernization of their legacy IT systems, essentially converting very large amounts of code from old platforms and technologies like FoxPro, Visual Basic and RPG to more current platforms like C#, Java or JavaScript.</p><p>We ended up meeting with a lot of clients and potential clients. Clearly the pain brought by legacy systems is very much real, and the requirement for modernization and upgrade is really there, for various reasons. The amount of legacy code and legacy systems out there in production is clearly very substantial. But the amount of technologies involved is also substantial. From the more “obvious” technologies like eg. FoxPro, RPG or COBOL that are very clearly “old”, we started to also get inquiries for modernization from “newer legacy platforms”, such as PHP, older versions of Java and C# and Python. While the <a href="http://www.eqela.com/transcend">Eqela Transcend</a> service was always clearly intended and targeted as a service for legacy modernization in particular, over time it started to be less clear to us what exactly the word “legacy” really means. Where one company is actively investing money and resources to development of new software in a particular environment, another is investing to modernize away from it.</p><p>And the more we have looked around and observed how software is being developed within the companies that we have come to contact with, the more it has seemed typical that on a daily basis, developers are developing on platforms that are not considered up to date by the company, and usually they know it very well. So when modernization discussions take place, these are of course the legacy platforms that will be discussed. In other words, brand new legacy software is being developed on a daily basis. So clearly the exact meaning of what is legacy and what is not is very subjective, and depends greatly on one’s perspective. But whatever that perspective may be, there is an inherent, constant need for software teams to stay up to date and to evolve and improve their systems. Sometimes that involves more dramatic shifts like moving from RPG to Java or Visual Basic 6 to JavaScript. But sometimes the transformations are more subtle, like moving from Java 6 to Java 7, or from .NET WebForms to MVC. Or perhaps from Backbone.js to React. Various combinations exist. But those technology movements, and the pressure they put on software engineering teams, are very real.</p><p>But legacy is also not necessarily always as old as we may think, largely because the speed at which the overall industry moves is sometimes breathtaking. This month’s cool new gadget is next month’s legacy platform. And this is clearly visible in the technology roster of actual projects, especially in companies that are continuously starting new projects. Each project easily ends up being developed with a different technology platform as compared to the previous one, following whatever is current at the time of starting the project, ultimately resulting in a confusing mish-mash of different technologies, many of them ending up obsolete and unsupported. Indeed, one of the many reasons why we are having so many security issues in this world right now is precisely because those systems fall into the “unsupported legacy” category sometimes even before they are completed, and never even get a chance at being secure, properly maintained or updated.</p><p>Ideally, we would be able to continuously update and upgrade existing code in such a way that when the new technologies arrive, we would not need to redevelop from scratch nor would we need to accept that “it is what it is and let’s just hope it keeps running”, but could more easily take what we have and upgrade it. But obviously, given that it seems that the technology landscape moves faster than the developers in development projects, this is highly challenging. With the currently popular model where companies desperately scramble to find legions of developers to do this manually and with hard labour, clearly we don’t have any reasonable hope of success. At present, a massive amount of money is being spent in development and redevelopment, poor code is being written, and the end result is just more legacy.</p><p>We at Eqela believe that automation is a key towards solving this problem. Many of the technical action points to perform in these technology upgrades are prime candidates for automation. One of the usual prime examples of an automated solution like this is of course the Eqela Transcend translation engine, which can take software source code written in one programming language, then rewriting it into a new version of the same software in another language. Aside from being amazing, this absolutely helps, and tremendously accelerates these projects. In addition to that though, we are also very aware that this does not magically solve all problems, and the actual process of modernization goes much further than just translating the source code from one language to another. Often, logic needs to be changed. Processes altered. User interface improved. Developers retrained. And many other things. All of which can also benefit from automation. The way it seems is that the exact process is individually unique to each customer organization, but the overall approach is not, and the applicable automation solutions in each case can be based on a common set of core principles and technologies.</p><p>We currently have many of those processes and technologies in place, proven and tested, with solid learnings and experiences resulting from several years of real world projects. We also have many more new ideas, and a lot more work to do to improve things even more. To be truly successful though, and to truly make a difference, we also need to continue to cooperate and collaborate with others. As such, we would want to also continue to explore common experiences and to form new partnerships with forward-looking companies and individuals that would hopefully also even stand to benefit from a more effective way to continuously upgrade their technology platforms. If that’s you, I hope we will be able to connect. We have a lot of work to do and a lot of “legacy” systems and technologies to address.</p><p><em>Originally published at </em><a href="http://www.markkukero.com/2018-05-brand-new-legacy-code-is-developed-every-day/"><em>www.markkukero.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7409a5472fc9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Write less code: Try the trycatch keyword]]></title>
            <link>https://medium.com/eqela/write-less-code-try-the-trycatch-keyword-b73e275a25e5?source=rss-5d7deeb137bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b73e275a25e5</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[sling]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[csharp]]></category>
            <dc:creator><![CDATA[Markku Kero]]></dc:creator>
            <pubDate>Thu, 10 May 2018 18:07:18 GMT</pubDate>
            <atom:updated>2018-05-10T18:07:18.461Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the main objectives of <a href="http://eqdn.tech/sling/">the Sling language</a> has always been to try and make life simpler and to reduce the need for typing, and to reduce the overall amount of source code needed to do something. And one of the <em>most annoying</em> repetitive things that I personally as a programmer have spent a lot of time and keystrokes on, is the try-catch statement. You know, it’s the classic, you want to read a file (nothing complicated, no big deal)..</p><pre>data = Files.readAllBytes(path);</pre><p>And as all Java programmers already know, if you try that, a great disappointment will follow…</p><pre>error: unreported exception IOException; must be caught or declared to be thrown</pre><p>So from what was just a simple line of code, you’ll now have to take a deep breath and start typing. You’ll work your way towards this monster..</p><pre>try {<br>    data = Files.readAllBytes(path);<br>}<br>catch(Exception e) {<br>    e.printStackTrace();<br>}</pre><p>(And this monster is already greatly simplified by using “Exception” instead of “IOException” and then adding yet more lines of code in a different place in the file to import the IOException..)</p><p>So from what was a simple one-liner, the programming language here forced us to turn it into a 6-liner with three times the amount of typing. And of course this is not a one-time incident. Over the lifespan of a programmer, one will do this countless times, over and over each day. Obviously from time to time you get tired and “lazy” and don’t want to type that printStackTrace because “that wouldn’t happen anyway”, and over time important errors go missing, and terrible things happen to our bank accounts and insurances (not kidding).</p><p>Of course that was not Sling. That was Java. But we do have the same construct, the classic try-catch statement, also in Sling:</p><pre>try {<br>    doSomething()<br>}<br>catch(e as exception) {<br>}</pre><p>(As of slingc r305, the language now has a new built-in data type “exception”, which maps to “System.Exception” for C#, “java.lang.Throwable” on Java and a regular object on JavaScript.)</p><p>As we started to think of ways to improve this, one of the first things we did was to make that exception parameter declaration optional. So the previous snippet can be also expressed like this:</p><pre>try {<br>    doSomething()<br>}<br>catch {<br>}</pre><p>(If no parameter is given to catch, the “e as exception” is automatically assumed)</p><p>Although better, that’s still not so very convenient, and the error still goes missing. And doing the “print stack trace” in a cross-language fashion is not at all a one-liner (on Java you’ll do “e.printStackTrace()”, on C# “Console.WriteLine(e.ToString())”, on JavaScript maybe “console.log(e)”), so there’s a lot of typing left there. Of course you can do a utility function for it, which would be helpful.. But for the common case of just catching the exception and spitting it out, we came up with something new:</p><p><strong>The <em>trycatch</em> keyword</strong></p><p>It works like this:</p><pre>trycatch {<br>    doSomething()<br>}</pre><p>And of course like always in Sling, a one-liner block can be shortened:</p><pre>trycatch:<br>    doSomething()</pre><p>And as a particular case of the <em>trycatch</em> keyword, a one-liner block can also be turned into a single statement:</p><pre>trycatch doSomething()</pre><p>These would all now translate to this kind of Java code:</p><pre>try {<br>    doSomething();<br>}<br>catch(Exception e) {<br>    e.printStackTrace();<br>}</pre><p>Or this kind of C# code:</p><pre>try {<br>    doSomething();<br>}<br>catch(System.Exception e) {<br>    System.Console.WriteLine(e.ToString());<br>}</pre><p>Or this kind of JavaScript code:</p><pre>try {<br>    doSomething();<br>}<br>catch(e) {<br>    console.log(e);<br>}</pre><p>That’s a lot of typing removed.</p><p><em>But wait, there’s more!</em></p><p>The trycatch keyword can also be used as an expression. The <em>trycatch expression</em> evaluates to true if the block executed without exceptions, or false if exceptions were encountered. So you can do stuff like this:</p><pre>if not trycatch doSomething() {<br>    PRINT &quot;Error took place&quot;<br>    return false<br>}</pre><p>But of course the <em>assert statement</em> is meant to make that one shorter:</p><pre>assert trycatch doSomething():<br>    PRINT &quot;Error took place&quot;</pre><p>This ends up being a really rich statement packed into a small space. It is equivalent to the following C# code:</p><pre>if (!((System.Func&lt;bool&gt;)(() =&gt;<br>{<br>    try<br>    {<br>        doSomething();<br>    }<br>    catch (<strong>System</strong>.<strong>Exception</strong> e)<br>    {<br>        System.Console.WriteLine (e.ToString());<br>        return (false);<br>    }<br>    return (true);<br>}))())<br>{<br>    System.Console.WriteLine (&quot;Error took place&quot;);<br>    return (false);<br>}</pre><p>Or the following in Java:</p><pre>if(!(new Object() {<br>    <em>public</em> <strong>boolean</strong> execute() {<br>        try {<br>            doSomething();<br>        }<br>        catch(java.lang.<strong>Throwable</strong> e) {<br>            e.printStackTrace();<br>            return false;<br>        }<br>        return true;<br>    }<br>}.execute())) {<br>    System.out.println(&quot;Error took place&quot;);<br>    return(false);<br>}</pre><p>Or something very similar in JavaScript.</p><p>The trycatch keyword, along with the exception data type, is now available in slingc r305 and newer. Just use the <a href="http://eqdn.tech/eqela-cli/">Eqela command line interface</a> to build and update your build.qx file with:</p><pre>use eqela:sling:r305</pre><p>Happy hacking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b73e275a25e5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/eqela/write-less-code-try-the-trycatch-keyword-b73e275a25e5">Write less code: Try the trycatch keyword</a> was originally published in <a href="https://medium.com/eqela">Eqela</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing the Eqela Command Line Interface (eqela-cli)]]></title>
            <link>https://medium.com/eqela/introducing-the-eqela-command-line-interface-eqela-cli-c0a6758c81bc?source=rss-5d7deeb137bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0a6758c81bc</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[sling]]></category>
            <dc:creator><![CDATA[Markku Kero]]></dc:creator>
            <pubDate>Thu, 12 Apr 2018 21:48:03 GMT</pubDate>
            <atom:updated>2018-04-12T21:48:03.823Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever since the <a href="http://eqdn.tech/sling">Sling programming language</a> was first introduced, Sling programs have been compiled with the “slingc” compiler, using the <a href="https://github.com/eqela/jkop">Jkop framework</a> as the standard library. This has worked well, and continues to be the best way to make Sling programs. However, some amounts of challenges have been observed in version management, particularly when new versions of the compiler and the Jkop framework have been released.</p><p>To address those challenges and more, we decided to create a new command line interface named the “Eqela Command Line Interface” (eqela-cli). This in itself is of course written in Sling, and is <a href="https://github.com/eqela/eqela-cli">available on GitHub</a>. Precompiled .NET executables (which can be used with Mono also on Linux and Mac OS X) are available for direct download on <a href="http://qx.eqela.com/">qx.eqela.com</a>. The “eqela” tool provided by eqela-cli normally executes build scripts named “build.qx” (which you will find in all modern Sling projects). Inside the build.qx file, the developer of the software module can then also define the versions of the compiler and libraries used, along with other definitions for how to build the software. The Eqela CLI tool will then download, install and use the appropriate versions of the compilers and libraries for each project. Consider it as the NPM, Maven, Ant and/or Make of Sling development.</p><p>To install the Eqela CLI tools, simply download the latest ZIP file for eqela-cli from the above link on <a href="http://qx.eqela.com/">qx.eqela.com</a>, and unzip the file. Then the syntax of compiling something with the tool is as simple as:</p><pre>&lt;path-to-unzipped-directory&gt;/eqela.exe build.qx</pre><p>If you are on Linux or Mac OS X (using Mono), then prefix the above command with “mono”.</p><p>This is of course assuming you have a build.qx file available. This is something you would create as a developer, but these are also frequently shipped with existing Sling projects. As a sample, you can download the eqela-samples package from the Eqela Github (this is assuming you have a the git tools installed):</p><pre>git clone <a href="https://github.com/eqela/eqela-samples.git">https://github.com/eqela/eqela-samples.git</a></pre><p>After doing so, you can use your Eqela tool to compile the samples:</p><pre>&lt;path-to-eqela-cli&gt;/eqela.exe eqela-samples/build.qx html</pre><p>If all is well, this would produce a number of “index.html” files in subdirectories of the “build” directory in your eqela-samples. Those can be opened in your web browser.</p><p>For sample build.qx files and for authoring your own, do go through the existing ones found inside the projects under the <a href="https://github.com/eqela">Eqela GitHub account</a>.</p><p>(For those of you who were fast enough to use the “qx” tool, eqela-cli now fully and completely replaces qx)</p><p>Happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0a6758c81bc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/eqela/introducing-the-eqela-command-line-interface-eqela-cli-c0a6758c81bc">Introducing the Eqela Command Line Interface (eqela-cli)</a> was originally published in <a href="https://medium.com/eqela">Eqela</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>