<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rakesh Mothukuri</title><link>https://rakeshmothukuri.dev/</link><description>Recent content on Rakesh Mothukuri</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026</copyright><lastBuildDate>Thu, 29 Oct 2026 21:03:45 +0000</lastBuildDate><atom:link href="https://rakeshmothukuri.dev/index.xml" rel="self" type="application/rss+xml"/><item><title>Building a Software Factory: The Work Around the Model</title><link>https://rakeshmothukuri.dev/posts/the-work-around-the-model/</link><pubDate>Thu, 29 Oct 2026 21:03:45 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/the-work-around-the-model/</guid><description>&lt;p&gt;I have been building a software factory: a system in which agents take a piece of work from an idea to a change that is ready to merge. What follows isn&amp;rsquo;t a blueprint. It&amp;rsquo;s a few things that surprised me, and that I&amp;rsquo;d probably mention to anyone setting out to do the same&lt;/p&gt;
&lt;h2 class="relative group"&gt;The model was rarely the problem
&lt;div id="the-model-was-rarely-the-problem" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#the-model-was-rarely-the-problem" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;I had assumed most of the effort would go into the model: choosing it, prompting it, working round its mistakes. A fair amount did, and that work is real. But there were times when the model was doing perfectly reasonable work and very little of use came out the other end.&lt;/p&gt;</description></item><item><title>Jira Might Be Slowing Us Down</title><link>https://rakeshmothukuri.dev/posts/jira-might-be-slowing-us-down/</link><pubDate>Sat, 28 Mar 2026 22:00:00 +0100</pubDate><guid>https://rakeshmothukuri.dev/posts/jira-might-be-slowing-us-down/</guid><description>&lt;p&gt;I&amp;rsquo;ve been noticing this for a few months now.&lt;/p&gt;
&lt;p&gt;Jira, at least the way we use it today, often feels like it slows things down more than it helps. Not because it&amp;rsquo;s a bad tool, but because it&amp;rsquo;s optimised for a way of working that may no longer match how execution actually happens.&lt;/p&gt;
&lt;p&gt;In larger organisations, Jira serves clear purposes: visibility, alignment, accountability, and coordination. Those are real constraints. But that doesn&amp;rsquo;t automatically mean, given how things have evolved, that it&amp;rsquo;s still the right default approach.&lt;/p&gt;</description></item><item><title>From Coding to Directing: How My Engineering Work Changed</title><link>https://rakeshmothukuri.dev/posts/from-coding-to-directing-engineering-work-changed/</link><pubDate>Tue, 27 Jan 2026 22:00:00 +0100</pubDate><guid>https://rakeshmothukuri.dev/posts/from-coding-to-directing-engineering-work-changed/</guid><description>&lt;p&gt;Over the last few months, my mental model for engineering has fundamentally shifted. It isn&amp;rsquo;t just that the tools got better at autocomplete; it&amp;rsquo;s that the &amp;ldquo;unit of work&amp;rdquo; has changed.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve moved from 80% manual execution to 80% agent-driven construction. This is a transformation in how I solve problems.&lt;/p&gt;
&lt;h3 class="relative group"&gt;Shipping Outcomes over Steps
&lt;div id="shipping-outcomes-over-steps" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#shipping-outcomes-over-steps" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;p&gt;In my role, I&amp;rsquo;ve always valued shipping outcomes over endless experimentation. Working with agents forces this discipline. When you program in English, you quickly realize that its essential to have clarity of the intent.&lt;/p&gt;</description></item><item><title>Why Agent Work Must Be Disposable</title><link>https://rakeshmothukuri.dev/posts/why-agent-work-must-be-disposable/</link><pubDate>Mon, 29 Dec 2025 00:59:55 +0100</pubDate><guid>https://rakeshmothukuri.dev/posts/why-agent-work-must-be-disposable/</guid><description>&lt;p&gt;Most engineers worry about the quality of code agents produce. They worry about technical debt and standards. But quality is not the main bottleneck. The real problem is volume. Agents produce code at a scale our current workflows cannot handle.&lt;/p&gt;
&lt;p&gt;Generating code faster does not increase velocity if integration stays the same. It just creates a coordination tax. Pull request queues fill up. Senior engineers lose track of the system architecture. When four different agents open PRs touching the same core library, you spend the afternoon resolving merge conflicts instead of shipping. This is why agent output cannot be treated as a permanent part of the codebase. It has to be disposable.&lt;/p&gt;</description></item><item><title>Spec-Driven Development: Build the Intent First, Then the Code</title><link>https://rakeshmothukuri.dev/posts/spec-driven-development/</link><pubDate>Sat, 13 Sep 2025 12:00:00 +0200</pubDate><guid>https://rakeshmothukuri.dev/posts/spec-driven-development/</guid><description>&lt;h1 class="relative group"&gt;Spec-Driven Development: Build the Intent First, Then the Code
&lt;div id="spec-driven-development-build-the-intent-first-then-the-code" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#spec-driven-development-build-the-intent-first-then-the-code" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;: In the AI era, implementation is fast. Alignment is the bottleneck. Spec-Driven Development (SDD) makes a single, living specification the source of truth. Plans, tasks, tests, and code serve the spec but not the other way around.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;ve ever merged code that worked but didn&amp;rsquo;t solve the right problem you already know why SDD matters.&lt;/p&gt;</description></item><item><title>Turning Terminal into a Fire-Breathing Synth</title><link>https://rakeshmothukuri.dev/posts/21-breathing-fire-in-the-terminal/</link><pubDate>Sun, 20 Jul 2025 12:00:00 +0200</pubDate><guid>https://rakeshmothukuri.dev/posts/21-breathing-fire-in-the-terminal/</guid><description>&lt;p&gt;Weekend outcome: Saw &lt;a
href="https://twitter.com/thorstenball"
target="_blank"
&gt;@thorstenball&lt;/a&gt; challenge devs to make OpenSimplex noise dance in the terminal in his &lt;a
href="https://open.substack.com/pub/thorstenball/p/joy-and-curiosity-46"
target="_blank"
&gt;Joy &amp;amp; Curiosity newsletter&lt;/a&gt;. I went further colour palettes, character sets and a tiny audio engine. Here&amp;rsquo;s what popped out.&lt;/p&gt;
&lt;h2 class="relative group"&gt;Demo
&lt;div id="demo" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#demo" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;&lt;video src="https://rakeshmothukuri.dev/video/OSN.mp4" controls loop playsinline width="100%"&gt;&lt;/video&gt;&lt;/p&gt;
&lt;h2 class="relative group"&gt;Ingredients
&lt;div id="ingredients" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#ingredients" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Piece&lt;/th&gt;
&lt;th&gt;Library / Tool&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Noise&lt;/td&gt;
&lt;td&gt;&lt;a
href="https://deno.land/x/open_simplex_noise"
target="_blank"
&gt;https://deno.land/x/open_simplex_noise&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runtime&lt;/td&gt;
&lt;td&gt;Deno 2.x&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Colour&lt;/td&gt;
&lt;td&gt;ANSI 256-colour escapes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sound&lt;/td&gt;
&lt;td&gt;WAV buffer → afplay (macOS)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Recorder&lt;/td&gt;
&lt;td&gt;asciinema + ffmpeg&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 class="relative group"&gt;How it works (quick tour)
&lt;div id="how-it-works-quick-tour" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#how-it-works-quick-tour" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Noise&lt;/strong&gt; – &lt;code&gt;makeNoise4D()&lt;/code&gt; gives a 4-D field. Feed &lt;code&gt;(x,y,t,w)&lt;/code&gt; where &lt;code&gt;t&lt;/code&gt; increments every frame and &lt;code&gt;w&lt;/code&gt; drifts slowly ➜ organic motion.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Characters&lt;/strong&gt; – map the value from &lt;code&gt;(-1,1)&lt;/code&gt; into an ASCII set (&lt;code&gt;░▒▓█&lt;/code&gt;, &lt;code&gt;.-:=+*#&lt;/code&gt;, …).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Colour&lt;/strong&gt; – same value selects a colour from the active palette (fire, ocean, ice…).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sound&lt;/strong&gt; – every third frame take the noise at &lt;code&gt;(0,0,t,w)&lt;/code&gt;, scale to ~220–440 Hz, write a 100 ms WAV, pipe to &lt;code&gt;afplay&lt;/code&gt;, delete file.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Controls&lt;/strong&gt; – &lt;code&gt;←/→&lt;/code&gt; speed • &lt;code&gt;↑/↓&lt;/code&gt; zoom • &lt;code&gt;c/v&lt;/code&gt; palette • &lt;code&gt;z/x&lt;/code&gt; charset • &lt;code&gt;s/l&lt;/code&gt; presets • &lt;code&gt;q&lt;/code&gt; quit.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 class="relative group"&gt;Key Code Snippets
&lt;div id="key-code-snippets" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#key-code-snippets" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;h3 class="relative group"&gt;The Core Animation Loop
&lt;div id="the-core-animation-loop" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#the-core-animation-loop" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-typescript" data-lang="typescript"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;function&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;animate() {&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;clearScreen&lt;/span&gt;();
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; (&lt;span style="color:#66d9ef"&gt;let&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;y&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;; &lt;span style="color:#a6e22e"&gt;y&lt;/span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;height&lt;/span&gt;; &lt;span style="color:#a6e22e"&gt;y&lt;/span&gt;&lt;span style="color:#f92672"&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;let&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;row&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;&amp;#34;&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; (&lt;span style="color:#66d9ef"&gt;let&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;x&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;; &lt;span style="color:#a6e22e"&gt;x&lt;/span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;width&lt;/span&gt;; &lt;span style="color:#a6e22e"&gt;x&lt;/span&gt;&lt;span style="color:#f92672"&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;n&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;noise&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;x&lt;/span&gt; &lt;span style="color:#f92672"&gt;/&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;zoomX&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;y&lt;/span&gt; &lt;span style="color:#f92672"&gt;/&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;zoomY&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;t&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;w&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;row&lt;/span&gt; &lt;span style="color:#f92672"&gt;+=&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;getColor&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;n&lt;/span&gt;) &lt;span style="color:#f92672"&gt;+&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;getChar&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;n&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;console&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;log&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;row&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;printHUD&lt;/span&gt;();
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#75715e"&gt;// Audio generation every 3rd frame
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; (&lt;span style="color:#a6e22e"&gt;frameCount&lt;/span&gt;&lt;span style="color:#f92672"&gt;++&lt;/span&gt; &lt;span style="color:#f92672"&gt;%&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; &lt;span style="color:#f92672"&gt;===&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;toneNoise&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;noise&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;, &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;t&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;w&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;freq&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;220&lt;/span&gt; &lt;span style="color:#f92672"&gt;+&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;toneNoise&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;220&lt;/span&gt;; &lt;span style="color:#75715e"&gt;// 220-440 Hz range
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;playTone&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;freq&lt;/span&gt;).&lt;span style="color:#66d9ef"&gt;catch&lt;/span&gt;(() &lt;span style="color:#f92672"&gt;=&amp;gt;&lt;/span&gt; {});
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;t&lt;/span&gt; &lt;span style="color:#f92672"&gt;+=&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;speed&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;w&lt;/span&gt; &lt;span style="color:#f92672"&gt;+=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0.01&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3 class="relative group"&gt;WAV Generation Magic
&lt;div id="wav-generation-magic" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#wav-generation-magic" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-typescript" data-lang="typescript"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;function&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;generateWavData&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;freq&lt;/span&gt;: &lt;span style="color:#66d9ef"&gt;number&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;durationMs&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;100&lt;/span&gt;)&lt;span style="color:#f92672"&gt;:&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;Uint8Array&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;sampleRate&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;44100&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;numSamples&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; (&lt;span style="color:#a6e22e"&gt;durationMs&lt;/span&gt; &lt;span style="color:#f92672"&gt;/&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1000&lt;/span&gt;) &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;sampleRate&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;bytesPerSample&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;buffer&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;new&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;ArrayBuffer&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;44&lt;/span&gt; &lt;span style="color:#f92672"&gt;+&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;numSamples&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;bytesPerSample&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;view&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;new&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;DataView&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;buffer&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#75715e"&gt;// WAV Header (44 bytes)
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;writeStr&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;RIFF&amp;#34;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;view&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;setUint32&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;4&lt;/span&gt;, &lt;span style="color:#ae81ff"&gt;36&lt;/span&gt; &lt;span style="color:#f92672"&gt;+&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;numSamples&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;bytesPerSample&lt;/span&gt;, &lt;span style="color:#66d9ef"&gt;true&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;writeStr&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;8&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;WAVE&amp;#34;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;writeStr&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;12&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;fmt &amp;#34;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;view&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;setUint32&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;16&lt;/span&gt;, &lt;span style="color:#ae81ff"&gt;16&lt;/span&gt;, &lt;span style="color:#66d9ef"&gt;true&lt;/span&gt;); &lt;span style="color:#75715e"&gt;// Subchunk1Size
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;view&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;setUint16&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;20&lt;/span&gt;, &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;, &lt;span style="color:#66d9ef"&gt;true&lt;/span&gt;); &lt;span style="color:#75715e"&gt;// PCM format
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;view&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;setUint16&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;22&lt;/span&gt;, &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;, &lt;span style="color:#66d9ef"&gt;true&lt;/span&gt;); &lt;span style="color:#75715e"&gt;// mono
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;view&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;setUint32&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;24&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;sampleRate&lt;/span&gt;, &lt;span style="color:#66d9ef"&gt;true&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#75715e"&gt;// Generate sine wave samples
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; (&lt;span style="color:#66d9ef"&gt;let&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;i&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;; &lt;span style="color:#a6e22e"&gt;i&lt;/span&gt; &lt;span style="color:#f92672"&gt;&amp;lt;&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;numSamples&lt;/span&gt;; &lt;span style="color:#a6e22e"&gt;i&lt;/span&gt;&lt;span style="color:#f92672"&gt;++&lt;/span&gt;) {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;t&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;i&lt;/span&gt; &lt;span style="color:#f92672"&gt;/&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;sampleRate&lt;/span&gt;;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;sample&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; Math.&lt;span style="color:#a6e22e"&gt;sin&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;2&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; Math.&lt;span style="color:#a6e22e"&gt;PI&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;freq&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;t&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;intSample&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; Math.&lt;span style="color:#a6e22e"&gt;floor&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;sample&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;32767&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;view&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;setInt16&lt;/span&gt;(&lt;span style="color:#ae81ff"&gt;44&lt;/span&gt; &lt;span style="color:#f92672"&gt;+&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;i&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;intSample&lt;/span&gt;, &lt;span style="color:#66d9ef"&gt;true&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; }
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;new&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;Uint8Array&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;buffer&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3 class="relative group"&gt;Color &amp;amp; Character Mapping
&lt;div id="color--character-mapping" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#color--character-mapping" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-typescript" data-lang="typescript"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;function&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;getColor&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;n&lt;/span&gt;: &lt;span style="color:#66d9ef"&gt;number&lt;/span&gt;)&lt;span style="color:#f92672"&gt;:&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;string&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;colors&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;palettes&lt;/span&gt;[&lt;span style="color:#a6e22e"&gt;currentPalette&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;i&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; Math.&lt;span style="color:#a6e22e"&gt;floor&lt;/span&gt;((&lt;span style="color:#a6e22e"&gt;n&lt;/span&gt; &lt;span style="color:#f92672"&gt;+&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;) &lt;span style="color:#f92672"&gt;/&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; (&lt;span style="color:#a6e22e"&gt;colors&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;length&lt;/span&gt; &lt;span style="color:#f92672"&gt;-&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;));
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;colors&lt;/span&gt;[Math.&lt;span style="color:#a6e22e"&gt;min&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;i&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;colors&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;length&lt;/span&gt; &lt;span style="color:#f92672"&gt;-&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;)];
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;function&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;getChar&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;n&lt;/span&gt;: &lt;span style="color:#66d9ef"&gt;number&lt;/span&gt;)&lt;span style="color:#f92672"&gt;:&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;string&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;charset&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;charsets&lt;/span&gt;[&lt;span style="color:#a6e22e"&gt;currentCharset&lt;/span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;const&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;i&lt;/span&gt; &lt;span style="color:#f92672"&gt;=&lt;/span&gt; Math.&lt;span style="color:#a6e22e"&gt;floor&lt;/span&gt;((&lt;span style="color:#a6e22e"&gt;n&lt;/span&gt; &lt;span style="color:#f92672"&gt;+&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;) &lt;span style="color:#f92672"&gt;/&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt; &lt;span style="color:#f92672"&gt;*&lt;/span&gt; (&lt;span style="color:#a6e22e"&gt;charset&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;length&lt;/span&gt; &lt;span style="color:#f92672"&gt;-&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;));
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;charset&lt;/span&gt;[Math.&lt;span style="color:#a6e22e"&gt;min&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;i&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;charset&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;length&lt;/span&gt; &lt;span style="color:#f92672"&gt;-&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;)];
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Full repo: &lt;a
href="https://github.com/rockey5520/open_simplex_noise"
target="_blank"
&gt;https://github.com/rockey5520/open_simplex_noise&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Deno vs Go</title><link>https://rakeshmothukuri.dev/posts/20-deno-vs-go/</link><pubDate>Fri, 30 Sep 2022 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/20-deno-vs-go/</guid><description>&lt;p&gt;This is unusual of me to think of putting two technologies head-on-head but I got curious recently seeing the comparison chart from &lt;a
href="https://bun.sh/"
target="_blank"
&gt;link&lt;/a&gt; comparing it with node and deno and wanted to try myself with deno and go which I am using at the moment but not to evaluate and choose the winner for my work but rather to satisfy my curiosity. Posting these results here so in case if you ever wanted to do one here is the summary from my experiment&lt;/p&gt;</description></item><item><title>Three almost similar go commands</title><link>https://rakeshmothukuri.dev/posts/19-three-almost-similar-go-commands/</link><pubDate>Thu, 22 Oct 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/19-three-almost-similar-go-commands/</guid><description>&lt;p&gt;Go has three variations of similar commands go run, go build, and go install. We will see in this story what is the purpose of each command and how to use them.&lt;/p&gt;
&lt;p&gt;Each of these commands either takes a single Go file or a list of Go files. Here in this story, we will use a Go hello world program for example to refer along the way.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-go" data-lang="go"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;// file name : hello.go&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;package&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;main&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;import&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;fmt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;func&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;main&lt;/span&gt;(){
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;fmt&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;Println&lt;/span&gt;(&lt;span style="color:#e6db74"&gt;&amp;#34;Hello, world!&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h3 class="relative group"&gt;&lt;strong&gt;go run&lt;/strong&gt;
&lt;div id="go-run" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#go-run" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;p&gt;If you run the command &lt;code&gt;go run hello.go&lt;/code&gt; in your terminal/command prompt you should see the output as &lt;code&gt;Hello, world!&lt;/code&gt; printed.&lt;/p&gt;</description></item><item><title>Effective way to read environment variables in Go</title><link>https://rakeshmothukuri.dev/posts/18-go-environment-variables/</link><pubDate>Wed, 21 Oct 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/18-go-environment-variables/</guid><description>&lt;h3 class="relative group"&gt;Introduction
&lt;div id="introduction" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#introduction" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;p&gt;One of the principles from the &lt;a
href="https://12factor.net/"
target="_blank"
&gt;twelve-factor&lt;/a&gt; app is store application configuration in the environment because it is most likely application config will determine the variations of deployment to various regions such as staging, production, developer environments, etc&lt;/p&gt;
&lt;p&gt;Configurations here are such as :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Database, other supporting services URL’s&lt;/li&gt;
&lt;li&gt;Application secrets&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;GO provides a standard &lt;code&gt;os&lt;/code&gt; package which consists of functions that can help to work with environment variables programmatically. Below are the functions that can be used to interact with environment variables&lt;/p&gt;</description></item><item><title>A RESTFul Go living in docker</title><link>https://rakeshmothukuri.dev/posts/16-go-rest-api-in-docker/</link><pubDate>Fri, 16 Oct 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/16-go-rest-api-in-docker/</guid><description>&lt;p&gt;Go compiler can produce a binary file which is can natively on any machine(given its built for that). However, there are times it is more convenient to containerize your application and this tutorial will help you to build a basic RESTFul API built-in go and containerize it.&lt;/p&gt;
&lt;h4 class="relative group"&gt;&lt;strong&gt;Building a Web Server in Go&lt;/strong&gt;
&lt;div id="building-a-web-server-in-go" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#building-a-web-server-in-go" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h4&gt;
&lt;p&gt;We will write a simple Go application which exposes a simple greeting when a call is made to URI &lt;code&gt;http:localhost:8080&lt;/code&gt;. In order to build
this first, we will create a folder, and let&amp;rsquo;s say we call it as &lt;code&gt;Go-App&lt;/code&gt; and inside it we will create a folder called &lt;code&gt;server&lt;/code&gt; which is the home for all the back-end code we are going to write. The final folder structure will look like this&lt;/p&gt;</description></item><item><title>Important topics to focus to ace your next system design interview</title><link>https://rakeshmothukuri.dev/posts/15-topics-to-focus-for-your-next-system-desing-interview/</link><pubDate>Fri, 16 Oct 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/15-topics-to-focus-for-your-next-system-desing-interview/</guid><description>&lt;h3 class="relative group"&gt;Topics and tools for acing your system design interview
&lt;div id="topics-and-tools-for-acing-your-system-design-interview" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#topics-and-tools-for-acing-your-system-design-interview" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;img class="my-0 rounded-md" loading="lazy" alt="img" src="https://cdn-images-1.medium.com/max/800/0*CR7hMqsMlnEXspir"&gt;
&lt;/figure&gt;
Photo by &lt;a
href="https://unsplash.com/@kundeleknabiegunie?utm_source=medium&amp;amp;utm_medium=referral"
target="_blank"
&gt;Agnieszka Boeske&lt;/a&gt; on &lt;a
href="https://unsplash.com?utm_source=medium&amp;amp;utm_medium=referral"
target="_blank"
&gt;Unsplash&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you were following me from the previous blog where I have explained about the mindset and preparation method before appearing your next system design interview, you are in the right place as promised here in this following blogs.&lt;/p&gt;
&lt;p&gt;I will list out important topics, provide a brief overview and additional reading material of fundamentals to improve your system design, problem-solving. Although it’s a big list, by no means it’s an exhaustive list. So what I’m going to do is go through them one by one and give a one-line explanation on each of the concepts. Obviously, I cannot go into too much detail because, frankly speaking, each of them is also can make up a story on its own(maybe I will write up a blog on each if you would like to hear more about these in detail). So let’s start&lt;/p&gt;</description></item><item><title>Interface segregation principle in Java</title><link>https://rakeshmothukuri.dev/posts/17-interface-seggregation-principle/</link><pubDate>Fri, 16 Oct 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/17-interface-seggregation-principle/</guid><description>&lt;h3 class="relative group"&gt;Interface Segregation Principle
&lt;div id="interface-segregation-principle" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#interface-segregation-principle" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h3&gt;
&lt;p&gt;Interfaces play an important role in Java programming language and they are widely used for abstraction and to support multiple inheritances.&lt;/p&gt;
&lt;p&gt;Interface is achieved by using a keyword &lt;strong&gt;interface&lt;/strong&gt; and declare methods in it. Classes can implement interfaces with the &lt;strong&gt;implements&lt;/strong&gt; keyword, and then provide implementations for the declared methods. One of the design principles to keep in mind while writing interfaces is the Interface Segregation Principle.&lt;/p&gt;</description></item><item><title>Systemic approach to ace your next system design interview</title><link>https://rakeshmothukuri.dev/posts/14-systemic-approach-to-ace-your-next-system-design-interview-copy/</link><pubDate>Fri, 16 Oct 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/14-systemic-approach-to-ace-your-next-system-design-interview-copy/</guid><description>&lt;p&gt;So you have your interview with a company in which you always to longed to work say Google and you aced that pair-programming session and next comes whiteboard session which is a very subjective topic as there are no few right answers like how you solved that coding challenge but you want to ace that 1-hour session and show your abilities that you could design an efficient system to crack that job. But how can you plan your preparation for this type of interview?&lt;/p&gt;</description></item><item><title>Java 15: JEP's that came along…</title><link>https://rakeshmothukuri.dev/posts/13-java-15-jep-that-came-along/</link><pubDate>Thu, 15 Oct 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/13-java-15-jep-that-came-along/</guid><description>&lt;h1 class="relative group"&gt;&lt;strong&gt;Introduction&lt;/strong&gt;
&lt;div id="introduction" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#introduction" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;p&gt;Java 15 which came into General availability brought a very good set of 14 features. Out of those 14 features, few are addition to and few are removed/disabled from current java eco-system. Here are the list of features added&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Edwards-Curve Digital Signature Algorithm (EdDSA)&lt;/li&gt;
&lt;li&gt;Sealed Classes (Preview)&lt;/li&gt;
&lt;li&gt;Hidden Classes&lt;/li&gt;
&lt;li&gt;Remove the Nashorn JavaScript Engine&lt;/li&gt;
&lt;li&gt;Reimplement the Legacy DatagramSocket API&lt;/li&gt;
&lt;li&gt;Disable and Deprecate Biased Locking&lt;/li&gt;
&lt;li&gt;Pattern Matching for instanceof (Second Preview)&lt;/li&gt;
&lt;li&gt;ZGC: A Scalable Low-Latency Garbage Collector&lt;/li&gt;
&lt;li&gt;Text Blocks&lt;/li&gt;
&lt;li&gt;Shenandoah: A Low-Pause-Time Garbage Collector&lt;/li&gt;
&lt;li&gt;Remove the Solaris and SPARC Ports&lt;/li&gt;
&lt;li&gt;Foreign-Memory Access API (Second Incubator)&lt;/li&gt;
&lt;li&gt;Records (Second Preview)&lt;/li&gt;
&lt;li&gt;Deprecate RMI Activation for Removal&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In this blog we will go through a little bit about what these new features are, how they can be used using few code snippets.&lt;/p&gt;</description></item><item><title>Building RSocket based springboot application</title><link>https://rakeshmothukuri.dev/posts/12-building-rsocket-springboot-application/</link><pubDate>Sat, 10 Oct 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/12-building-rsocket-springboot-application/</guid><description>&lt;h1 class="relative group"&gt;Introduction
&lt;div id="introduction" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#introduction" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;p&gt;RSocket translates to Reactive socket is a messaging protocol that works over TCP or Websockets. Communication modes this protocol provides are fire-and-forget, request-response and streaming. Since RSocket is fully reactive, its ideal for high-throughput applications.&lt;/p&gt;
&lt;p&gt;In this post we will explore three communications modes which are &lt;code&gt;fire-and-forget&lt;/code&gt;, &lt;code&gt;request-response&lt;/code&gt; and &lt;code&gt;streaming&lt;/code&gt; and test with &lt;code&gt;RSocket Client CLI (RSC)&lt;/code&gt; a postman type application but to test application over socket.&lt;/p&gt;</description></item><item><title>The Command Pattern in Java</title><link>https://rakeshmothukuri.dev/posts/11-the-command-pattern-in-java-copy/</link><pubDate>Tue, 23 Jun 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/11-the-command-pattern-in-java-copy/</guid><description>&lt;h1 class="relative group"&gt;Introduction
&lt;div id="introduction" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#introduction" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;p&gt;You most likely have known about behavioural patterns by now. behavioral patterns are concerns about the wiring of Java objects. While there are around 12 design patterns that belongs to behavioral patterns, the command patters takes its special place as it is utilized frequently than other patterns. The motivation behind the order design is to &lt;strong&gt;decouple&lt;/strong&gt; the rationale amongst commands and its consumers.&lt;/p&gt;</description></item><item><title>An efficient way to compare strings in Go</title><link>https://rakeshmothukuri.dev/posts/10-go-efficient-string-comparison/</link><pubDate>Sun, 19 Apr 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/10-go-efficient-string-comparison/</guid><description>&lt;h1 class="relative group"&gt;Introduction
&lt;div id="introduction" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#introduction" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;p&gt;One of the most overlooked operations is comparing two strings and this might not cause system overhead but definitely, it is a good practice to write an efficient code where possible. These small dividends definitely pay at the end when the application is under real stress in production.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; I am amateur in Go if you are an experienced professional in Go and find anything wrong here don&amp;rsquo;t be annoyed. If you could point the mistake I will correct those accordingly.&lt;/p&gt;</description></item><item><title>8 Most used functions of strings pkg in Go</title><link>https://rakeshmothukuri.dev/posts/9-go-strings-functions/</link><pubDate>Fri, 10 Apr 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/9-go-strings-functions/</guid><description>&lt;h1 class="relative group"&gt;Introduction
&lt;div id="introduction" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#introduction" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;p&gt;The standard Go library &lt;em&gt;strings&lt;/em&gt; package provides many string related functions. This blog lists description of most frequently used function of strings package in Go, Since there are a lot of functions available and it&amp;rsquo;s not easy to remember each one of those straight away, it worth bookmarking as it might be handy when needed. Below is a list of function with small example snippet code.&lt;/p&gt;</description></item><item><title>Installing Go on Ubuntu</title><link>https://rakeshmothukuri.dev/posts/4-go-installation/</link><pubDate>Mon, 30 Mar 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/4-go-installation/</guid><description>&lt;p&gt;This blog will walk through installing Go 1.14.1 on Ubuntu 18.04.4 LTS&lt;/p&gt;
&lt;h1 class="relative group"&gt;1.Install ubuntu updates
&lt;div id="1install-ubuntu-updates" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#1install-ubuntu-updates" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get update
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get -y upgrade
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h1 class="relative group"&gt;2.Download Go binary
&lt;div id="2download-go-binary" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#2download-go-binary" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;p&gt;Next logical step is to download the Go binary file, Latest software will be available at &lt;a
href="https://golang.org/dl/"
target="_blank"
&gt;https://golang.org/dl/&lt;/a&gt; and to install the version of ubuntu run below commands in terminal&lt;/p&gt;</description></item><item><title>WSL Ubuntu upgrade to Disco Dingo</title><link>https://rakeshmothukuri.dev/posts/8-wsl-ubuntu-upgrade-to-disco-dingo/</link><pubDate>Sat, 28 Mar 2020 05:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/8-wsl-ubuntu-upgrade-to-disco-dingo/</guid><description>&lt;p&gt;After installing Ubuntu Microsoft app by default Ubuntu will install the latest stable Ubuntu LTS release. but if you like a switch to latest non-LTS release which in this case version 19.04 Disco Dingo you can run below commands&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get upgradesudo do-release-upgrade
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will ask you to update a file at &lt;strong&gt;/etc/update-manager/release-upgrades&lt;/strong&gt; with &lt;strong&gt;Prompt = normal&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;nano /etc/update-manager/release-upgrades
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;update Prompt = normal save and exit&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;do-release-upgrade
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This will prompt installing the latest version of Ubuntu and asks to reboot WSL which needs to be done via PowerShell admin mode&lt;/p&gt;</description></item><item><title>Superfast subatomic java (Quarkus)</title><link>https://rakeshmothukuri.dev/posts/7-superfast-subatomic-java-quarkus-copy/</link><pubDate>Sat, 28 Mar 2020 04:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/7-superfast-subatomic-java-quarkus-copy/</guid><description>&lt;p&gt;As part of my quest to get my idea into the cloud as an app, I stumbled across this beautiful product called QUARKUS. Going through many pages of material on their &lt;a
href="https://quarkus.io/"
target="_blank"
&gt;site&lt;/a&gt; I have convinced my self into building my backend service of the application on Quarkus(Supersonic Subatomic java). Without further delay.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Note: Some images used here are referenced from &lt;a
href="https://quarkus.io/"
target="_blank"
&gt;https://quarkus.io&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Ready…Set…Go&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Assuming your development machine has Gradle installed(by the time of writing I am using Gradle 5.3.1&lt;/p&gt;</description></item><item><title>Best Visual Studio Code Extensions</title><link>https://rakeshmothukuri.dev/posts/5-best-visual-studio-code-extensions-copy/</link><pubDate>Sat, 28 Mar 2020 03:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/5-best-visual-studio-code-extensions-copy/</guid><description>&lt;p&gt;These Visual studio code Extensions are all needed for one who is beginning to build an app. I will keep updating the list along the due course building my app.&lt;/p&gt;
&lt;h1 class="relative group"&gt;My Visual Studio Code Extensions
&lt;div id="my-visual-studio-code-extensions" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#my-visual-studio-code-extensions" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=rickynormandeau.mariana-pro"
target="_blank"
&gt;Color theme: Mariana Pro&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven"
target="_blank"
&gt;Maven&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode"
target="_blank"
&gt;Prettier&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=ms-python.python"
target="_blank"
&gt;Python&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml"
target="_blank"
&gt;YAML&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode"
target="_blank"
&gt;Intellicode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=humao.rest-client"
target="_blank"
&gt;Rest Client&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome"
target="_blank"
&gt;Debugger For Chrome&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=dzannotti.vscode-babel-coloring"
target="_blank"
&gt;Babel Coloring&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner"
target="_blank"
&gt;Code Runner&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code"
target="_blank"
&gt;Dart&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter"
target="_blank"
&gt;Flutter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=alexisvt.flutter-snippets"
target="_blank"
&gt;Flutter Snippets&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-debug"
target="_blank"
&gt;Java Debugger&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-dependency"
target="_blank"
&gt;Java Dependency&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack"
target="_blank"
&gt;Java Pack&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-test"
target="_blank"
&gt;Java Test&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;– &lt;a
href="https://marketplace.visualstudio.com/items?itemName=redhat.java"
target="_blank"
&gt;Java&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Could not find GradleWrapperMain</title><link>https://rakeshmothukuri.dev/posts/6-jenkins-could-not-find-gradlewrappermain-copy/</link><pubDate>Sat, 28 Mar 2020 02:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/6-jenkins-could-not-find-gradlewrappermain-copy/</guid><description>&lt;h1 class="relative group"&gt;Problem
&lt;div id="problem" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#problem" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;p&gt;Jenkins console output, the build is failed with error - &lt;strong&gt;&amp;ldquo;Could not find org.gradle.wrapper.GradleWrapperMain&amp;rdquo;&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;[&lt;/span&gt;Gradle&lt;span style="color:#f92672"&gt;]&lt;/span&gt; - Launching build.
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;[&lt;/span&gt;workspace&lt;span style="color:#f92672"&gt;]&lt;/span&gt; $ /var/lib/jenkins/jobs/GradleTest/workspace/gradlew clean test
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Build step &lt;span style="color:#e6db74"&gt;&amp;#39;Invoke Gradle script&amp;#39;&lt;/span&gt; changed build result to FAILURE
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Build step &lt;span style="color:#e6db74"&gt;&amp;#39;Invoke Gradle script&amp;#39;&lt;/span&gt; marked build as failure
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Finished: FAILURE
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;h1 class="relative group"&gt;Solution
&lt;div id="solution" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#solution" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h1&gt;
&lt;ol&gt;
&lt;li&gt;The class &lt;code&gt;GradleWrapperMain&lt;/code&gt; is inside the &lt;code&gt;gradle-wrapper.jar&lt;/code&gt;is not available for build. Most common scenario is that file &lt;code&gt;gradle-wrapper.jar&lt;/code&gt; missed from check-in.(due to .jar in .gitignore ?)&lt;/li&gt;
&lt;li&gt;To fix it, &lt;a
href="http://www.mkyong.com/gradle/how-to-use-gradle-wrapper/"
target="_blank"
&gt;create a Gradle wrapper&lt;/a&gt; again, and make sure the following files and folders are added to your version control system like GitHub.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|---gradle
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; |---wrapper
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; |---gradle-wrapper.jar
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; |---gradle-wrapper.properties
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|---gradlew
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;|---gradlew.bat
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Done.&lt;/p&gt;</description></item><item><title>Multiple Return Values: Golang</title><link>https://rakeshmothukuri.dev/posts/2-go-multiple-return-values/</link><pubDate>Sat, 28 Mar 2020 02:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/2-go-multiple-return-values/</guid><description>&lt;p&gt;In Golang, It is allowed to return multiple values from a &lt;a
href="https://www.geeksforgeeks.org/functions-in-go-language/"
target="_blank"
&gt;function&lt;/a&gt;, using a return statement. The type of the return values is matches type defined for parameters.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-go" data-lang="go"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;func&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;functionName&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;x&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;y&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;int&lt;/span&gt;)(&lt;span style="color:#66d9ef"&gt;int&lt;/span&gt;, &lt;span style="color:#66d9ef"&gt;int&lt;/span&gt;){
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;return&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;x&lt;/span&gt;&lt;span style="color:#f92672"&gt;*&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;3&lt;/span&gt;, &lt;span style="color:#a6e22e"&gt;y&lt;/span&gt;&lt;span style="color:#f92672"&gt;*&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;7&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;
&lt;figure&gt;
&lt;img class="my-0 rounded-md" loading="lazy" alt="Multiple Return values" src="https://res.cloudinary.com/rockey5520/image/upload/v1585409664/go/2-go-multiple-return-values/2-multiple-return-values-01_mewepo_u5k2pz.jpg"&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 class="relative group"&gt;Named Return Values
&lt;div id="named-return-values" class="anchor"&gt;&lt;/div&gt;
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100"&gt;
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#named-return-values" aria-label="Anchor"&gt;#&lt;/a&gt;
&lt;/span&gt;
&lt;/h2&gt;
&lt;p&gt;It is also provided names to the return values and the same can be used in code. It is not necessary to write these names with a return statement because the Go compiler will automatically understand that these variables have to return. This type of return is known as the &lt;strong&gt;bare return&lt;/strong&gt;. This reduces the duplication in your program.&lt;/p&gt;</description></item><item><title>go build vs go run</title><link>https://rakeshmothukuri.dev/posts/3-go-build-vs-go-run/</link><pubDate>Sat, 28 Mar 2020 01:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/3-go-build-vs-go-run/</guid><description>&lt;p&gt;Example :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-go" data-lang="go"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;package&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;main&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;import&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;fmt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;func&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;main&lt;/span&gt;() {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;fmt&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;Println&lt;/span&gt;(&lt;span style="color:#e6db74"&gt;&amp;#34;Hello World&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;go build main.go&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Above program will be able to turn into an executable file that will always print out “Hello World”. If we want our program to run again, we don’t have to compile the program again, we simply run the executable file. Therefore, if we want fast code that users interact with, we’d compile a program once and use the executable file.&lt;/p&gt;</description></item><item><title>Basics of Go: Variables and it's Magic</title><link>https://rakeshmothukuri.dev/posts/1-go-variables/</link><pubDate>Fri, 27 Mar 2020 00:00:00 +0000</pubDate><guid>https://rakeshmothukuri.dev/posts/1-go-variables/</guid><description>&lt;p&gt;[TOC]&lt;/p&gt;
&lt;p&gt;There are many ways to assign a variable in Go. Here below are some of those which I have encountered till date.&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;Syntax:&lt;/strong&gt;&lt;/u&gt; &lt;strong&gt;&lt;code&gt;var i int&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-go" data-lang="go"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;package&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;main&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;import&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;fmt&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;func&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;main&lt;/span&gt;() {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#66d9ef"&gt;var&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;i&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;int&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;fmt&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;Println&lt;/span&gt;(&lt;span style="color:#a6e22e"&gt;i&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The &lt;code&gt;var&lt;/code&gt; statement can be at either package or function level and it declares a list of variables the type is last.&lt;/p&gt;
&lt;p&gt;If an initializer is present, the type can be omitted and the variable will assume the type of the initializer. Example :&lt;/p&gt;</description></item></channel></rss>