<?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 Sujata Regoti on Medium]]></title>
        <description><![CDATA[Stories by Sujata Regoti on Medium]]></description>
        <link>https://medium.com/@sujata-regoti?source=rss-e506822c3a99------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ujHuR2kogL_8Qegnzd_Oow.jpeg</url>
            <title>Stories by Sujata Regoti on Medium</title>
            <link>https://medium.com/@sujata-regoti?source=rss-e506822c3a99------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:49:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sujata-regoti/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[MySQL Error 1213: Deadlock]]></title>
            <link>https://sujata-regoti.medium.com/mysql-error-1213-deadlock-3ec6864157f1?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ec6864157f1</guid>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[concurrency]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Sun, 24 Oct 2021 11:46:18 GMT</pubDate>
            <atom:updated>2021-10-26T04:25:59.653Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FS9XaGr8wQ9Jwk%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FS9XaGr8wQ9Jwk%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExOThuZW04dDhoMmF2a25mMXhxbWthbG8yNHV4bTg3MGE5eGFoeWxjdyZlcD12MV9naWZzX2dpZklkJmN0PWc%2FS9XaGr8wQ9Jwk%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="328" frameborder="0" scrolling="no"><a href="https://medium.com/media/78ab7fce8db51286c61f60678b280d7d/href">https://medium.com/media/78ab7fce8db51286c61f60678b280d7d/href</a></iframe><h3>What is this blog about?</h3><p>Recently I faced a mysql deadlock issue while performing load tests for a particular API. I will be sharing how we resolved that issue exactly.</p><h3>Why do you have to write another blog? Aren’t there many blogs related to this issue?</h3><p>Most blogs give a general solution like just retry. But retrying was not the solution we wanted. So we had to take a different approach. Just wanted to share in case you also face the same issue under the same requirement.</p><h3>Ah, that’s cool. So what was the issue exactly?</h3><p>I was working on a financial domain project. So handling transactions along with concurrency was critical. We had query like below which was throwing deadlock error.</p><pre><strong>INSERT </strong>INTO accounts(account_number, status)</pre><pre>SELECT ?, ?, ? WHERE</pre><pre>NOT EXISTS(</pre><pre><strong>SELECT</strong> * FROM accounts where account_number=? and status = ?</pre><pre>)</pre><h3><strong>Well, I didn’t get that. Could you share a bit more context?</strong></h3><p>Okay. We had a requirement</p><p>1. We should be able to <strong>reuse account_number</strong> if the status is <strong>failed</strong>.</p><p>2. We should <strong>not reuse account_number</strong> if the status is <strong>active</strong> (and few other statuses more in future).</p><blockquote><strong>So in general, for the same table uniqueness of one column values was based on another column </strong>values</blockquote><p>The existing query fulfilled the requirement but later we faced a deadlock issue.</p><h3>Cool got it. But why is there a deadlock issue because of that query?</h3><p>So there are two SQL queries — <strong>1. Insert 2. Select</strong> as highlighted in the single query using one transaction.</p><p>When one request/thread gets read lock using the same transaction and another would have acquired write lock for insert using other transaction.</p><p>Issue is</p><p><em>1. Read lock would have been waiting till the write lock gets released.</em></p><p><em>2. Write lock would wait till all current read locks get released.</em></p><p>So here comes the deadlock 🔒.</p><h3>Oooh okay. So what approach have you tried?</h3><p>We tried to separate select query from insert query</p><pre><strong>SELECT</strong> * FROM accounts where account_number=? and status = ?</pre><pre>// check if no account returned</pre><pre><strong>INSERT </strong>INTO accounts(account_number, status) values(?, ?, ?)</pre><p>Because of separation now one thread will acquire read lock and release it before write lock is acquired and released.</p><p>So even if one request/thread acquires a write lock, it will eventually be able to continue because other threads which acquired read locks now don’t depend on this write lock.</p><p>But there is one drawback with this approach.</p><h3>Oh what’s that drawback?</h3><p>If you have observed there is one little gap between SELECT &amp; INSERT query. So in case if both threads acquire read lock and read the same data then both will proceed to INSERT.</p><p>One of the threads will acquire a write lock and update the record. After that another thread which was waiting, would now acquire a write lock and update the same record again with possibly different data.</p><p>These will lead to data corruption i.e. data in unexpected state. So while solving one issue we now faced another issue 😓.</p><p>We need to handle this concurrency issue.</p><h3>😯 So how did you solve the concurrency issue then?</h3><p>Here the issue is because a uniqueness check had to be <strong>done on the application layer</strong> based on value. If we could <strong>delegate this to the database layer</strong> itself then we don’t need to be worried. But we can only create unique indexes only on columns i.e. not possible based on value. So we decided to</p><ol><li>Add new column X</li><li>Create a new unique index based on account_number and X</li><li>Keep value of X to null when we want to allow duplicate account_numbers otherwise keep it to some unique value.</li></ol><h3>🤔 Interesting. Could you explain to me with an example?</h3><p>Sure. See consider we added a new called <strong>in_use</strong> of type boolean and created a new unique index.</p><pre>ALTER TABLE accounts <strong>ADD COLUMN </strong>in_use BOOLEAN NULL;</pre><pre>UPDATE accounts <strong>SET in_use = 1</strong> WHERE status = &#39;<strong>active</strong>&#39;;</pre><pre><strong>CREATE UNIQUE INDEX</strong> accounts_index ON accounts(<strong>account_number, in_use</strong>);</pre><ol><li>Action — Now suppose we inserted one record.</li></ol><p><strong>DB Result</strong> — new record will get added.</p><pre>+-----------------+----------+---------+<br>| account_number  |  status  |  in_use |<br>+-----------------+----------+---------+<br>|     1234567801  |  failed  |  null   |<br>+-----------------+----------+---------+</pre><p>2. Now we try to insert another record with same account_number with failed status</p><p><strong>DB Result </strong>— new record will get added.</p><pre>+-----------------+----------+---------+<br>| account_number  |  status  |  in_use |<br>+-----------------+----------+---------+<br>|     1234567801  |  failed  |  null   |<br>|     1234567801  |  failed  |  null   |<br>+-----------------+----------+---------+</pre><blockquote>Note: Here even though we created a unique index based on account_number and in_use,<strong> mysql will allow multiple records with null</strong>. Because it considers null not equal to other null.</blockquote><p>3. Now we try to insert another record with same account_number with active status</p><p><strong>DB Result </strong>— new record will get added.</p><pre>+-----------------+----------+---------+<br>| account_number  |  status  |  in_use |<br>+-----------------+----------+---------+<br>|     1234567801  |  failed  |  null   |<br>|     1234567801  |  failed  |  null   |<br>|     1234567801  |  active  |  1      |<br>+-----------------+----------+---------+</pre><p>Because account_number + in_use is different from others, mysql will allow the above record to be inserted.</p><p>4. Now we try to insert another record with same account_number with active status</p><p><strong>DB Result </strong>— 🔴 Duplicate entry error will be thrown.</p><p>So we achieved our requirement i.e.</p><ol><li>Allow inserting multiple records with status failed for same account number ✅</li><li>Deny inserting multiple records with status active for the same account number ✅</li><li>Handle concurrency i.e. make sure data will be alway in expected state even if multiple threads run. ✅</li></ol><p>Thank you for reading 🙇‍♀! Above solution might not work for a few databases. But here I just wanted to show you, discussions we had and why we did what we did. In case if you have different approach or any feedback, would be happy to receive 😃.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ec6864157f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When is a blockchain required]]></title>
            <link>https://sujata-regoti.medium.com/when-is-a-blockchain-required-e26f8753ee1d?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/e26f8753ee1d</guid>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[blockchain-development]]></category>
            <category><![CDATA[blockchain-startup]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Sat, 14 Aug 2021 05:34:21 GMT</pubDate>
            <atom:updated>2021-08-14T05:34:21.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*o6lMc-n0LXkbKRbV" /><figcaption>Source — <a href="https://unsplash.com/photos/h5iazR-wljU">https://unsplash.com/photos/h5iazR-wljU</a></figcaption></figure><p>Go through simple set of questions —</p><h3>Questions</h3><h4>1. Is high data throughput required?</h4><blockquote>Yes — Use a traditional database.</blockquote><blockquote>No — A central database might still be useful if other requirements are met. For example, if users trust each other, then perhaps there is no need for a blockchain. However, if they don’t or trust cannot be established for any reason, blockchain can be helpful.</blockquote><h4>2. Are updates centrally controlled?</h4><blockquote>Yes — Use a traditional database.</blockquote><blockquote>No — You may investigate how a public/private blockchain can help.</blockquote><h4>3. Do users trust each other?</h4><blockquote>Yes — Use a traditional database.</blockquote><blockquote>No — Use a public blockchain.</blockquote><h4>4. Are users anonymous?</h4><blockquote>Yes — Use a public blockchain.</blockquote><blockquote>No — Use a private blockchain.</blockquote><h4>5. Is consensus required to be maintained within a consortium?</h4><blockquote>Yes — Use a private blockchain.</blockquote><blockquote>No — Use a public blockchain.</blockquote><h4>6. Is strict data immutability required?</h4><blockquote>Yes — Use a blockchain.</blockquote><blockquote>No — Use a central/traditional database.</blockquote><p>Reference book: <a href="https://www.packtpub.com/product/mastering-blockchain-third-edition/9781839213199">https://www.packtpub.com/product/mastering-blockchain-third-edition/9781839213199</a></p><p><a href="https://www.packtpub.com/product/mastering-blockchain-third-edition/9781839213199">Mastering Blockchain - Third Edition | Packt</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e26f8753ee1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitcoin vs Bitcoin Cash vs Bitcoin Gold]]></title>
            <link>https://sujata-regoti.medium.com/bitcoin-vs-bitcoin-cash-vs-bitcoin-gold-a2d6f82441b6?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2d6f82441b6</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoincash]]></category>
            <category><![CDATA[bitcoin-mining]]></category>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Sun, 30 May 2021 09:45:18 GMT</pubDate>
            <atom:updated>2021-05-30T09:45:18.890Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kw53jHh76rt3eJp6IQSUYA.png" /><figcaption>Bitcoin vs Bitcoin Cash vs Bitcoin Gold</figcaption></figure><p>All looks similar but yes there is difference. All are difference crypto currencies. Let’s see how they are different.</p><h3>Bitcoin (BTC)</h3><p><a href="https://bitcoin.org/">Bitcoin</a> introduced by Satoshi Nakamoto in 2008 and release in 2009. One of the most popular cryptocurrencies. It is based on blockchain and the chain is growing day by day. More about <a href="https://sujata-regoti.medium.com/bitcoin-bird-eye-view-for-beginners-cb3ea23c11af">Bitcoin — Bird Eye View For Beginners here.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ncjo-GnYO7rhy3aogOkm9w.png" /><figcaption>Blockchain</figcaption></figure><h3>Bitcoin Cash (BCH)</h3><h4>Why it was introduced?</h4><p>From 2016 to 2017, Bitcoin became increasingly unreliable and expensive. Mining was becoming more difficult. To make any transaction in bitcoin, block must be mined and transaction should be added into the block.</p><p>What is the limitation —</p><ul><li>Block creation time takes around 10 minutes</li><li>Block max size 1 MB</li><li>On average 3.3 and 7 transactions per second only</li></ul><p>Resulted into usability problem i.e. peer to peer transaction costlier and slow.</p><h4>What is <a href="https://bitcoincash.org/">Bitcoin Cash</a>?</h4><p>On <strong>August 1st, 2017</strong>, hard fork was taken at block no. 478558 and increased block size to support upto 32MB which means single transaction can be with done with very low fees because more and more transactions can be included in single block and miners would still more fees by included many transactions in the same block. This new chain generated named as Bitcoin Cash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rnj_5OT-x-uQsQZNn6-RSQ.png" /><figcaption>Bitcoin vs Bitcoin cash</figcaption></figure><h3>Bitcoin Gold (BTG)</h3><h4>Why it was introduced?</h4><p>To mine block in bitcoin, some of the large players are using ASICs (<a href="https://en.wikipedia.org/wiki/Application-specific_integrated_circuit">Application-Specific Integrated Circuits</a>) which are more powerful.</p><blockquote>ASICs generate &gt; 1000GH(giga hashes)/s</blockquote><blockquote>GPUs(&lt;1GH/s)</blockquote><blockquote>CPUs(&lt;10MH/s)</blockquote><p>With ASICs, these large players mine most of the blocks than the normal other miners who use GPUs for mining.</p><h4>What is <a href="https://bitcoingold.org/">Bitcoin Gold</a>?</h4><p>On <strong>October 24, 2017</strong>, hard fork taken at block no. 491407 from original bitcoin chain and prevented mining using ASICs so that mining can be done by anyone from world with GPUs rather than relying on any application specific ICs. This will eliminate monopoly in mining. This new chain generated named as Bitcoin Gold.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ap9_zVvBuzt4hxaSfCDcoA.png" /><figcaption>Bitcoin vs Bitcoin Gold</figcaption></figure><blockquote>Note: In hard folk, Anyone who held Bitcoin at that time (block from where fork was taken) become an owner of new Cryptocurrency. That means everyone who had bitcoins prior to Bitcoin Cash and Bitcoin Gold are automatically owners of Bitcoin Cash and Bitcoin Gold.</blockquote><p>Hope this helped to understand difference between Bitcoin, Bitcoin Cash and Bitcoin Gold.</p><p>Thank you for Reading !! See you next time 👋.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2d6f82441b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitcoin — Bird Eye View For Beginners]]></title>
            <link>https://sujata-regoti.medium.com/bitcoin-bird-eye-view-for-beginners-cb3ea23c11af?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb3ea23c11af</guid>
            <category><![CDATA[bitcoin-wallet]]></category>
            <category><![CDATA[transactions]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Wed, 26 May 2021 04:53:51 GMT</pubDate>
            <atom:updated>2021-05-26T04:53:51.412Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bitcoin — Bird Eye View For Beginners</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8-b1FP95yUwznaVPNCGBw.png" /></figure><p>Hello 👋 , I hope you got an idea on <a href="https://sujata-regoti.medium.com/blockchain-why-what-how-3e7fec5ac5c4">why, what and how part of Blockchain in this post</a>. Now let’s understand Bitcoin, as Bitcoin is the most popular real world application of blockchain.</p><h3>Introduction</h3><p><a href="https://bitcoin.org/bitcoin.pdf">Bitcoin — A Peer-to-Peer Electronic Cash System</a> is the white paper published by person or people under the name<strong> Satoshi Nakamoto(who is Satoshi Nakamoto is still mystery) </strong>in 2008<strong>.</strong></p><p>In 2009, bitcoin system is implemented and created first block called<strong> genesis block</strong>. More on bitcoin journey <a href="https://bitcoin.org/en/about-us">here</a>.</p><h3>Purpose</h3><p>The main purpose is <strong><em>transacting payments between</em></strong> <strong><em>two parties without any intermediaries</em></strong> like Banks.</p><p>Bitcoin protocol is designed to make it so strong protocol that people can trust on protocol itself and remove any intervention of third parties to manage or validate any transaction and avoid double spending problem.</p><h3>Ecosystem</h3><p><strong>Nodes</strong> — people/participants who want to make transactions</p><p><strong>Miners</strong> — people who helps to grow bitcoin blockchain. They add transactions into block and block into blockchain. Miners can be nodes as well sometime to do any transactions.</p><p><strong>Large Miners</strong> — Miners with lots and lots of power, makes larger contribution to blockchain</p><p><strong>Mining Pools</strong> — Miners create groups and work together on mining process</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LjEHh3-lPCBarMDS6GwF6Q.png" /></figure><h3>How it works</h3><p>Let’s say Alice want to send 0.1 Bitcoin(BTC) to Bob. Here are steps behind the scenes to transfer 0.1 BTC from Alice wallet to Bob’s wallet.</p><ol><li><strong>Transaction request </strong>will be pushed into <strong>MEMPOOL</strong> (a staging area where unconfirmed transactions will be stored).</li><li><strong>Broadcast</strong> — Above request will be broadcasted and copied to everyone’s mem-pool in P2P network.</li><li><strong>Miners picks up transaction(s)</strong> and puts in the block that they will be mining.</li><li><strong>Validation </strong>— Once miner mines block(what this means exactly we will see in future blog) and validation algorithms confirms that new block discovered by miner is valid then new block gets added to blockchain.</li><li><strong>Confirmation — </strong>Blockchain with longest valid chain will be broadcasted and copied by all each running peer in P2P network.</li><li><strong>Done — </strong>Once block with your transaction confirmed, same will be reflected in both parties wallets.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shbwIVj-D0orwTu_SZ2CWQ.png" /></figure><p>That’s all in this blog. This is just high level overview on how bitcoin transaction works behind the scene.</p><p>Thank you for reading. Hope it’s helpful. See you next time!! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb3ea23c11af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain — Why, What, How]]></title>
            <link>https://sujata-regoti.medium.com/blockchain-why-what-how-3e7fec5ac5c4?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e7fec5ac5c4</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Mon, 17 May 2021 19:42:32 GMT</pubDate>
            <atom:updated>2021-05-17T19:42:32.394Z</atom:updated>
            <content:encoded><![CDATA[<h3>Blockchain — Why, What, How</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*MVNkAN4dxN7qGd_8-N2LRQ.png" /></figure><p>Blockchain ! Bitcoin !! BitcoinCash !!! BitcoinGold !!!! Lots of confusing buzzwords. Nowadays, we are hearing a lot of these terms in social media. Let’s try to understand just <strong>Blockchain</strong> in this blog. I will soon write more blogs to explain other buzzwords. Just read the Alice and Bob conversation and hope that will help you understand what exactly Blockchain is!!!</p><p><strong>Alice: </strong>Hey Bob!! It’s been quite a lot of time that I have heard of Blockchain and I have no idea what exactly is!! I feel so dumb now a days. I tried reading about it but was not able to grasp it. It’s going above my head 😔</p><p><strong>Bob:</strong> Hey Alice!! Chill. I too had the same feeling initially. But after some research, I now have a clear picture. Let me share it with you.</p><p>Alice: Ah nice !!</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*3097ooKeQJBeN8qNKfzp7w.png" /></figure><p><strong>Bob</strong>: So Let’s say you have money and you want to buy your dream house. How will that house become yours?</p><p><strong>Alice</strong>: Well, I will make a contract with the current owner of the house. I will pay an agreed amount and will present to the government a new agreement of ownership change. Once it’s recorded in government, that house becomes mine.</p><p><strong>Bob</strong>: Simple. Now tell me, what if physical records kept in government somehow burnt or digital documents hacked by some hacker. Would you still be able to prove that the house is yours, if the hacker registers his/her name instead of yours?</p><p><strong>Alice:</strong> Oh my god! No!! That’s disastrous.</p><p><strong>Bob:</strong> Yes. So here comes Blockchain. It’s a technology that makes any such changes almost impossible.</p><p><strong>Alice:</strong> Wow! How does it achieve that?</p><p><strong>Bob: </strong>Well, here comes important concepts — 1. Immutable Ledger 2. Distributed Peer to Peer Network. Let’s go through one by one.</p><p><strong>Immutable Ledger —</strong></p><p>In the blockchain world, consider each block will store transaction records like buying and selling called Ledger. Each block is attached with the previous block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Obb30WizXWSLaJvigSTS_A.png" /><figcaption>Blockchain — Immutable Ledger</figcaption></figure><p>Any change in the current block invalidates the rest of the blocks.</p><blockquote><em>Each block stores the SHA256 hash value of the previous block. If any content in previous block changes means its hash value changes. So this means previous block SHA value change in current block which makes current block invalid. More on this here </em><a href="https://demoblockchain.org/blockchain"><em>https://demoblockchain.org/blockchain</em></a><em>. Change value in any block, see how all further blocks become invalid. We need to mine block again to fix it.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*FmYtroi7-5jLRqRvXGBF-g.png" /><figcaption>Hacker attacking blockchain</figcaption></figure><p>Now for hackers it becomes difficult to not only fix the current block but the hacker needs to fix all further blocks in the chain which makes hackers life difficult.</p><p><strong>Alice:</strong> But Bob, if there are few transactions only then the hacker can still go and fix them right? There is still possibility of attack 🧐</p><p><strong>Bob: </strong>Right Alice! So here comes our next two concepts —</p><ol><li>Distributed Peer to Peer Network — It’s not a single blockchain. It’s distributed. It means there would be multiple systems connected with each other. Each system will have its own copy of blockchain.</li></ol><p><strong><em>Peers keep communicating with each other and watch for any changes in the blockchain.</em></strong> When any new block gets added into the blockchain of any system, other systems(nodes) update their own copy of the blockchain with the new block. That’s how all nodes have exact copies of blockchain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*zFp5CDhYkFqwc5fv8Mmu3w.png" /><figcaption>Distributed Peer to Peer Network</figcaption></figure><p>Now when an attacker try to modify transaction stored inside block, then he/she may change rest of the blocks in one system A. As peers constantly checks and validates the blockchains, in this case as majority of nodes will have old copy blockchain and there is no change in length, majority wins. Now system A, will override its blockchain with one which was won by majority i.e. old copy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*Pr3ihEiEuJEMxtR9vgqSeg.png" /></figure><p>Hence, changes would get reverted and your house will still be in your name. Got it :)</p><p><strong>Alice:</strong> Awesome 👌😃!! It’s amazing technology.</p><p><strong>Bob:</strong> Yeah!! There are a lot of other important concepts in blockchain like Hash Cryptography, Mining, Consensus Protocol. But let’s discuss them sometime later. Hope for now, you got the main core part of blockchain.</p><p>Alice: Yes! Thank you. See you next time then. 👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e7fec5ac5c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Good Gobs!!]]></title>
            <link>https://sujata-regoti.medium.com/good-gobs-8f31230be415?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f31230be415</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[clients]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Fri, 21 Aug 2020 15:33:11 GMT</pubDate>
            <atom:updated>2023-05-22T07:58:28.878Z</atom:updated>
            <content:encoded><![CDATA[<p>As you know, Shizuka’s last project in her <a href="https://medium.com/@sujata.regoti/tls-story-3afc00ef5293">TL’s story,</a> the project is still going on with the same pressure, lot of work. But she is happy because according to plan, it should end in near future. Yes!!!! Client project will be in production soon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Tp3glYjzc_EF-P1n.jpg" /></figure><p>But soon she realised that</p><blockquote><strong><em>Running behind unrealistic goals and that too everyone in their own way will not lead us to the expected destination in expected time.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*bEeGyApNwP-dXnQ21yL8Mw.png" /></figure><p>So now after looking at the code, everyone knows that it’s not production ready. Communication made with the client that we have to stop working on current sprint work and focus on making our project production ready at least for the next 3 days.</p><p>All the leads in the project came up with action items to be done in the next 3 days. Around 90+ people, distributed into separate groups for each of the targeted action items.</p><p>Shizuka also got assigned to the Observability group. She had no clue what to do in these 3 days. She thought, how do we know tasks now, which we haven’t realised in the past one year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*VWrWQFn9dLZmvvGOlCz1Qg.png" /></figure><p>Gobs as a TL assigned for this group. Because of the COVID situation, Shizuka and everyone were in an online remote call meeting.</p><p>Gobs asked everyone to on their video and introduced himself. He asked everyone to introduce themselves. Gobs explained what work to do and what guideline to be followed while working on that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/0*lyqCCaZtgudw1NHH" /></figure><p>Shizuka thought to finish this work as soon as possible and go away.</p><p>3 Days over. Shizuka is excited to escape but she remembers one tech task which falls under the same Observability. She thought she would discuss that with Gobs after the GoodBye call.</p><p>Gobs called everyone. Started talking.</p><p><strong>Gobs:</strong> Thank you people! Worked so hard. Everyone please on video. It’s our last day!</p><p>Shizuka, feeling very happy upon hearing those words ‘last day!!’.</p><p><strong>Gobs</strong>: So, you worked these days on improving our code base. What did you learn? What you felt while working on it? Any feedback to me or to overall this process?</p><p>Shizuka was hesitant to talk and was feeling that ‘How can I talk here!! I don’t know most of them, with Gobs also not interacted much!!’. So Shizuka couldn’t speak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hyyAG-c1AUKYLznjdiH0_g.png" /></figure><p><strong>Gobs:</strong> Let me share then, few things that you as developers should follow.</p><ul><li>Always read all commits of other’s everyday without missing.</li><li>Before coming to standup, you should read all the commits.</li><li>While reading if you find something, that needs to be improved or unclear, then talk about it.</li><li>While working on existing code, if you find some code that needs refactoring or not doing correct, then add TODO comment. Don’t miss that.</li><li>Keep an eye on what’s going in your team. Some discussions via chats, mails, never miss to read those. Some important discussions might be going which you are not aware of.</li><li>While writing tests, I understand sometimes we can’t do TDD. But still make sure you are writing correct tests to cover all scenarios. Seen some tests which pass anyway, even commenting all the code for which test was written.</li><li>One way is to comment out all the code that you have written. Add a test and make it fail. Now, uncomment and see if it passes.</li><li>Be careful while Naming the methods. Method name should be sufficient to know what the method is doing. If you have to go inside the method, to get what all method is doing then rethink about method and method name.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/194/0*JO9xwSK8h08Uxe_m.png" /></figure><p>Shizuka was surprised and happy upon hearing all this. Even Gobs also haven’t interacted with most of the people before. But still he shared all his learnings and suggestions. He haven’t thought that something is assigned to us, we will just do that work and go.</p><p>Then everyone thanked Gobs and left. Shizuka stayed on the call to talk about missed tech task.</p><p><strong>Gobs:</strong> Yeah Shizuka, tell me!</p><p>Suddenly, Gobs son came and started talking with Gobs in his mother tongue. Gobs was replying to his son, but turned to Shizuka.</p><p><strong>Gobs:</strong> Shizuka, do you know this language.</p><p><strong>Shizuka:</strong> No Gobs!</p><p><strong>Gobs(to his son): </strong>What happened? What you want?</p><p><strong>Gobs son:</strong> Why are you talking in English?</p><p><strong>Gobs:</strong> Shizuka is in call. She don’t know our mother tongue. She won’t understand then what we are talking.</p><p><strong>Gobs son:</strong> Then why she even needs to know what we are talking?</p><p><strong>Gobs:</strong> She will feels bad na, if we leave her and we both only talk.</p><p>By this, Shizuka’s respect for Gobs raised to one more level. She felt so happy as she saw that someone is so caring, even at home making sure, colleague feel more inclusive and teaching son as well about inclusivity.</p><h3>She felt “Good Gobs!! Great Gobs!! Awesome Gob!!!”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*u-QSNsaJ3q7MmHcQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f31230be415" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TL’s Story]]></title>
            <link>https://sujata-regoti.medium.com/tls-story-3afc00ef5293?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/3afc00ef5293</guid>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Wed, 17 Jun 2020 05:18:14 GMT</pubDate>
            <atom:updated>2020-06-18T08:44:24.331Z</atom:updated>
            <content:encoded><![CDATA[<p>After <a href="https://medium.com/@sujata.regoti/print-story-c644a1a6fe7d">Print’s story</a>, here goes Shizuka’s another story -</p><p>This time Shizuka joined the client side project thinking that now she can work closely with clients.</p><p>Initially it went well, she got to know about the domain and new tech stack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*AYryYu9k4LF63c--.jpg" /></figure><p>As time passed, the project situation was becoming drastic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/0*KOacj5OvJ1cTe20U" /></figure><ul><li><strong>Clients shouting in each showcase</strong></li><li><strong>Lot of delivery pressure</strong></li><li><strong>Saturday working even after working long hours on weekdays.</strong></li></ul><p>In such situations, everyone was focused on their own story. After a few months, <strong>a new Tech Lead(TL) joined</strong>.</p><p>TL introduced himself and showed how happy he is to join the team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/0*_MvgMW5aIIvQt4_q" /></figure><p>Shizuka was laughing inside and was feeling sorry for him that his happiness might not stay for a longer time.</p><p>After a few days, TL realized the situation and he got pissed off.</p><p>One day, he asked everyone to have a tea break together.</p><p>After having tea, then he started talking with both crying and laughing face.</p><h3><strong>TL :</strong></h3><p><em>I am becoming crazy by seeing the current situation. I don’t think everyone is reading and understanding the code. We are working but not learning.</em></p><p><em>When you go out from this project, people will expect you to be an expert in the tech stack you worked on. I know we have client pressure and unrealistic deadlines.</em></p><p><em>But we can’t expect to achieve goals without any change in the way we are currently working.</em></p><p><em>How many of you went tried learning more about current tech stack .Sharing the learnings is the next step.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/0*B09P5wR5Hdcamwqg.jpg" /></figure><p>After hearing that Shizuka felt ashamed. Her eyes were looking down as she couldn’t dare to look at the TL now.</p><h3>TL :</h3><p><em>No one is coming up with the things which we can use to improve our code quality. Please please please strive for learning and improving..don’t just work blindly.</em></p><p>Now Shizuka and others got energy and motivation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/0*lLd8QhufsayER-y0" /></figure><p>That day, Shizuka decided the topic which she thought, having knowledge of that would help to improve code quality.</p><p>The Next day, she gathered all her courage and stood near TL.</p><h3>Shizuka:</h3><p><em>TL, I learned about one topic and thinking to share it or not.</em></p><h3>TL:</h3><p><em>OH!! Awesome. Let’s have a session today only. After an hour? fine?</em></p><h3>Shizuka:</h3><p><em>What !! But I am not sure whether to talk about this or not. I feel most of the people might already know about it. I don’t even know how to start and what all things I should cover in session.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/0*3IuPUeJeYmpcXiP8.png" /></figure><h3>TL:</h3><p><em>Haha.. See, I will tell you my story. It was a phase when I had not even fully changed my role as dev. I was supposed to conduct a session on Java Garbage Collector. You know, at that time also I had a similar feeling. But guess what, it was housefull. The session went for more than 1.30 hr. Everyone was impressed by the talk.</em></p><blockquote>At that time I learned, don’t ever assume that everyone else might know about what you know. Just go and share with an open mind.</blockquote><p>Shizuka felt so motivated and she gave a talk. She thought it might take 15 mins but with QnA it took more that an hour. Shizuka was happy that she delivered it.</p><p>She herself learned so much and helped others too.</p><blockquote>Thanks to TL. Now whenever she hesitates to talk or share something, she just remembers her TL’s story. It’s a motivation for her.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*wkyYrMwGoDvLNuGT.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3afc00ef5293" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Async vs Parallel with example]]></title>
            <link>https://sujata-regoti.medium.com/async-vs-parallel-with-example-59382bd2170b?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/59382bd2170b</guid>
            <category><![CDATA[parallelism]]></category>
            <category><![CDATA[synchronous]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[asynchronous]]></category>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Sat, 19 Oct 2019 16:49:33 GMT</pubDate>
            <atom:updated>2019-10-19T16:49:33.232Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/812/0*07p1otWabS242Ugi" /></figure><p>Let’s say you have 2 tasks —</p><h3><strong>1. Boiling the milk</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c1GLJ9tFTELUsVMR.jpg" /></figure><h3><strong>2. Making pizza dough</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xS68haToPqv9nLXT.jpg" /></figure><p>There are various ways to complete both tasks.</p><p><strong>1st way</strong> —</p><h4>Boil milk first, then make pizza dough.</h4><blockquote>This is called Synchronous i.e. to do next task only after completion of current task.</blockquote><p><strong>2nd way</strong> —</p><h4>By the time milk boils, we are idle. So meantime make pizza dough.</h4><blockquote>This is called Asynchronous i.e. to do next task in available time while doing current.</blockquote><h3><strong>Now let’s say instead of one dough, we have to make big dough for many pizzas.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*GI0-S2OLtFvk65wL.jpg" /></figure><p><strong>Now to complete task in less time, we may take help of our friends. We may ask each friend to do one dough. Then merge at the end.</strong></p><blockquote>This is parallelism i.e. to distribute task among multiple resources in order to complete the task.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59382bd2170b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Object in Javascript — 4 Ways]]></title>
            <link>https://sujata-regoti.medium.com/creating-object-in-javascript-4-ways-a2f9c08e1884?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2f9c08e1884</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[objects]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Mon, 09 Sep 2019 16:39:11 GMT</pubDate>
            <atom:updated>2019-09-09T16:39:11.850Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating Object in Javascript — 4 Ways</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mHZFXuWcVgjcMVaz.jpg" /></figure><p>Creation of object in JS using</p><ol><li>Object.create</li><li>Object literal</li><li>Constructor Function</li><li>ES6 Class</li></ol><h3>Using Object.create</h3><ul><li>Raw kind of creation.</li><li>Any other type of object creation(which are syntactic sugar) would essentially under the hood, use this type of creation only.</li><li>Example —</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d4232fc9f9faddb3377bd384dbf5bb7/href">https://medium.com/media/5d4232fc9f9faddb3377bd384dbf5bb7/href</a></iframe><p>This will create object like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*y9WincoXj35yF5FkXZSyzg.png" /></figure><p>Want simpler way of creation? See next type 😎.</p><h3>Using object literal</h3><ul><li>Syntactic sugar to Object.create</li><li>Most frequently used type, as its very easy</li><li>Can easily add and remove new properties to object.</li><li>Example —</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2864edc334d51a7505c101a9f4c17cbf/href">https://medium.com/media/2864edc334d51a7505c101a9f4c17cbf/href</a></iframe><p>Here we have created two objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*-5IDFS7HKd2sWDCD" /></figure><p>We can add new function property to vanillaCake object like this —</p><pre>vanillaCake.addCherry = function() { this.isCherryAdded = true;  }</pre><p>Note that this won’t be added to chocolate cake object. You can verify as</p><pre>console.log(chocolateCake.addCherry); // returns <strong>undefined</strong></pre><p>How can we add it to all cake objects 🤔? We have to add it to prototype. See next type of creation 😎.</p><h3>Using Constructor Function</h3><ul><li>Provides a template kind of creation</li><li><strong>new</strong> keyword to create object</li><li>For those who come from object oriented programming world, might have following concerns,</li></ul><p>in above 2 types —</p><ol><li>Nowhere we defined shape of cake i.e. what all properties cake can have.</li><li>No way to define that vanillaCake and chocolateCake are type of Cake.</li><li>How to add new property only to all cake objects?</li></ol><p>This type is just syntactic sugar added to object.Create, to solve above concerns easily and make our life easy 😌.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2f6bce8244374747878af8612fcfce68/href">https://medium.com/media/2f6bce8244374747878af8612fcfce68/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*mjjKJmHfZ-XamV2a" /></figure><ol><li>Now, we have Cake function, which adds properties to <strong>this </strong>object. So we have way to define shape of cake object.</li><li>We can find if vanillaCake object is of type Cake using</li></ol><pre>console.log(vanillaCake instanceof Cake); //returns <strong>true</strong></pre><p>3. Add new property to all Cake objects by simply adding it to prototype object as shown in above code snippet. Now we can do</p><pre>chocolateCake.addCherry();<br>console.log(chocolateCake.isCherryAdded); //returns <strong>true</strong></pre><p>Still not satisfied? Want in more object oriented way 😜? See next type 😎.</p><h3>ES6 Class</h3><ul><li>Even more syntactic sugar</li><li>Like a traditional way of creating classes and objects.</li><li>Easy to use and understand</li><li>Object oriented programmers ( include me 😅) now may feel relaxed by having this kind of syntactic sugar 😉.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/234ee002d023ec03856921492f114e78/href">https://medium.com/media/234ee002d023ec03856921492f114e78/href</a></iframe><blockquote>Btw I learned these 4 ways of creating objects in JS. There might be other ways, which essentially might be different flavours of above types. If still there are any other ways that you are aware of and I missed it, I would be happy to know, as like you even I am also learner 😄</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2f9c08e1884" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Print Story]]></title>
            <link>https://sujata-regoti.medium.com/print-story-c644a1a6fe7d?source=rss-e506822c3a99------2</link>
            <guid isPermaLink="false">https://medium.com/p/c644a1a6fe7d</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[clients]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[team-management]]></category>
            <dc:creator><![CDATA[Sujata Regoti]]></dc:creator>
            <pubDate>Tue, 24 Apr 2018 17:06:43 GMT</pubDate>
            <atom:updated>2018-09-06T15:36:27.879Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*74jtjzYFpKcsJBsYAYUnSA.png" /></figure><p>A girl named <strong>Shizuka</strong>, a fresher who recently joined ThoughtWorks.</p><p>After awesome Pathashala and TWU(ThoughtWorks University) training, she was excited to apply her new learnings.</p><p>Luckily, she got assigned to project immediately. But here are some of her project characteristics :</p><ul><li>Big team ==&gt; 60+ people</li><li>Very tight deadline</li><li>Deliver more and more story points</li><li>Work, Work, Work</li><li>More importantly :( ==&gt; NO PAIRING</li></ul><p>This was different world than what she imagined. Now its been 6 months, she is working on this project. She want to share her story. Lets see :)</p><p>__________________________________________________________________</p><p><strong>BA</strong> : Hey, We have to implement new feature — <strong>Print</strong></p><p><strong>Tech Lead</strong> : Is it like a print option that we have on our Expensify.</p><p><strong>BA</strong> : OO..Great. Good example. Yes similar to that but dynamic. User can choose which parts on webpage they want to print. I think you are frequent user of Expensify ;) reimburse a lot.</p><p><strong>Tech Lead</strong> : Haha. Yup. Coming to print feature, we need to do spike. So maximum how much pages it can be.</p><p><strong>BA</strong> : We can ask to PO.</p><p><strong>PO</strong> : It can go more that 100 pages.</p><p><strong>Tech Lead</strong> : Ok. We will think about approach.</p><blockquote>Shizuka was also standing there, just hearing discussion and thinking —</blockquote><blockquote>How exciting this print feature is!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/194/1*Um2E8dcYMiGnj5BQl4rTGQ.png" /></figure><p>___________________________________________________________________</p><p>After a day -</p><p><strong>Tech Lead</strong> : Spike is done. As data is huge, we will do it from server side. UI will make request to print server. Print server will collect all required data. Generate HTML and return back to UI. Similar to Expensify, in a new tab html response will be rendered and print popup will be opened.</p><p><strong>BA</strong> : Ok. Go ahead, Shizuka you will work on designing that print pages.</p><p><strong>Shizuka</strong> : Yes. Sure. why not :D</p><p><strong>BA </strong>: Ok. I assigned a story to you to print PART I,II of PAGE 1.</p><p><strong>Shizuka</strong> : Sure, I will do it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H1-rJGUIw2fPFpT67c7t6g.png" /></figure><p>___________________________________________________________________</p><p>After 3 days :</p><p><strong>Shizuka</strong> : Done. :)</p><p><strong>BA</strong> : Oh. Thats great. One more story I assigned story to print PART III, IV</p><p><strong>Shizuka</strong> : Oh.. ok</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z9SbqU5HdopOtJv-UfcX7Q.png" /></figure><p>___________________________________________________________________</p><p>After few days :</p><p><strong>Shizuka</strong> : Done.</p><p><strong>BA</strong> : Oh.. Good. As you have context, I assigned print story for PART V to VIII</p><p><strong>Shizuka</strong> : ok :(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*ul2Z1kIEUYoSxO9CtqW8zg.png" /></figure><p>___________________________________________________________________</p><p>After few day :</p><p><strong>BA</strong> : I know you are done. Now this is last story, I promise.. no more print stories for you :)</p><p><strong>Shizuka</strong> : Oh..really. Last one. Then ok. :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*efbpVPiQBvNGyHhmUiYoyA.png" /></figure><p>___________________________________________________________________</p><p>After few days, new discussion started — new UI dev joined our team:</p><p><strong>UI Dev</strong> : Why are we not doing print on UI side?</p><blockquote>btw here, many categories of developers : UI Devs(who have good experience of working on frontend), Devs working on UI(Freshers who work on frontend as per need), Backend Devs(Only work on backend)</blockquote><p><strong>BA</strong> : As data is so huge, it may affect on performance of UI.</p><p><strong>UI Dev</strong> : Data of table on page can only go to large. How many rows max?</p><p><strong>BA</strong> : Max 500 rows.</p><p><strong>UI Dev</strong> : Oh.. Then why are we not doing on UI. We are repeating ourselves. We are writing logic on UI and similar logic at print side too. Not following DRY. Printing on UI, will save lots of efforts.</p><p><strong>BA</strong> : Oh. Then thats great then. For other pages, we will follow this approach. Shizuka have more context so she will pair with UI dev and do spike for print.</p><p><strong>Shizuka</strong>(Inside) : Ohhh, Again Print :( :( :(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*evHFkQK1I7JsoMijhlYnNw.png" /></figure><p>___________________________________________________________________</p><p>Shizuka paired with UI dev named Zack and Completed spike. Simultaneously completed print story of one more page. Given context to Zack.</p><p><strong>BA</strong> : Oh. great work. Shizuka, you are now free. I got Zack now. Zack, you will do print for page3, page4……..</p><p><strong>Shizuka</strong>(Inside) : OHHH…This print story never ends.. !!!! But finally I escaped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9v8hJJArsKZ4Vgmi4wn4Lw.png" /></figure><p>___________________________________________________________________</p><blockquote><strong>Shizuka</strong> : Hello, everyone. My states during print stories — excited =&gt; bored =&gt; no more print story please. But I learned a lot. In projects like these, because of client pressure and such deadlines, BAs have to assign similar story to a same developer even they know context sharing is important. BAs try their best. Tradeoff always there. There were so many features to develop and time was ‘like<strong> a Usain bolt — running and running</strong>’. Yes initially, we took wrong approach for print. Changing print approach later was not easy decision as we had to pay cost for it — again spike and time investment. But with new approach, all other print stories went smooth.</blockquote><blockquote>Amazing experience. Great team. After this, everyone where calling me ‘Printer’ ;). All’s Well That Ends Well.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*FRGCb6n4LnG50M_X_5zIBA.png" /></figure><p>Hope you enjoyed her print story :)</p><p>Do share context and switch stories. Are you working on new feature, then did you explored, discussed and analyzed all approaches well??? Just make sure of it. :D.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c644a1a6fe7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>