<?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 Akash on Medium]]></title>
        <description><![CDATA[Stories by Akash on Medium]]></description>
        <link>https://medium.com/@sirimanna.akash?source=rss-d405d85ef1a8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4h0EWpODE-jNufMh5H2bag.png</url>
            <title>Stories by Akash on Medium</title>
            <link>https://medium.com/@sirimanna.akash?source=rss-d405d85ef1a8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 05:06:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sirimanna.akash/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[How to Find The Best Time to Buy and Sell Stocks]]></title>
            <link>https://medium.com/@sirimanna.akash/how-to-find-the-best-time-to-buy-and-sell-stocks-c748bbbd2e3a?source=rss-d405d85ef1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c748bbbd2e3a</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[leetcode]]></category>
            <dc:creator><![CDATA[Akash]]></dc:creator>
            <pubDate>Tue, 13 Oct 2020 21:11:13 GMT</pubDate>
            <atom:updated>2020-10-13T21:11:13.312Z</atom:updated>
            <content:encoded><![CDATA[<h4>Long story short, I will solve a problem from Leetcode and traverse through my train of thought leading to the solution</h4><p>Question: <a href="https://leetcode.com/problems/best-time-to-buy-and-sell-stock/">https://leetcode.com/problems/best-time-to-buy-and-sell-stock/</a></p><p>Answer: <a href="https://leetcode.com/submissions/detail/391062728/">https://leetcode.com/submissions/detail/391062728/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Rvi9DN4lpXjmFGWG.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/0*U_vAoSRUuGP2ILhq.jpg" /></figure><p>This method cannot be used to trade stocks, simply because, we cannot go back in time and buy a stock. In addition, we also cannot predict the future with 100% accuracy.</p><p>Ok so let’s begin by understanding the problem.</p><p>We are given an array of numbers. The value at any position i in the array is the price of the stock on that given day. On the condition that we can buy ONCE and sell ONCE, what is the max profit we can make?</p><p>I think that the last part trips people up, max profit is a little hard to grasp so let’s try to understand “max profit” in a different sense. Since we are only allowed to make 1 trade, max profit is simply the maximum price of the stock minus the minimum price of the stock. Getting this far is great but we need to realize that we cannot sell a stock before we buy it. This should lead us to our next realization; at any given day, we can either choose to buy or not buy the stock, after which we can either choose to sell or not sell the stock we bought earlier.</p><p>Here’s an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*ab-r9R1hai_B4KXAnpwbOQ.png" /></figure><p>At any given day, we must consider 2 things.</p><ul><li>Is the current price the lowest price we have seen? If so, we should buy.</li><li>If the current price is not the lowest price we have seen, will our profit from selling at the current price leave us with a greater max profit than before?</li></ul><p>These are the 2 questions we should ask ourselves every day when looking at the current stock price. If we follow these rules, we should be able to find the maximum profit. Translating to code, our solution turns out to be:</p><pre>public int maxProfit(int[] prices) {<br>    int maxProfit = 0;<br>    int minPrice = Integer.MAX_VALUE;<br>        <br>    for (int i = 0; i &lt; prices.length; i++) {<br>        if (minPrice &gt; prices[i]) {<br>            minPrice = prices[i];<br>        } else {<br>            maxProfit = Math.max(maxProfit, prices[i]-minPrice);<br>        }<br>    }     <br>        <br>    return maxProfit;<br>}</pre><p>Which leaves us with a clean linear time, constant space solution.</p><p>Hope this helped, till next time 👋 !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c748bbbd2e3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Print Zero, Even and Odd]]></title>
            <link>https://medium.com/@sirimanna.akash/how-to-print-zero-even-and-odd-552ff4b756ea?source=rss-d405d85ef1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/552ff4b756ea</guid>
            <dc:creator><![CDATA[Akash]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 03:28:01 GMT</pubDate>
            <atom:updated>2020-10-13T20:52:04.152Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Long story short, I will solve a problem from Leetcode and traverse through my train of thought leading to the solution</strong></h4><p>Question: <a href="https://leetcode.com/problems/print-zero-even-odd/">https://leetcode.com/problems/print-zero-even-odd/</a></p><p>Answer: <a href="https://leetcode.com/submissions/detail/390071181/">https://leetcode.com/submissions/detail/390071181/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/0*5BkhGuANmBFj5Vh1.jpg" /></figure><p>Disclaimer: I am new to both concurrency and the tools that Java offer’s to achieve thread synchronization. This is not the most elegant solution but seemed to be quite intuitive.</p><p>First and foremost, let’s begin by understanding what the problem is asking of us. The problem tells us that 3 threads want to print a sequence of numbers in a specific order every single time. However, we provide each of the threads with the ability to print any number and allow these threads to run asynchronously. Due to the threads having no context of each other, printing a specific sequence of numbers every single time is difficult, until we provide a medium for the threads to communicate between.</p><p>In addition, the so-called “sequence” we want to print is simply 0, 1, 0, 2, 0 … n-1, 0, n, where n is an integer that is greater than 1.</p><p>Before we construct our solution, it is worth while to think of an analogy before attempting to solve this problem. Let’s say we’re in a kitchen and there are 3 chefs that are blindfolded and cant hear anything.</p><p><em>The reason they’re blindfold and deaf is because I want to convey that they are unable to communicate with one another</em></p><p>Anyways, each chef has 1 job.</p><ul><li>Chef 1 peels the onion</li><li>Chef 2 finely dices the onion</li><li>Chef 3 cuts the onion into quarters</li></ul><p>In order for them to prepare the dish (yes the dish only contains onions) they must coordinate. To help them coordinate lets provide them with number toy things. Like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/0*_sFlJyl4_Hncfi1p.jpg" /></figure><p>In order for them to coordinate, each chef gets a block. Here are duties of each Chef. Note that Chef 1 starts with Chef 2 and 3’s block.</p><ul><li>Chef 1 will take his block from the common table if it is there, peel the onion and then put either Chef 2 or Chef 3’s block on the common table.</li><li>Chef 2 will take his block from the common table if it is there, dice the onion and then put Chef 1’s block on the common table.</li><li>Chef 3 will take his block from the common table if it is there, cut the onion and then put Chef 1’s block on the common table.</li></ul><p>Each Chef will wait at the common table until their block is there. Each Chef is also able to reach over and grab the other Chef’s blocks.</p><p>Ok so I admit, this analogy was confusing but trust me, once we translate this to code, It’ll all make sense 😅.</p><p>Before I show you guys the solution, I will explain the idea of a <em>Semaphore</em>. A Semaphore is a data structure used between multiple threads as a medium for communication. In Java, in it’s simplest of use-cases, a semaphore can be acquired and released. This means that threads can either acquire the semaphore and block other threads OR permit other threads to acquire the semaphore instead. In our case, we are using semaphores to provide exclusive access, this is called a Mutex.</p><p>Ok read that blob like 20-times over and you should eventually get it. If not read this: <a href="https://www.geeksforgeeks.org/semaphore-in-java/">https://www.geeksforgeeks.org/semaphore-in-java/</a>.</p><p>Ok, here’s the solution.</p><pre>class ZeroEvenOdd {<br>    private int n;<br>    private AtomicInteger counter = new AtomicInteger(1);<br>    private Semaphore zeroLock = new Semaphore(1);<br>    private Semaphore evenLock = new Semaphore(0); <br>    private Semaphore oddLock = new Semaphore(0); <br>    <br>    public ZeroEvenOdd(int n) {<br>        this.n = n;<br>    }</pre><pre>// printNumber.accept(x) outputs &quot;x&quot;, where x is an integer.<br>    public void zero(IntConsumer printNumber) throws InterruptedException {<br>        for (int i = 0; i &lt; n; i++) {<br>            zeroLock.acquire();<br>            printNumber.accept(0);<br>            <br>            if (counter.get() % 2 == 0) { //even<br>                evenLock.release();<br>            } else {                      //odd<br>                oddLock.release();<br>            }<br>        }<br>    }</pre><pre>public void even(IntConsumer printNumber) throws InterruptedException {<br>        for (int i = 2; i &lt;= n; i+=2) {<br>            evenLock.acquire();<br>            printNumber.accept(counter.get());<br>            incrementAndPermitZero();<br>        }<br>    }</pre><pre>public void odd(IntConsumer printNumber) throws InterruptedException {<br>        for (int i = 1; i &lt;= n; i+=2) {<br>            oddLock.acquire();<br>            printNumber.accept(counter.get());<br>            incrementAndPermitZero();<br>        }<br>    }<br>    <br>    private void incrementAndPermitZero() {<br>        synchronized (this) {<br>            counter.getAndIncrement();<br>            zeroLock.release();<br>        }<br>    }<br>}</pre><p>Just as in the chef example, we allocate for 3 semaphores and permit or block threads from printing numbers. We start with the Zero Thread acquiring its permit and printing 0, it then decides to permit the Even Thread or Odd Thread based on what number we are currently at. In the meanwhile, the Even and Odd threads are waiting for their permit to print and Even and Odd number. After having printed, they permit the Zero Thread to do its thing.</p><p>This process is repeated until we print the last number.</p><p>I hope my explanation and solution was clear and not confusing. However, concurrency is a broad subject and this is just a glimpse into a very, very complex topic, so don’t beat yourself up if this was confusing, when I first looked at this question, I had absolutely no clue how to solve it or even how to begin.</p><p>Anyways, I hope everyone enjoyed, until next time 👋.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=552ff4b756ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Climb Stairs]]></title>
            <link>https://medium.com/@sirimanna.akash/how-to-climb-stairs-c6151c5b4fd1?source=rss-d405d85ef1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6151c5b4fd1</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Akash]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 03:02:19 GMT</pubDate>
            <atom:updated>2020-10-13T20:52:18.443Z</atom:updated>
            <content:encoded><![CDATA[<h4>Long story short, I will solve a problem from Leetcode and traverse through my train of thought leading to the solution</h4><p>Question: <a href="https://leetcode.com/problems/climbing-stairs/">https://leetcode.com/problems/climbing-stairs/</a></p><p>Answer: <a href="https://leetcode.com/submissions/detail/362601548/">https://leetcode.com/submissions/detail/362601548/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*SkKaZ_TafADEFodP" /></figure><p>This problem gives us an integer, which represents the number of steps on a staircase. It then asks us to compute the number of ways that a person can reach the top if they were to take at any given time, either 1 step or 2 steps.</p><p>Here are a couple nuances we must understand before taking a crack at the solution</p><ul><li>The person cannot overstep the top, that is, if there is only 1 step left, we cannot take 2 steps and have it count as a possible way of getting to the top</li><li>Recursion might bite us in the back if the height of the staircase gets large</li></ul><p>OK, if you are a normal person, your instinct would be to try to solve this problem by brute force. This is, if n = 3, you would take either 1 or 2 steps, then see what choice we can make after taking those decisions. The decision tree gets very large given a larger “n”, therefore this method is relies too heavily on brute-force computation.</p><p>Here’s a drawing of what that decision tree may look like for n = 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*spby-p3JO13mvY6CmVk8Qw.png" /></figure><p>This is what the decision tree may look like for a larger n.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*u7N_Ry5nJlK1gipC.png" /></figure><p>Yea this method kind of sucks.</p><p>One of the hardest things about coding problems is identifying what “pattern” a problem adheres to. Some of these patterns include: Two Pointers, Sorting, Dynamic Programming, Greedy Algorithms, Topological Sort, etc…</p><p>In this case, Climbing Stairs following the Dynamic Programming pattern. What this should tell us, is that given any question, we should be able to construct our answer using prior answers. Specifically, the number of ways to climb n-steps, can be calculated from the number of ways to climb to n-1 steps. Moreover, the number of ways to climb n-1 steps can be calculated from the number of ways to climb n-2 steps.</p><p>Here’s a great article on dynamic programming: <a href="https://medium.com/free-code-camp/demystifying-dynamic-programming-3efafb8d4296">https://medium.com/free-code-camp/demystifying-dynamic-programming-3efafb8d4296</a></p><p>One way I look to solve problems like these is to simply compute-by-hand the answers to a couple of values of n.</p><p>n = 1 → 1 combinations</p><p>n = 2 → 2 combinations</p><p>n = 3 → 3 combinations</p><p>n = 4 → 5 combinations</p><p>Let us define a function to return the number of combinations to climb n steps as G(n). It’s now clear that G(n) = G(n-1) + G(n-2). (Fibonacci sequence 😲)</p><p>Using this expression, it should be trivial to code out the solution.</p><pre>public int climbStairs(int n) {<br>        if(n &lt;= 2) {<br>            return n;<br>        }<br>        <br>        int[] dp = new int[n+1];<br>        dp[0] = 0;<br>        dp[1] = 1;<br>        dp[2] = 2;<br>        <br>        for(int i = 3; i &lt;= n; i++) {<br>            dp[i] = dp[i-1] + dp[i-2];<br>        }<br>        <br>        return dp[n];<br>}</pre><p>This was my first crack at it, then I realized we literally only use the previous 2 values of G(n) so I got rid of the extra space and just used 2 variables.</p><pre>public int climbStairs(int n) {<br>        if(n &lt;= 1) {<br>            return n;<br>        }<br>        <br>        int numWaysToStepBeforePrev = 1; <br>        int numWaysToPrevStep = 1;<br>        int numWaysToCurrentStep = 0;<br>        <br>        for(int i = 2; i &lt;= n; i++) {<br>            numWaysToCurrentStep = numWaysToPrevStep + numWaysToStepBeforePrev;<br>            numWaysToStepBeforePrev = numWaysToPrevStep;<br>            numWaysToPrevStep = numWaysToCurrentStep;<br>        }<br>        <br>        return numWaysToCurrentStep;<br>}</pre><p>I suck at naming variables, don’t judge me.</p><p>Ight bet, hope that helped, see you soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6151c5b4fd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Reverse A Linked List]]></title>
            <link>https://medium.com/@sirimanna.akash/how-to-reverse-a-linked-list-448c7a350c43?source=rss-d405d85ef1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/448c7a350c43</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[leetcode]]></category>
            <dc:creator><![CDATA[Akash]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 02:29:15 GMT</pubDate>
            <atom:updated>2020-10-13T20:52:41.766Z</atom:updated>
            <content:encoded><![CDATA[<h4>Long story short, I will solve a problem from Leetcode and traverse through my train of thought leading to the solution</h4><p>Question: <a href="https://leetcode.com/problems/reverse-linked-list/solution/">https://leetcode.com/problems/reverse-linked-list</a></p><p>Answer: <a href="https://leetcode.com/submissions/detail/362073213/">https://leetcode.com/submissions/detail/362073213/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/0*YfzzCur3Tuy08Jvg" /></figure><p>This problem gives us a Singly-Linked List and asks us to reverse it. As many others who have tried to solve this problem, my initial thought was to have a Stack and push my entire Linked List onto it. Here is my beautiful creation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rA4bWeSRFhvlGIx6KWSicw.png" /><figcaption>It’s hard to draw with a mouse, don’t roast me</figcaption></figure><p>Anyways, from my beautiful drawing, you can see that we push our entire list into the stack, then to create our answer, we simply keep popping from the stack and update some pointers. Here is some pseudo-code in case my intentions are unclear. (I may have missed some edge cases but it doesn’t matter because this method sucks)</p><pre>Node inferiorReverseLinkedList(Node head) {<br>    Stack stack;<br>    loop through nodes in LinkedList {<br>        stack.push(node);<br>    }</pre><pre>    Node current = stack.pop();<br>    Node answer = current;<br>    Node next;<br>    loop while stack is not empty {<br>        next = stack.pop();<br>        current.next = next;<br>        current = next; <br>    }</pre><pre>    return answer;  <br>}</pre><p>OK, so the above code runs in linear time and uses linear space.</p><p>After having written this solution, it jumped at me that at any given iteration in our loop, we seem to only be using a limited number of resources. Specifically, when we are reversing our Linked List, we only touch the following:</p><ul><li>The current node</li><li>The node we want to point the current node to (the previous node)</li><li>The next node (the top of the stack)</li></ul><p>From this, it’s quite clear that we don’t really need the stack, we should be able to reverse this Linked List in place. Here is my crack at solving it.</p><p>Let’s begin with our current node being the head. In the reversed linked list, the current node (head) should be pointing to null, so let’s set our previous to be null. Finally, our next node is what out current’s next node is.</p><p>So I just took a look at what I wrote and even I got confused, but re-read the previous blurb a couple times 😅.</p><p>We now want to loop until we exhaust our linked list and do the following:</p><ul><li>Set our next node to be current.next (We do this first since we don’t want to lose access to the rest of our linked list)</li><li>Set our current.next to be the previous node we visited</li><li>Set our new previous node to be the current node we just messed around with</li></ul><p>Here’s a contemporary piece by Picasso visualizing what we just explained</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UsU0TJORijmY6P4a0ftTUA.png" /></figure><p>Here is the code:</p><pre>public ListNode reverseList(ListNode head) {<br>        if (head == null || head.next == null) {<br>            return head;<br>        }<br>        <br>        ListNode prev = null;<br>        ListNode curr = head;<br>        ListNode next = curr.next;<br>    <br>        while (next != null) {<br>            next = curr.next;<br>            curr.next = prev;<br>            prev = curr;<br>            curr = next;<br>        }<br>        <br>        return prev;<br>}</pre><p>Hope that helped, have a blessed day 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=448c7a350c43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 4 Things I Learned At Scotiabank]]></title>
            <link>https://medium.com/@sirimanna.akash/top-4-things-i-learned-at-scotiabank-65f9376b3b13?source=rss-d405d85ef1a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/65f9376b3b13</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[university]]></category>
            <category><![CDATA[scotiabank]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Akash]]></dc:creator>
            <pubDate>Thu, 12 Dec 2019 14:26:39 GMT</pubDate>
            <atom:updated>2019-12-12T14:30:55.673Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*fSyBC0-4-gtT5LvXbLfJpg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*P5yDkKEr8rlscFUWnnfzMw.png" /></figure><p>Before I begin, here’s a quick introduction of myself!</p><p><strong>Who am I?</strong></p><p>Hey, I’m Akash. I am a student at the University of Waterloo studying Computer Engineering entering my second year. Some of my hobbies include watching/playing basketball, hanging out with my friends and Game of Thrones!</p><p><strong>What am I working on?</strong></p><p>I‘m <strong>SWE</strong> intern within the <a href="https://www.scotiabank.com/careers/en/careers/careers-students-and-new-grads/velocity-technology-development-program-for-interns-and-co-ops.html"><strong>Velocity</strong></a><strong> </strong>program and my team is working towards modernizing the payments space within Scotiabank. Our lab, <strong>Real-Time Payments</strong>, has an end goal of providing small business, corporate and commercial customers with a real-time banking <strong>experience</strong> with little to no latency. My role has an aggressive focus on <strong>back-end</strong> development and low-latency architecture.</p><h3><strong>What is my tech stack?</strong></h3><p><strong>Languages &amp; Frameworks</strong></p><ul><li>Java</li><li>Spring Boot</li><li>React</li><li>SQL</li><li>Cucumber</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/64/1*pUpmc0zCOIqO9C0YYoHRKQ.png" /></figure><p><strong>Tools</strong></p><ul><li>Fortify</li><li>Splunk</li><li>Sonarqube</li></ul><h3><strong>Top 4 Things I Learned At Scotiabank</strong></h3><blockquote><strong>Don’t be afraid to ask for help</strong></blockquote><p>Don’t be afraid to ask for help when you need it. Asking for help <strong>isn’t</strong> <strong>embarrassing</strong>, it builds <strong>character</strong> and shows your colleagues that you are capable of taking advice and have the <strong>mindset</strong> to learn at work.<br>A situation where I asked for help was when I was setting up our projects Secure Socket Layer (SSL) configuration to enable us to communicate with <em>Interac.</em> I had never worked in a project where security was <strong>paramount</strong> and setting up SSL is something I had never done. When I ran into issues, I spent about 1 hour trying to get it working. Rather than being <strong>stubborn</strong>, I sat down with my architect and spoke about the task. Not only did I get it working, but my architect also took the time to explain to me the behind-the-scenes work that Spring Boot abstracts developers away from in order to enable us to communicate with third-parties.</p><blockquote><strong>Focus on quality of delivery, not speed</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/64/1*Np7n2NAFTKb5qmcZw1FL0Q.png" /></figure><p>There were countless times where I raised a pull request much <strong>faster</strong> than I should have. I felt as if I was rushing through my daily tasks and coding up a storm. Then I get an email saying there have been <strong>comments</strong> added to your pull request. I had made minor <strong>mistakes</strong> that I would have caught if I took the time to look over my code and run through certain edge cases. Having to go back, change my logic and have a code review is much more time-consuming than being <strong>diligent</strong> from the get-go.</p><p>The biggest lesson I’ve <strong>learned</strong> from developing at a bank is; make sure your code is <strong>robust </strong>and <strong>clean</strong>. Efficiency is a byproduct of time, as your codebase matures, you’ll understand where the bottlenecks of your system lay, this is when you take action. Bottom line is, don’t worry about being a fast coder, just push <strong>quality</strong> code!</p><blockquote><strong>Technical Skills</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/64/1*PSTbTXmZTnnPWQIVI9QBHg.png" /></figure><p>The technical skills you gain as a software developer rely heavily on the team you are on. However, I am going to list down some of the more prominent things I learned as a back-end developer at Scotiabank.</p><ul><li>Spring Boot<br>- How to create a REST API (Controllers, Services, Models, Rest Template, Repository, etc…)<br>- Logback + SLF4J for single event logging (Seamless integration with Splunk)<br>- Model View Controller + Dependency Injection + Inversion Of Control</li><li>Security<br>- SSL Configuration &amp; Certificates<br>- OAuth 2</li><li>Infrastructure<br>- High availability clustering<br>- Data Access Object pattern<br>- Microservice design</li><li>Miscellaneous<br>- Mockito<br>- Filters &amp; Interceptors (Session and Request Contexts)<br>- Automated testing with cucumber</li></ul><blockquote><strong>Importance of debugging &amp; logging</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/64/1*bFuacWZHFnNT9UxGvI4VJA.png" /></figure><p>Some bugs, you can’t catch from looking at code, you have to write unit tests and debug your code line by line. The <strong>process</strong> is slow but it will save you from hours of looking at code and not knowing how anything flows. <br>Debugging allows you to truly <strong>learn</strong> how your code works. It gives you a better <strong>understanding</strong> of what you wrote and will enable you to speak about your development in a <strong>knowledgeable</strong> and sincere manner. Also, don’t be afraid to look at stack traces, it’s possibly Java’s best quality as a language.</p><h3>Conclusion</h3><p>Working on a product team gave me the opportunity to learn about how products like ScotiaConnect are built from the ground up. I came to understand that building large-scale applications doesn’t come easy, especially when you are dealing with thousands of transactions every second. Being apart of Velocity and having a wonderful team guide me through the term was the cherry on top, because of this, I came out with an experience that will last me a lifetime!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65f9376b3b13" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>