<?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 Vladas Saulis on Medium]]></title>
        <description><![CDATA[Stories by Vladas Saulis on Medium]]></description>
        <link>https://medium.com/@saulis.vladas?source=rss-cb0d86969eb9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ay5wJSn9n8AWrcoWD3vu6A.jpeg</url>
            <title>Stories by Vladas Saulis on Medium</title>
            <link>https://medium.com/@saulis.vladas?source=rss-cb0d86969eb9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:41:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saulis.vladas/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[Confessions of a Naïve Programmer (23)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-23-ffafa2c23c84?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffafa2c23c84</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[everything]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[universe]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 14:36:09 GMT</pubDate>
            <atom:updated>2026-11-19T14:36:09.720Z</atom:updated>
            <content:encoded><![CDATA[<p>The documentation to my life</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oCPBjUJyILzQikiS" /><figcaption>Kiel seaport — — Photo by <a href="https://unsplash.com/@h3p?utm_source=medium&amp;utm_medium=referral">Hilthart Pedersen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Continued from <a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-22-ed31fd35fed7">Part 22</a></p><h4>7.3 Changes in Riga</h4><p>The Riga-Stockholm ferry line in Riga changed hands. Consequently, I received an invitation to come to Riga. The previous company used a Finnish terminal-based reservation system, which was outdated in every way. They paid crazy money for it — system support cost 5,000 per month, forcing them to raise ticket prices. I made a proposal: a one-time fee of €20,000 and a monthly payment of €500 for maintenance. The owner agreed almost immediately and asked for the system to be installed within two weeks.</p><p>We discussed it, and I decided to use a server in Stockholm — the same one that ran Cargo-Trolis and Scansov’s mail server. We signed the contract and the next day I went to Stockholm straight from Riga. When I arrived at Scansov, Yuri asked if my system would generate a lot of traffic (their internet connection speed was 128 KB/sec at the time). I said they wouldn’t even notice (and I wasn’t lying).</p><p>I spent a couple of days installing the Progress database, filling tables with initial data, doing a test route, and much more. I also had to program the printing of their tickets — they were printed forms, requiring data to be typed into specific locations. This was their requirement, although at LISCO we decided to print tickets on A4 paper. This was also more convenient for the web client, which could be used by both companies. Printing from the web client was done by generating a PDF document.</p><p>The next stop was the ferry terminal, where the Riga residents sat right in the central hall. I installed the Windows client on four workstations, one day for installation, followed by three days of training. I also checked ticket printing and made a few local adjustments — the operators had a different printer model. Now it was time to return to Riga, install the workstations there, and train the operators. It should be noted that Cargo-Trolis was also included in the contract at no additional charge. It was also installed in Riga (it was already operating in Stockholm on the Klaipėda line). Training it took a little longer, as did configuration. After a final check of all functionality and operator readiness, the owner and I signed the acceptance certificate, and I left for Klaipėda. After some time, I received a money transfer for 20,000 euros ($23,000).</p><h4><strong>7.4 The Klaipėda–Kiel Line Issue</strong></h4><p>I have already briefly mentioned the issue with the German office in Kiel. They did not want to implement Trolis because they were using a lightweight reservation system that was tightly integrated with their accounting software, which was built on Navision. Furthermore, they used their own reservation numbering scheme and manually entered cabin categories — the names of which did not correspond to ours — while passenger names were not assigned any identifiers at all. All of this led to the decision to use CSV files for data import and export between the two systems. Their export file had to conform to our import encoding, and our export file had to be compatible with their software.</p><p>The LISCO manager and I went to Kiel to clarify the final details and contact a representative of the company that would be carrying out the work. Together with this representative — a programmer — we refined the project that I was to complete during my final visit to Kiel. We also clarified the financial side of the project. I was offered 10,000 German marks (about 5,000 euros). Accordingly, their programmer earned twice as much. It was my first encounter with discrimination against programmers — specifically, those who were not German. That’s what they told me straight out. I was forced to accept their terms. I chose not to argue.</p><p>We agreed that I would come back in a month, prepared to carry out this project, and the manager and I went home. Back home, I had to develop import and export modules. In addition, I have accumulated work with my Trolis system that is not related to Kiel. I needed to roll out Web-Trolis to various agencies in Lithuania — specifically, the agencies of Krantas Shipping. Web-Trolis required almost no extensive explanations or training. I simply sent a link, and the agencies could start using it immediately. Some agencies preferred the full-fledged graphical version of Trolis, which I installed for a fee of 1,000 litas (or 500 euros for foreign agencies).</p><p>Trolis has become the de facto standard among Lithuanian travel agencies. Even the Klaipėda School of Tourism asked me to install Trolis for them (both the client and the server, along with a test database). I offered them a significant discount, but they didn’t want to pay anything at all. Perhaps I made a mistake by refusing to install Trolis for free; This could have been a big advertisement for my system.</p><p>My Finnish competitors from the town of Vaasa weren’t sitting idle, either. They made their reservation system available directly on the Internet for general use — not just for agents. They also developed a kiosk version, which they installed in airports, train stations, and ferry terminals. That’s when I realized a simple truth: I physically couldn’t keep up with them. I was on my own — acting as both programmer and marketer — up against a ten-person firm. Five of their staff worked in a call centre, handling reports of issues or errors. That made me wonder about the quality of their system. In contrast, I would receive only a couple of calls a month from users asking for an explanation of how something in my system worked. There were no errors at all.</p><p>A month passed, and I coordinated with the Germans to set a date for my trip to Kiel. A few days later, I arrived in Kiel and met with their programmer. Unlike my previous trips, this time I had to cover all my own expenses — hotel, meals, and even beers at the local bars. But the payout for the project more than covered my expenses. We worked very closely together and managed to complete the project within a week. All that remained was to test it in a real-world scenario. We tested the German side of the project using my export data; once that was done, I was able to return to Klaipėda to test the import side from my end. After a few final adjustments, we signed the acceptance certificate, and I was able to collect my payment.</p><p>Such projects take a lot of mental energy. Mapping one database schema to another requires the utmost attention and careful decision-making — especially when certain data points are missing from the target database’s tables. It helped that I had previously denormalized my own database; the three fields linking the tables proved invaluable in ambiguous situations, as did the decision to organize the tables based on their logical purpose rather than just their relational connections. I could certainly lead a masterclass on database architecture, but it would be difficult to sway those who learned database design from textbooks that push strict normalization to the point of absurdity.</p><p>End of Chapter 7.</p><h4><strong>8.0 My work at Scansov</strong></h4><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffafa2c23c84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confessions of a Naïve Programmer (22)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-22-ed31fd35fed7?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed31fd35fed7</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[universe]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[everything]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 14:42:19 GMT</pubDate>
            <atom:updated>2026-11-18T14:42:19.802Z</atom:updated>
            <content:encoded><![CDATA[<p>The documentation to my life</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wFb_zkEjpht4Tcs-" /><figcaption>Photo by <a href="https://unsplash.com/@adeolueletu?utm_source=medium&amp;utm_medium=referral">Adeolu Eletu</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Continued from <a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-21-642a8b9ccb55?postPublishedType=repub">Part 21</a></p><h4><strong>7.0 Personal enterprise “ProData”</strong></h4><blockquote>“It ain’t what you don’t know that gets you into trouble. <br>It’s what you know for sure that just ain’t so.”<br>— Mark Twain</blockquote><p>On July 12, 1999, I founded a solo business called ProData. That moment divided my career (and life) into two parts. The first half was spent working for my bosses, and the second was spent working for myself, under contract, earning significantly more money (and work) that way. My company lasted exactly 25 years.</p><p>There were two reasons: a contract with Scansov had been decided that I would develop a cargo accounting system for ro-pax and ro-ro vessels; and a contract to support the passenger reservation system on the Klaipėda-Stockholm and Klaipėda-Kiel lines — the same one I had developed while at Krantas Shipping. I realized that working at Krantas Shipping, I wouldn’t be able to fulfil both contracts. The Scansov contract was 60,000 kronor ($8,500), and the contract with LISCO (Lithuanian Shipping Company) was 6,000 litas ($1,500) per month. Both contracts required very intensive programming.</p><p>On July 15, 1999, I went to Sweden with my eldest son (Roma) to show him Stockholm at the same time. We signed the contract a week later, and I received an advance payment of half the contract amount. I sent my son home, and Yuri and I went to the Norwegian fjords for a week to celebrate the deal. It was an unforgettable trip. We rented a house on the shore of the fjord for NOK 700 for two. I was amazed by the very beautiful landscape and the generally quiet beauty of Norway’s nature.</p><p>Right after my vacation, I came home to Klaipėda. The first thing I did was buy a Nokia 5110 mobile phone. This phone was very common and popular in Scandinavia. My phone number hasn’t changed since then. Second, I installed DSL internet at home with a business-grade 128kbps speed. It was expensive, but it was perfect for my kids’ online gaming, and the games didn’t interfere with my work too much. I connected the internet directly to my server computer (Pentium Pro 200 + Linux), which also served as a router and firewall for my local network. And there were already three computers in it.</p><p>In mid-August, I had the flu, which led to complications affecting my pancreas. I developed severe pancreatitis. For three days, I drank only water and ate nothing. The doctor said I had classic “traveller’s syndrome” from constantly changing food and water during my travels. Eventually, the inflammation went away, and part of my pancreas healed. After that, I got a flu shot. It was some Belgian vaccine. I paid about $50 for it. I haven’t had any more vaccinations, not even for COVID. My immune system has become stronger, and the strangest thing is, it’s worked so well that I haven’t been sick with anything, not even COVID, for 27 years now.</p><p>The contract with LISCO also stipulated that I would develop a graphical client for the reservation system, and that I would install the system server (Linux) at their place. Thus, I began developing Trolis V3.0. This version contained not a single line of what had been developed at Krantas Shipping. I don’t credit the <em>second system effect</em>, as it was this version that earned me my future success. I attracted the attention of those in Riga — those servicing the ferry line to Stockholm. So, I hurried. I built the basic framework of the system at home in one month, and then went to Stockholm to begin work on the cargo system, which I also decided to develop graphically.</p><p>When I arrived in Stockholm, I bought a Progress V8.3B license for Linux — they’d just released a version for it. It cost me about $3,000, but it gave me peace of mind about the legitimacy of my work. When I started working at my company, I had to buy all the programs (including Windows and Microsoft Office). I installed Windows 98 on my main computer, although I must admit it was less stable than Windows 95. But time went on and I had to keep up with new versions of programs and systems.</p><p>I got a job in the server room at Scansov. They bought three servers at once — one for the firewall (which I also configured), one for the cargo tracking system (called Trolis), and a third for Microsoft Exchange Server (the most powerful one). All the servers were Pentium II, 450 MHz, with varying amounts of memory and different numbers of processors.</p><p>Around that time, Scansov received a dedicated 128Kbps line and 64 real IP addresses, and I had to immediately configure the firewall. I sacrificed half of the address grid. But the other half was safely hidden behind the firewall. I was using Linux and “ipchains” with kernel 2.2.12 (Red Hat 6.1). The system was frozen on this version, and this later yielded an unexpected advantage: a vulnerability was found in “iptables”, the replacement for “ipchains”, so it didn’t affect my installation.</p><p>This firewall lasted 20 years without being hacked, although the system log showed constant outside attacks. Much more was done to the firewall later — a double-sandwich of a mailer and spam filter, which was implemented using port forwarding, a telex redirected to an email address and then to a printer. I also added hosts to the whitelist via a special email request. All this allowed me to sign a maintenance contract for $1,000 per quarter.</p><p>Having finished the firewall, I began installing the server for Cargo-Trolis, or simply C-Trolis. I installed the same Red Hat 6.1 and Progress V8.3B. I configured everything, and now I could start developing the program. I completed it in three months — from October to December 1999. I also distracted myself by creating Trolis V3.0, which, in early 2000, allowed all LISCO and Krantas Shipping operators to install the graphical client. I jokingly or seriously called it extreme programming (by analogy with the book “Extreme Programming” that was published at the time).</p><p>I spent my first Christmas in Stockholm, and returned home just before New Year’s Eve — New Year 2000! That was my first six months in my new role as a head of my own company, ProData.</p><h4><strong>7.1 Developing Trolis’s success</strong></h4><p>The most important thing I did in the new version of Trolis was to develop a system of updates that I installed on the server, and clients downloaded them at startup. Second, I launched local databases on clients that cached all auxiliary tables in the client’s memory, significantly speeding up further work. These tables were also updated when Trolis clients started. This way, I created a tool for further development without reinstalling the Trolis client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EJaVCHdM-vwjFlsyRar77Q.png" /><figcaption>Trolis V3.0 — Main Reservation Window (year 2000)</figcaption></figure><p>I worked in Klaipėda for a while, but the general manager at LISCO invited me on a trip to Kiel. The reservation system had long had a problem with transferring reservation data. This was done by downloading the reservation data to a file, which was then sent to Kiel. The same thing happened in Kiel. Data conflicts occurred quite often because the received files were entered manually. Sometimes data was duplicated, creating the conditions for overbooking. The Kiel team didn’t want to use Trolis for reservations, as they used “Navision” for both accounting and reservations.</p><p>The first trip was an exploratory one, and I took my youngest son, Andrius, along with me. The negotiations were difficult — both programs, mine and theirs, needed to be supplemented with an import/export module. Their program was also developed by a third-party company, and a contact group had to be formed to implement both projects simultaneously, followed by extensive testing. Furthermore, both parties had absolutely no idea how each other’s systems worked.</p><p>While we were there, Kiel was celebrating Kieler Woche (Kiel Week). This festival took place at the end of June and was considered the fifth season. Various sailing ships from all over the world docked at the port of Kiel. We even visited a Russian sailing ship incognito, without letting anyone know that we were from Lithuania. My son ate ice cream by the kilograms. Everything was completely new to him. It was his first time abroad, and then he announced that he would leave Lithuania (he has now returned to Klaipėda from Sweden after several years and says that Klaipėda is his favourite city; Klaipėda has truly changed a lot in the 35 years of independence).</p><p>Upon my return, I immediately went to Riga — I was asked to demonstrate my Trolis system. At the same time, I received an offer to be a subcontractor for Baltic Amadeus (in Vilnius) for their VPK (State Securities Commission) project. They promised $10,000.</p><p>I created a special testing database for the Rigans and placed it on my Stockholm server. I installed the Trolis client there and explained how to use it. We hadn’t yet agreed on a fee, but I gave them a rough figure of 20,000 euros. The trip took three days. The Rigans liked my system, especially the fact that it could be installed in Stockholm. They were impressed by the speed of the system with the server in Stockholm. We ultimately agreed to meet again at the end of the year.</p><p>In August 2000, I went to Vilnius and signed a contract with Baltic Amadeus. It was a rare contract where I worked in a group of programmers and where I wasn’t the lead programmer… I struggled with their quirks and intense competition, even demanding that I arrive early in the morning according to their schedule (absurd?). They even changed one API once without warning me, and the next day they declared that there was a bug in my program (with unconcealed pleasure). Overall, the relationship was very toxic. They even seated an outside programmer across from me, who kept looking at me and smiling.</p><p>I completed my part of the work as quickly as possible and left Vilnius before Christmas. I received a huge amount of negative energy, and for a whole month afterwards I couldn’t work. I did get my $10,000 — they couldn’t find any flaws in my programs. The only positive thing I got was a brand-new HP laptop, which I bought from them on very good terms and which I bought back within six months (Baltic Amadeus also sold computers).</p><h4><strong>7.2 Web client for Trolis</strong></h4><p>I spent the first half of 2001 developing a web client for Trolis. This was my first attempt at writing JavaScript. Another attempt at writing was SPA (Single Page Application). I wanted to be able to work on a single page all the time, dynamically retrieving data from the server when needed. I started looking for a way to do this. To my shame, I didn’t know AJAX existed, so I invented it myself. Later, I learned that Internet Explorer 5 implemented AJAX as an ActiveX object.</p><p>But there was another browser I wanted to support — Netscape Communicator. And it didn’t have AJAX. Eventually my attention fell on IFRAME. With it, I could load any resource from the server by specifying different addresses. The only limitation was its synchronous operation, but this didn’t affect my program in any way. There were actually three pages. The first page allowed me to select a flight and the outbound and return dates for a new reservation. Then, I was redirected to the main reservation page. The third page was for searching for an existing reservation, returning all reservations matching the search query. Clicking on the reservation number took the program back to the main page.</p><p>I remember the winter being very cold. My room was 17 degrees Celsius. I was working on my newly acquired laptop, so I could have found a warmer spot. I finally found a spot where it was 19 degrees — next to the radiators. I had to move some things around in my room. I called a friend of mine in Sweden, and he also said his room was 17 degrees Celsius, and turning on additional electric heating was very expensive.</p><p>I completed the web client in July 2001, writing about 190 KB of JavaScript code. The main reservation page loaded about 150 KB of code and ran very quickly on 128 KB/sec. lines, which was already the norm at the time. I shut down the server at Krantas Shipping and installed a new Linux server at LISCO at their request. Everything worked well. The system was finally complete, including a web interface for small and medium-sized travel agents, as well as LISCO itself (they used both interfaces).</p><h4><strong>7.3 Changes in Riga</strong></h4><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed31fd35fed7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confessions of a Naïve Programmer (21)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-21-642a8b9ccb55?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/642a8b9ccb55</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[universe]]></category>
            <category><![CDATA[everything]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 12:56:26 GMT</pubDate>
            <atom:updated>2026-11-18T13:42:10.768Z</atom:updated>
            <content:encoded><![CDATA[<p>How I programmed my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PpfaMga9oBRGTyEv" /><figcaption>Ferry line — — Photo by <a href="https://unsplash.com/@martinostsee?utm_source=medium&amp;utm_medium=referral">Martin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Continued from <a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-20-d9ac928ea007">Part 20</a></p><h4><strong>6.4 Application Server for Trolis</strong></h4><p>To test AppSever, I needed another server. My workstation ran Linux. Actually, I dual-booted, and the second system was Windows 95. But I spent 99% of my time working on Linux. This is where I communicated in newsgroups, both in Lithuania and on global forums. I also browsed the web, launched my own mail server, and had my own web server.</p><p>I was at an international ferry terminal, and the main office was in the city centre. A 128Kbps fibre optic line connected them. 64Kbps was allocated for digital telephone service, which then connected to the digital local telephone exchange. It connected to a fibre optic cable under the Baltic Sea to Stockholm. The speed was 8Mbps back then. The connection between our office and the Stockholm office was 64Kbps, but the latency was low — the ping was 22ms. Therefore, operators at the Stockholm ferry terminal experienced minimal input lag. However, it was still quite annoying.</p><p>With a second server, I could already test the concept of working via AppServer. To do this, I first needed to find Progress V8.2A. Some friends from the banking industry helped me with this, one of whom worked in Vilnius at Baltic-Amadeus, a company that distributed Progress solutions throughout Lithuania. When the distribution arrived (for SCO OpenServer), I needed to install it on Linux. I discovered that by copying a few SCO libraries to Linux and adding a binary compatibility module, Progress worked perfectly on Linux. I even posted instructions on how to install SCO Progress on Linux to the newsgroups.</p><p>Then I got hold of an old serial communication card for my server. It had four modem interfaces. Then I received two new modems from my boss, and now everything was ready for the experiment.</p><p>I launched the Progress client on my server, modified to work through AppServer. Then I connected the modems with a telephone cable and started the modem on my side, telling it to route through itself. When the second modem connected, a unique situation arose: the two servers were connected by two routes, and the primary one was routed through the modems. This simulated a connection with approximately the same ping as from Stockholm. Working with reservations — entering fields, selecting from lists — worked locally on my server. Then I clicked “Save,” which called the procedure on the primary server. After about three seconds, I received an “OK” response. Bingo! AppServer was working! Now I needed to test the speed with a regular client-server configuration. I connected the Progress client remotely, via modems, to the SCO Progress server. The same “Save” call now took about 30 seconds. This was what needed to be proven. The technology worked well, and now it was time to go to Stockholm for further testing.</p><h4><strong>6.5 First time in Stockholm</strong></h4><p>I showed my experiments to my boss, and he really liked them. He gave me the go-ahead for a trip to Stockholm. So, I went to Stockholm for the first time in the spring of 1998 for four days. My boss came with me.</p><p>Stockholm struck me from the very first moment. It’s a very beautiful and clean city. The food is excellent. I’d also like to highlight the architecture. Stockholm’s architecture was a symbiosis of many historical styles, blending seamlessly with modern styles. I even think an architecture textbook could be compiled solely based on Stockholm. I didn’t notice a single neglected building. All the buildings were well restored where needed. Compared to Helsinki and London, Stockholm looked incredibly fresh, even the old town.</p><p>Stockholm’s transportation system was once recognized as the most advanced in the Western world. Based primarily on rail infrastructure with a well-integrated bus system, it was a vast, extensive system. However, it should be noted that fares were very expensive. The Stockholm metro consisted of slightly outdated stations and ultra-modern new ones. But all the stations were imbued with a rational and functional style. There were no palace-like stations, as in Moscow. About two-thirds of the stations were on the surface.</p><p>We stayed on Södermalm Island, a hub of cultural and bohemian life. A local Lithuanian rented us a room with a kitchen in the basement of a five-story building. The entrance was from a courtyard enclosed by the surrounding buildings. In Stockholm, courtyards housed many services for the surrounding buildings — kindergartens, laundries, galleries, and even small botanical gardens. All of these were key-locked and inaccessible from the outside. Under the houses there were two- and three-story underground garages for local residents.</p><p>The next morning, we went to the Krantas Shipping headquarters, located right in the city centre. It was a rented one-bedroom apartment used as an office. The office had DSL internet with a speed of 64 KB/s. Three computers running Windows 95 were connected via the network. Terminal emulators (the same ones we used at the bank) were used to access the server in Klaipėda.</p><p>The essence of the test was to connect via a modem directly to my work server and check the operation via AppServer and with direct client-server mode. The results were identical to those in my setup in Klaipėda. AppServer provided a 10x improvement.</p><p>The next day, we went to the ferry terminal, where all the operators were relocated on departure day. I needed to inspect the computers and network and allocate space for an intermediate server. The idea was to run reservations on this server to ensure zero input latency, and send transactions to the main system server using AppServer. Back in Klaipeda I had to redesign Trolis for this mode of operation and then come to Stockholm to finally install the intermediate server and software.</p><p>We spent the rest of the day exploring the city centre. We strolled along the main tourist street, Drottninggatan, ate pizza at a famous restaurant, and walked home. My impressions of the trip were very positive.</p><h4><strong>6.6 LALZ</strong></h4><p>Since 1995 — the very beginning of the internet’s emergence in Lithuania — I’ve been participating in mailing lists. One of them was a Lithuanian Linux group. In it, we discussed various solutions for using Linux, as well as various problems such as questions about Lithuanianization of the keyboard and screen. At first, we all wrote in “shvepla”, using only pure Latin letters (without accents).</p><p>In late 1998, I was still working at Krantas Shipping when the Linux group raised the idea of ​​creating a Lithuanian-English dictionary. I wrote that if someone would send me the dictionary database, I would try to make it. I had the idea of ​​making it web-based. At the same time, a commercial dictionary for Windows, WinLED, appeared, released by an unknown company. After some controversy, it was discovered that it was written in Visual Basic, and one of the group members wrote that he could extract all the words by writing a keyboard and screen interceptor in VB (he didn’t provide details about how).</p><p>After some time, I received the complete dictionary file from him in text format. I found a fuzzy search program written at MIT online that, among other things, indexed files and stored the index resident in memory. To make my file searchable, I had to add special tags to it. All that was left was to develop a web page and run a web server on my work machine. The server part of the program was written in Perl, which allowed me to output fully formed HTML to the page. I limited the results to a maximum of 30 words, so that a one- or two-letter query wouldn’t overload the server. I displayed the results in two columns.</p><p>The success was incredible. I received emails from all over the world expressing gratitude for my work. The portal online.lt declared me celebrity of the week in their weekly reviews of the Lithuanian internet. People especially liked the fuzzy word search and the dictionary’s automatic bidirectionality. For example, you could enter the word “exelent” and get the exact word “excellent” and its translation in the results. The interface was very simple — one line for input and a couple of buttons for selecting options.</p><p>Everything was going well, but six months later, I received a call from the Special Investigation Service (STT) summoning me. They were investigating my copyright infringement and threatening to sue me for 20,000 litas. But they were most interested in how I’d decrypted the original database. I replied that I hadn’t decrypted it and that the information had been screen grabs. They didn’t believe me, to which I replied, “Check my computer if you don’t believe me.” They demanded to see my computer and told me not to worry, that everything would be in place. I handed it over and got it back two weeks later because they couldn’t confiscate it without a court order. The only thing they did was demand that I remove the translator’s page from the internet and handed over their investigation to the Copyright Agency.</p><p>I started looking for a lawyer and found a pretty good one. I was lucky. I paid only 50 litas, and the lawyer found two loopholes in the Copyright Law. The first is that it’s permissible to show (quote) partial content — less than 5%. The second is that it’s permissible to show parts non-commercially for educational purposes. Both of these points fit my case perfectly.</p><p>After some time, I was summoned to the copyright agency in Vilnius. The agent immediately started talking about 20,000 litas, as if they were the last resort. I showed him those two points in the law, and he backed down. I didn’t push it and offered a zero-sum solution: I’d close my page, and they, in turn, would drop their claims. That’s what we agreed on.</p><p>That’s how my online dictionary saga ended. When I left Krantas Shipping, I learned that STT had taken my computer after all. Moreover, Baltic Amadeus had posted a similar dictionary on their website. But they couldn’t implement approximate search, and translation direction had to be manually switched. Basically, they took my dictionary away from me.</p><h4><strong>6.7 Second trip to Stockholm</strong></h4><p>I prepared seriously for the trip. It wasn’t enough to just launch the concept I’d tested on my first trip; I had to apply it to the entire codebase. To run AppServer, I had to launch AppBroker on a specific port. The module connects to the broker, which launches a separate AppServer for each request and terminates it after the module completes. I needed to rewrite all transactions to use them with AppServer. I created a separate code branch for running a special version of Trolis in Stockholm. I also had to find a computer for the staging server, install Linux and Progress on it, and copy the entire new Trolis to it. This was the first Linux server that was installed for permanent use in production. I installed Slackware 3.5 with kernel version 2.0.34 on it.</p><p>I went to Stockholm at the end of the summer of 1998. Our staff helped me carry the server onto the ferry. Upon arrival in Stockholm, there were no problems at all — I just had to move the server 100 meters to a small room in the ferry terminal. That’s where it stayed the entire time. I was given a fair amount of money for the trip — a per diem plus 8,000 kronor ($1,000) for hotel and other expenses.</p><p>There I met Yuri, an IT assistant hired by Krantas Shipping. By then, he was already a Swedish citizen and worked for the Russian-Swedish company Scansov, which handled ship agency and chartering services. We spent half a day hanging around the server room, and then he drove me to my hotel. Coincidentally, he lived on the same commuter train line, two stations further from the city.</p><p>My hotel was in a place called “Barkarby” — about 20 km from central Stockholm — and it was called “Barkarby Hotel.” Getting to the ferry terminal required taking the commuter train five stops, then the metro five stops, and then a bus three stops. I bought a tourist card for 200 kronor per month. Besides transportation, it allowed me free entry to museums. In tourist areas, I could get discounts on some souvenirs and coffee at cafes.</p><p>I paid 400 kronor ($50) daily for a hotel room for two weeks, which came to 5,600 kronor. The remainder of the 8,000 kronor was entirely at my disposal. The hotel was a three-star, but very cozy. The breakfast buffet was quite decent. There was a pool table in the lobby, so I could play pool. The only drawback was that I had to travel to the ferry terminal, which took about an hour and involved two transfers.</p><p>I arrived at the ferry terminal the next day to connect the server to the network. All workstations had to be connected to the server. In the Progress modules, all AppServer calls were implemented through a macro, which was initially empty so that the system operated as usual — in client-server mode. Over the next few days, I gradually began connecting modules to work with AppServer. The most difficult part was redirecting printing — tickets and passenger lists. At one point, I had to switch over printing, and it took half a day, during which there was no printing at all. The operators were rushing me, and I worked under tremendous stress. Printing was the last one I connected to work through AppServer. Once everything was working, the operators’ workflow changed dramatically — there was no longer any delay in input because they were working with the server on the local network, while AppServer communicated directly with the server in Klaipėda at 64Kb/sec. This decision was so radical that Yuriy said he was “freaked out” (in a mild way).</p><p>I spent the remaining days at Scansov, as Yuri wanted to introduce me to his management regarding the creation of a similar program for cargo accounting at the same ferry terminal. We signed a preliminary agreement and began to work through the problem. Eight months later, I finally signed the contract, which led me to found my own company and leave Krantas Shipping.</p><p>End of Chapter 6.</p><h4><strong>7.0 Personal enterprise “ProData”</strong></h4><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=642a8b9ccb55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confessions of a Naïve Programmer (20)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-20-d9ac928ea007?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9ac928ea007</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[universe]]></category>
            <category><![CDATA[everything]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Sat, 31 Oct 2026 16:19:20 GMT</pubDate>
            <atom:updated>2026-10-31T16:19:20.943Z</atom:updated>
            <content:encoded><![CDATA[<p>How I programmed my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xZrAIxJgigdQT0wW" /><figcaption>Reservation systems — <a href="https://unsplash.com/@reganography?utm_source=medium&amp;utm_medium=referral">Samuel Regan-Asante</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Continued from <a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-19-2eb6aeffeac7">Part 19</a></p><h4><strong>6.0 Krantas Shipping and the Discredited Progress</strong></h4><blockquote>“Judge a man by his questions rather than by his answers.”<br>– Voltaire (?)</blockquote><p>I arrived at the international ferry terminal and entered the office of the firm “Krantas Shipping.” Ferry tickets were sold through small service windows in this office, which also contained a staff break room. In the far corner of the office was a small, cramped room housing an SCO UNIX server, along with another computer — a rather old i386 — sitting on a desk.</p><p>I connected to the server via Telnet, was given the password, and began investigating the issue. It soon became clear that the program used to generate the ferry passenger list relied on an SQL query spanning four tables, featuring chaotic JOINs and a complete lack of key indexing. In programming circles, this is known as the “N+1 problem” — and there were three such instances! Not only was the query flawed, but the database schema itself was incorrect, necessitating the addition of a lookup table. It was this very table that resulted in O(n²) (quadratic) time complexity. A few more months of operation, and the time required to generate the passenger list would have become unacceptable (though the system did include an archiving feature — evidently for good reason). And this was while the database was still only just beginning to fill up…</p><p>I reworked the SQL query, basing it on the passenger table and using “FOR EACH,” while pulling in data from other tables via “FIND FIRST.” I also added a missing index — and that was it. The system generated the list of passengers in just 2–3 seconds. The whole task took me about 20 minutes. My future boss was stunned — I had sped up the report 60-fold! So, there you have it: they tried to discredit Progress, but in the end, they only discredited themselves. I jokingly told my boss that “programmers” like that ought to be shot on the spot.</p><p>As a result, the head of the IT department offered me to work for them on this system. Regarding the salary, they agreed on 4,300 litas (1,075 dollars), which was higher than his own. There was nothing holding me back at the bank, so I switched to this job.</p><h4><strong>6.1 Codename — Trolis</strong></h4><blockquote>“Focus is a matter of deciding what things you’re not going to do.”<br>— John Carmack</blockquote><p>From the very first days, I began to clean the system from various SQL queries and from using the link table. It turned out that the system could exist perfectly well without them. I called the system Trolis (Ticket Reservation On-Line Internet System). I named the existing version V1.0. Now I was moving towards V2.0 by reworking the system on the fly.</p><p>For version V2.0, I redesigned the database schema towards easy denormalization. The original scheme was strictly normalized. This is where the need for a link table came from. I began to denormalize database, optimizing the system for reading and for quickly running reports. This resulted in some fields in the system needing to be duplicated during input, but this did not in any way affect the speed of the system. A couple of milliseconds when typing was perfectly compensated by fast reading work.</p><p>I created new fields in the three underlying tables to store the codes from the link table and duplicated all three fields from it into three fields in all three tables. Now any read on the system affected only two tables with a simple query on the third. The migration to the new version came gradually, and only after half a year I was able to start rewriting the reservation kernel. I also changed the system interface itself, but changed it in one day. It took several days to retrain the staff in Klaipeda and Stockholm (by phone). Only after this could I rewrite the system’s reservation kernel.</p><p>We still worked in the terminal interface, and I made V2.0 terminal too. The graphical interface was scheduled later for Trolis V3.0.</p><p>Other important work to improve the interface led to the fact that I eliminated the search for the booking number in a separate dialog in favour of direct input/output of a specific booking number on the general booking screen, because when communicating with the client we made the booking number the main part of the data that he had to have (remember). Search by other parameters has also been redone. Eventually the booking screen became the main screen where all the work happened. The staff was pleased.</p><p>I will not list all the innovations that I introduced into the reservation system, I will only say that I tried to rewrite the system completely with a new code and even a new look. I already realized its potential and planned to sell it to other ferry operators at some point in the future. My boss caught fire and tried to get involved. But even he later realized that he had no chance, since the code was completely rewritten at the time of my exit, and even later it was rewritten again (Trolis V4.0).</p><h4><strong>6.2 Trolis System Kernel</strong></h4><p>It’s hard to describe everything I did with the reservation system in my first year at Krantas Shipping. First, I made the main reservation window similar to a WYSIWIG editor. Everything the operator entered or changed in the reservation window (flights, seats, passengers) was saved with a single click of the “Save” button. More precisely, there were two options: “Save as booking” and “Save as ticket.” The core then compared the screen with the previous booking. It took into account what had been added, deleted, or adjusted, while simultaneously determining which seats were reserved and which were released. Afterwards, the old booking was saved in the history. Thus, my reservation system was “stateless”.</p><p>This was the main selling point of my reservation. Reservations guaranteed fair competition, with no one taking up seats until they clicked “Save.” The first operator to click “Save” got the seats.</p><p>Many reservation systems immediately reserve seats and set prices when selecting seats. If a customer left, seats weren’t released automatically, so the system had to asynchronously and periodically release “stalled” seats. This procedure typically occurred every 20–30 minutes. This led to unfair competition between customers. Subsequent clients did not see the stuck places for some time and also left, but a little later a client who came in could already see these places. In my reservation, however, I could freely browse different seats and prices without reserving them.</p><p>The next thing the kernel did was search for free places to reserve. But before that, if the kernel found places to be deleted, they were freed. The seat allocation algorithm was a five-pass process dependent on special hints. On the reservation screen, there was a string of magic characters that suggested how the reservation should proceed. By default, the algorithm started with the first available cabin and sequentially moved through all available seats encountered, taking into account the client’s gender. One of the prompts (G) allowed a man and a woman to share a cabin. Another prompt (X) reserved an exclusively full cabin, regardless of the number of guests (from 1 to 4). If there was a conflict regarding the client’s gender, the system issued a warning prompting the operator to correct the magic string or cancel the reservation altogether.</p><p>If the reservation was successful, a history entry was created. This completed the kernel’s work. The Progress transaction ran through the entire kernel, and if something went wrong, the entire transaction was rolled back and control was transferred to the main reservation screen with an appropriate error message. Trolis V2.0 didn’t allow you to reserve a specific cabin or reshuffle seats between completed reservations. These features were only added in V3.0, which was implemented in a graphical interface. But more on that later.</p><h4><strong>6.3 Conference in London</strong></h4><p>In the fall of 1997, my management allowed me to attend the Progress conference held in London that year. Moreover, they fully financed it — plane tickets, hotel accommodations, and the conference itself. They definitely saw the progress in the development of the system and how much it had changed for the better.</p><p>The conference audience was mixed. The Dutch and Norwegians dominated. Progress had local offices in both countries. There were representatives from the parent company in the US, too. They mostly led all the presentations. I was the only one from the former USSR. There was another from the Czech Republic. There were also people from Sweden, Denmark, and even from the Swiss bank UBS. I was mostly called Russian, since few people knew about Lithuania, or that it even existed.</p><p>The main topic of the conference was the presentation of the new version of Progress V8.2A, which introduced a new feature — Progress Application Server. It bypassed the standard client-server model by sending all necessary tables or result code over the network, significantly reducing overall network traffic. This version also introduced a graphical interface using UIB (User Interface Builder), but it was offered as a separate component that required an additional fee. Then the president of UBS bank met me (seriously!). He wanted to know if it was possible to run Progress on 700 clients. I replied that it was possible using AppServer. Then I told him that overbooking had to be taken into account, since it depends quadratically on the total number of clients, which would result in about 27 simultaneous requests to the server. I just didn’t know how much server power would be needed. At that time, Pentium Pro 200 computers were already available (I installed one at home in 1999), and you could order up to 512 MB of RAM. There were also models with 2 or 4 processors.</p><p>We also had lunch at the conference centre. They served fried salmon. The salmon was very fatty. It didn’t go over well with me — for the first time, my pancreas wasn’t working. And that was the first wake-up call. Two years later, I had a full-blown inflammation of the pancreas. “Traveler’s syndrome” kicked in — by ​​then, I was already traveling back and forth to Stockholm a lot. The food in Stockholm was completely different, so upon returning, I couldn’t eat Lithuanian food for five days — it was too fatty for me.</p><p>On the last day, I met a Swede, and after the conference, we went for a stroll along Baker Street, stopping in countless bars and cafes. But my English was really bad, so we communicated mostly via vibes. I was embarrassed to admit that after seven years of studying English in Lithuania, it was completely impossible to speak it. We were deliberately taught to be ignorant of English — a legacy of the USSR. I only learned it again later, when I started communicating in Sweden.</p><p>The next day I returned from London to Lithuania. I can’t say I particularly liked London. The weather was intermittent, sometimes rainy, sometimes sunny. I felt constantly damp. The food wasn’t very good either. The underground passages were covered in moss and mould. The architecture outside the city centre resembled barracks and narrow, semi-detached cottages. Everything is made of red-dirty brick. It was very different from polished Finland. But I came back with new ideas about my system, especially regarding the use of Application Server.</p><h4><strong>6.4 Application Server for Trolis</strong></h4><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9ac928ea007" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confessions of a Naïve Programmer (19)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-19-2eb6aeffeac7?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2eb6aeffeac7</guid>
            <category><![CDATA[24]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 14:27:08 GMT</pubDate>
            <atom:updated>2026-10-22T14:27:08.345Z</atom:updated>
            <content:encoded><![CDATA[<p>How I programmed my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O4-5ONwdECkL31Ns" /><figcaption>Second hand bank — — <a href="https://unsplash.com/@3kolone?utm_source=medium&amp;utm_medium=referral">Nikola Tomašić</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Continued from <a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-18-6e9a25d0bba8?postPublishedType=initial">Part 18</a></p><h4><strong>5.10 Another bank — same system</strong></h4><p>PLATON was also installed in Vilniaus Bankas (VB). We were aware of this and would occasionally consult with the programmers in Vilnius (VB’s head office). In a sense, we were competing with them — seeing who could launch a full-fledged version of PLATON first. But since our bank ceased to exist, I decided to apply our experience in a new place. The strangest thing is that before me, there were no programmers at the VB Klaipėda branch. There weren’t even any support staff. At some point, someone from Vilnius had come down, set up a server (running SCO UNIX with a RAID 6 disk array, a total capacity of 1 GB, and 32 MB of RAM), installed PLATON, established the connection, and then left. All maintenance was handled remotely from Vilnius. It turned out that I had nothing to do here, really.</p><p>I was appointed to the position of senior programmer, reporting directly to the branch director, with a salary of 3,500 litas. This salary was determined more by market conditions than by the standard pay scale. As it turned out, I had the second-highest salary, right after the director — effectively making me the second-in-command at the branch. The chief accountant was clearly envious, as were others. Moreover, no one, including me, had the slightest idea what I was supposed to do. I ended up handling various tasks around the bank: setting up someone’s computer, fixing a printer, configuring the network… And no one ever told me that I was supposed to be doing any programming.</p><p>In my spare time, I studied the entire SCO UNIX + PLATON + Progress installation. I discovered the scripts used for processing inter-branch money transfers and familiarized myself with various specific configuration settings. I also found an intranet web server that was installed and running. I learned which PLATON modules were used in daily operations. The end-of-day procedure was performed remotely, while the SCO print spooler handled the printing to a printer located next to the server. Every morning, the senior operator would collect the printouts, cut them into individual sheets, and distribute them to the operators in the customer service area.</p><p>A month later, a second programmer joined our team. He had also been the second programmer to join at our previous bank. He was a good programmer, though not without his issues — he generally lacked initiative, yet every now and then he would come up with something interesting. He was an expert in banking transactions and the PLATON account system. He was well versed in Progress 4GL. We had worked well together back at “Vakarų Bankas,” and now, with him on board, we began delving into the system with renewed enthusiasm.</p><p>However, the head office wasn’t exactly thrilled with our initiatives. Their boss told me directly: While you are in Klaipeda, you are nobody; if you come to Vilnius, you will be a leading programmer. But I was happy in Klaipeda for that salary. Even though I had studied in Vilnius, I never really liked the city. Vilnius felt arrogant — steeped in elitism and a kind of faux-aristocracy (which I suspect stems from Polish influence). In Klaipėda, people were simpler and more “provincial” — in the best sense of those words.</p><p>We were working on relatively new i486-based computers, on which we had installed Windows 95. There was also an old i386 machine, on which we installed Linux 1.2.8 (the same version I had installed at home on my own new i486). A former business partner of mine — with whom I had once developed the “Toplivo” (Fuel) system — came to visit, saw Linux, and dismissed it as a “hobbyist, thrown-together OS,” claiming it had no future. I didn’t argue, but even then, I saw it as a highly promising system; three years later, I was already running a Progress DB server (with some minor modifications), a web server, and the Netscape web browser on it.</p><p>I remember how carefully I used Windows 95. I managed to keep a single installation running for a year and a half, while others were reinstalling it every two to three months. I had an intuitive feel for the system — I knew exactly what shouldn’t be altered and what shouldn’t be executed. Half of my time was spent in a terminal emulator connected to an SCO server, which was running PLATON. I decided to try launching a web server that was installed on that SCO server; it started up easily, and once I connected to it over the network, it served up a test page. This gave me the idea to combine a CGI interface with Progress, using the latter as a scripting language.</p><h4><strong>5.10.0 CGI + Progress -&gt; PLATON</strong></h4><p>CGI (Common Gateway Interface) is a standard protocol that allows a web server to run an external program or script to process user requests and generate dynamic web content. A user submits a web form or navigates to a URL mapped to a CGI script. The web server starts a new operating system process to run the external CGI program. The server passes the user’s input to the script using environment variables and standard input (stdin). The script processes the data and sends standard output (stdout) — usually an HTML document — back to the web server, which then delivers it to the user’s browser.</p><p>To run Progress as a script, I wrapped it in a shell that passed parameters into Progress via a simple C program (using “stdin”). Progress would process the parameters, perform its tasks, and output the results to “stdout.” In this way, the interface fully complied with the CGI standard, allowing me to break free from the standard terminal-based Progress interface — and, eventually, from the graphical one as well.</p><p>I wrote a simple Progress program that pulled a table from PLATON, formatted it with HTML tags, and displayed the result on a web page. When I showed it to a colleague, he was quite surprised. He asked me to explain how it worked, and soon began writing his own Progress scripts. Later, we set up something like an intranet for our branch — an “Internet” for our local area network. We used it to host internal information, such as a list of all employees’ birthdays. We didn’t have direct access to the public Internet; Although we had an Omnitel dial-up internet account, we were strictly forbidden from using it on computers connected to the local network for security reasons. However, we had an old, unused i386 machine that we could temporarily disconnect from the network. We installed Linux 1.2.8 on it and used it to access the Internet — though not very often, as we were charged by the minute for the phone connection.</p><h4><strong>5.10.1 Deposits Module</strong></h4><p>We received authorization to install the deposit module and put it into operation. It was one of the simplest modules, and we already had experience working with it. Once everything was up and running, we trained one operator — a task that proved somewhat challenging, especially since she was also expected to input all of the bank’s existing deposits during her spare time. Meanwhile, the head of the operators had to manually adjust the interest balances for the issued deposits. Everything went relatively smoothly and another PLATON module was put into operation. As for my own credit module, our branch did not issue any loans until the entire PLATON system had been fully installed.</p><p>I was, of course, aware of the risk that, following the large-scale deployment — which was already planned — it might prove difficult to integrate my module into the overall balance of accounts. As it turned out, when the accounts didn’t balance, my deposits module was the first thing to come under suspicion. However, sometime later, once the actual cause was discovered, it was confirmed that my module had nothing to do with it. I even received an apology.</p><h4><strong>5.10.2 VBHS</strong></h4><p>VBHS (Vilnius Bank Hypothetic System) was a system I proposed for processing inter-branch payments. Originally, inter-branch payments were accumulated in specific files on a server. At the end of the day, a time-triggered process (via Cron) would initiate an “ftp” transfer, moving these files to a server at the central branch. I did not know how they interpreted these files or how they loaded them into the PLATON system. However, I was uncomfortable with the very idea of ​​transferring simple files via “ftp,” as any failure — resulting in only partially transferred files — would pose a major problem for the consistency of the banking system.</p><p>On the other hand, in early 1997, a new version — Progress 8.2A — was released. It introduced the Application Server, which enabled direct communication between a client and one or more servers. Progress also released an improved graphical UIB (User Interface Builder) client with a local database.</p><p>These two facts prompted me to create VBHS — a framework for transferring data between branches. It would invoke an Application Server to connect to a remote server, calculate a checksum, and transmit the data. Once the transfer was complete, it would verify the checksum; if it didn’t match, the transaction would be discarded, and the entire data transfer process would be repeated. I documented the full concept in a nine-page proposal and submitted it to the management at the head office. I then developed a demo version of the concept and sent that over as well. It piqued their interest — or, at the very least, I got an “uh-huh” out of them. After I left the bank, at a Progress conference, which was attended by bank representatives, I was told that they were using my system. I simply replied, “uh-huh” — though, in truth, I was pleasantly surprised. And a few years later, at another conference, I learned that they were <em>still</em> using it. To which I replied, “Of course I’m pleased, but after so many years, couldn’t you come up with anything new?!” They had no answer for that.</p><h4><strong>5.10.3 Other activities</strong></h4><p>We also engaged in other activities unrelated to programming. For instance, we installed the SUN Solaris 2.5.1 operating system on our old i386 computer. This was a major version of a UNIX-based OS, developed by Sun Microsystems and released in November 1995. I’m not sure who brought the distribution into our office; regardless, we installed it and began experimenting with its graphical user interface. Since the Common Desktop Environment (CDE) utilized Motif widgets, it featured a distinct, “angular” or “heavy” 3D-beveled aesthetic — a hallmark of commercial UNIX-based workstations (such as those from HP, IBM, and DEC) throughout the mid-to-late 1990s. Solaris had a solid, professional look, but it came with a bare minimum of software, and it ran noticeably slower. Linux, paired with the lightweight “fvwm” window manager, performed much snappier — even if it didn’t look quite as polished. However, it offered a far wider range of software, especially applications designed for the X Window System. Linux won with a score of 2:1.</p><p>We experimented a bit more with Solaris, then reinstalled Linux on the machine — specifically the Slackware 96 distribution with kernel version 2.0.0. I installed the same version at home as well. Eventually, we repurposed that long-suffering i386 computer as a print server for the operators in the customer service area, routing all their print jobs to it. This allowed us to clear the bulky printers off the operators’ desks. While each operator now had to walk about five meters to retrieve their printouts, it wasn’t much of an inconvenience — and, more importantly, it freed up plenty of desk space for handling paperwork. The Linux server sat on the floor next to the operators’ supervisor, with no monitor or keyboard attached. We now had a clear understanding of what a “Linux box” really was; we managed it entirely remotely. We placed our primary high-speed printer right next to it. Documents were printed in “draft” mode, which was perfectly adequate for receipts and other such information.</p><p>Also, in 1996, VB began issuing VISA credit cards (debit cards). First of all, the cards were received by bank employees, including me. Salaries started being deposited onto these cards, even though there were only three ATMs in the entire city, one of which was installed right by the bank’s entrance.</p><h4><strong>5.10.4 Complete installation and launch of PLATON</strong></h4><p>On March 8, 1997, a team from the Vilnius branch of VB arrived at the bank. They had come to install the full PLATON system. Two weeks earlier, they had sent a list of files, along with instructions and the required formats for populating them. We had to enter all accounts, client details, cash desk data, and the existing balance into these CSV-format files. They also brought along VT220 terminals and a massive line printer for printing out end-of-day reports. It took six people to haul the printer up to the second floor and into a small room right next to our department. The printer measured roughly 1.5 x 1.5 x 1 meters and likely weighed between 100 and 150 kilograms. The terminals were set up for the operators in the client service area — though it’s hard to see why they were even needed, as graphical Progress-based client applications, which connected directly to the central server, soon appeared. These applications were used for tasks like opening accounts and processing loans; they were part of the Vilnius PLATON system, while only the actual transactions themselves were handled on our end. For a while, the operators had both a terminal and a computer on their desks. Eventually, the terminals were removed, and terminal emulators running on the computers were used instead. As for what they decided regarding local printing, I’m not sure — I left the bank at the end of March (more on that later).</p><p>The arriving team made changes to the PLATON configuration, uploaded the files we had created, and began reconciling the balance. My deposit system was also loaded. Initially, the balance did not reconcile, and all eyes turned toward me — the implication being that my system was flawed and responsible for the discrepancy. I requested a printout of all deposits and their associated balance sheet accounts, and also asked for a verification that the accrued interest matched the corresponding entries in the other balance sheet accounts.</p><p>It was an exhausting marathon — all the staff remained at the bank for a day and a half, searching for the source of a balance discrepancy. The operator handling deposits was under pressure from every side; she kept coming to me to complain about my system, then would disappear again. I don’t know what caused the imbalance, but I was certain my system had nothing to do with it. Finally, a full day after the installation began, the accounts balanced. The operator came over and offered a sincere apology for having suspected me.</p><h4><strong>5.10.5 After installation</strong></h4><p>Within a week, the bank had settled into a rhythm. The rest of the team was conducting training on how to use the PLATON system. For us programmers, there was practically nothing left to do; even the end-of-day processing was being triggered remotely.</p><p>The last thing I did was re-encode the Lithuanian display character set to a standard one. The team from Vilnius hadn’t bothered to convert the encoding, which meant that in many surnames, Lithuanian characters had turned into “gibberish” (a term that originated on early internet forums between 1995 and 1997, back when there were numerous competing Lithuanian character encodings). I waited a few days and decided to recode it myself, because the operators in the hall were very embarrassed in front of the clients when their last names were mangled. The team from Vilnius immediately showed up to reprimand me. That was the moment I realized there was no future for me at this bank.</p><p>But as always, God watched over me; I was suddenly asked to check a software program at the company “Krantas Shipping,” which operated a passenger reservation system for ferry lines to Kiel and Stockholm. They told me that generating a standard passenger list for a voyage took between 2 and 3 minutes — and that the process was getting slower over time…</p><p>End of Chapter 5.</p><h4><strong>6.0 Krantas Shipping and the Discredited Progress</strong></h4><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2eb6aeffeac7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confessions of a Naïve Programmer (18)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-18-6e9a25d0bba8?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e9a25d0bba8</guid>
            <category><![CDATA[24]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 14:09:53 GMT</pubDate>
            <atom:updated>2026-10-22T14:09:53.531Z</atom:updated>
            <content:encoded><![CDATA[<p>How I programmed my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UxZ-D8QUo0eank1j" /><figcaption>Bank Boss — — <a href="https://unsplash.com/@mpsc2021?utm_source=medium&amp;utm_medium=referral">Marcel Petzold</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Continued from <a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-17-a1be5cd5dda3?postPublishedType=repub">Part 17</a></p><h4><strong>5.8 A New Owner</strong></h4><blockquote>An effective engineer strives to reduce <br>the amount of code, rather than inflate it</blockquote><p>The fire divided my story at the bank into “before” and “after”. The “after” turned out to be significantly better. The bank got a new owner, who viewed programmers as if they were gods; he raised our salaries — first to 2,000 litas, and then to 3,000 litas. That amounted to 750 dollars — a salary very few people in Lithuania were earning at the time. My day-to-day life improved, and I no longer had to distract myself with side projects.</p><p>I began working intensively on the loan module for PLATON. I spent a great deal of time in the loan department, studying the nuances of lending and gaining access to the bank’s complete list of loan products. Yet, I still struggled to separate the business logic from the user interface. I also found it impossible to compile an exhaustive list of edge cases. Every time I modified the module’s logic, new, unforeseen conditions would emerge a week or two later. The most complex type of loan was one where the interest rate could change over the course of the loan’s term. Even more challenging were restructured loans — which could even change owners — while still needing to remain linked to the original loan history. In fact, maintaining the entire history of these loans proved to be an incredibly convoluted task. As a result, the development of the loan module dragged on, and there wasn’t even an intermediate version ready for testing. At one point, I even began to feel that this level of complexity was beyond my capabilities — that I simply wouldn’t be able to build this module. My entire professional competence was called into question…</p><p>As it turned out, the Progress 4GL language was not particularly well-suited for implementing business logic; it was really only excellent for database operations. Expanding the business logic would cause compiled modules to exceed the 64 KB limit, so parts of the program had to be offloaded into separate sub-modules and loaded dynamically. We even had to develop our own domain-specific language (DSL) to handle the dynamic reloading of modules and to generate code on the fly…</p><p>Another, larger part of the loan module handled the allocation of funds across various balance sheet accounts — up to 10 of them. Each specific type of loan triggered financial transactions between these different accounts. During the end-of-day processing, all these transactions were posted to the corresponding balance sheet accounts. Interest on loans was calculated and also posted through the balance sheet. Since the end-of-day process was essentially a “black box” to us, we could only infer its operations by observing the side effects — namely, the changes in the balance sheet accounts. In 1995, we finally gained access to the source code for the end-of-day process. We were strictly forbidden from modifying or recompiling this code. Nevertheless, having access to it proved immensely helpful for programming the module, particularly in understanding which accounts should be used for specific transactions.</p><p>Then it hit me! What if I shifted the task of constructing financial transactions onto the client — specifically, the loan department? After all, they know their own set of balance sheet accounts inside out and are perfectly capable of handling all the various loan scenarios themselves. This would significantly simplify my module. As always, I simplified the program, making it naively simple! I placed the client’s primary data (the card) at the top of the screen, and made the lower section dynamic, representing the actual financial transaction lines. There could be anywhere from two to eight of them in a single loan. Using these transactions, the staff could recalculate loans as many times as they liked. Once finished, they would save their work, and the program would automatically record the history. It was a “stateless” system; each session involving a loan had no knowledge of its previous state. The story showed the connection between successive actions, and who made the changes and when.</p><p>Throughout my career, I have always simplified or rewritten code as soon as I felt it was becoming complex or convoluted. This stems directly from my “rule of five,” which I described at the beginning of the book.</p><p>I finally managed to write the module in such a way that it could be installed in a test environment, allowing staff training to begin. Things didn’t go entirely smoothly, as my vision for how the module should function didn’t align with theirs. However, I convinced them that they would be capable of resolving various issues on their own, without needing to commission changes from me. Perhaps my approach was a bit too radical, but any other option would have been worse — I risked ending up as a mere errand boy, never actually finishing the module itself. I hoped that in the future we would solve all the problems and eventually come to a common denominator and that this would be the most elegant, especially since I already had a solution on how to facilitate the entry of transactions.</p><p>But then, a while later, the situation resolved itself: our bank went bankrupt…</p><h4><strong>5.9 Bankrupt</strong></h4><blockquote>“Hope means hoping when things are hopeless,<br>or it is no virtue at all.”<br>— G. K. Chesterton</blockquote><p>In the beginning of 1996, our bank went bankrupt.</p><p>The chain of events was as follows: Our bank was only the Klaipeda Bank — it did not have branches in other cities. Over time, our bank became dominant in Klaipeda. Another bank, Vilniaus Bankas (Klaipeda branch with its centre in Vilnius), did not like this. The Lithuanian National Bank, which carried out the issue and controlled the activities of commercial banks, instructed our bank to open a branch in Vilnius, but our bank refused. In my opinion, this decision of the Lithuanian bank was lobbied by Vilniaus Bankas, who wanted to dominate in Klaipeda. After the refusal, the Lithuanian bank sent auditors to our bank, and of course they found violations. Frankly speaking, all banks commit such violations, but it was ours that they wanted to sink. They found abuses in the bank’s credit policy — management and his friends took out interest-free loans, and then put the money received on short-term deposits at 20% per annum. Naturally, this was interpreted as a financial crime. A lawsuit was initiated against the owner of our bank. Meanwhile, the Lithuanian Bank prohibited issuing interbank loans to our bank, which put an end to the existence of Vakarų Bankas.</p><p>Clients rushed to withdraw their money, which eventually led to a shortage of funds and served as the final nail in the bank’s coffin. The good news is that I somehow managed to recover the 2,000 dollars my father had deposited at our bank on my assurance. He didn’t receive any interest, of course.</p><p>The bank’s owner was ultimately sentenced to two years in prison by the court. I ran into him once after he had served his time — he looked both physically and mentally broken. We spoke — for the first time ever — and then he went his own way. Two weeks after the bank closed, I was invited to join “Vilniaus Bankas”; they offered me a salary of 3,500 litas, and I accepted it.</p><h4><strong>5.10 Another bank — same system</strong></h4><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e9a25d0bba8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confessions of a Naïve Programmer (17)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-17-a1be5cd5dda3?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1be5cd5dda3</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[24]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 13:08:40 GMT</pubDate>
            <atom:updated>2026-10-22T13:43:31.674Z</atom:updated>
            <content:encoded><![CDATA[<p>How I programmed my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IXN7MUZNckcfJ3TD" /><figcaption>Computer from 1995 — — <a href="https://unsplash.com/@midkiffaries?utm_source=medium&amp;utm_medium=referral">Ted Balmer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Continued from <a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-16-af724add45ff">Part 16</a></p><h4><strong>5.7 1995</strong></h4><p>1995 was a landmark year in the world of computer technology. Several significant developments occurred within a short span of time, and their impact on the world of computing is still felt today.</p><h4><strong>5.7.0 Windows 95 and others</strong></h4><p>Perhaps the most memorable moment for everyone was the release of Windows 95 in August 1995. At the time, a single legal copy cost about 100 dollars. The installation process did not allow for multiple copies to be installed. The Windows 95 license permitted the transfer of a copy only in the same way one might pass on a book — strictly prohibiting any form of duplication. Windows 95 continued the evolution of the Windows 3.1 line, aiming to eliminate its reliance on MS-DOS; although it still utilized MS-DOS in certain areas, it primarily functioned by emulating it. The minimum system requirement for Windows 95 was an i386DX processor with 8 MB of RAM, though an i486 processor and 12 MB of RAM were needed for a comfortable user experience.</p><p>Amidst the arrival of Windows 95, another development went largely unnoticed: three months earlier, Windows NT 3.51 had been released. It was intended as a server-side system designed to support Windows 95 clients. The system’s kernel was hybrid in nature — initially inspired by the Mach microkernel — and supported various operating system subsystems, including Win32, OS/2, MS-DOS, and POSIX. Around 2016, this same architectural principle was used to create a subsystem for Linux (WSL).</p><p>It was at this point that Windows split into server and client versions. Convergence didn’t occur until the release of Windows XP (in 2001), and even then, it wasn’t complete. Subsequent versions merged entirely, making the differences imperceptible. I recall that in Windows XP, you could simply add a single registry entry, and the system would become a full-fledged server version.</p><h4><strong>5.7.1 New programming languages</strong></h4><p>1995 was also the year that saw the release of Java, JavaScript, PHP, and Ruby, along with six other programming languages. I’d say that’s quite a lot for a single year.</p><p>First came Java, which initially aimed to be a language for web pages. A beta version was released in May 1995, accompanied by a white paper that provided a formal description of the language and instructions for creating “applets” — programs designed for the Web. To be honest, I read about half of that document and tried out the sample programs, but finding nothing that appealed to me, I tucked it away and forgot about it. It would be another year before Java applets saw widespread use. While large-scale projects were built using the language — complete with windows, lists, and input fields — the experience was incredibly clunky, the interface elements felt crude, and, above all, performance was poor. Java’s primary selling point was its portability across different systems. All of this turned me off Java, and I eventually added it to my list of <em>mostly ignored technologies.</em></p><p>Three months later, in August 1995, the JavaScript language was released. Many people assumed it was a scripting version of Java, which was entirely incorrect. I gradually familiarized myself with the inner workings of the language, and in 2000, I developed an SPA (Single-Page Application) as a component of what would become the Trolis system — a platform for booking ferry tickets for routes to Germany and Sweden (see Section 6). A notable characteristic of JavaScript is that, almost immediately, numerous frameworks emerged to abstract away the differences in how the language behaved across Netscape, Internet Explorer, and other browsers that had appeared. When I built my SPA, I limited support to the first two of these. I encapsulated all the inconsistencies into two functions, allowing the rest of the code to remain identical for both browsers.</p><p>I still feel that JavaScript was created as a jab at Java — to demonstrate its shortcomings. To this day, there remains a divide between those who write “scripts” in JavaScript and those who code in Java. Interestingly, almost no one uses both languages.</p><p>Two other languages ​​that emerged in 1995 — PHP and Ruby — didn’t really catch my attention, as I had soon developed a CGI-to-Progress server-side system and remained in that niche for a long time. That said, I did write a few PHP scripts for some small, peripheral projects.</p><h4><strong>5.7.2 The Internet in Lithuania</strong></h4><p>In mid-1995, Lithuania officially joined the Internet. The company Omnitel became the first official ISP (Internet Service Provider). At the same time, it launched the first mobile network based on the GSM standard. I contacted Omnitel, and they assigned me an access code for the Internet: 86005. This meant I was the fifth person to sign up for the service — I suspect the first four were likely employees of the ISP. They also set up an email address for me under their domain: vladas.s@omnitel.net. Additionally, they sold me a US Robotics modem, which I paid for in instalments. On analogue telephone networks, it provided speeds of up to 19,200 bits per second. After our telephone networks were upgraded to digital in 1997, this speed increased to 33 kbps, and later to 56 kbps. Initially, I could only access the Internet using Linux and the Mosaic browser. It wasn’t until the release of Windows Service Pack 1 (1996) and Windows Plus! that it became possible to access the Internet using Netscape Navigator.</p><p>In 1995, the Swedish monopoly firm Telia established a subsidiary in Lithuania — Telia Lietuva — which also held a monopoly. It handled all types of telecommunications in Lithuania. Very quickly, telephone access became available to every Lithuanian resident, with no limits on quantity. The company also provided mobile communication services. Lithuania rapidly replaced its old infrastructure with a new, digital one. Backbone cables for the Internet and telecommunications were laid, including an undersea cable connecting Stockholm to Klaipėda. At one point, Lithuania’s telecommunications infrastructure was the most advanced in the world, as it utilized the very latest equipment.</p><p>Mobile service and the mobile phones themselves were very expensive at first. But just three years later, I was issued a work mobile phone, with the company covering the usage costs. If I recall correctly, it was a Nokia 3310, followed by a Nokia 5110. The latter, as I remember, was the most popular model in Scandinavia at the time.</p><h4><strong>5.7.3 Swift and OS/2</strong></h4><p>In 1995, our bank was connected to the SWIFT network. A specialist programmer from the SWIFT centre in Germany came to assist us. The terminal itself (the SWIFT client) consisted of an i486-based computer running the OS/2 operating system, paired with a highly sophisticated modem. OS/2 was regarded as IBM’s most secure and reliable system; we certainly came to appreciate its stability — over the course of a year and a half, we only had to reboot it once, specifically to install updates. At the same time, they provided us with OS/2 3.0 Warp — which had just been released in 1995 — featuring a graphical interface similar to that of Windows. Unfortunately, very few applications were developed for this platform. Unlike Windows, which still ran some programs in 16-bit mode, OS/2 was a fully 32-bit system. We experimented with it for a while, but eventually set it aside and installed Windows 95 on the machine instead.</p><p>The SWIFT system operated by transmitting strictly formatted messages through intermediary hub banks, which would then forward them to the correspondent banks specified in the messages. From there, the message would be delivered to the final recipient. Every bank in the system was assigned a unique SWIFT code, which served as the basis for message routing. SWIFT also handled incoming messages intended for our own bank. The system was highly complex — there were around 100 different message types alone. The system would decode these messages and display them on-screen according to their specific type. An operator would then have to print out the message and pass it to the intended recipient, who would manually enter the data into PLATON. The integration of SWIFT messages directly into PLATON was still a distant prospect.</p><h4><strong>5.8 A New Owner</strong></h4><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1be5cd5dda3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confessions of a Naïve Programmer (16)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-16-af724add45ff?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/af724add45ff</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[24]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 11:44:22 GMT</pubDate>
            <atom:updated>2026-10-22T11:44:22.527Z</atom:updated>
            <content:encoded><![CDATA[<p>How I programmed my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vPpCbgMkJ37UdlWy" /><figcaption>Photo by <a href="https://unsplash.com/@jakubzerdzicki?utm_source=medium&amp;utm_medium=referral">Jakub Żerdzicki</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Continued from <a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-15-54243aafa5c1">Part 15</a>.</p><h4><strong>5.5 Print spooler for MS-DOS</strong></h4><p>The PLATON banking system featured a specific procedure: the closing of the banking day (as well as the month and year). At that time, banks — like all other businesses — operated from 9:00 a.m. to 5:00 p.m. The Internet was still in its infancy; round-the-clock banking operations only began with the advent of online banking around the year 2000. The day-end closing procedure was necessary partly because some transactions were not processed in real-time but were instead deferred until the end of the day for batch processing. This was also when all receipts and vouchers were printed. Operators would arrive at the bank half an hour before opening to manually sort through their receipts and file them into the appropriate folders for each account. During the day-end closing, interest on deposits and loans was also calculated and recorded in the balance sheet.</p><p>The day closing procedure consisted of a menu of 10–12 items that had to be launched sequentially and wait until everything related to that item was printed. This entire process took about 1.5 to 2 hours. We had to take turns being present at the closing of the day just to select menu items and wait for the printing process to finish.</p><p>It was precisely these facts that led me to decide to try creating a print spooler that would sequentially print files from a predefined directory. First, I needed to ensure that the modules output their results to a file. We printed using a special program, and making it print to a file was not difficult. The only requirement was to generate filenames that would avoid any naming conflicts.</p><p>Next, a terminate-and-stay-resident (TSR) program was written to sequentially select files from a directory (spool) and send them to the printer. Once printed, the file was deleted from the spool. A side effect of this design was that any file could be printed simply by placing a copy of it in the spool directory. The order in which files were selected from the spool was determined by their creation time, ensuring they were printed in the correct sequence.</p><p>Naturally, I wrote this program in C, because it was damn good for working with files. I finished working on the program relatively quickly and it was time to test it on a real day close.</p><p>One day, I installed the program on a computer dedicated exclusively to the end-of-day closing procedure. I then reconfigured the terminal’s printing software to output to a file instead of the printer. And we were off. We went through the ten-item menu in about ten minutes, while the printer kept running. There was a noticeable lag as we navigated the menu options, but overall, the process moved quickly. At that moment, the printer was outputting data from the second menu item.</p><p>It is worth noting that leaving the printer unattended turned out to be not quite so simple… The paper would jam occasionally. A benefit of my program was that, once the paper feed was restored, printing resumed from the point where it had stopped; there was no need to re-run the specific step where the interruption occurred, as the program simply printed the existing file from the beginning. Later, we purchased a high-speed line printer designed for pin-fed fanfold paper. The paper came in boxes from which it fed directly into the printer; on the output side, it passed along guides into an identical box, where it folded neatly along the perforations. This setup was 99% reliable, allowing us to leave the printing process unattended. Furthermore, the total print time was reduced to one hour. Even if a printer issue did arise, the remainder could simply be printed the next morning — it posed no problem at all. The entire purpose of the program was to quickly execute all the end-of-day closing procedures.</p><h4><strong>5.6 Fire in the bank</strong></h4><p>Although this is off topic, there was a fire in our office at the end of 1994.</p><p>Every morning, one of our staff members would come to my office and use the windowsill to boil a glass of water for coffee. There was a small gap between the power outlet and the windowsill — the only spot like it on our floor — where she would boil the water using an immersion heater. That particular day, she set the water to boil but got distracted by other tasks and forgot about it. It so happened that I had stepped outside for a walk to clear my head and sort out some thoughts regarding the software. The other programmers happened to be out as well. The water boiled, then evaporated completely; the glass shattered, and the immersion heater fell onto the plastic windowsill. As I was returning to the bank, I walked past my window and saw a massive fire. Firefighters arrived on the scene. My first thought was: what about the servers in the small back room? Usually, the door to that room was kept closed, but there was a second door that no one ever used. In the end, that door saved the server room. I don’t know who spotted the fire first, but they managed to get the servers out in time. Our office, however — along with its high-end furniture and computers — burned to the ground.</p><p>Within the very first few days, we found a new location for the servers and began laying the computer network from scratch. For those few days, the bank operated manually. We were assigned a new office — a space that had previously served as a reception hall. We purchased new furniture, and about a month later, the new computers arrived: i486DX models — five of them. I asked to borrow another one for me, so I could pay it in instalments. The management agreed to provide an interest-free loan. There is a Russian proverb: “Every cloud has a silver lining.” In the end, we got new computers and a new, more spacious office.</p><p>And yes. That female employee was fired after all.</p><h4><strong>5.7 1995</strong></h4><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af724add45ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confessions of a Naïve Programmer (15)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-15-54243aafa5c1?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/54243aafa5c1</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[24]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 14:25:22 GMT</pubDate>
            <atom:updated>2026-10-21T14:25:22.228Z</atom:updated>
            <content:encoded><![CDATA[<p>How I programmed my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Un72vQHsXcnphqfO" /><figcaption>IBM server — <a href="https://unsplash.com/@carsonmasterson?utm_source=medium&amp;utm_medium=referral">Carson Masterson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-14-8a450769a542">Continued from Part 14.</a></p><h4><strong>5.3 The Crazy Year of 1993</strong></h4><blockquote>“The world breaks everyone, and afterward <br>many are strong at the broken places.”<br>— Hemingway</blockquote><p>The year 1993 was significant in many ways. First of all, this year I got a job at a bank. Secondly, on July 1, 1993, the Republic of Lithuania switched to the Litas. Third, Russian troops finally withdrew from Lithuanian territory that September. Fourth, at the end of the year, my salary was raised to 700 litas (approximately 200 dollars), which was significantly higher than the average salary in Lithuania. Inflation in 1993 was 118.7%. The good news was that it was ten times less than in the previous year, 1992. In 1993, the global economic crisis ended and the economy began to recover rapidly. However, in Lithuania this was the most difficult year in economic terms in general and for my finances in particular.</p><p>Introducing a national currency — the Litas — was the only guarantee of at least some degree of stability. “Talonas” (a temporary currency) were exchanged for litas at a 10:1 ratio. A limit was imposed on cash exchanges, thereby removing excess cash from circulation; this dealt a heavy blow to the shadow economy and eliminated a vast amount of counterfeit money. Of course, as a result, the government deceived some part of the population, but this helped to contain inflation, and by the following year it was 45%.</p><p>A massive share of the burden associated with the monetary reform fell upon commercial banks. Simply dividing every balance sheet entry and current account balance by ten would have been easy enough. However, there were accounts — such as time deposits and loans — where interest accrued daily, requiring manual recalculation. All interest accrued prior to July 1st was divided by ten, while subsequent interest was calculated at a 1:1 ratio based on the newly converted account balances.</p><p>There was another aspect to the monetary reform: savings passbooks. Although the funds held in them were converted automatically, the public was required to withdraw all their money by the end of the year. Transferring funds to other banks was impossible due to the lack of the necessary infrastructure. Savings bank branches were closed, and all savings passbooks were voided on January 1, 1994.</p><p>All this placed an additional load on commercial banks, as thousands of citizens opened accounts and deposited cash in litas. Some placed their money in time deposits. The capital held by commercial banks multiplied, leading to a sharp surge in lending. Banks would leverage their deposit funds two or even three times over, and their profits soared. Never before in history had banks possessed such vast amounts of idle capital. These funds were often used for overnight lending in other time zones — earning a 0.5% return during the hours when it was night here. Banks also employed other mechanisms to utilize depositors’ money, such as exchanges, auctions, and the practice of delaying interbank transfers (the standard delay at the time was two days). After a year of working in a bank, I realized that in a capitalist economy, banks are a sort of <em>necessary evil</em>. This evil is <em>unavoidable </em>because, in the modern world, practically everyone uses bank accounts and services to some degree. Soviet propaganda had been right about banks and bankers, after all.</p><p>Immediately after the introduction of the litas, it was pegged to the US dollar at a ratio of 4:1, meaning 4 litas were worth 1 dollar. In September, my salary was raised to 700 litas, or about 200 dollars. In principle, one could live on that amount for the entire month; food prices were moderate. On top of that, I still had a stash of about 3,000 dollars left over from my previous project (the one in Riga), though I hardly touched it. The hardest years for my family were coming to an end.</p><h4><strong>5.4 Banking routine</strong></h4><p>By early 1994, we were all already comfortable with programming in Progress. Version 6.2 had been replaced by Version 7.1, which introduced new features in both syntax and visual design. As it turned out, PLATON (running on Progress) had been installed at several banks — Vilniaus Bankas and Rigas Komerc Banka. We visited the latter in April and brought back a Linux distribution on more than 20 floppy disks (!). We also purchased a homegrown system from them for connecting remote clients; it was written primarily in Tcl/Tk, with a few C modules. A newly hired employee took charge of configuring this system. The system ran Linux, which we installed from those floppy disks. We installed Slackware 1.2 with kernel 1.0.8. That was the version with which we began learning Linux. We also received a kernel patch that had to be applied to a specific file, after which we had to recompile and build the modified kernel. This patch was necessary to make Progress work. At that time, building the Linux kernel was a relatively easy procedure.</p><p>In February 1994, our entire department was invited to the IBM office in Helsinki, Finland, as we were using IBM PowerPC RS/6000 systems. It was my first trip to a Western country. Many things were unfamiliar to me; everything was new. I particularly enjoyed the free cafeteria at the IBM office, where you could load up on all sorts of delicacies — though you were limited to one plate at a time. Drinks, however, were unlimited. Then we went to a bank where they showed us an IBM AS/400, which they used to manage the stock exchange. We were even allowed to watch the actual stock exchange in action from a balcony. There was still a lot to see — the program was dense and rich. We returned from there and with renewed energy began to set up PLATON.</p><p>I chose what was arguably the most complex subsystem of PLATON: the loan module. In reality, it comprised about 20 distinct modules (files). I was tasked with deciphering all of them and consolidating them into a single monolithic interface, allowing all operations and settings to be managed from one screen. The result resembled a pilot’s cockpit. It allowed users to calculate loan repayments at various interest rates, originate loans, and process monthly transactions. A great deal of the loan-related work happened behind the scenes; interest was calculated and posted to accounting ledgers on a daily basis, which occasionally led to rounding errors. Furthermore, some loans were paid off early, others missed payment deadlines, and some became uncollectible bad debts. Fitting all of this onto one screen was a very difficult task.</p><p>One day, the team from Riga sent over a few floppy disks containing the Linux version of “DOOM”. It ran in an X Window System window. At one point, we launched nine copies of “DOOM” in nine separate windows and arranged them in a 3x3 grid. And they actually worked! You could physically sense the task scheduler at work — watching how each window gradually rendered its next frame. That was the moment I truly grasped the power of Linux and realized that the future belonged to it.</p><p>One day, another programmer joined our team. His name was Styapas (Stepan). I am deliberately revealing his name because it became a byword among us. We set him to work learning Progress and left him to it for a while. After some time, the boss gave him an assignment: to make a selection of a certain array of accounts and mark all duplicates. The selection had to be made from a general table of accounts, sorted by account code, and the selected accounts had to be printed. He wrote the program and ran it. We watched the process unfold. First, there was a long pause, then a single account printed out. Then came another long pause, followed by the next account. And so on. We looked at his program, and what we saw shocked us. He was doing one full pass through the accounts <em>for every single account</em> in the given accounts! We asked him to write a single-pass program, and he finally succeeded on his tenth attempt. Ten days later, he quit — or was let go — claiming he no longer wanted to work as a programmer. From then on, we often joked about checking our code for the “Styapas factor”; indeed, we sometimes wrote code in that style ourselves, frequently spotting such fragments in our own programs. This mostly happened with in-memory cache tables, which were very easy to implement using the “Styapas method.”</p><p>As we rolled out more and more services and modules for the PLATON system, the number of operators requiring our support grew. We also began receiving requests for improvements and additional features. We’ve been under a lot of pressure. To stay mentally healthy, we’ve come up with the <em>third-time rule</em>.</p><p><em>Third Time Rule: When a request for a feature came in for the first time, we ignored it. When the same request came in a second time, we placed it in a long queue for future implementation. When the request came in a third time, we began working on it immediately</em>.</p><p>This rule primarily filtered out the fleeting desires of operators, who then forgot what they wanted. A second request indicated that the need was genuine, so we added it to the queue, though without making any promises regarding timelines. The third request meant that the problem was serious and worthy of our attention.</p><p>To track the number of connected operators, I wrote a Bash script that identified Progress processes and outputted the data to a window where a dedicated Progress process was running; this process would refresh the data from the script every 5 seconds. The script was complex, consisting of 8 Unix commands executed in a chain, with the results passed to the monitoring process.</p><h4><strong>5.5 Print spooler for MS-DOS</strong></h4><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54243aafa5c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confessions of a Naïve Programmer (14)]]></title>
            <link>https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-14-8a450769a542?source=rss-cb0d86969eb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a450769a542</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[24]]></category>
            <dc:creator><![CDATA[Vladas Saulis]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 14:36:08 GMT</pubDate>
            <atom:updated>2026-10-20T14:36:08.085Z</atom:updated>
            <content:encoded><![CDATA[<p>How I programmed my life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WFRyE04arpSONTS3" /><figcaption>Bankers paradice — <a href="https://unsplash.com/@priscilladupreez?utm_source=medium&amp;utm_medium=referral">Priscilla Du Preez 🇨🇦</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Continued from <a href="https://medium.com/@saulis.vladas/confessions-of-a-na%C3%AFve-programmer-13-16f9dee9efb5">Part 13</a>.</p><h4><strong>5.0 Now I’m a banker!</strong></h4><blockquote>“I choose a lazy person to do a hard job, <br>because he will find an easy way to do it.”<br>— attributed to Bill Gates</blockquote><p>In the USSR, all banks were state-owned. State enterprises borrowed from those banks — effectively borrowing from the state itself. For the general public, so-called “savings banks” were established — a term chosen specifically to avoid calling them “banks”. It seems the name was adopted from the Danish “Sparekasse”. Propaganda cultivated a myth about greedy, insatiable Western bankers who speculated with the public’s money to build financial empires. Anything associated with banks, bankers, or finance was portrayed in an extremely negative light. Ordinary people could neither place money in interest-bearing deposits nor take out loans; they could only keep their funds in savings banks (earning 2% interest, a rate lower than inflation). Instead of standard deposits, the state offered 3% government loan bonds — bonds that were never actually been redeemed. No one ever received that 3% return, and in the final years of the USSR, the bonds simply became worthless.</p><p>Having just broken free from Russian communism, the Republic of Lithuania was in 1993 undergoing a transition from a socialist economy (or the lack thereof) to a market economy driven by liberal capitalism. Lithuania was on the verge of introducing its own currency, even though its economy remained highly fragile. An economic upheaval had taken place: whereas previously there had been money but nothing to buy, there was now an abundance of goods and services, yet no money to purchase them. This process was known as a “shock therapy.” Both the economy and the entire population were in a state of shock. Initial inflation figures emerged; in 1993, the rate stood at 118.7% — by comparison, 1992 had seen hyperinflation of 1,163% (!). However, by 1994, inflation had been brought under control, dropping to 45%.</p><p>Against this backdrop, the first private commercial banks began to emerge in Lithuania. In March 1993, I was invited to join one of them — Vakarų Bankas. Founded in Klaipėda in 1991, Vakarų Bankas was one of the first commercial banking institutions in newly independent Lithuania. The bank grew rapidly and gained renown for financing the production of the legendary Lithuanian TV series “Giminės” (Kin) and for supporting sports, but it went bankrupt in 1996 during a major Lithuanian banking crisis.</p><h4><strong>5.1 First impressions</strong></h4><p>I was greeted by a pleasant young man who introduced himself as the head of the IT department. He said that the department plans to have 4–5 programmers and that I am the first one for now. My salary was set at 3,000 “talons” (a Ruble substitute), which amounted to roughly 100 dollars a month. Thank God — He did not forsake me in a difficult moment, as always, and I still had some savings left from previous assignments. Furthermore, the manager mentioned that the salary would be reviewed every six months. He also noted that the “PLATON” banking system was due to be installed soon and that I would be required to assist with the setup.</p><p>There were four 386 computers in the room, one of them for me. I chose a spot at the back so I could see the whole room. The IBM RS/6000 servers were housed in a small room directly behind me. The computers were networked using coaxial cables (initially), with a transmission speed of 10 Mbps.</p><p>While the department was recruiting new staff, my manager asked me to create an inventory system for the bank’s assets. I realized, of course, that he wanted to test my programming skills. I set to work. Although I had some existing code written in Clipper, I couldn’t use it due to licensing restrictions (only licensed software was permitted at the bank), so I had to use C and dB_VISTA III, which were not subject to such licensing issues. That was the last system I developed using those tools; subsequently, I worked exclusively with PROGRESS 4GL, the language used for the “PLATON” banking system.</p><p>At that time, two more programmers arrived — one good, the other not so good, a beginner.</p><h4><strong>5.2 Systems “PLATON”, “PROGRESS” et.al</strong></h4><p>PLATON was a centralized system for managing accounting and banking operations used by Lithuanian banks and enterprises in the 1990s. It was a comprehensive banking application — featuring a user interface and modules for loans, deposits, and receipts — developed using the Progress 4GL (fourth-generation) programming language and designed to interface directly with the Progress database.</p><p>The Progress relational database management system (RDBMS) served as the data core, storing all client account details, records, and transaction histories, while ensuring data integrity (ACID transactions).</p><p>The IBM RS/6000 was a family of powerful servers, workstations, and supercomputers developed by IBM and introduced to the market in 1990. These computers were based on RISC-architecture processors and ran the UNIX (AIX) operating system. During the 1990s — particularly during the heyday of “Vakarų Bankas” — such servers represented the most advanced solution for managing banking systems and databases.</p><p>The specifications of the RS/6000 server are presented below:</p><pre>Component    |  Standard/Minimum Configuration  |  Maximum Expandability<br>-------------|----------------------------------|------------------------<br>Processor    | 166 MHz to 332 MHz PowerPC 604e  | Up to 4-way (SMP) <br>             | (32-bit RISC)                    | on later modules<br>L2 CPU Cache | 512 KB to 1 MB integrated        | Dependent on the processor<br>             |                                  | daughtercard<br>System Memory| 64 MB to 256 MB ECC SDRAM        | 768 MB to 2 GB<br>Internal Hard| 2.1 GB to 9.1 GB SCSI Drive      | Multiple internal drives up<br>Drive        |                                  | to 109 GB+ total<br>Media Drives | 1.44 MB Floppy Drive +           | Optional internal 4mm , 8mm<br>             | 8x/32x SCSI CD-ROM               | SCSI tape drive<br>OS           | IBM AIX Version 4.x (Standard    | Upgradable to AIX 5.1 / 5.2<br>             | bundle)                          | / 5.3</pre><p>Our configuration featured 64 MB of RAM, a 4 GB hard drive, and a massive 21-inch CRT monitor weighing around 30 kilograms. It came with AIX version 4 (a UNIX-like system) pre-installed. We also received a second, identical server to serve as a backup in case something happened to the primary one; It had no display, so it could only be accessed via network (Telnet, NFS). Additionally, there was a dual SCSI disk adapter — something akin to NAS (Network-Attached Storage), but designed for SCSI drives — which was connected to both servers and provided shared disk space for the two machines.</p><p>A few words about the AIX system. It is a hybrid of System V and BSD: while primarily based on UNIX System V (from AT&amp;T), it incorporates significant extensions for compatibility as well as elements inherited from BSD versions 4.2 and 4.3. It is designed to run exclusively on IBM Power Systems enterprise-class servers powered by IBM POWER microprocessors. AIX was the first operating system to implement a journaling file system (JFS) and a built-in logical volume manager (LVM). System configuration settings were consolidated and presented via the System Management Interface Tool (SMIT), available in both text-based and graphical interfaces. Personally, I really miss this kind of interface in modern Linux. The OpenSUSE distribution came closest to this with its “Yast.” However, it is now beginning to show its age; while far superior Linux distributions have emerged recently, system management has actually become worse (from an administrator’s perspective).</p><p>The PLATON system was supplied with source code in PROGRESS 4GL V6.2, with the exception of the banking day-end processing modules, which were provided in compiled and encrypted form. We were free to modify the system where source code was available, though we were required to document and preserve all changes. This provided a certain freedom of action.</p><p>By the time PLATON was delivered, I had already completed my inventory program and put it into operation. It should be noted that not all computers in the bank were connected to the general network. The computer where I installed the program was standalone, so I had to apply all program updates using floppy disks. All the disk drives in the bank were 3-inch models, so there were no compatibility issues.</p><p>In mid-1993, we all began learning the PROGRESS 4GL language; some of us worked on the database schema while others wrote and ran tests, but I decided to use it to write a <em>payroll application </em>for the bank’s employees. I have always learned new languages ​​by immediately creating something useful. A couple of months later, we were ready to configure and operate some of the simple modules of the PLATON system, starting with the deposits module.</p><p>Working on a payroll application taught me how to avoid deadlocks that occur when multiple users attempt to lock the same database record. Since I was installing the software on networked computers that accessed a server-based database, I had to deal with these locking issues. By default, PROGRESS 4GL locks a record; if specific fields are subsequently displayed in a dialog box for editing, the record remains locked until that dialog is closed. Meanwhile, other users receive a notification that the record is locked and are prompted to cancel their operation by pressing Ctrl-C. This was an entirely new experience for me, as I had never worked in a multi-user environment before.</p><p>As a temporary solution, I asked the accounting staff not to keep the blocking dialogue open for long periods of time, as there have been cases where an employee would open the dialogue and then go off to another room. The problem, of course, remained, but I gained some time to solve it.</p><p>While reviewing the Progress documentation, I came across the concept of “optimistic locking.” To implement this, an additional “access_time” field must be added to the schema of each table. Now, before displaying the dialog, the record is read without being locked. This allows any client to display the dialog without interfering with others. Only when the decision is made to close the dialog and save the data does the transaction begin; the record is locked, and the “access_time” is read and compared against the previously retrieved timestamp. If the timestamp has changed, it indicates that someone else modified the data while the dialog was open. In this case, a message about the data change is displayed, the transaction is rolled back and the new data is displayed in the dialog form fields. If the data remains unchanged, it is written to the database, and the transaction completes. Here’s a quick overview of the optimistic locking concept.</p><p>It is worth noting that, throughout the PLATON system, data from dialogs was handled using the old method (involving pessimistic locking). Consequently, we had to rewrite <em>all</em> the dialogs — specifically those that interacted directly with table data — to use optimistic locking. I did the first test of the new concept in the accounting department with my payroll program. I had informed the staff beforehand, and they confirmed that the issue of mutual deadlocks had been resolved.</p><p><em>To be continued…</em></p><p><em>Disclaimer: This text is translated from Russian and Lithuanian to English using Google Translate, so please excuse me for sometimes clumsy language, since there is a huge difference in the internal structure between languages.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a450769a542" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>