<?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 Arif Ul Islam on Medium]]></title>
        <description><![CDATA[Stories by Arif Ul Islam on Medium]]></description>
        <link>https://medium.com/@arifulislam-ron?source=rss-ab39f4ecbec4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Mqj_nJBY4mlFjgdHgg208A.jpeg</url>
            <title>Stories by Arif Ul Islam on Medium</title>
            <link>https://medium.com/@arifulislam-ron?source=rss-ab39f4ecbec4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:54:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arifulislam-ron/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[[Part 1] Intro to Deep Learning: Do We Actually Need Deep Learning?]]></title>
            <link>https://medium.com/brainstation23/intro-to-deep-learning-part-1-b97e2e83835b?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b97e2e83835b</guid>
            <category><![CDATA[ai-vs-dl-vs-ml]]></category>
            <category><![CDATA[brain-station-23]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 06:31:17 GMT</pubDate>
            <atom:updated>2021-09-10T11:36:32.447Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*giYm6LCkc943spzsaKJzDQ.jpeg" /></figure><p>The idea of Artificial Intelligence (AI) definitely came from some Lazy People. Kidding! But we can not deny that AI is making our lives easier. If we look around, we will see many intelligent applications to automate routine labor, understand speech or images, and make diagnoses.</p><p>At this time, you may hear some terms Machine Learning (ML), Deep Learning (DL), etc with AI. <strong>Even many people interchangeably use these words. But the thing is they are not the same. They all have their own fields with specific boundaries.</strong> AI is the container of ML, DL, and other similar terms. But one thing is for sure that they all are necessary for building up intelligent machines, and robots. <strong>Anyway, here, our focus will be only on the Deep Learning part.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*MLhmFiRGWVtHs7wPk3zbBQ.png" /><figcaption>Fig. 1 AI -&gt; ML -&gt; DL</figcaption></figure><p><a href="https://arifulislam-ron.medium.com/my-overview-of-machine-learning-7d12f4cb50f0">My Overview of Machine Learning</a></p><blockquote><strong><em>Through this article, we will try to find the answer to the question “Do we actually need Deep Learning?”</em></strong></blockquote><h4>We are going to have three sections here—</h4><p>☑️ The Plot of AI<br>☑️ Why do we need Deep Learning?<br>☑️ How Deep Learning Works in General</p><p><em>Note: “Machine”, “Computer” words are used interchangeably through the post</em></p><h3>⇰ The Plot of AI</h3><p>AI has been a hot topic of research since the 1950s. But during the early days of AI, it’s not that common. You know that the beginning of anything is always difficult. AI started its journey when people wanted to let machines think. You can find the history of AI in detail <a href="https://en.wikipedia.org/wiki/History_of_artificial_intelligence"><strong><em>here</em></strong>.</a></p><p>Many of the early successes of AI took place in relatively formal environments. Computers or machines were not required to have much knowledge about the world. Generally, the machine was provided with some set of instructions or logical inference rules to perform any intellectual task. A machine can reason statements or classify anything using logical inference rules. This is actually known as Knowledge-Based or Rule-Based AI.</p><p>In Rule-Based or Knowledge-Based AI, you can classify records by using a collection of “if…then…” rules.</p><blockquote>(Condition) → Y</blockquote><p>Here,<br>➵ Condition is the conjunction of if-else rules<br>➵ Y is the class label</p><p>For example,</p><blockquote>(<em>Has Wings = Yes</em> &amp;&amp; <em>Lay Eggs = Yes</em>) → Birds</blockquote><p>(<em>Has Wings = Yes</em> &amp;&amp; <em>Lay Eggs = Yes</em>) this part is the condition and “Birds” is the class label. <strong>So if a thing has wings and can lay eggs, then it means the thing is a bird. </strong>So simple, right?</p><p>Still, this kind of Rule-Based AI research on populating rules is popular. If you look at this <a href="https://www.researchgate.net/publication/332245832_Rule_Induction_and_Prediction_of_Chronic_Kidney_Disease_Using_Boosting_Classifiers_Ant-Miner_and_J48_Decision_Tree"><strong><em>research paper</em></strong></a><strong><em> which was published in 2019, </em></strong>you will see that at the end we extract similar rules (given below in Fig. 2) by a tool called <strong>Ant-Miner</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/0*VsyeHOhFtrsPdCN5" /><figcaption>Fig. 2 Result from the paper “Rule Induction and Prediction of Chronic Kidney Disease Using Boosting Classifiers, Ant-Miner, and J48 Decision Tree”</figcaption></figure><p><em>[ CKD is the short form of Chronic Kidney Disease. ]</em></p><p><strong>CKD</strong> and <strong>NOTCKD</strong> are two classes which means the patient might have CKD disease and the patient might not have CKD disease respectively.</p><p>On the left side of the rule, there are some conditions checking for medical-related <strong>factors like</strong> <strong>hemoglobin</strong>, <strong>appetite</strong>, etc. And on the right side, we construct the class.</p><p>We can feed these rules to a machine or computer by some AI or ML algorithms, and train the machine with those rules. Later, for a new set of data, the machine can find out whether any patient might have been diagnosed with CKD or not by reasoning the rules it trained on earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mlj3Yavc_njR5PpK" /><figcaption>Fig. 3 Diagram of Traning and Testing By AI Machine</figcaption></figure><p>So in the end, if the trained machine is given that a patient has <strong>hemo = 5.6</strong>, then the machine figures out that the patient might have been diagnosed with CKD. Because the machine already knows from the training data (<strong>Rule 1</strong>) <strong>that if hemo&lt;=12.9, it means CKD</strong>.</p><p>By the above discussion, we try to cover how a traditional AI or ML works. <strong>In short, we can say, many artificial intelligence tasks can be solved by designing the right set of features to extract for that task, then providing these features to simply a machine learning algorithm</strong>.</p><h3>⇰ Why do we need Deep Learning?</h3><p>People always want machines to <strong>behave exactly how a human behaves</strong>. That’s not possible by integrating some rules into the machine. Because a person’s everyday life requires a huge amount of knowledge about the world. <strong>Computers need to capture this same knowledge in order to behave intelligently</strong>. However, for many tasks, it is difficult to know what features should be extracted.</p><p><strong>What if we feed an elephant’s raw image to a machine? </strong><br>Here rules or factors or features like color, the number of legs are not given, it’s just a raw image. The machine must figure out the factors and classify the image by itself. Can the machine classify the image?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*k54SsBhIPa4E4e2z0WCkLQ.jpeg" /><figcaption>Fig. 4 Elephant Image</figcaption></figure><p>We as a human know that an elephant has 4 legs, we might like to use the presence of legs as a feature or factor. But it’s hard to describe exactly what a leg looks like in terms of pixel values. Generally, the leg of the elephant is tall, fat. Also in an image, there may be shadows or mud on the leg, or the full leg might not be visible.</p><p>Also, it can be very difficult to extract such high-level, abstract features from raw images or data. For that reason, we basically need some magic box named <strong>Deep Learning</strong>. It allows the computer to build complex concepts out of simpler concepts. It extracts high-level features like edges, corners, etc from an image by itself (so which means we don’t have to extract the features) and then classifies images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdUwIWA-ta1ABrn02-TFSA.jpeg" /><figcaption>Fig 5. For a Car image, how ML and DL works</figcaption></figure><h3>⇰ How Deep Learning Works in General</h3><p>An example of the Deep Learning model is the feedforward deep network or multilayer perceptron (MLP). <strong>MLP is just a set of mathematical functions mapping some set of input values into output</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*NFtgx4yyIpqXZlNW7987rA.png" /><figcaption>Fig. 6 Multilayer Perceptron</figcaption></figure><p>Each layer can be thought of as the state of the computer’s memory after executing another set of instructions in parallel. Network with more depth will have more sequential executions in parallel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*7NxxBXpg89qgov1KIPAw9A.png" /><figcaption>Fig. 7 How Deep Learning looks at an image [Image is collected from the book “Deep Learning”]</figcaption></figure><p>For an image, the function mapping from pixels to the classification of an object is very complex. <strong>Deep learning resolves this complexity by breaking the desired complicated mapping into a series of nested simple mappings</strong>.</p><p>If you look at Fig. 7, you will see the input layer is called the Visible Layer. And then series of hidden layers. These are called hidden because the data in those layers are not present in the raw image.</p><h4>The layers are shown in Fig. 7 work in these ways:</h4><ol><li>Based on the pixels, the first layer can easily <strong>detect edges by comparing the brightness of neighboring pixels</strong>.</li><li>Given the edges by the first layer, <strong>the second layer finds out the corners and contours</strong>.</li><li>On the third layer, by having the details of corners and contours, <strong>it figures out the specific part of the objects</strong>.</li><li>Finally, after observing <strong>the details about the specific object parts</strong> from the third layer, it <strong>recognizes</strong> the objects present in the image.</li></ol><p>Now, you know how Deep Learning works with images in general.</p><p>So at this point of time, anyone must agree that we certainly need Deep Learning at least for extracting high-level details from data.</p><blockquote><strong><em>I will talk about Deep Learning deeply in part two.</em></strong></blockquote><p>There is one popular DL model named VGG16. <strong>In one of my previous blog posts, I have shown how to make a Web Application for Image Classification using Flask (Python Web Framework) and VGG16.</strong></p><p>You will find the blog here —</p><p><a href="https://arifulislam-ron.medium.com/flask-web-application-to-classify-image-using-vgg16-d9c46f29c4cd">Flask Web Application to Classify Image using VGG16</a></p><p>So that’s it. Don’t forget to press 👏 as much as you can so that others can reach it. Make sure to follow my <a href="https://arifulislam-ron.medium.com/"><strong><em>Medium</em></strong></a> profile, to get the latest updates of mine.</p><blockquote>Happy Learning</blockquote><h3>Reference book</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/196/1*O5pyTfY_KcdCjD1KBHlh8Q.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b97e2e83835b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainstation23/intro-to-deep-learning-part-1-b97e2e83835b">[Part 1] Intro to Deep Learning: Do We Actually Need Deep Learning?</a> was originally published in <a href="https://medium.com/brainstation23">Brain Station 23</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prediction of Chronic Kidney Disease By Boosting Classifiers]]></title>
            <link>https://medium.com/brainstation23/prediction-of-chronic-kidney-disease-by-boosting-classifiers-b440f32f1bc6?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b440f32f1bc6</guid>
            <category><![CDATA[boosting-classifiers]]></category>
            <category><![CDATA[ai-in-medical]]></category>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[chronic-kidney-disease]]></category>
            <category><![CDATA[ml-in-medical]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Thu, 15 Apr 2021 10:53:38 GMT</pubDate>
            <atom:updated>2021-04-26T05:18:57.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y8hXYMwuVS85AAqiprj4fg.png" /></figure><p>Data mining is a branch of Artificial Intelligence that is widely used to derive interesting patterns from a large volume of medical data. By making some mathematical approaches, data mining models extract patterns from data and later these patterns are used for the survival of patients.</p><p><strong>Chronic Kidney Disease </strong>(CKD) is one of the deadliest diseases that slowly damages the human kidney. The disease remains undetected in its early stage and the patients can only realize the severity of the disease when it gets advanced. Hence, detecting such a disease at an earlier stage is a key challenge now.</p><blockquote><strong>So here is the thing, in this article, I am going to analyze the dataset and the performance of boosting algorithms for detecting Chronic Kidney Disease.</strong></blockquote><blockquote><strong>In addition to that, I will also discuss some key terms of Machine Learning and introduce a data mining tool, </strong>Weka<strong>.</strong></blockquote><h3>➡️ Boosting Classifiers</h3><p>Boosting algorithms or classifiers are easy to implement and proved to be better in previous medical researches. <strong>Boosting algorithm</strong> is an ensemble type machine learning algorithm which converts weak classifiers to strong model to achieve better accuracy. Boosting algorithms solved various healthcare problems such as prediction of protein structure class, cancer classification, and recognition of breast cancer. In this experiment, two popular boosting classifiers, <strong>AdaBoost</strong> and <strong>LogitBoost </strong>will be talked about.</p><h3>➡️ DATASET</h3><p>The dataset that I am going to use, contains information of <strong>2800 patients</strong> where the number of healthy patients is <strong>1050 and 1750 adults have Chronic Kidney Disease</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*TJv4LiKgg0JZONisVOG8Yg.png" /><figcaption>Table 1. The types of the attributes</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*75eNo9rprB7TH7RBfLKTMQ.png" /><figcaption>Table 2. Details Analysis of Numerical Attributes</figcaption></figure><p>24 records such as age, blood pressure, sugar, blood urea, appetite, red blood cells, sodium, diabetes mellitus, etc. have been collected from each patient. Among them, 13 are categorical and 11 are numerical. <strong>Table 1</strong> describes the types of attributes. <strong>Table 2</strong> shows the descriptive analysis of numerical attributes of the CKD dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*g5RXURnO2MtFp8BzW2QrRw.png" /><figcaption>Fig. 1. Percentage of Healthy and Unhealthy Patients</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*0n49hE8srRKvs1KHDapYdg.png" /><figcaption>Fig. 2. Age Analysis of People in Dataset</figcaption></figure><p>There are two class labels (<strong>Figure 1</strong>). Among 2800, most people are from the age group 40 to 60 (<strong>Figure 2</strong>).</p><p>You will see two steps in this article-</p><ol><li><em>Applying AdaBoost and LogitBoost</em></li><li><em>Analysis of their comparative results</em></li></ol><p>But I will mostly focus on the result analysis. Before the above steps, we have to do some preprocessing to the model. Because the dataset contains missing values. As column values are repeated, therefore, missing values can be replaced by the mode values of that particular column. You may apply other preprocessing techniques to get more accurate high performance if you want. But for the time being, I will replace repeated values with mode value.</p><h3>➡️ Applying AdaBoost and LogitBoost</h3><p>I am a lazy developer. I don’t like to write code always. So when I save some time from coding, I take a nap. The same thing happens here. Instead of writing a bunch of python code, I have used WEKA 3.8 tool to apply the <strong>AdaBoost and LogitBoost</strong>. <strong>Weka is a tool for data mining tasks</strong>. Believe me, it&#39;s gonna save your time a lot. You may watch Netflix more or take a nap like me, haha! Hey, but I am not demotivating you to write code.</p><h4><strong>Weka</strong></h4><p>It is a visualization tool that contains algorithms for data analysis. It provides tools for <em>data pre-processing, classification, regression, clustering, association rules, and visualization. </em>You can find the tutorials for Weka <a href="https://www.youtube.com/user/WekaMOOC"><strong><em>here</em></strong></a><strong><em> </em></strong>and<strong><em> </em></strong><a href="https://www.youtube.com/playlist?list=PLJbE6j2EG1pZnBhOg3_Rb63WLCprtyJag"><strong><em>here</em></strong></a><em>. </em>And<em> </em>you can download Weka from <a href="https://www.cs.waikato.ac.nz/ml/weka/index.html"><strong><em>here</em></strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*Nl4PL3KE309vvcRk1bHsgA.png" /><figcaption>Weka GUI</figcaption></figure><p><strong>I have a plan to write more details on Weka in near future.</strong></p><h3>➡️ Result Analysis</h3><h4><strong>Accuracy Comparison</strong></h4><p>Accuracy is the common measurement for comparison among machine learning algorithms. <strong>Accuracy</strong> is calculated by summation of true positive and true negative divided by total instances (<strong>Equation 1</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*K9xFmgxAbQ0OT5gyc35pzg.png" /></figure><p>Let’s talk about TP, TN, FP, and FN a bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/0*ZuGRdDuQphB5Dpb9.png" /></figure><p><strong>True Positive: </strong>You predicted positive and it’s true. You predicted that a woman is pregnant and she actually is.</p><p><strong>True Negative: </strong>You predicted negative and it’s true. You predicted that a man is not pregnant and he actually is not.</p><p><strong>False Positive: </strong>You predicted positive and it’s false. You predicted that a man is pregnant but he actually is not.</p><p><strong>False Negative: </strong>You predicted negative and it’s false. You predicted that a woman is not pregnant but she actually is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*xppASRM_xpgMDEFefL2KUw.png" /><figcaption>Table 3. Performance Analysis of AdaBoost AND LogitBoost</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*6LKuwZ143UVuveIanN4JDQ.png" /><figcaption>Figure 3. Accuracy Comparison of AdaBoost and LogitBoost</figcaption></figure><p>Both boosting algorithms AdaBoost and LogitBoost <strong>performed very well</strong> and<br><strong>achieved good accuracy</strong> against the CKD dataset. Because as I said before boosting algorithms iteratively do the classification until it achieves better accuracy. Performance comparison between AdaBoost and LogitBoost<strong> based on Accuracy</strong> is shown in <strong>Table 3</strong> and <strong>Figure 3</strong>.</p><h4>Comparison of RMSE, F-Measure, and KAPPA Values</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*oWvF6azl-8vMnl7kUz_dqA.png" /><figcaption>Table 4. Comparison of RMSE, F-Measure, and KAPPA Values</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*dt4VC5MYxJc7Fxyh6_Foog.png" /><figcaption>Figure 4. RMSE, F-Measure and Kappa Comparison Between AdaBoost and<br>LogitBoost</figcaption></figure><p><strong><em>Root mean squared error interpretation: </em></strong>It tells the error between the actual result and predicted result. <strong>Equation 2</strong> shows the formula of RMSE. It ranges from 0 to 1. As the low value of RMSE means a better fit model, the performance of AdaBoost was lower than LogitBoost’s performance (<strong>Figure 4</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*zSbyVorkIGbwH6TYuYxPkQ.png" /></figure><p><strong><em>F-Measure interpretation:</em></strong> F-measure is a combined metric of precision and recall. Precision is defined as how many patients actually have CKD among all people who are thought to have CKD. <strong>Equation 3</strong> describes the formula for calculating the f-measure. Recall refers to how many models can identify<br>among the patients who truly have CKD. Higher value of precision and recall is good. Table V contains precision and recall values which were resulted from applying AdaBoost and LogitBoost. It can be interpreted that LogitBoost performed well, as precision, recall and harmonic mean f-measure values<br>of LogitBoost are higher (<strong>Figure 4</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*SFU8eH0A-FnvjHaZaYe0Sw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*kAwL9-WIa42vhDMW6oZXoQ.png" /><figcaption>Figure 5. Values Precision and Recall of AdaBoost and LogitBoost</figcaption></figure><p><strong><em>Kappa statistics interpretation: </em></strong>Value of Kappa ranges between 0 to 1 inclusive. When the Kappa value is above 0.75, that means there is a strong relationship between actual values and predicted values. Here, the Kappa value of LogitBoost is higher than the AdaBoost, which means predictions of LogitBoost are more accurate than the predictions of AdaBoost (<strong>Figure 5</strong>).</p><h3>➡️ Final Observation</h3><p>Both Boosting algorithms had an accuracy close to 100%, but we can come to a point that <strong>LogitBoost is the winner</strong>. As Logitboost is an updated version of Adaboost, it comes up with satisfactory results.</p><p>If you like this article, make sure to follow my <a href="https://medium.com/@arifulislam_ron"><strong><em>Medium</em></strong></a> profile and check out other articles of mine!</p><ul><li><a href="https://arifulislam-ron.medium.com/flask-web-application-to-classify-image-using-vgg16-d9c46f29c4cd">Flask Web Application to Classify Image using VGG16</a></li><li><a href="https://arifulislam-ron.medium.com/smart-water-system-at-house-using-arduino-uno-and-c-desktop-application-to-reduce-water-wastage-86ee9706c417">Smart Water System at House Using Arduino Uno and C# Desktop Application to Reduce Water Wastage…</a></li><li><a href="https://medium.com/brainstation23/blockchain-for-dummies-a-gentle-introduction-to-blockchain-bd731b567f08">Blockchain for Dummies: A Gentle Introduction to Blockchain</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b440f32f1bc6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainstation23/prediction-of-chronic-kidney-disease-by-boosting-classifiers-b440f32f1bc6">Prediction of Chronic Kidney Disease By Boosting Classifiers</a> was originally published in <a href="https://medium.com/brainstation23">Brain Station 23</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Importance of Software Architecture to A Developer]]></title>
            <link>https://medium.com/brainstation23/importance-of-software-architecture-to-a-developer-e001bb691385?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e001bb691385</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[importance-of-architect]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[software-architect]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Thu, 01 Apr 2021 10:54:27 GMT</pubDate>
            <atom:updated>2021-04-12T08:38:01.387Z</atom:updated>
            <content:encoded><![CDATA[<h3>Importance of the Software Architecture to A Developer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a3-FKJbdBqv41JNjSHZ9_A.jpeg" /></figure><p>You know it does not take a huge amount of skill and knowledge to write code and make it work. Yeah, that’s right. Nowadays, a kid from high school can do it. Though the code they write might not be pretty, it damn works 💯! BUT getting software right is much harder than making code right. Because it requires some high-level knowledge and skills that most kids and young programmers don’t have. That&#39;s the thing that makes the difference between a senior and a junior developer.<strong> I will give you a glimpse of the Importance of knowledge that is required to get Software right from the perspective of Design and Architecture.</strong></p><blockquote><strong><em>Note</em></strong><em>: In this article the word developer is used interchangeably with programmer.</em></blockquote><h3>▶️ What are Design and Architecture</h3><p>There has been a lot of confusion about <strong>design</strong> and <strong>architecture</strong> over the years. Some people think they are same, and some people don&#39;t think so. For beginners, I would say don’t think much over them. Assume that they are same in Software Development. No difference at all. Usually, the word “architecture” is used for some high-level context whereas “design” more often seems to imply structures and decisions at a lower level. Believe me, when you know what a real architect does, you would not find any difference between them.</p><p>For example, I have the architectural design of my home currently in my hand. I see high-level things like the shape of the whole house, the outward appearance, the layout of the spaces and rooms. When I look through the diagrams, I see the lower-level details as well like where will be the lights and switches and which switches will control which lights. So, I get the idea of how low-level details support all the high-level decisions to become fulfilled. They together define the whole shape of the system. <strong>Indeed, no clear line divides them</strong>.</p><h3>▶️ A Tale of Two Values</h3><p>Every software provides two values to the stakeholders.</p><ol><li><em>Behavior</em></li><li><em>Architecture</em></li></ol><h4>➵ Behavior</h4><p>We, the developer make machines behave in a way that makes money for the stakeholders. <strong>We write code that aligns with the machines and meets the software requirements.</strong></p><h4>➵ Architecture</h4><p>Do you know what <strong>“software”</strong> means? It has two parts <strong>“soft” </strong>and <strong>“ware”</strong>. “ware” means product. And we know what “soft” means. So the thing is “software” must be “soft”. <strong>That means the software should be the product where changes can be easily made for the behavior of machines. If it&#39;s hard to change, we will call it “hardware”.</strong></p><p>We know that changes from the stakeholders are always welcome 😃. So when the stakeholders change their minds about a feature, that change should be simple and easy to make.</p><p>The difficulty for making such changes should be related to the scope of the change and not to the shape of the change. The costs grow out of proportion to the size of the requested changes. Thats’ why in most of the development cases,</p><blockquote><strong>the cost of 1st year &lt; the cost of 2nd year &lt; the cost of 3rd year &lt; ..</strong></blockquote><p>From the stakeholders’ perspective, they are just giving some new changes of mostly similar cases. From the developers’ point of view, the stakeholders are giving them a couple of jigsaw puzzles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*02eMhhwH1oqrvSu4UJFliA.jpeg" /></figure><p>Each new request might seem harder than the last. Because the current shape does not match with the new shape request. And, do you know the reason behinds that? If your answer is the vulnerable <strong>Architecture</strong>, then you are right.</p><h3>▶️ ️Which is the Greater Value? Behavior or Architecture?</h3><p>So, at this moment you have a rough idea about the two values. But which one has great importance?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*Fm2eN3yIdD2o8HccC2HoHg.png" /></figure><p><strong><em>Is it more important for the system to work or is it more important for the software system to be easy to change?</em></strong></p><p>From the managers’ point of view, they would say it’s more important for the software system to work. In some cases, Developers would agree with that thought. But it is wrong.</p><p>Let&#39;s go through two cases below:</p><ol><li><em>If the current program works perfectly somehow. But when you give me new changes. I am not able to fit new changes into the existing system. Then the program will become useless.</em></li><li><em>If the current program does not work fine, but easy to change, then I can make it work and keep it working with new requirements. That makes the program useful.</em></li></ol><p>But you may not agree with me when I say no new changes are possible to fit. I did not say that only considering the coding part. Sometimes, you want to change, but the time 🕔➵ Architecture and budget💲do not allow you to do so. This is one of the major causes while the developers are not capable of doing any update to the architectural design, though the design requires to be upgraded.</p><p><strong>So, architecture should be well defined before jumping into the coding. Architecture could not be 100% percent well-defined, but it should be at least at some point that will welcome new changes warmly </strong>✔️<strong>.</strong></p><p><strong>Actually, the problem is finding out when — which value (behavior and architecture) is important or which value is urgent.</strong></p><h4>➵ A Possible Solution to that Problem</h4><p>We can apply a solution to overcome the problem I mentioned above. We should have a focus either on the first value of Software — <em>Behavior</em> or on the second value of Software — <em>Architecture</em>.</p><p>And the solution is <strong>Eisenhower matrix. </strong>Some people know it as Priority Matrix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2C_RNRJ5iNZV40hN_NwNQ.png" /></figure><p>For our case, we can say,</p><p><strong><em>behavior:</em></strong><em> is urgent but not always particularly important.<br></em><strong><em>architecture: </em></strong><em>is important but never particularly urgent.</em></p><p>In most cases, people fail to separate those features that are urgent but not important from those features that are truly are urgent and important. This failure often leads to ignoring important features like architecture in favor of the unimportant features of the system.</p><p>But the managers may not be able to evaluate the importance of architecture. And I will not blame them for that. They are right at their places✌️️. <strong>But it is the responsibility of the software developers to assert the importance of architecture over the urgency of features.</strong></p><h3>▶️ EndNote</h3><p>If architecture gets less importance than other tasks of the task list, then the system will become in a state where new changes particularly impossible to do considering time, budget, and codebase. <strong>So MUST think about architecture before coding.</strong></p><p>You are welcome to read other articles of mine <a href="https://arifulislam-ron.medium.com/"><strong>here</strong></a>.</p><ul><li><a href="https://medium.com/brainstation23/how-to-be-a-pragmatic-programmer-part-one-1-5d48ae31a49e">How to be A Pragmatic Programmer: Part One (1)</a></li><li><a href="https://medium.com/brainstation23/a-brief-introduction-to-acyclic-dependencies-principle-c43ca7f3bd36">A Brief Introduction to Acyclic Dependencies Principle</a></li><li><a href="https://medium.com/brainstation23/blockchain-for-dummies-a-gentle-introduction-to-blockchain-bd731b567f08">Blockchain for Dummies: A Gentle Introduction to Blockchain</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e001bb691385" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainstation23/importance-of-software-architecture-to-a-developer-e001bb691385">Importance of Software Architecture to A Developer</a> was originally published in <a href="https://medium.com/brainstation23">Brain Station 23</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to be A Pragmatic Programmer: Part Two (2)]]></title>
            <link>https://medium.com/brainstation23/how-to-be-a-pragmatic-programmer-part-two-2-4f48b6fdf2b1?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f48b6fdf2b1</guid>
            <category><![CDATA[clean-coder]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[pragmatic-programming]]></category>
            <category><![CDATA[tips-for-debugging]]></category>
            <category><![CDATA[bug-fixing-clean]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Mon, 22 Mar 2021 14:59:50 GMT</pubDate>
            <atom:updated>2021-07-31T07:40:26.894Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*aN0vybKk6UzJmT7-Z3wGiw.jpeg" /></figure><p>This article is the second part of <strong>How to be A Pragmatic Programmer. </strong>The first part is here: <a href="https://medium.com/brainstation23/how-to-be-a-pragmatic-programmer-part-one-1-5d48ae31a49e"><strong><em>How to be A Pragmatic Programmer: Part One (1)</em></strong></a><em>.</em></p><h4>This second part is solely responsible for <strong>Debugging</strong>. I am super excited to share my thoughts with you, Guys! Let’s jump into it.</h4><p>So if you are a programmer or developer, you must have heard that “your code is not working, it has bugs!”. And then you got angry and you supposed to make a plan to kill that man who told you that. But calm down, Pal! Before killing and going to jail, you should be doing a lil bit of debugging and kill that buggy issue.</p><p>So let’s be formal. The above paragraph has two buzz words:</p><ol><li><strong><em>bug:</em></strong><em> It is an informal word that indicates the software or application is not working as per requirement</em></li><li><strong><em>debugging: </em></strong><em>The process of investigating and eliminating the bug</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*xNiXrDwNmoSze55ovfnvCg.jpeg" /></figure><p>I would like to enlist 8 general <strong>debugging</strong> tips below. But believe me, there are more.</p><h3>TIP1# Embrace It</h3><p>Debugging is painful. No one likes to debug as most of the time, it takes a huge portion of your day. Moreover, it does not create any new value.</p><p>So, what you do when you find someone else’s bug? Do you spend time blaming him? I believe you don’t because blaming someone is not a solution. The bug you are having right now is your problem. It doesn’t really matter whether the bug is your fault or someone else’s. You have to embrace the fact. So instead of blaming, keep concentrate on fixing the bug. Actually, in most IT farms it is a part of Culture. For example, the <a href="https://brainstation-23.com/">company</a> I am currently working at strictly follows this rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*AfAMt8k1TUhwUkNq9liaiA.png" /></figure><h3>TIP2# Interview The Reporter</h3><p>Let’s assume a situation where a programmer Rahim developed an application but later the testers reported that his application crashed every time when they submitted the person registration form. When Rahim heard about the issue he said that he could submit the form and it worked fine. So tensions became rising among the team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*eS_Bf74rP9bi7fp6LV_WBA.png" /></figure><p>To ease the situation the project manager set up a meeting with Rahim and the tester who actually had found out that bug. During the meeting, the tester said that when he had not provided any date and afterward submitted the form, the app exploded.</p><p>Rahim said, “Oh, I see!”, in a small voice. Rahim admitted that he had provided a birthdate when he submitted the form, that&#39;s why he was able to submit the form without any issues. Rahim should handle the case while the birth date is null or empty.</p><p>Lessons from this story are:</p><ol><li><em>Sit with the user who reported the bug.</em></li><li><em>You must brutally test all boundary conditions.</em></li></ol><h3>TIP3# Dig Deep</h3><p>Whenever you witness a bug, what’s your reaction? It might be “that’s impossible”, or something like “my code can not produce this bug”. I would say, man, it is very important to step back a pace and give a shot to find out what could be causing the bug. However, you can write code for an immediate fix. That&#39;s Genius!. But without knowing the root cause, you can’t avoid similar bugs in near future. So dig deep and try to find out the root cause of the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*cz8nZFDbLmOAg_Kb7wA8Sg.png" /></figure><h3>TIP4# Reproducible</h3><p>You have to know how to produce the known bug. Because if you are not able to reproduce it, you don’t know the bug is fixed or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*E-MUJ3kVNOt2mZw4SymVfg.png" /></figure><h3>TIP5# Keep pen and paper nearby</h3><p>For example, in a particular situation, we may find a clue and we chase it down. But if we did not note down where we were and when we started the chase, we could lose a lot of time getting back there. So keep pen and paper near to you while chasing the issue.</p><h3>TIP6# The Binary Chop</h3><p>You must hear the term Binary Search whether you are a programmer or a non-programmer. You can use this idea even in debugging. For example, your registration form has been in production for 1 week with honor. But suddenly it starts crashing. For this type of circumstances, what you would do! The registration form seems a pretty small topic, all it does is it takes data and sends it to the database. So, at first, you need to look at the dataset. You can try looking at the place in the dataset where the form crashes. Try the dataset and feed it through a locally running copy of the app. Then apply the binary search technique to figure out exactly which input values are leading to the crash. It&#39;s not the only case to apply Binary Search. You can use the binary search algorithm to isolate the function or code section where the issue is introduced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*ogN60yI97123Z1vmOAxTzQ.png" /></figure><h3>TIP7# Tracing</h3><p>For example, you are using a third-party library for the input fields of the registration form. And suddenly one day your form explodes. You get an error message exactly where the error occurs. But this does not give you a clear reason why the error takes place. It typically can’t tell you what you were doing prior to this call chain. So you can put some tracing statements to drill down into the code. It may help you to get to the issue more easily.</p><h3>TIP8# Explain to Someone</h3><p>Explain it to someone. Right, you heard right! It may sound simple. But you can apply this simple way when you spent a lot of time just finding out the issue by going through the code but was not successful. Sometimes the listener does not need to say a word, the act of explaining step by step might help you suddenly to gain completely new insight into the problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*wttCH5A8WgDxr2SRL8Sa_w.png" /></figure><p>As humans, when we encounter a bug, we get into panic and don’t know what to do. Hence, we lose ourselves in the code while debugging. The above tips more often help me out to debug effectively being on the track.</p><p>But sometimes things don&#39;t allow us to do this kind of stuff. Because most of the cases we must solve the issue within a fixed time frame. Lots of pressure? From my experience, I would like to give you one piece of advice: DO forget these obstacles or pressures and put a complete deep focus on solving the issue because the pressure will kill time rather than fixing the bug. I hope from this article you have found something new that you can apply in your day-to-day bug fixing.</p><blockquote><em>Reference Book: </em><strong><em>The Pragmatic Programmer: your journey to mastery, 20th Anniversary Edition (2nd Edition) </em></strong><em>by </em><a href="https://www.amazon.com/s/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=David+Thomas&amp;text=David+Thomas&amp;sort=relevancerank&amp;search-alias=books"><em>David Thomas</em></a><em> and </em><a href="https://www.amazon.com/Andrew-Hunt/e/B001HMRWA6/ref=dp_byline_cont_book_2"><em>Andrew Hunt</em></a><em> .</em></blockquote><p>If you like this article, make sure to follow my <a href="https://arifulislam-ron.medium.com/"><strong><em>Medium</em></strong></a> profile and check out other articles of mine!</p><ul><li><a href="https://medium.com/brainstation23/a-brief-introduction-to-acyclic-dependencies-principle-c43ca7f3bd36">A Brief Introduction to Acyclic Dependencies Principle</a></li><li><a href="https://medium.com/brainstation23/importance-of-software-architecture-to-a-developer-e001bb691385">Importance of Software Architecture to A Developer</a></li><li><a href="https://arifulislam-ron.medium.com/flask-web-application-to-classify-image-using-vgg16-d9c46f29c4cd">Flask Web Application to Classify Image using VGG16</a></li><li><a href="https://arifulislam-ron.medium.com/a-quick-simple-implementation-of-python-automation-327eb68f8522">A Quick Simple Implementation of Python Automation</a></li></ul><blockquote>Happy Learning!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f48b6fdf2b1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainstation23/how-to-be-a-pragmatic-programmer-part-two-2-4f48b6fdf2b1">How to be A Pragmatic Programmer: Part Two (2)</a> was originally published in <a href="https://medium.com/brainstation23">Brain Station 23</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to GraphQl for Beginners: Part One (1)]]></title>
            <link>https://arifulislam-ron.medium.com/introduction-to-graphql-for-beginners-part-one-4b36c8e6145f?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b36c8e6145f</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[graphql-vs-rest]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Thu, 25 Jun 2020 04:25:58 GMT</pubDate>
            <atom:updated>2021-07-31T07:46:09.133Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZxDw0j3ANBxpatoCdNW8JQ.png" /></figure><h3>Part one: How GraphQl solves the problem of REST API</h3><p>As a Full-stack developer, I believe no tool is perfectly better than others. Everything has flaws. Take <strong>REST API </strong>as an example. Though REST API is popularly used API standards, it has one known problem.</p><p>Before jumping into the problem, I am going to discuss some introductory terms.</p><h3>API</h3><p>API is the short form of <strong>A</strong>pplication <strong>P</strong>rogram <strong>I</strong>nterface, which means the way of interaction between programs. Developers develop API on server side so that other applications can requests data through this API.</p><h3>REST API</h3><p>REST is the short form of <strong>RE</strong>presentational <strong>S</strong>tate <strong>T</strong>ransfer. It is a set of rules to create API. Look at below image for better understanding,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*ljSBXYUBi-fZ1i2XUYWHww.png" /><figcaption>Example of REST API. [<a href="http://kennethlange.com/dont-limit-your-rest-api-to-crud-operations/">Image source</a>]</figcaption></figure><p>It seems everything perfect with REST till now. REST API is good as it defines standards to create API. But there is one major issue with REST API.</p><h3>The Issue with REST API</h3><p>Let’s talk about the issue now. For example, you developed an API for your awesome blog site. An API (fetching user profile information) is like below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*os-1DTwWJkudpnRlUVKccQ.png" /></figure><p>Suppose, for blog site purposes, you need user information in two places on the website. One place is the <strong>User Profile page </strong>where the user updates his profile information. Another place is the blog post comment page, where the <strong>user image</strong> and <strong>username</strong> are used in a comment card.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*fJum0-XIhaQe8zlCMD5ElA.png" /><figcaption>comment card</figcaption></figure><p>You can use the /user-profile API in both places. But in the comment card, you get some unnecessary data like <strong>firstname</strong> and <strong>lastname</strong>. To avoid this problem, you can build another API only for comment card like below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*f5XEOpjQ0kkVkTWRgnjQSA.png" /><figcaption>The API for a comment card</figcaption></figure><blockquote><strong>If you have another case where you need only firstname, what will you do? Building another API?</strong></blockquote><h3>Problem Solved by GraphQl</h3><p>To solve the issue, GraphQl Comes into play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51d10tYLJF1YkryZYoNvzw.png" /><figcaption>#1 Same endpoint- I need id, username, and name</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wUombWFp2JI4WcjvWuFiNA.png" /><figcaption>#2 Same endpoint- I need id, email</figcaption></figure><p>If you look at the above images, you see the endpoint is the same. What I need to do is asking for data that I need. That’s how GraphQl solves the problem of REST API.</p><p>The purpose of this blog post is just to discuss how <strong>GraphQl</strong> is better than <strong>REST API</strong>. The purpose is fulfilled 🔥. Recommended site of GraphQl — <a href="https://graphql.org/">https://graphql.org/</a>.</p><p>Don’t forget to follow my <a href="https://arifulislam-ron.medium.com/"><strong>Medium Profile </strong></a>to get my latest updates.</p><ul><li><a href="https://medium.com/brainstation23/how-to-be-a-pragmatic-programmer-part-one-1-5d48ae31a49e">How to be A Pragmatic Programmer: Part One (1)</a></li><li><a href="https://medium.com/@arifulislam_ron/a-quick-simple-implementation-of-python-automation-327eb68f8522">A Quick Simple Implementation of Python Automation</a></li></ul><blockquote>Happy Learning</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b36c8e6145f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to be A Pragmatic Programmer: Part One (1)]]></title>
            <link>https://medium.com/brainstation23/how-to-be-a-pragmatic-programmer-part-one-1-5d48ae31a49e?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d48ae31a49e</guid>
            <category><![CDATA[remember-the-big-picture]]></category>
            <category><![CDATA[pragmatic-programmer]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[broken-windows]]></category>
            <category><![CDATA[know-when-to-stop]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Mon, 22 Jun 2020 06:37:00 GMT</pubDate>
            <atom:updated>2021-07-31T07:47:46.574Z</atom:updated>
            <content:encoded><![CDATA[<p>Who is a Pragmatic Programmer! In short, it is something every programmer/developer wants to be. So I will not define it in one sentence. Instead, I will demonstrate<strong><em> how you can be a pragmatic programmer</em></strong><em>,</em> by describing the characteristics<strong> </strong>of <strong>A Pragmatic Programmer</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBZyMe-JURQzP1uXiV5MCg.jpeg" /></figure><p><a href="https://medium.com/brainstation23/how-to-be-a-pragmatic-programmer-part-two-2-4f48b6fdf2b1">How to be A Pragmatic Programmer: Part Two (2)</a></p><h3>➭ Take Responsibility</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*PzcxH1n-VfoNYEMoBU8zaA.jpeg" /></figure><p>If you take responsibility for any outcome, you always should be accountable for it. When you make a mistake, admit it honestly and offer other options. Don’t blame or make up an excuse. Don’t say it can not be done. Instead, give ideas about what can be done to overcome the situation. You may need to learn more about technology, you may need to interact with users, or you may need help from courses, books, or others. Go for it. Don’t hesitate. Believe me, it will be beneficial to you, your team, and your project.</p><h3>➭ <strong>Invest Regularly to Build Your Strong Portfolio</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*ykaNNfSwJ-78CcAKWt5g4Q.jpeg" /></figure><ol><li>Learn at least one new language every year</li><li>Read a technical book each month</li><li>Read non-technical books too</li><li>Keep learning from local or online classes</li><li>Participate in local meetups</li><li>Experiment with different environments (Like OS, IDE)</li><li>Apart from your current project, stay up to date with other technologies</li></ol><p>When you have comfortableness with one tech, learn another one. It doesn&#39;t matter whether you ever use your learned tech in any of your projects. Just keep learning, it will expand your thinking capacity. Suppose you were working with Java for the last 5 years. Now, you working on a PHP project. You can write the best OOP features which you had learned during the last 5 years, in PHP way.</p><p>If somebody asks you a question that you don’t know, admit it freely. But don’t let it stop here. Find the answer by yourself first. If you can’t, find out who can. Talk to other people, it does not matter the others are junior or senior. Just keep discussing with people about unknown problems. It will broaden your network.</p><h3>➭ Remember the Big Picture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*s5m0u5MDtXclNrxfsqwhXA.jpeg" /></figure><p>If you drop a frog into the hot boiling water, it will jump out. But if you put a frog in cold water and gradually heat the water, the frog will not notice the slow heat increase. It will stay in the water until it is cooked. Moral of this, always aware of what’s going on around you, not just what you individually doing.</p><h3>➭ Good-enough Code</h3><p>Real-world won&#39;t let us write truly perfect code or bug-free software. You can write good-enough code for your users, for your own peace of mind. Remember, good-enough code doesn&#39;t mean poorly produced code✌.</p><h3>➭ Know When to Stop</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*aBUin94CD25MvfRK9IOKYQ.jpeg" /></figure><p>Programming is similar to painting. When you draw on the canvas, you continuously step back and check with a critical eye to view what you have done. And then you again start painting. But sometimes to make the painting more beautiful, we add layer upon layer and as a result, all the hard work gets ruined. Similarly, don’t spoil a perfect program by overrefinement just to make it best in your eye. Keep your code as it is for a while. It may not be perfect or never be perfect.</p><h3>➭ Don’t Live with Broken Windows</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*8h6gmmZQaf580YpcVcejCA.jpeg" /></figure><p>If your code has broken windows (poorly written code, bad designs), try to fix them asap. Because the existing broken windows will give you a mindset that, all codes you are going to write will be crap. On the other hand, if your existing code is clean and pristinely beautiful, well designed and elegant, you will likely take extra special care not to mess it up.</p><p><strong>Second Part coming soon...</strong>🔥</p><blockquote>Reference Book: <strong>The Pragmatic Programmer: your journey to mastery, 20th Anniversary Edition (2nd Edition) </strong>by <a href="https://www.amazon.com/s/ref=dp_byline_sr_book_1?ie=UTF8&amp;field-author=David+Thomas&amp;text=David+Thomas&amp;sort=relevancerank&amp;search-alias=books">David Thomas</a> and <a href="https://www.amazon.com/Andrew-Hunt/e/B001HMRWA6/ref=dp_byline_cont_book_2">Andrew Hunt</a> .</blockquote><p>Don’t forget to press claps 👏🏼. Make sure to follow my <a href="https://arifulislam-ron.medium.com/"><strong><em>Medium</em></strong></a> and <a href="https://www.linkedin.com/in/arif-ul-islam-716517149/"><strong><em>LinkedIn</em></strong></a> profile, to get the latest updates of mine.</p><ul><li><a href="https://medium.com/@arifulislam_ron/flask-web-application-to-classify-image-using-vgg16-d9c46f29c4cd">Flask Web Application to Classify Image using VGG16</a></li><li><a href="https://medium.com/@arifulislam_ron/smart-water-system-at-house-using-arduino-uno-and-c-desktop-application-to-reduce-water-wastage-86ee9706c417">Smart Water System at House Using Arduino Uno and C# Desktop Application to Reduce Water Wastage…</a></li></ul><blockquote><em>Happy Learning!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d48ae31a49e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainstation23/how-to-be-a-pragmatic-programmer-part-one-1-5d48ae31a49e">How to be A Pragmatic Programmer: Part One (1)</a> was originally published in <a href="https://medium.com/brainstation23">Brain Station 23</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Brief Introduction to Acyclic Dependencies Principle of Development Process]]></title>
            <link>https://medium.com/brainstation23/a-brief-introduction-to-acyclic-dependencies-principle-c43ca7f3bd36?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c43ca7f3bd36</guid>
            <category><![CDATA[dependency-principle]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[acyclic-dependencies]]></category>
            <category><![CDATA[component-coupling]]></category>
            <category><![CDATA[robert-c-martin]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Tue, 02 Jun 2020 12:28:41 GMT</pubDate>
            <atom:updated>2021-05-19T04:34:51.542Z</atom:updated>
            <content:encoded><![CDATA[<p>For a long time, I have been planning to write on <a href="https://en.wikipedia.org/wiki/Robert_C._Martin"><strong>Robert’s</strong></a> principles which are widely popular in software development. This article is going to have a gist of the <strong>Acyclic Dependencies Principle (ADP) </strong>of the Development Process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*2hRUHXXnEb3LK3r9-WkT_A.png" /></figure><p>Let’s start with a short story of a developer Rahim.</p><p>Today Rahim is happy because he has completed his functional module successfully. Also, the module has passed all the test cases. So he goes to his bed with a cheerful mind and thoughts. Unfortunately, the next morning when Rahim runs his code, the module is not working anymore!</p><p>If you face this situation like him that’s great, if not that’s also great. <strong>But Do you have any idea why the module doesn’t work?</strong></p><p>However, In Rahim’s case, what happened is one of his team members Karim stayed later than Rahim and changed something that the module (Rahim’s written module) depends on.</p><blockquote><strong>Robert C. Martin</strong> called this circumstance <em>“the morning after syndrome”</em>. It occurs in a large team where many developers work on the same source codes. Actually, the dependency cycle is responsible for this syndrome. It is not a big problem in a relatively small team or small project.</blockquote><p>So now the question is how can we avoid these types of problems. Generally, two solutions are popularly used to overcome this situation.</p><h3>Weekly Build</h3><p>This solution can be used in a small project. <em>It goes like this:</em> all developers work separately for the first 4 days. During this time they ignore what other developers are doing. They only focus on their parts. On the 5th day, they all integrate each other&#39;s code. The big advantage is that the developers work isolatedly on those 4 days without any headache.</p><p>But integration time usually grows as the project size grows. Sometimes it is less feasible to finish integrating in one day. It may take 2–3 days or more than 3 days just for integration. As time goes, the integrating period becomes lengthened. The more you lengthen the period, the more project becomes risky. As a result, the team loses its working efficiency.</p><h3>Removing the Dependency Cycle</h3><p>Another solution to this problem is to use the releasable components. Here, components can be treated as a unit feature which is the responsibility of a single developer or a team of developers. Whenever the developer or the team gets a working and releasable component, they share it with other developers to use. The other developers can merge or use it with their components if they feel the necessity. In this way, integration happens in a small increment when the developers get time or think this is the perfect time for integration. This process is simple and widely used.</p><p>Long story short, you should not have any dependency cycle in your development process otherwise the <em>“morning after syndrome”</em> can’t be avoided. Robert C. Martin named this principle as A<strong>cyclic Dependencies Principle (ADP). </strong>Wikipedia describes <strong>ADP</strong> as below,</p><blockquote>The <strong>acyclic dependencies principle</strong> (ADP) is a software design <strong>principle</strong> defined by Robert C. Martin that states that “the <strong>dependency</strong> graph of packages or components should have no cycles”.</blockquote><p>This is a short description of ADP. I hope this post would give you a clear gist about <strong>ADP</strong>.</p><blockquote><em>Happy Learning!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c43ca7f3bd36" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainstation23/a-brief-introduction-to-acyclic-dependencies-principle-c43ca7f3bd36">A Brief Introduction to Acyclic Dependencies Principle of Development Process</a> was originally published in <a href="https://medium.com/brainstation23">Brain Station 23</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Become a Pro with Scraping Youtube Videos in 3 minutes]]></title>
            <link>https://medium.com/brainstation23/how-to-become-a-pro-with-scraping-youtube-videos-in-3-minutes-a6ac56021961?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6ac56021961</guid>
            <category><![CDATA[video-scraping]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[youtubescraping]]></category>
            <category><![CDATA[flask-vuejs]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Tue, 24 Mar 2020 06:48:40 GMT</pubDate>
            <atom:updated>2021-07-31T07:50:07.299Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_InWjQA7tEtOmTRnIH1Rw.jpeg" /></figure><p>If you are here I assume you are interested in doing fun with web scraping. Great! In general, <strong>Web Scraping</strong> is a way of extracting information from websites automatically.</p><p><strong>How this post can help you? </strong>I’ve found two reasons (there may be many more) for you to go through this post. <br><em>1) You are very much excited about scrapping <br>2) You may get help from my tutorial for your project</em></p><p>Right now I am working on an application (similar to <a href="https://www.reddit.com/">Reddit</a> and <a href="https://www.topbuzz.com/">TopBuzz</a>), its one of the core tasks is scrapping articles, videos from listed websites. Last day, I developed a small module. The module is only responsible for scrapping particular video information from a URL (eg. <a href="https://www.youtube.com/watch?v=j5-yKhDd64s"><em>url</em></a>). To share how I did this, in this post, we will walk through an example of extracting youtube video information with the help of <strong>Python</strong>.</p><blockquote><strong>Note: </strong>Web Scraping code depends on the structure of the web page. If the structure changes, you have to update your code too! 😒</blockquote><h3><strong>Why Python?</strong></h3><p>In my opinion, in case of web scraping, there are no programming languages that are better than Python 🔥. And Python provides necessary packages specially for web scrapping (eg. <a href="https://beautiful-soup-4.readthedocs.io/en/latest/">beautifulsoup</a>).</p><h3><strong>Setup</strong></h3><p>Before starting the tutorial, you have to setup <strong>Python</strong> environment. Install <strong>virtualenv</strong> which is going to be responsible for managing a particular project’s packages. It intends to make an isolated <strong>Python</strong> environment.</p><pre>pip install virtualenv</pre><p>Create a folder named <strong>utube</strong> <em>(or what you want), </em>inside this folder run</p><pre>virtualenv venv</pre><p>Activate the virtual environment,</p><pre>source venv/bin/activate</pre><p>Add <strong>requirements.txt</strong> file, which lists necessary packages,</p><pre>bs4==0.0.1</pre><pre>requests==2.22.0</pre><h3><strong>Get the HTML Content and Meta Data</strong></h3><p>Now fire up your favorite text editor and create a file called <strong>main.py</strong>, <em>import </em><strong><em>beautifulsoup,</em></strong><em> and </em><strong><em>requests</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5b4e12fa440fc899ee39c5564efff5a/href">https://medium.com/media/a5b4e12fa440fc899ee39c5564efff5a/href</a></iframe><p>The target youtube video link is assigned to the <strong><em>link </em></strong>variable. As I am a big fan of Eminem, I put a video link one of his songs 😊. Below two lines will turn the <strong>HTML</strong> content of the given link into a structured tree.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8df12395f139635f8a361c1162b19535/href">https://medium.com/media/8df12395f139635f8a361c1162b19535/href</a></iframe><pre>print(soup.prettify())</pre><p><strong><em>soup</em></strong> variable shows <strong>metadata</strong> (related information of the video, eg. title, description, thumbnail, etc). Also, you will see the full raw <strong>HTML </strong>content of the given page.</p><h3><strong>Inspecting and Extracting Video Information</strong></h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fcalmsomberenglishsetter&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fcalmsomberenglishsetter&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FCalmSomberEnglishsetter-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="1296" height="700" frameborder="0" scrolling="no"><a href="https://medium.com/media/dbec93099e8b8ae1f9cf5f7a8234807a/href">https://medium.com/media/dbec93099e8b8ae1f9cf5f7a8234807a/href</a></iframe><p>One of the important parts of scrapping is inspecting the webpage. Let’s <strong>examine</strong> and <strong>extract</strong>.</p><h3><strong>Find your necessary information and Extract</strong></h3><h4>➼<strong> Title of the Video</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ouqlrhdMBMA6LM7JWc8VlA.png" /><figcaption>Title in the meta tag</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef5743a91f47e3f25ae6492b56c8daa1/href">https://medium.com/media/ef5743a91f47e3f25ae6492b56c8daa1/href</a></iframe><p>The above two lines (lines 1–2) will get the title from the <strong>metadata</strong>. Others data like thumbnail, description, type can be found in <strong>metadata</strong>. If you don&#39;t discover the necessary info in meta tags, try to identify them in <strong>HTML</strong> body content.</p><h4>➼ <strong>Thumbnail of the video</strong></h4><p>Extracting the thumbnail is similar to the title extraction.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/04c13b90ab10f9b40f64edaec813a9e9/href">https://medium.com/media/04c13b90ab10f9b40f64edaec813a9e9/href</a></iframe><h4>➼ <strong>Views</strong></h4><p><strong>Views</strong> count is not listed in the <strong>metadata</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcxGKmK34mX5M5_jYrbKbQ.png" /><figcaption>Views Count in HTML Content</figcaption></figure><p>But no worries, we can retrieve it from <strong>HTML</strong> tag by this way,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/525bb66e82cdaa38fa90b51034b6b635/href">https://medium.com/media/525bb66e82cdaa38fa90b51034b6b635/href</a></iframe><p><strong>find </strong>method searches for the tag whose class is <em>“watch-view-count”</em>.<em> </em>And then we get the text.</p><h4>➼<strong> Others Info — Category, Published Date, Likes Count, Dislikes Count</strong></h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3785bb6b92d3b27eba799f5c087f2509/href">https://medium.com/media/3785bb6b92d3b27eba799f5c087f2509/href</a></iframe><h3><strong>Code and Output</strong></h3><h4>➼ Complete Code</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a61a136e301555d06e7407c583c88cc9/href">https://medium.com/media/a61a136e301555d06e7407c583c88cc9/href</a></iframe><h4>➼ Output</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*IHGwwsUpJdeo8Qh2OAa4FA.png" /></figure><p>So simple! right? Now I hope you can play with different links, playlist links, channel links of Youtube.</p><h3>Web Interface</h3><p>Bonus! I have developed a web interface for scraping a single youtube video to make the technique more useful and handy. Have a look,</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2Fshorttermfloweryfly&amp;display_name=Gfycat&amp;url=https%3A%2F%2Fgfycat.com%2Fshorttermfloweryfly&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FShorttermFloweryFly-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="1296" height="700" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd62805d4ad27026f7b976bdb186ef95/href">https://medium.com/media/cd62805d4ad27026f7b976bdb186ef95/href</a></iframe><p>API is built with <strong>Flask</strong> and Frontend is by <strong>VueJs</strong>. Complete code is available here — <a href="https://github.com/mrron313/pro-with-scraping-web-interface"><strong><em>Github</em></strong></a>.</p><p>If you learn any attractive things about web scrapping, please throw a response below. And don’t forget to press claps 👏🏼.</p><blockquote><em>Happy Learning!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6ac56021961" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainstation23/how-to-become-a-pro-with-scraping-youtube-videos-in-3-minutes-a6ac56021961">How to Become a Pro with Scraping Youtube Videos in 3 minutes</a> was originally published in <a href="https://medium.com/brainstation23">Brain Station 23</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I make OTP Service which works like Facebook Account Kit]]></title>
            <link>https://medium.com/brainstation23/how-i-make-otp-service-which-works-like-facebook-account-kit-af975188e06d?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/af975188e06d</guid>
            <category><![CDATA[facebook-account-kit]]></category>
            <category><![CDATA[facebook-otp-replica]]></category>
            <category><![CDATA[login-through-otp]]></category>
            <category><![CDATA[login-otp-service]]></category>
            <category><![CDATA[otp-gateway]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Wed, 18 Mar 2020 11:44:21 GMT</pubDate>
            <atom:updated>2021-07-31T07:50:44.642Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I make OTP Service that works like Facebook Account Kit</h3><p>If you ever used <strong>OTP</strong> gateway of <strong>Facebook Account Kit</strong>, you already know that Facebook shut down this service. It is sad news for all developers. Because we were getting this <strong>flawless service for free</strong>. In September 2019 Facebook announced this,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*QwvFGUSMIrb81aZJJcqjWg.png" /></figure><p>During that time, our client of Esho Sikhi wants us to develop the same OTP mechanism. I was thinking about how can I design such a system!! Then I realized before starting to make this, I should know how the OTP system of the Facebook Account Kit works. In this post, <strong>I will show you how I have developed the OTP gateway for my project (Esho Shikhi) which works as same as Facebook’s OTP kit</strong>.</p><p>What I used —</p><ol><li><em>Process of Facebook Account Kit</em></li><li><em>SSL SMS Gateway</em></li><li><em>Database</em></li></ol><h3>OTP Request</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*Gtu2bMIa6yX9szepqPryZw.png" /><figcaption><strong>OTP Request from Mobile Application</strong></figcaption></figure><p>At first, <strong>from the Application</strong> user enters <strong>his phone number and submits</strong>. The request is sent to the backend server. The server generates a <strong>4 digit OTP and sends a request to SMS Gateway to deliver the OTP</strong> to the user. Next, the user <strong>gets OTP on his mobile</strong>. Meanwhile, the server <strong>stores </strong>4 digit OTP, phone number, time limit of OTP, and the status of OTP (used or not used). <strong>Based on the phone number and time (in milliseconds), a unique hashed code is generated and stored in the Database</strong>.</p><h3>OTP Validation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*echVJmnyGLogfbWm4aOVAQ.png" /><figcaption><strong>OTP Validation in Backend</strong></figcaption></figure><p>To <strong>validate</strong> the OTP, the user <strong>enters the OTP in the second form</strong> and <strong>submits it</strong>. The server <strong>validates</strong> the OTP based on the information stored in the Database (<strong>for validating OTP — 4 digit OTP must be matched, must be unused, must be less than or equal to the time OTP expires</strong>). If the OTP is <strong>valid</strong>, the<strong> hashed code is sent to the mobile application.</strong></p><h3>Login Service</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*kgaqY96TRBwwGbjjQrP8vA.png" /><figcaption><strong>Final Login after OTP Validation</strong></figcaption></figure><p>In the last part, the user logins by providing <strong>his phone number and the code</strong> which was given in the last step. After a successful login, <strong>the user gets the JWT token in response</strong>.</p><p>Later, the user <strong>uses the JWT token</strong> to call the<strong> authenticated API of the backend server</strong>.</p><p>So, this is how I integrated the OTP service in my project. If you face a similar problem, you may get help from this post. This process is currently working flawlessly. For any kind of questions regarding this service, through a response below.</p><p>Don’t forget to press claps👏🏼. If you like this article, make sure to <strong>follow</strong> my <a href="https://arifulislam-ron.medium.com/"><strong><em>Medium</em></strong></a> profile and check out some other articles of mine! <strong>Follow</strong> <a href="https://medium.com/brainstation23">Brain Station 23 Profile</a>.</p><blockquote><em>Happy Learning!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af975188e06d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainstation23/how-i-make-otp-service-which-works-like-facebook-account-kit-af975188e06d">How I make OTP Service which works like Facebook Account Kit</a> was originally published in <a href="https://medium.com/brainstation23">Brain Station 23</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain for Dummies: A Gentle Introduction to Blockchain]]></title>
            <link>https://medium.com/brainstation23/blockchain-for-dummies-a-gentle-introduction-to-blockchain-bd731b567f08?source=rss-ab39f4ecbec4------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd731b567f08</guid>
            <category><![CDATA[mining]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[hashing]]></category>
            <category><![CDATA[types-of-blockchain]]></category>
            <category><![CDATA[secure-blockchain]]></category>
            <dc:creator><![CDATA[Arif Ul Islam]]></dc:creator>
            <pubDate>Tue, 18 Feb 2020 05:25:07 GMT</pubDate>
            <atom:updated>2021-07-31T07:50:58.056Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*MDH9kAuCsNNoMPS4BJ33ug.png" /></figure><h3>$$ Introduction</h3><p>Blockchain is a way of implementing a distributed database. Wait, what is a distributed database? 🤔 Wiki says,</p><blockquote>A <strong>distributed database</strong> is a database in which not all storage devices are attached to a common processor. It may be stored in multiple computers, located in the same physical location; or may be dispersed over a network of interconnected computers.</blockquote><p>So in Blockchain, a group of individuals controls a chain of blocks as a distributed database to store and share information. These independent users maintain data integrity without any central control. Nobody owns the Blockchain. This fact makes Blockchain so popular. But, though it is referred to as a database, it has not had all features that a database usually has.</p><p>Blockchain has permanent records of transactions. When a data/transaction is stored in a Blockchain, it is quite difficult to change the data. Why it is difficult, we will get on this point later. However, if someone wants to add data/transactions to the chain of blocks, the selected users of the blockchain network who have the right to validate data will verify the transaction.</p><p>The purpose of this post is to share a brief introduction to Blockchain and its related terms.</p><h3>$$ Types of Blockchain</h3><p>Three types of Blockchain are widely used. <br><em> → 1. Public Blockchain 2. Private Blockchain 3. Consortium Blockchain</em></p><p><strong>a. Public Blockchain — </strong>Anyone can join the network and create, write and participate in the network.<br><strong>b. Private Blockchain — </strong>This type of blockchain is restricted to a particular group of people. <br><strong>c. Consortium Blockchain — </strong>By sharing resources, cost with others, some organizations come together with a view to achieving a common goal.</p><h3>$$ Block and Chain</h3><p>Blocks are the container of valid transactions. Also, it stores some kinds of <strong>hash value</strong> used to link one block to other blocks. There are mainly two hash values in a block. One of them is the hash of the previous block and another one is it&#39;s own.</p><h3>$$ Hash</h3><p>Hash is a fixed-length string that is unique for a particular block. It is generated by a <strong>Hash function</strong>. The <strong>hash function</strong> will take anything and converts it to a fixed-length string. It is a one-way process, which means you can not revert the <strong>hash string to the input</strong>. Hash is also known as the <strong>fingerprint</strong> of the block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*_hT3YWy_A1DluEZbE3HVng.jpeg" /><figcaption>Source: <a href="http://www.researchgate.net/">www.researchgate.net</a></figcaption></figure><h3>$$ Difficult to change data?</h3><p>So the question is why it is actually hard to change data in Blockchain. Suppose, Rahim is a hacker and trying to update the hash of <strong>Block B.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*YjkxtFDYDDauKzD34twMJA.png" /></figure><p>To update any data in a particular block, high computational power is needed. Assuming, Rahim is able to change the information in B. Rahim is very happy right now. Alas! he suddenly realizes he must update hash of consecutive blocks C, D, and consecutive blocks in order to get the control of the chain. Updating more blocks needs more computational power!!. Then Rahim stops hacking 😂.</p><h3>$$ Adding a transaction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QZ1Nx3hkTuqnrHajz4ntXw.jpeg" /></figure><p>I believe you already have interpreted the above image and get to know that when a user tries to add a transaction, the network validates it. If the transaction is valid, it will be added to the chain otherwise it will be kicked out.</p><h3>$$ Bitcoin vs Blockchain — are they same?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*p0Q2nSIwqhrQteH8i7Afig.png" /></figure><p>You probably hear that people are using blockchain and bitcoin interchangeably. Though they have common characteristics, they are not the same. Blockchain supports <strong>Bitcoin </strong>and<strong> Bitcoin</strong> is just a cryptocurrency like Ether for <a href="https://en.wikipedia.org/wiki/Ethereum"><strong>Ethereum</strong></a><strong> blockchain.</strong></p><p>People got the idea of <strong>Blockchain</strong> back in 1991. And <strong>Bitcoin </strong>was proposed in 2008 by an unknown person or a group using the name <strong>Satoshi Nakamoto</strong>. <strong>Satoshi Nakamoto </strong>used Blockchain to store transactions of Bitcoin securely. Later in 2014, Blockchain technology is separated from cryptocurrency. Currently, blockchain is implemented not only for cryptocurrencies but also for IoT, Healthcare, Music, Personal Identification, etc.</p><h3>$$ Mining</h3><p>When a block of data is requested to add to the chain, nodes of the network need to solve a mathematical puzzle to generate a hash. This requires high computational power. This is called <strong>Mining</strong>. You may ask why individuals willingly mine as it costs more computational power. Because for a successful mine, the miner will get rewards (they may get some crypto like bitcoin as a reward) 😎.</p><h3>$$ Is Blockchain Secure?</h3><p>Nothing is secure on the internet. But what makes Blockchain more secure? The keys to secure a Blockchain are <em>Decentralization, Cryptography, and Consensus</em>.</p><p><strong>a. Decentralization — </strong>We already know, to add a new block to the set of blocks, all nodes of the network verify the block by mining. After successful validation, only then the block is appended to the chain. This addition of blocks makes an impact on other blocks. So if you change in your block illegally, others can sense it as invalid changes and will discard it.</p><p><strong>b. Cryptography — </strong>The blocks are cryptographically hashed. One block is secured with <strong>Hashed</strong> value. There is no reverse engineer in Hashing, which makes Blockchain more secure.</p><p><strong>c. Consensus — </strong>When a miner successfully solves a math puzzle based on the data in the block, at least 51% of nodes of the network must agree about the solution of the math, only then the block will be added. This is called <strong>proof of work</strong>.</p><h3>$$ 51% Attack</h3><p>The 51% attack sounds Fancy! If 51% of the mining power is owned by a group of nodes in the network, they can take control of the network and prevent other users to add blocks to the chain.</p><p><strong>Though blockchain has been tightly bound with cryptocurrencies, right now blockchain has other real-life applications to provide secure and decentralized systems.</strong></p><p>I hope, this post has given you a gist of Blockchain, which might make you more interested in learning Blockchain 👌. Don’t forget to press 👏🏼.</p><ul><li><a href="https://medium.com/brainstation23/how-to-be-a-pragmatic-programmer-part-one-1-5d48ae31a49e">How to be A Pragmatic Programmer: Part One (1)</a></li><li><a href="https://medium.com/@arifulislam_ron/flask-web-application-to-classify-image-using-vgg16-d9c46f29c4cd">Flask Web Application to Classify Image using VGG16</a></li><li><a href="https://medium.com/@arifulislam_ron/smart-water-system-at-house-using-arduino-uno-and-c-desktop-application-to-reduce-water-wastage-86ee9706c417">Smart Water System at House Using Arduino Uno and C# Desktop Application to Reduce Water Wastage…</a></li></ul><blockquote>Happy Learning!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd731b567f08" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainstation23/blockchain-for-dummies-a-gentle-introduction-to-blockchain-bd731b567f08">Blockchain for Dummies: A Gentle Introduction to Blockchain</a> was originally published in <a href="https://medium.com/brainstation23">Brain Station 23</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>