<?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 Paul Kigozi on Medium]]></title>
        <description><![CDATA[Stories by Paul Kigozi on Medium]]></description>
        <link>https://medium.com/@pwndz172?source=rss-8b3d1ac8e64d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*RVTHqFVCGsSvQ_iS.</url>
            <title>Stories by Paul Kigozi on Medium</title>
            <link>https://medium.com/@pwndz172?source=rss-8b3d1ac8e64d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 09:36:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pwndz172/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[MTN Open API Challenge: Don’t Let Anything Slow You Down!]]></title>
            <link>https://medium.com/@pwndz172/mtn-open-api-challenge-dont-let-anything-slow-you-down-dc08053e5c24?source=rss-8b3d1ac8e64d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc08053e5c24</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[uganda]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[mtn]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Paul Kigozi]]></dc:creator>
            <pubDate>Mon, 24 Dec 2018 15:46:00 GMT</pubDate>
            <atom:updated>2018-12-24T16:15:03.665Z</atom:updated>
            <content:encoded><![CDATA[<h3>MTN Open API Challenge 2018–2019: Don’t Let Anything Slow You Down!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dF7t0LQMHGHhsQdXUgPpfQ.jpeg" /><figcaption>Photo Credit to Godisable Jacob on <a href="https://www.pexels.com/">https://www.pexels.com</a></figcaption></figure><p><strong>NO WARRANTY</strong>: <em>The information herein is offered on “AS IS” basis. No warranties, express or implied, and I hereby disclaim all implied warranties, including any warranty of merchantability and warranty of fitness for a particular purpose.</em></p><h3>Quick Intro</h3><p>Last Thursday, December 20th, 2018 I happened to sort-of-crash a meet up organized by Innovation Village and MTN Uganda. Along the way I learnt of the presence of <em>SafeBoda</em> and <em>Chillies</em>, all companies I find amazing from a customer perspective.</p><p>Among the topics, as I came to gather over time, was a series debriefs among businesses, developers and the entire local tech community on how to leverage the newly released MTN Mobile Money Open API. To fuel this, MTN Uganda, together with partners have organized a competition they are calling the MTN OPEN API Challenge. Details of this can be found <a href="https://www.mtn.co.ug/new-world/en/sponsorship/innovation/Pages/MTN-Open-API-Challenge-2018.aspx">here</a>.</p><p>Meetup proceeded smoothly to the end and thanks to everyone who played a part, more so developers from the tech space.</p><h3>A Dance With The API</h3><p>And when all got said and done, including the soda taking and beer <em>missing</em> mini snack after-party, we were out! For most, the mission is to get the very best out of this challenge.</p><p>Over the weekend, I decided to go ahead and see for myself what this API look like through the eyes of a developer. From what I have seen, <em>there should not be a thing to slow you down</em> trying to implement your integrations. Here is why:</p><ol><li><strong>API documentation</strong>: It seems solid. I followed it myself and I can certainly say it gets the <em>major</em> points across. Thanks to the <em>momo developer</em> team.</li><li><strong>API client sample code</strong>: Still on documentation, it has code samples for clients in almost 8 different programming languages for you. Just check bottom of each specific API documentation and you will see.</li><li><strong>Try it feature</strong>: This should allow you to test the API directly in your browser, without committing any time or efforts plumbing your custom clients. I have seen and used it on almost each of their API I have danced with.</li></ol><p>What I am trying to say here is this: In just one weekend, it’s possible to attend a friend’s wedding on Saturday, go to church on Sunday and at the same time get your head around this API with little or no frustrations at all …and still remain in your boss’ good books on Monday. Such API experience is rare with most I have worked with, let alone those from the <em>big</em> guys.</p><h3>Obvious… but Not So</h3><p>Here is what may not be so obvious in the documentation, and in my opinion, the most valuable section of this writing. If you may like, I will present it in form of tips on:</p><h4>Provisioning APIs</h4><p>Let’s call <a href="https://momodeveloper.mtn.com/docs/services/sandbox-provisioning-api/operations/post-v1_0-apiuser">these all the APIs that</a> you will need to call to satisfy your authorization and authentication needs while consuming the sister business APIs. We will take a short tour on some of the terms that didn’t come off naturally for me. In doing so we will relate them to what you may be familiar with already.</p><p><strong><em>X-Reference-Id</em></strong></p><p>At some point, trying to get your API access credentials, one of the very first things a developer will be asked to provide is the X-Reference-Id in the Sandbox User Provisioning APIs. In more conventional terms, this will act as your <em>username</em>. This username can be anything as long as it’s a valid version 4 UUID string. Anything else will throw a 400 http error.</p><p><em>Make sure you use a valid version 4 UUID wherever it’s specified. Anything short will just throw the annoying 400 http error WITHOUT any information why. Your programming language should have a utility function to generate one for you. Most do. However, for quick testing, you can use this </em><a href="https://www.uuidgenerator.net/"><em>online tool</em></a><em> to get one.</em></p><p>Note: The provisioning API allows you to create multiple API users each with a unique X-Reference-Id and use them concurrently. This means, you can have different API users for different testing circumstances and purposes on the sandbox.</p><p><strong><em>apiKey</em></strong></p><p>In conventional terms, this will act as your password. You will need one and documentation is very clear on how to land on one. Just remember to use the same provisioning X-Reference-Id a.k.a username throughout for each unique provisioning process.</p><p>Note: You can regenerate your API key multiple times using the same provisioning X-Reference-Id. This is so handy in cases where your apiKey gets compromised or lost.</p><p><strong><em>API Access Token</em></strong></p><p>Finally, you will need an access token to start the real <em>business relevant API consumption calls</em>. To get one, you will need your ‘username’ and ‘password’ aka provisioning X-Reference-Id and apiKey. Documentation couldn’t be any clearer on this.</p><p>Take note of your Authorization header. Documentation states that:</p><p>Your http request should contain “<em>Basic authentication header containing </em><strong><em>API user ID</em></strong><em> and </em><strong><em>API key</em></strong><em>. And should be sent in as </em><strong><em>B64</em></strong><em> encoded.”</em></p><p>To an experience developer, this may be obvious. However, if its not, this is what they mean. Your http header call should contain a line like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JN0M0c3sle-awrKEWLCgBg.png" /><figcaption>sample Basic Auth http header</figcaption></figure><p>… and by:</p><p><em>API user ID, </em>they mean your provisioning X-Reference-Id, which I am calling your username here. API Key, them meaning exactly that, which I am calling your password here.</p><p><em>B64</em>, they mean base64 encoding. Chances are high your programming language already has a utility class or library for you to use. For quick testing though, you can use this <a href="https://www.blitter.se/utils/basic-authentication-header-generator/">online tool</a> to help you get a valid authorization header.</p><blockquote><strong><em>Caution:</em></strong> Avoid encoding your production credentials using any external tool you don’t trust. And even if you trust the tool as a person, reference your company security practices.</blockquote><p>Once you have your access token, you should be good to go. Just make sure your business service API http header calls have something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-NCtSKhXRuSN5PcehEgrw.png" /><figcaption>sample OAuth2 http header</figcaption></figure><h3>The Gotchas</h3><p><strong><em>Default Currency Type</em></strong></p><p>Chances are high that the default sandbox financial account that will be created for you behind the scenes will have the currency type preset to euros, symbol <strong><em>EUR</em></strong>. How I wished it was <strong><em>UGX</em></strong>, so I can feel <em>Ugandan</em> some more. Your target environment will default to <strong><em>sandbox</em></strong>. You can verify all this by querying your account balance and user details. I could not find any endpoint to query all supported currencies. Chances are very high though that UGX is supported in production environment since some businesses in the land are already live I am told.</p><p>If making your business API calls like <a href="https://momodeveloper.mtn.com/docs/services/collection/operations/requesttopay-POST">requesttopay</a> on sandbox, ensure to send currency type as <em>EUR</em>. Getting tempted and giving in to the temptation of sending UGX or USH will return the error below… and that’s only if all your other request parameters are valid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4W9CceLYStZtFBQZjOfG8g.png" /><figcaption>Invalid currency of UGX</figcaption></figure><p><strong><em>Account Balance</em></strong></p><p>Account balance response may not be consistent with your expectations. There are cases I got responses like the one in the image below. It’s sandbox though, so no worries… 🤞</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nWGBs3wbN5oTkFOpHnZ4Kw.png" /><figcaption>Negative account balance on sandbox</figcaption></figure><p><strong><em>Account Verification ( MTN Phone number verification )</em></strong></p><p>It’s cool that there is an endpoint to verify a customer phone number before you waste a lot of time making business calls with a wrong one. However, you may not be quick to depend on this endpoint on sandbox just yet.</p><p>There are times I made a validation call with <em>garbage</em> phone like msisdn for <strong>accountHolderIdType</strong> and phone number 01111111 for <strong>accountHolderId</strong> and got response like in image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h3svX2SFNK_8448h5C5Djw.png" /><figcaption>Unexpected MTN Phone number verification response</figcaption></figure><p>Again, you may not worry much, this is sandbox and production could be a different story.</p><p><strong><em>Customer debit USSD approval prompt</em></strong></p><p>On sandbox, don’t expect to receive one on your test msisdn even it’s a valid MTN MSISDN. But your sandbox account may be credited and querying your account balance <em>may</em> give assurance of that… or not.</p><h3>The Path Least Traveled…</h3><p><em>If you happen to end up on a path least traveled, take the sub-paths most traveled…</em></p><p>MTN Open APIs have just been released and for most of us, it’s the path least traveled if not the <em>path never-traveled-before</em>. However, this API is based on REST standards, which I may call the <em>sub-paths-most-traveled</em> for most developers. Take them!</p><p>For example, choose to use an http client you are familiar with already. If you have none, <a href="https://curl.haxx.se/docs/manual.html">cURL</a>, <a href="https://learning.getpostman.com/getting-started/">postman</a>, <a href="https://openjdk.java.net/groups/net/httpclient/intro.html">httpclient</a>, the infamous <a href="https://www.baeldung.com/rest-template">spring boot rest template</a>, etc are all available for your choosing. Just aim for the one you find simplest to test with. I already talked of the awesome <em>try it</em> feature <a href="https://momodeveloper.mtn.com/docs/services/collection/operations/requesttopay-POST/console">in the docs</a>.</p><h3>Outro</h3><p>Now, developers may go seize the day! Don’t let technology get in your way. Tool it to clear your way instead and focus the spared energy to fuel you MoMo business idea.</p><p>Remember, take advantage of the awesome documentation. If you get stuck, the sandbox portal has a support feature where you can post your issues. I haven’t used it yet but it’s likely there could be momo engineers awaiting your queries already.</p><p>If all effort in the above fails, and you are still <em>terribly</em> stuck. Like really so stuck, you may hit me up on twitter @LivePwndz. I will help when and where I can.</p><p>Imagine all that still fails [ which is least likely to happen ], and you happen to hang around Innovation Village, just look on your left as you walk in, at that <em>all-white-hot-dog-shaped</em> table, the cool geeks there may offer some help. Personally, help may only be offered from 2pm, on workdays, <em>for free</em>. Don’t hesitate.</p><p><strong><em>Merry Christmas and a codeful 2019.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc08053e5c24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some boilerplate is not worth it: JAVA Lombok]]></title>
            <link>https://medium.com/@pwndz172/some-boilerplate-is-not-worth-it-java-lombok-595ded37e1d2?source=rss-8b3d1ac8e64d------2</link>
            <guid isPermaLink="false">https://medium.com/p/595ded37e1d2</guid>
            <category><![CDATA[boilerplate]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[lombok]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Paul Kigozi]]></dc:creator>
            <pubDate>Fri, 16 Nov 2018 06:26:01 GMT</pubDate>
            <atom:updated>2018-11-17T02:22:37.929Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Quick Intro</h3><p><em>JAVA</em> is a popular <em>computer programming language</em>. The very first <a href="https://en.wikipedia.org/wiki/Java_version_history">release</a> was in the early 1996 and over time it has evolved leaps and bounds in lots of aspects. Among other reasons, this evolution has geared towards increasing ease of use. This most times translates to productivity. However, this <em>good</em> can also led to increase in language verbosity which is contributed to by <em>boilerplate</em>. Boilerplate is common to most languages and some <a href="https://en.wikipedia.org/wiki/Programmer">coders</a>, if not all <em>don’t</em> find it impressive in their source code. If you don’t know what boilerplate is, just hold on a sec I rumble a bit…</p><p>Coders are right to pounce! Time and again they are asked to be <a href="https://en.wikipedia.org/wiki/Don%27t_repeat_yourself">DRY</a>. However, sometimes they are trapped between a rock and a hard place…. and it’s raining. How do you stay DRY in that case? In their <a href="https://en.wikipedia.org/wiki/The_Pragmatic_Programmer"><em>The Pragmatic Programmer</em></a> classic of 1999, <a href="https://en.wikipedia.org/wiki/Andy_Hunt_(author)">Andy Hunt</a> &amp; <a href="https://en.wikipedia.org/wiki/Dave_Thomas_(author)">Dave Thomas</a> call this: <em>Imposed Duplication</em> that force us to offend DRY laws<em>.</em> They do suggest a couple of strategies to help and much more. <em>If you happen to reach the end of this article, you will know why all coders should read this book.</em></p><h3>What is boilerplate?</h3><p>Personal definition: <strong><em>First: </em></strong>You write code that is <em>similar</em> or <em>exactly the same. </em><strong><em>Then:</em></strong> You write this same code <em>again</em> in many other places. By <em>force</em> or <em>choice</em>. That, dear <em>reader</em> is what I call <em>boilerplate</em>. Find other explorations <a href="https://en.wikipedia.org/wiki/Boilerplate_code">here</a>.</p><p>Language specs aside, <em>Java</em> also <em>forces</em> coders to write boilerplate. And from the coder’s perspective, it’s <em>Just. For. The. Sake!</em> I mean because <em>Java</em> says so, and it’s the boss… or is it?</p><p>That <strong><em>cool </em></strong>but sometimes rude <em>Java</em> boss leads us to <em>Lombok</em>. More on this later but first, let’s get the meaning of <em>Lombok</em> in your language out of the way. Shall we?</p><p><strong>Luganda</strong>: kamulali, <strong>Swahili</strong>: piripiri, <strong>West African</strong>: peppe, <strong>Russian</strong>: чили and English: chili.</p><p>Like most food spices, two factors remain relevant: Taste &amp; quantity. As we warm up to <em>savour</em> our steamy meal, we make effort to understand the <strong><em>taste</em></strong> and <strong><em>quantity</em></strong> of what spice we are picking up to grace the <em>swallowship</em>. Just like a spice, we will briefly explore the <em>taste</em> and <em>quantity</em> of <em>Lombok</em>.</p><p>Now, you and I are headed to Indonesia, to an island called <a href="https://wikitravel.org/en/Lombok"><em>Lombok</em></a> for a taste of a spice with a <a href="https://www.google.com/search?hl=en-UG&amp;ei=UszbW-XhNoGTsAeriajYAQ&amp;q=lombok+meaning+in+english&amp;oq=lombok+in+english&amp;gs_l=psy-ab.1.1.0j0i22i30k1l6.48671.53802.0.58363.17.15.0.0.0.0.722.1198.4-1j0j1.2.0....0...1c.1.64.psy-ab..15.2.1197....0.ayV76lkk6GU">similar name</a>, right through <em>code</em> lenses. It’s going to be a smooth ride with <em>some</em> sightseeing and stuff. Still, buckle up, even if you are an experienced <em>reader</em>.</p><h3>What is Lombok?</h3><p>In a personal definition: A <em>Java </em>productivity library tool that helps coders steer clear of boilerplate code. Official definition is <a href="https://projectlombok.org/">here</a>. Time and effort saved can be used for other productive tasks, including <em>foosball. </em>Yes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*wksyJ2KoS1WNh1VnRAQu_g.jpeg" /><figcaption>photo credit: <a href="https://www.freepik.com/">https://www.freepik.com</a></figcaption></figure><p>Yes you may never have to write a <em>getter</em>/<em>setter</em>/<em>constructor</em>, or even declare a <em>final</em> field in your life, ever again. Unless of course if you <em>really</em> have to. And if you are working with code of days before <em>Java</em> 7, before the <a href="https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html">try-with-resource enhancement</a>, <em>Lombok</em> can still take care of closing that open resource <em>unconditionally</em> if you let it. This tool has lots of features that you can learn about <a href="https://projectlombok.org/features/all">here</a>.</p><p><em>Lombok</em> has been around the block since 2009 or so. It’s open source and covered with <a href="https://opensource.org/licenses/MIT">The MIT License</a>. The fire in the repositories still <a href="https://github.com/rzwitserloot/lombok">burns to date</a>. It’s community is active so you will find easy time <em>bug squashing</em> since it won’t be just your thumb in action. It’s documentation is fair and <a href="https://projectlombok.org/setup/overview">out there</a> and if it falls short, google should be your friend too. A lot of opinions have been written and published both for and against this <em>Lombok</em> spice. However, that’s all they are. Opinions. Just like this one.</p><h3>Under the hood</h3><p>Just like a ghost in that <a href="https://en.wikipedia.org/wiki/Annabelle_(film)">Annabella</a> horror, under the hood your boilerplate code lives but never left, fortunately or unfortunately… except you don’t really care. It’s boilerplate! Here is more juice even: You don’t have to deal with that <em>boilerplate</em> any more. Do you know why? Well, because <em>boss</em> <em>Lombok</em> is in the house creating, modifying or even deleting it. You won’t even see it in your editor, like literary. That’s so cool, right?</p><h3>In practice</h3><p>Take your time to ponder before adopting <em>Lombok</em>, more so if you are working on a team or open source project. In <strong><em>On the team</em></strong> section, I grind on this some more. Don’t stop at pondering though. Go ahead and play with <em>Lombok</em>. It won’t bite I promise and I will show you why in section <strong><em>Liberal Or Conservative</em></strong>. See for yourself if it’s anything close to what it’s cracked up to be… or not to be. You can use <em>Lombok</em> on a command line or inside your IDE. I prefer the latter.</p><p><strong>On the command line: </strong>With your <em>Lombok jar</em> downloaded from <a href="https://projectlombok.org/download">here</a>, it takes just one step to get rolling: Add it to your <em>classpath</em>. If you are not sure how to poke your <em>classpath</em> around, check<a href="https://stackoverflow.com/questions/11168015/java-how-to-add-a-library-or-api-while-compiling-with-command-line"> here</a>.</p><p><strong>In your IDE:</strong> For eclipse users, this takes two steps to setup. <em>Step 1</em>: With manual or a dependency management system like <em>maven</em>: add the <em>jar</em> to your <em>buildpath</em>. If you are not sure how, check <a href="https://alvinalexander.com/java/eclipse-build-path-add-jar">here</a>. For other IDEs do a google search with relevant keywords. <em>Step 2</em>: Configure your IDE to work with <em>Lombok</em>. One click on the <em>Lombok</em> <em>jar</em> and it will open up a wizard which automatically searches common places on your system for candidate instances to give a treat. In case it fails to find your target IDE, <em>Lombok</em> will ask for your help, in which case you can be nice and point it to your IDE installed directory. <em>IntelliJ</em> makes it even easier with a plugin. For detailed setup instructions, check the official documentation <a href="https://projectlombok.org/setup/overview">here</a>.</p><h3>Alternatives</h3><p>Mr. Obonyo, my primary school science teacher was a zealous fun of the proverb: <em>There is more than one way to kill a rat</em>. Among the many ways, he had a personal favorite. If you are curious which, like my classmates and I were back then, continue reading…</p><p><em>Lombok</em> is not alone in this `anti boilerplate` fight. There other tools that attempt to address the <em>boilerplate</em> pain in their own style worth acknowledging like:</p><p><strong>Eclipse:</strong> Without any plugin or setup instructions required, this legendary <em>Java</em> IDE will get you generating boilerplate if at all your index finger can lift and click. And have you heard of <a href="https://github.com/dharmangbhavsar/ok-eclipse"><em>Ok Eclipse</em></a>? Just watch the demo video <a href="https://drive.google.com/file/d/1ZylbIDkCvG9A_uAloH3o2l2N0H8rdYcG/view">here</a>. You may as well just let that lazy finger be.</p><p>This is all good stuff from eclipse and the community. Somewhere though, this alternative comes short. Take for example: If you change a field name/type later after code generation, you may have to delete the old boilerplate yourself, and again regenerate or rename, offending the <em>DRY </em>community. Even worse, this boiler is seated right there in your IDE, staring at you and whispering to itself: She can’t touch me. I am endorsed by language specs. I been here for the longest. <em>Java</em> is my daddy and whatnot. And the helpless coder be like: Really? Really boiler? Like seriously?</p><p>Anyways, drama aside and to keep the article <em>not</em> longer, I will leave it to you to explore other <em>Lombok</em> alternatives and probably choose one… or none. <em>Hakuna tabu!</em> However, make sure you find Mr. Obonyo’s preferred ways…</p><h3>On a team</h3><p>Teams are like family. At least <strong><em>good </em></strong>teams try to be. My brother Mujjuzi, if visiting mum later next week, will call in advance with any relevant details. If he happens to be coming in with any special friends, or for a more specific reason other than `mum sickness`, he will say so in that advance call.</p><p>Me? I am a surprise guy when it comes to such visits. I think it’s adorable to just bump in and scream the question: Is anybody home?! Everyone hates it, more so aunt Nakafeero.</p><p><em>Don’t be like me. Be like Mujjuzi.</em></p><p>Seek the opinion &amp; acknowledgement of your team before you let <em>Lombok</em> in. And for your future teams like the maintainers and new developers, let it be known clearly there is a stranger… or friend in the house. Do this in the official project source code documentation or even in a meager <em>readme</em> file.</p><p>And for an open source project, you wanna think long and hard before adoption.</p><p>And if your family is like mine, you may even have to consult that aging uncle of yours you haven’t talked to since the last vigil that happened about eons ago. But because he understands your mum from a richer perspective depending on your current visiting needs, you go for it.</p><h3>Liberal Or Conservative?</h3><p>I want to think <em>all</em> is liberal until proven conservative. The rest are just their variants.</p><p>In code, we call this <a href="https://en.wikipedia.org/wiki/Convention_over_configuration">convention over configuration</a> and <em>pivotal</em>’s <a href="http://spring.io/projects/spring-boot">Spring Boot</a> happens to score 1:NIL in recent games for me.</p><p>Well, you have read this far and seem sort of convinced but… not really. Maybe you have even tried <em>Lombok</em> already and have your reservations. Or you are just a power user and you really appreciate holding on to some control of your boilerplate :-). Worry not! You are reading the last section, and was made specially for you!</p><p><em>Lombok</em> is highly configurable. You can configure the extent to which it can help. You can choose what feature usage to flag. I find this so cool on a team, for purposes of usage standardization. For the how to details, check <a href="https://projectlombok.org/features/configuration">here</a>.</p><p>And if you wake up one day, for any or no particular reason and decide to get rid of this <em>ghost</em> tool, you won’t have to sweat it. With just one line of command, <em>Lombok</em> will be out of your source code. Like it never existed. Like a ghost. The one that is sorry to have bothered you? A good ghost! <em>Lombok</em> calls this to <em>delombok</em>. I call it ‘<em>delombokolization’</em>. Spiritual people call it <em>exorcism</em>.</p><p>The task can be accomplished easily via your command line. For purposes of automation, you can also configure your build tool say <em>maven</em> or <em>ant</em> to <em>delombok</em>. If you are interested in the extents of <em>delombokolization</em>, check <a href="https://projectlombok.org/features/delombok">here</a>.</p><h3>Finally</h3><p>Most good songs have an <em>outro</em>. Outros help prepare listeners for a gentle farewell. The once loved song seconds ago comes to an end. Just let go. It meant well. Coders call this <a href="https://en.wikipedia.org/wiki/Graceful_exit">graceful exit</a>.</p><p>For purposes of demonstration, created for you on this <em>bitbucket</em> repository is this 73<a href="https://bitbucket.org/Livepwndz/lombok/src/1dd363c605518745870717e4ed0b142f0fe1111f/src/main/java/lombok/BookOfPOJO.java?at=master&amp;fileviewer=file-view-default"> liner POJO</a> reduced to <a href="https://bitbucket.org/Livepwndz/lombok/src/master/src/main/java/lombok/BookOfLombok.java?fileviewer=file-view-default">a 10 liner</a> by <em>Lombok</em>. That’s about 630% ‘<em>typing</em> <em>productivity increase’</em>.</p><p>If you have any personal experience dealing with boilerplate pain in <em>Java</em> or any language per se, feel free to leave a comment. If it’s documented, please leave a link for others and I.</p><p>Like Michael, I am a <a href="https://en.wikipedia.org/wiki/Secret_Admirer">secret admirer</a> of <a href="https://en.wikipedia.org/wiki/Python_(programming_language)">python</a> for all the good I have heard about it. Lady <em>Java</em> hates it whenever I say that but it’s all good. Hello ‘<em>herpetologists’</em> out there, what is it like dealing with boilerplate in that <em>d’jango</em>? Do you even have such <em>plates </em>anyway?</p><p><em>And the other way to kill a rat:</em> You can set the infested house on fire! In my head Mr. Obonyo still sounds crazy but he is right. Keep my teacher’s solution in mind in case you resolve on your ‘anti- boilerplate’ tools, or any tool for that matter. Care not to sound crazy though!</p><p>Again, <em>The Pragmatic Programmer</em> book is a classic. If I ever get myself a daughter or son, and they happen to have the slightest interest in what I do, this book should be among my heartfelt gifts to them. If you are a coder, please read it already, before my daughter does! That’s <strong><em>the</em></strong> why.</p><p>Last but not least, this is my maiden article. Not only on medium but on the whole world wide web ever. As a token of encouragement, like we all come to need time and again, be gracious to leave a clap, or comment of correction/supplement, or even both! Better still, share it with friends where you can. Whatever you do though, thanks for reading and I hope it helped anyway.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=595ded37e1d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>