<?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 Nito Moreno on Medium]]></title>
        <description><![CDATA[Stories by Nito Moreno on Medium]]></description>
        <link>https://medium.com/@nito-moreno?source=rss-4920ceb70944------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ESuzFrSS9fOMVRkq2k99pg.jpeg</url>
            <title>Stories by Nito Moreno on Medium</title>
            <link>https://medium.com/@nito-moreno?source=rss-4920ceb70944------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 00:48:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nito-moreno/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[Spring Native: Spring Boot, but faster]]></title>
            <link>https://nito-moreno.medium.com/spring-native-spring-boot-but-faster-71cbff6a8309?source=rss-4920ceb70944------2</link>
            <guid isPermaLink="false">https://medium.com/p/71cbff6a8309</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[graalvm]]></category>
            <category><![CDATA[spring-native]]></category>
            <category><![CDATA[cloud-native]]></category>
            <dc:creator><![CDATA[Nito Moreno]]></dc:creator>
            <pubDate>Fri, 09 Apr 2021 12:41:14 GMT</pubDate>
            <atom:updated>2021-04-22T11:45:21.809Z</atom:updated>
            <content:encoded><![CDATA[<p>While you are reading these lines, there are a few hundreds of Spring Boot applications struggling to load a JVM and start.</p><p>Yet others are running but consuming a huge amount of memory since a JVM needs there — supporting the application that we just launched.</p><p>And adding this latency and resource consumption to a more Cloud Native world is just something that… It’s NOT a match!</p><p>Some developers just abandoned the idea of using Spring Boot in a world conquered by containers. And they moved far to those battles with Golang. Others stayed with Java, but in another flavour, like Quarkus or Micronaut (i.e. GraalVM powered).</p><p>But in March 2021, something happened in the community of Spring Boot users, and that was the release of the beta program of <a href="https://spring.io/blog/2021/03/11/announcing-spring-native-beta">Spring Native</a>.</p><p>What it was slow and resource consuming 🚚:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wAZvQRLFSl58w26EF9FYoQ.gif" /><figcaption>Spring Boot running with the JVM on Docker</figcaption></figure><p>Now is… just awesome 🚀🤘🏼:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B1DBCiBZ4vPgXfVhb538zg.gif" /><figcaption>Spring Boot running natively on Docker</figcaption></figure><p>Why? Spring Boot applications can be now be compiled using GraalVM. I.e., it can be compiled to <strong>native</strong> code.</p><p>- Image size for an example project can go from ~170MB to ~60MB<br>- RAM memory consumption can go from ~172MB to ~30MB<br>- Start-up times can go from 2 seconds to 70 milliseconds</p><p>Seems awesome.</p><p>I’ve written <a href="http://github.com/antmordel/bookend">a small example</a> that you can take a look and comment on that 🙂</p><p>And if you are Spanish 🇪🇸, I’ve explained all this <a href="https://www.youtube.com/watch?v=DK2OpCoU6NU">in a more multimedia format 🎥.</a></p><p>Thanks for reading. I appreciate your comments ❤️.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71cbff6a8309" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install Bitcoin SV on Mac OS?]]></title>
            <link>https://nito-moreno.medium.com/how-to-install-bitcoin-sv-on-mac-os-cd8e0a29f990?source=rss-4920ceb70944------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd8e0a29f990</guid>
            <category><![CDATA[bitcoin-sv]]></category>
            <category><![CDATA[full-node]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[bitcoind]]></category>
            <dc:creator><![CDATA[Nito Moreno]]></dc:creator>
            <pubDate>Wed, 23 Jan 2019 21:54:58 GMT</pubDate>
            <atom:updated>2020-01-15T13:26:37.195Z</atom:updated>
            <content:encoded><![CDATA[<p>Most trivial things in life sometimes became really cumbersome, and one example can be installing a Bitcoin SV node. Although Bitcoin SV can be found on its <a href="https://bitcoinsv.io/">website</a>, we do not have a binary for Mac OS X.</p><p>Here you can find a small excerpt of what you need if you want to download, compile, and run it in local.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hryOI56pBzeDxOVg2NU-3g.png" /></figure><h3>Requisites</h3><ol><li>Mac’s command line tools: Can be found <a href="https://developer.apple.com/download/more/">here</a>.</li><li>Homebrew for Mac: Can be found <a href="https://brew.sh/">here</a>.</li><li>Berkeley DB &gt;5*. Run the command brew install berkeley-db</li></ol><p>(*) If you installed any bitcoin full node in the past, there’s a chance that you already have this. However, we do need a version higher than 4. In order to check which version you have, if you installed that with Homebrew, you can try the command brew list --full-name --versions .</p><h3>1. Download source code from GitHub</h3><p>Download and run the project.</p><pre>git clone <a href="https://github.com/bitcoin-sv/bitcoin-sv.git">https://github.com/bitcoin-sv/bitcoin-sv.git</a><br>cd bitcoin-sv<br>./autogen.sh</pre><h3>2. Compile the source code</h3><p>The very first thing we need to do is to know where BerkeleyDB was installed. For that, we need to look for berkeley in the <em>Cellar</em> folder: /usr/local/Cellar/berkeley-db/&lt;version&gt;/</p><p>In my case, it is /usr/local/Cellar/berkeley-db/6.2.32/ .</p><ol><li>Knowing your own paths, we need to set the following environment flags:</li></ol><pre>export CXXFLAGS=&quot;-I/usr/local/Cellar/berkeley-db/&lt;version&gt;/include&quot;<br>export LDFLAGS=&quot;-L/usr/local/Cellar/berkeley-db/&lt;version&gt;/lib&quot;</pre><p>2. Next step is to run configure</p><pre>./configure</pre><p>3. Compile and install</p><pre>make<br>make install</pre><p>4. Check that went fine</p><pre>bitcoind --version<br>&gt;&gt;&gt; Bitcoin SV version v0.1.0.0-6e75abf60<br>&gt;&gt;&gt; Copyright (C) 2009-2018 The Bitcoin SV developers</pre><h3>3. Running the node</h3><p>Simply run the node in daemon mode (although the daemon flag is purely optional) as follows:</p><pre>bitcoind -daemon</pre><p>It will start your full node using as a location the default that is /Users/&lt;your_user&gt;/Library/Application Support/Bitcoin .</p><p>Insights into what is happening with the full node can be found in the same location: /Users/&lt;your_user&gt;/Library/Application Support/Bitcoin/debug.log</p><h3>4. Reference API and flags</h3><ul><li><a href="https://en.bitcoin.it/wiki/Running_Bitcoin#Command-line_arguments">Running Bitcoin - Bitcoin Wiki</a></li><li><a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list">Original Bitcoin client/API calls list</a></li></ul><p><strong><em>Happy coding :)</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd8e0a29f990" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[100% Code coverage is not enough]]></title>
            <link>https://nito-moreno.medium.com/100-code-coverage-is-not-enough-e1b2aaf3e5ee?source=rss-4920ceb70944------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1b2aaf3e5ee</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[mutation]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Nito Moreno]]></dc:creator>
            <pubDate>Tue, 24 Apr 2018 17:09:29 GMT</pubDate>
            <atom:updated>2018-04-24T21:07:12.440Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever heard about mutation testing? Whether you did or you didn’t, we all agree on the higher the code coverage is, the better.</p><p>And that’s the very first thing we check in every Pull Request/Code review: does this have proper unit testing?</p><p>Sonarqube or other tools for code quality have also some gates in place to not allow code with poor code coverage (especially for new code).</p><p>And now the complicated question: <strong>Are you confident when you see all green with 100% code coverage?</strong></p><p><em>Because I am not!</em></p><p>Let me focus on just a simple example. I just cloned the <a href="https://github.com/spring-projects/spring-retry">Spring Retry project</a>. Compiled. All tests passing of course. But Spring Retry is still a huge project, so let’s go for something simpler like a class: <a href="https://github.com/spring-projects/spring-retry/blob/54f667f5befc87b6d3a743f31b6c6550a063bf37/src/main/java/org/springframework/retry/support/RetrySimulation.java"><em>RetrySimulation</em></a><em>. </em>It has, of course, a test suite which prompts out the following results: 100% class coverage, 90% method coverage, and 97% line coverage. Awesome, isn’t it?</p><p>Now, as part as that class, we have the following code excerpt:</p><pre>long totalSleep = 0;<br>for (Long sleep : sleeps) {<br>   totalSleep += sleep;<br>}<br>this.totalSleep = totalSleep;</pre><p>Imagine that as a roguish developer I change the loop statement to:</p><pre>long totalSleep = 0;<br>for (Long sleep : sleeps) {<br>   totalSleep = 0;<br>}<br>this.totalSleep = totalSleep;</pre><p>And while I am smirking, press the test to see how it fails… But now the disaster comes…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B-87GnZM8uTRtSJ_FrXIIg.png" /><figcaption>Tests passing after changing a loop statement.</figcaption></figure><p>What happened with the high code coverage we had? That line was actually covered! Actually, because of the lacking of assertions, the test wasn’t realizing this change in the code. After adding one more assertion:</p><pre><em>assertEquals</em>(simulation.getLongestTotalSleepSequence().getTotalSleep(), 1600l);</pre><p>the test is finally <em>fine </em>(by fine I mean the test reflects the change in the for loop statement).</p><p><strong>How long have you been staring at the code to discover that? </strong>Obviously, I am not that genius looking at that complicated project and yelling: <em>there it is the missing assertion!</em></p><p>However recently I came across (thanks to my team lead) with <a href="http://pitest.org/">PiTest</a>. PiTest is basically a mutation test plugin for, among others, Maven.</p><p>What is a mutation test?</p><blockquote><em>Given a code </em>A<em>, which consists of a sequence of statements </em>Sts<em>. And given a test suite </em>T<em> testing that code. We call mutant to the new version of code </em>A<em> where one of the statements in </em>Sts<em> has been slightly modified. Then we say that our code passes the mutation test if and only if all mutants of code </em>A<em> are killed by the test suite </em>T<em>.</em></blockquote><p>So PiTest is going to generate mutants on your code and trying to discover which of them can survive. In the case a mutant survives, that’s a reason for a missing/not correct test.</p><p>In our case, after adding a few lines with the maven plugin, we run the report and we got one (of many) cases like the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49jOBu7W_PnuneQeqCL3Qg.png" /><figcaption>The output excerpt from PiTest.</figcaption></figure><p>Do you dare to run the mutation test in the project you have your hands in?</p><p>Disclaimer: I didn’t pay attention to how the class/test was implemented, just took it for the sake of showing how mutation test and this tool work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1b2aaf3e5ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“On my machine it worked” or how we lost the responsibility]]></title>
            <link>https://nito-moreno.medium.com/on-my-machine-it-worked-or-how-we-lost-the-responsibility-e7faca064554?source=rss-4920ceb70944------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7faca064554</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <dc:creator><![CDATA[Nito Moreno]]></dc:creator>
            <pubDate>Wed, 28 Mar 2018 07:57:26 GMT</pubDate>
            <atom:updated>2019-12-12T15:35:56.083Z</atom:updated>
            <content:encoded><![CDATA[<p>I am a software developer and if I were to be paid a pound every time I said or heard someone saying “<em>it’s broken, but on my machine it worked”</em>, today I’d be rich.</p><p>Even funnier, during my Computer Science graduate, I heard a friend in an exam saying “At home, it was working”. The Professor, smartly enough, answered “Thus your father can score your test”.</p><p>Every time this happens, I think to myself — imagine being a Civil Engineer, after a bridge collapses causing several fatalities, and your co-workers coming up to you and all saying <em>“My bridge mockup worked, I don’t know what happened”</em>.</p><p>Or can you perhaps picture a Mechanic Engineer, saying <em>“The car was braking in my simulators, I cannot believe it crashed in reality”.</em></p><p><em>No, right? I’m with you.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*qopFE-Az69KVOJM-MPn9vA.jpeg" /></figure><p>However, in Software Development or Software Lifecycle, it’s a <em>slightly</em> different story.</p><p>Perhaps it’s because we are not working with billionaire constructions or have lives at stake, we are just deploying software to some ugly and dark machine that at some point can be shut down.</p><p>Perhaps, I don’t know.</p><p>But what I do know for sure is that these things <em>do </em>happen here.</p><p>Yet I also know — and stats clearly confirm — that a team of software developers (plus analysts, projects managers, product managers, QAs, DevOps… whatnot) is expensive.</p><p>I am also pretty sure that no team director is ever greatly impressed when the Jenkings/Bamboo plan the team is handling is in red once again, and a developer comes up to him/her with the magic words:</p><p><em>“I don’t have a clue how this happened, but I promise on my computer it worked”.</em></p><p>What’s ironic is that over the years, we, the software engineers, have been the ones developing all kind of solutions — new methodologies, architectures, patterns, layers of testing, etc. to avoid these situations from happening.</p><p>Here I drop my two cents and I will put a checklist to follow <strong>before commiting to master.</strong></p><p>Before creating the Pull Request:</p><ul><li>Do I have my new feature covered by some tests (can be manual)?</li><li>Static code analyzer over your code: TSLint, Checkstyle…</li><li>All modified classes look greater than ever, they are nice and easy to read (they raise the bar of the code)</li><li>My code compiles</li><li>I can run my code interacting with external dependencies (DBs, other services)</li></ul><p>After merging with master:</p><ul><li>I checked the commits done affecting my classes when the PR was open</li><li>The integration tests still work (after merging, many strange things can happen)</li><li>I can follow the progress of the CI/CD until Integration Environment</li></ul><p>Happy coding, friends.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7faca064554" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The colleague I would like to have at work]]></title>
            <link>https://nito-moreno.medium.com/the-colleague-i-would-like-to-have-at-work-d4ad29ba51c4?source=rss-4920ceb70944------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4ad29ba51c4</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nito Moreno]]></dc:creator>
            <pubDate>Wed, 21 Feb 2018 21:45:43 GMT</pubDate>
            <atom:updated>2018-02-24T21:55:39.787Z</atom:updated>
            <content:encoded><![CDATA[<p>18.2 million software developers in the world. All IT companies hiring. Everybody is struggling to get that guy who is going to fit in the brand-new team they are building.</p><p>At the same time, many undergrads or even newcomers in the industry that, although seeing that sea of job offers, are struggling to get a new job.</p><p>Rather than giving a nice and bullshit advice, I am going to describe the perfect mate that I would like to have seated next to me.</p><h4>Learn (1) the fundamentals and (2) how to work with people. “Just that”.</h4><p>Do not try to know about all trendy technologies and buzz word being hashtags on Twitter. By the time you are studying a technology, two of them became famous. Rather than that, learn the fundamentals. By fundamentals I mean:</p><ol><li>Algorithms.</li><li>Data types.</li><li>Protocols, yes, how HTTP works.</li><li>Design Patterns.</li><li>Object-Oriented Programming.</li><li>Functional Programming.</li><li>Databases.</li></ol><p>An example of knowing OOP can be that you clearly differentiate basic concepts like encapsulation, polymorphism, inheritance, or composition. As well as for design patterns not only mention them but using them.</p><p>Knowing the basics, any new technology coming in the next years can be understood in a couple of weeks. You will have solid foundations to build whatever you want on top of that in terms of knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z-_sZooPA2TBKsjLE0eXkw.png" /></figure><p>Soft skills are a key thing in boosting your career. It is not easy. Cannot be learned in the university. However, as much as you can you should try to develop communication skills, being friendly, have the attitude to laugh, to be positive. Nobody wants to work with someone depressed, or upset to every question you do.<br>Your communication skills are going to help you in the interview process, thus letting to know the interviewers how much you know, and you much you can contribute to the team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4ad29ba51c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>