<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Programming Practices - Category - My Notes</title><link>https://blog.emecas.net/categories/programming-practices/</link><description>Programming Practices - Category - My Notes</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Tue, 17 Jun 2025 03:37:04 +0000</lastBuildDate><atom:link href="https://blog.emecas.net/categories/programming-practices/" rel="self" type="application/rss+xml"/><item><title>romenrg/evergreen-skills-developers</title><link>https://blog.emecas.net/posts/2025-06-17-romenrg-evergreen-skills-developers/</link><pubDate>Tue, 17 Jun 2025 03:37:04 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2025-06-17-romenrg-evergreen-skills-developers/</guid><description><![CDATA[<p>romenrg/evergreen-skills-developers<br>
List of evergreen skills, based on software development best practices &amp; cross-framework principles, that should serve as a fair assessment of skilled software engineers / developers<br>
Repository by romenrg, created in 2018, with 2,282 stars and 142 forks. License: MIT. Starred on 2025-06-17.<br>
Homepage: <a href="https://www.romenrg.com/blog/2018/12/29/what-makes-a-great-software-engineer/" target="_blank" rel="noopener noreffer ">https://www.romenrg.com/blog/2018/12/29/what-makes-a-great-software-engineer/</a><br>
<a href="https://github.com/romenrg/evergreen-skills-developers" target="_blank" rel="noopener noreffer ">https://github.com/romenrg/evergreen-skills-developers</a></p>
<hr>
<p><em>Source: starred on GitHub on 2025-06-17: <a href="https://github.com/romenrg/evergreen-skills-developers" target="_blank" rel="noopener noreffer ">romenrg/evergreen-skills-developers</a>.</em></p>]]></description></item><item><title>kousen/java_upgrade</title><link>https://blog.emecas.net/posts/2024-05-22-kousen-java-upgrade/</link><pubDate>Wed, 22 May 2024 15:00:59 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2024-05-22-kousen-java-upgrade/</guid><description><![CDATA[<p>kousen/java_upgrade<br>
Code for Java upgrade workshop<br>
Java repository by kousen, created in 2016, with 164 stars and 192 forks. License: MIT. Starred on 2024-05-22.<br>
<a href="https://github.com/kousen/java_upgrade" target="_blank" rel="noopener noreffer ">https://github.com/kousen/java_upgrade</a></p>
<hr>
<p><em>Source: starred on GitHub on 2024-05-22: <a href="https://github.com/kousen/java_upgrade" target="_blank" rel="noopener noreffer ">kousen/java_upgrade</a>.</em></p>]]></description></item><item><title>emilybache/GildedRose-Refactoring-Kata</title><link>https://blog.emecas.net/posts/2023-06-16-emilybache-gildedrose-refactoring-kata/</link><pubDate>Fri, 16 Jun 2023 13:59:20 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2023-06-16-emilybache-gildedrose-refactoring-kata/</guid><description><![CDATA[<p>emilybache/GildedRose-Refactoring-Kata<br>
Starting code for the GildedRose Refactoring Kata in many programming languages.<br>
XSLT repository by emilybache, created in 2013, with 4,322 stars and 6,159 forks. License: MIT. Starred on 2023-06-16.<br>
Homepage: <a href="https://youtu.be/Mt4XpGxigT4" target="_blank" rel="noopener noreffer ">https://youtu.be/Mt4XpGxigT4</a><span class="embed embed-video" data-yt="Mt4XpGxigT4"><button type="button" class="embed-play">&#x25BA; Play here</button> <span class="embed-title">Why Developers LOVE The Gilded Rose Kata</span>
            <span class="embed-meta"> · Emily Bache on YouTube · copied 2026-11-20</span>
        </span><br>
<a href="https://github.com/emilybache/GildedRose-Refactoring-Kata" target="_blank" rel="noopener noreffer ">https://github.com/emilybache/GildedRose-Refactoring-Kata</a></p>
<hr>
<p><em>Source: starred on GitHub on 2023-06-16: <a href="https://github.com/emilybache/GildedRose-Refactoring-Kata" target="_blank" rel="noopener noreffer ">emilybache/GildedRose-Refactoring-Kata</a>.</em></p>]]></description></item><item><title>Google Java Style Guide</title><link>https://blog.emecas.net/posts/2023-06-07-google-java-style-guide/</link><pubDate>Wed, 07 Jun 2023 23:13:36 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2023-06-07-google-java-style-guide/</guid><description><![CDATA[<p>Google Java Style Guide<br>
<a href="https://google.github.io/styleguide/javaguide.html" target="_blank" rel="noopener noreffer ">https://google.github.io/styleguide/javaguide.html</a></p>
<p>Issue #124 in emecas/commitit, open, opened on 2023-06-07.<br>
<a href="https://github.com/emecas/commitit/issues/124" target="_blank" rel="noopener noreffer ">https://github.com/emecas/commitit/issues/124</a></p>
<hr>
<p><em>Source: issue <a href="https://github.com/emecas/commitit/issues/124" target="_blank" rel="noopener noreffer ">#124</a> in emecas/commitit, opened on 2023-06-07.</em></p>]]></description></item><item><title>openrewrite/rewrite</title><link>https://blog.emecas.net/posts/2023-04-05-openrewrite-rewrite/</link><pubDate>Wed, 05 Apr 2023 19:14:09 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2023-04-05-openrewrite-rewrite/</guid><description><![CDATA[<p>openrewrite/rewrite<br>
Automated mass refactoring of source code.<br>
Java repository by openrewrite, created in 2020, with 3,980 stars and 607 forks. License: Apache-2.0. Starred on 2023-04-05.<br>
Homepage: <a href="https://docs.openrewrite.org" target="_blank" rel="noopener noreffer ">https://docs.openrewrite.org</a><br>
<a href="https://github.com/openrewrite/rewrite" target="_blank" rel="noopener noreffer ">https://github.com/openrewrite/rewrite</a></p>
<hr>
<p><em>Source: starred on GitHub on 2023-04-05: <a href="https://github.com/openrewrite/rewrite" target="_blank" rel="noopener noreffer ">openrewrite/rewrite</a>.</em></p>]]></description></item><item><title>Big-O Cheat Sheet</title><link>https://blog.emecas.net/posts/2020-11-17-big-o-cheat-sheet/</link><pubDate>Tue, 17 Nov 2020 20:46:04 -0500</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-11-17-big-o-cheat-sheet/</guid><description><![CDATA[<p>Big-O Cheat Sheet<br>
<a href="https://www.bigocheatsheet.com/Know" target="_blank" rel="noopener noreffer ">https://www.bigocheatsheet.com/Know</a> Thy Complexities!</p>
<p>Hi there!  This webpage covers the space and time Big-O complexities of common algorithms used in Computer Science.  When preparing for technical interviews in the past, I found myself spending hours crawling the internet putting together the best, average, and worst case complexities for search and sorting algorithms so that I wouldn&rsquo;t be stumped when asked about them.  Over the last few years, I&rsquo;ve interviewed at several Silicon Valley startups, and also some bigger companies, like Google, Facebook, Yahoo, LinkedIn, and Uber, and each time that I prepared for an interview, I thought to myself &ldquo;Why hasn&rsquo;t someone created a nice Big-O cheat sheet?&rdquo;.  So, to save all of you fine folks a ton of time, I went ahead and created one.  Enjoy! - Eric</p>]]></description></item><item><title>Explore Posibilities for Keeping retry simple with: BlockingQueue or/and PriorityQueue</title><link>https://blog.emecas.net/posts/2020-06-28-explore-posibilities-for-keeping-retry-simple-with-blockingq/</link><pubDate>Sun, 28 Jun 2020 13:04:29 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-06-28-explore-posibilities-for-keeping-retry-simple-with-blockingq/</guid><description><![CDATA[<p>Explore Posibilities for Keeping retry simple with: BlockingQueue or/and PriorityQueue<br>
10 Collection classes every Java programmer should learn<br>
1. List<br>
2. Set<br>
3. Map<br>
4. ArrayList<br>
5. LinkedList<br>
6. HashSet<br>
7. HashMap<br>
8. ConcurrentHashMap<br>
9. BlockingQueue<br>
10. PriorityQueue<br>
learn more:<br>
<a href="https://t.co/hdDp9WdAeB" target="_blank" rel="noopener noreffer ">https://t.co/hdDp9WdAeB</a> #Java #programming via @javarevisited #100DaysOfCode</p>
<p><a href="https://twitter.com/javinpaul/status/1276747683030425600?s=19" target="_blank" rel="noopener noreffer ">https://twitter.com/javinpaul/status/1276747683030425600?s=19</a><span class="embed embed-x">
            <span class="embed-text">10 Collection classes every Java programmer should learn<br>1. List<br>2. Set<br>3. Map<br>4. ArrayList<br>5. LinkedList<br>6. HashSet<br>7. HashMap<br>8. ConcurrentHashMap<br>9. BlockingQueue<br>10. PriorityQueue<br>learn more:https://t.co/hdDp9WdAeB #Java #programming via @javarevisited #100DaysOfCode</span>
            <span class="embed-meta">— javinpaul (@javinpaul) · June 27, 2020 · copied 2026-11-20</span>
        </span></p>]]></description></item><item><title>The Mikado Method</title><link>https://blog.emecas.net/posts/2020-05-15-the-mikado-method/</link><pubDate>Fri, 15 May 2020 22:13:55 +0000</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-05-15-the-mikado-method/</guid><description><![CDATA[<p>The Mikado Method<br>
The Mikado Method is a book written by the creators of this process. It describes a pragmatic, straightforward, and empirical method to plan and perform non-trivial technical improvements on an existing software system. The method has simple rules, but the applicability is vast. As you read, you&rsquo;ll practice a step-by-step system for identifying the scope and nature of your technical debt &hellip;</p>
<p><a href="https://www.manning.com/books/the-mikado-method" target="_blank" rel="noopener noreffer ">https://www.manning.com/books/the-mikado-method</a></p>
<p><a href="http://www.methodsandtools.com/archive/mikado.php" target="_blank" rel="noopener noreffer ">http://www.methodsandtools.com/archive/mikado.php</a></p>]]></description></item><item><title>7 Popular Unit Test Naming Conventions</title><link>https://blog.emecas.net/posts/2020-04-29-7-popular-unit-test-naming-conventions/</link><pubDate>Wed, 29 Apr 2020 18:54:24 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-04-29-7-popular-unit-test-naming-conventions/</guid><description><![CDATA[<p>7 Popular Unit Test Naming Conventions<br>
<a href="https://dzone.com/articles/7-popular-unit-test-naming" target="_blank" rel="noopener noreffer ">https://dzone.com/articles/7-popular-unit-test-naming</a></p>
<p>1. MethodName_StateUnderTest_ExpectedBehavior: There are arguments against this strategy that if method names change as part of code refactoring 	than test name like this should also change or it becomes difficult to comprehend at a later stage. Following are some of the example:<br>
isAdult_AgeLessThan18_False<br>
withdrawMoney_InvalidAccount_ExceptionThrown<br>
admitStudent_MissingMandatoryFields_FailToAdmit<br>
2. MethodName_ExpectedBehavior_StateUnderTest: Slightly tweeked from above, but a section of developers also recommend using this naming technique. This technique also has disadvantage that if method names get changed, it becomes difficult to comprehend at a later stage. Following is how tests in first example would read like if named using this technique:<br>
isAdult_False_AgeLessThan18<br>
withdrawMoney_ThrowsException_IfAccountIsInvalid<br>
admitStudent_FailToAdmit_IfMandatoryFieldsAreMissing<br>
3. test[Feature being tested]: This one makes it easy to read the test as the feature to be tested is written as part of test name. Although, there are arguments that the “test” prefix is redundant. However, some sections of developer love to use this technique. Following is how the above tests would read like if named using this technique:<br>
testIsNotAnAdultIfAgeLessThan18<br>
testFailToWithdrawMoneyIfAccountIsInvalid<br>
testStudentIsNotAdmittedIfMandatoryFieldsAreMissing<br>
4. Feature to be tested: Many suggests that it is better to simply write the feature to be tested because one is anyway using annotations to identify method as test methods. It is also recommended for the reason that it makes unit tests as alternate form of documentation and avoid code smells. Following is how tests in first example would read like if named using this technique:<br>
IsNotAnAdultIfAgeLessThan18<br>
FailToWithdrawMoneyIfAccountIsInvalid<br>
StudentIsNotAdmittedIfMandatoryFieldsAreMissing<br>
5. Should_ExpectedBehavior_When_StateUnderTest: This technique is also used by many as it makes it easy to read the tests. Following is how tests in first example would read like if named using this technique:<br>
Should_ThrowException_When_AgeLessThan18<br>
Should_FailToWithdrawMoney_ForInvalidAccount<br>
Should_FailToAdmit_IfMandatoryFieldsAreMissing<br>
6. When_StateUnderTest_Expect_ExpectedBehavior: Following is how tests in first example would read like if named using this technique:<br>
When_AgeLessThan18_Expect_isAdultAsFalse<br>
When_InvalidAccount_Expect_WithdrawMoneyToFail<br>
When_MandatoryFieldsAreMissing_Expect_StudentAdmissionToFail<br>
7. Given_Preconditions_When_StateUnderTest_Then_ExpectedBehavior: This approach is based on naming convention developed as part of Behavior-Driven Development (BDD). The idea is to break down the tests into three part such that one could come up with preconditions, state under test and expected behavior to be written in above format. Following is how tests in first example would read like if named using this technique:<br>
Given_UserIsAuthenticated_When_InvalidAccountNumberIsUsedToWithdrawMoney_Then_TransactionsWillFail</p>]]></description></item><item><title>The Art of Computer Programming</title><link>https://blog.emecas.net/posts/2020-04-20-the-art-of-computer-programming/</link><pubDate>Mon, 20 Apr 2020 09:24:33 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-04-20-the-art-of-computer-programming/</guid><description><![CDATA[<p>The Art of Computer Programming<br>
<a href="https://www-cs-faculty.stanford.edu/~knuth/taocp.html" target="_blank" rel="noopener noreffer ">https://www-cs-faculty.stanford.edu/~knuth/taocp.html</a></p>
<p>&gt;&gt; The bible of all fundamental algorithms and the work that taught many of today’s software developers<br>
&gt;&gt; most of what they know about computer programming.<br>
&gt;&gt; —Byte, September 1995</p>
<p>ISBN-13: 978-0321751041<br>
ISBN-10: 0321751043</p>
<p>Ref: <a href="https://www.quantamagazine.org/computer-scientist-donald-knuth-cant-stop-telling-stories-20200416/#comments" target="_blank" rel="noopener noreffer ">https://www.quantamagazine.org/computer-scientist-donald-knuth-cant-stop-telling-stories-20200416/#comments</a></p>
<p>Knuth eventually merged his dual loves of discrete digital problems and large collections of information in his magnum opus, The Art of Computer Programming — a book series he began writing as a graduate student in 1962 and has yet to complete. He published volume 1 in 1968, and the current version is in its 42nd printing. Volume 2 followed in 1969 and volume 3 in 1973. By then he was a computer science professor at Stanford University, but he worried that his work would prevent him from completing his books. So he took a leave of absence in 1990 and then retired in 1993 to spend the rest of his life completing the seven-volume set. Now 82, he’s hard at work on part B of volume 4, and he anticipates that the book will have at least parts A through F.</p>]]></description></item></channel></rss>