<?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 Alpha FHB on Medium]]></title>
        <description><![CDATA[Stories by Alpha FHB on Medium]]></description>
        <link>https://medium.com/@alphafhb-plus?source=rss-efc3fac53618------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yAcqP_0c8yrkcL9Y9reAmQ.png</url>
            <title>Stories by Alpha FHB on Medium</title>
            <link>https://medium.com/@alphafhb-plus?source=rss-efc3fac53618------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 11:18:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alphafhb-plus/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[Strategy Pattern in JavaScript]]></title>
            <link>https://alphafhb-plus.medium.com/strategy-pattern-in-javascript-712d251e151e?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/712d251e151e</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Thu, 19 Jun 2025 15:45:32 GMT</pubDate>
            <atom:updated>2025-06-19T15:45:32.596Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the last few years <a href="https://nodejs.org/en/">NodeJS</a> has catapulted JavaScript into the backend scripting language scene. Major companies like Yahoo and Ebay have jumped on the Node train towards a speedy-fast, full-stack JavaScript ecosystem. As the Node community has grown, the push towards more traditional object-oriented principles has increased. Node now supports most major components of ES6, including syntactic sugar like class objects, block scope, and true object inheritance.</p><p>The future of Node is a migration towards testable class objects with loosly-coupled modules. Unfortunately, this will mean a hard shift from the functional-programming patterns used today. Although a myriad of books have already covered design patterns, including the infamous <a href="https://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented-ebook/dp/B000SEIBB8">Design Patterns</a> by the Gang of Four, few authors have translated these patterns into JavaScript. I believe it’d be valuable to understand how we can use these patterns to build efficient, scalable applications in Node.</p><p>One of the most common and easily translated patterns is the <a href="https://en.wikipedia.org/wiki/Strategy_pattern">Strategy Pattern.</a> The Strategy pattern allows us encapsulate complex domain logic and abstract the logic’s implementation from the calling service. Let’s take a look at an example.</p><p>Let’s assume your e-commerce site sells Widgets online and accepts a variety of payment methods. After a customer selects a payment type and enters their information, you create an object representation of that Payment Instrument in JavaScript and save the information as properties on that object like this:</p><pre>var CreditCard = {<br>    this.methodType = &quot;CREDIT_CARD&quot;,<br>    this.type = card_type,<br>    this.name = card_name,<br>    this.number = card_number,<br>    this.expiration = card_expiration,<br>    this.cvv = card_cvv,<br>  };</pre><p>When the customer submits the order you post the data to your server, determine which type of payment method the customer selected, then call the corresponding method in your PaymentHandlingService:</p><pre>// PlaceOrderController.js<br>  var PlaceOrderController.js = module.exports = {<br>    execute: function () {<br>      if(request.method.methodType === &quot;CREDIT_CARD&quot;) {<br>        PaymentHandlingService.chargeCreditCard(request.method);<br>      } else if() { // charge other types }<br>    };<br>  };</pre><pre>  // PaymentHandlingService.js<br>  var PaymentHandlingService = module.exports = {<br>    chargePayPal: function (paypalInstrument) {<br>      // force user to login to paypal<br>      // do something with the response from paypal<br>      return &quot;charge paypal&quot;;<br>    },<br>    chargeCreditCard: function (cardInstrument) {<br>      // send to cc authority via secure form<br>      // do something with the response from cc authority<br>      return &quot;charge cc&quot;;<br>    }<br>  };</pre><p>The problem with this implementation is two-fold. First, your API endpoint has to understand the concept of a PaymentMethod type in order to call the correct PaymentHandlingService function. We could put the type determination logic inside the PaymentHandlingService, but it’s still tightly coupled to the PaymentMethod implementation. Second, we need a new method in PaymentHandlingService for each payment method we integrate with. After for or five payment method integrations, our service bloats with code specific to the different integration.</p><p>Instead, we can treat PaymentMethods as individual Strategies under a PaymentInstrument class. The type determination logic can be moved to a PaymentMethodFactory that handles instantiation of our payment methods.</p><pre>// PlaceOrderController.js<br>  var PlaceOrderController.js = module.exports = {<br>    execute: function () {<br>      return PaymentMethodFactory.create(request.method);<br>    };<br>  };</pre><pre>  // PaymentInstrument.js<br>  class PaymentInstrument {<br>    constructor(method) {<br>      this.method = method;<br>    };</pre><pre>    setMethod(method) {<br>      this.method = method;<br>    };<br>  };</pre><pre>  module.exports = PaymentInstrument;</pre><pre>  // PaymentMethodFactory.js<br>  class PaymentMethodFactory {<br>    create(method) {<br>      if(method.methodType === &quot;CREDIT_CARD&quot;) {<br>        return new CreditCard(method);<br>      } else if(method.methodType === &quot;PAYPAL&quot;) {<br>        return new Paypal(method);<br>      }<br>    }<br>  };</pre><pre>  // CreditCard.js<br>  class CreditCard {<br>    constructor(number, name, exp_month, exp_year, cvv) {<br>      this.number = number;<br>      this.name = name;<br>      this.exp_month = exp_month;<br>      this.cvv = cvv;<br>    };</pre><pre>    charge() {<br>      // send to cc authority via secure form<br>      // do something with the response from cc authority<br>      return &quot;charge cc&quot;;<br>    }<br>  };</pre><pre>  module.exports.CreditCard = CreditCard;</pre><pre>  // Paypal.js<br>  class PayPal {<br>    constructor() {};</pre><pre>    charge() {<br>      // force user to login to paypal<br>      // do something with the response from paypal<br>      return &quot;charge paypal&quot;;<br>    }<br>  };</pre><pre>  module.exports.PayPal = PayPal;</pre><p>Now our API endpoint is ambivalent towards the type of payment method in use. The domain logic required to charge individual payment methods is encapsulated inside simple, testable classes. Now our PaymentHandlingService can be scaled down:</p><pre>// PaymentHandlingService.js<br>  var PaymentHandlingService = module.exports = {<br>    charge: function (instrument) {<br>      return instrument.charge();<br>    }<br>  }</pre><p>Now, none of our application outside the PaymentMethod classes and the PaymentMethodFactory know or care about individual payment method types. The complex logic for the different types is encapsulated within our PaymentMethod class with a clear, testable seam between the PaymentInstrument. If we need to create a new PaymentMethod, we can do some UI changes, a new Class and a few lines in our factory.</p><pre>class NewHotPaymentMethod {<br>    constructor(param1, param2) {<br>      this.param1 = param1;<br>      this.param2 = param2;<br>    };</pre><pre>    charge() {<br>      return &quot;charge new hot payment method&quot;;<br>    }<br>  };</pre><pre>  module.exports.NewHotPaymentMethod = NewHotPaymentMethod;</pre><p>Because our PaymentInstrument class holds a loose reference to a payment method, we’re now able to swap out PaymentMethods on fly without affecting the state of our instrument.</p><pre>var paymentInstrument = new PaymentInstrument();</pre><pre>  // customer fills out Credit Card form<br>  var creditCard = new PaymentMethod.CreditCard(&quot;4111111111111111&quot;, &quot;Tester&quot;, &quot;01&quot;, &quot;2020&quot;, &quot;123&quot;);<br>  paymentInstrument.setMethod(creditCard);</pre><pre>  // customer switches to PayPal<br>  var paypal = new PaymentMethod.PayPal();<br>  paymentInstrument.setMethod(paypal);</pre><pre>  paymentInstrument.charge(); // paypal</pre><p>Although this is a simplified explanation, hopefully you can see the benefits in the application of this pattern. I hope you find this helpful.</p><p>I hope you’ve found this information useful. If you have any questions or concerns please feel free to follow me on Twitter.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=712d251e151e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Clean JavaScript: Eliminating Side-Effects]]></title>
            <link>https://alphafhb-plus.medium.com/clean-javascript-eliminating-side-effects-87141eb4c9ac?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/87141eb4c9ac</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Thu, 19 Jun 2025 15:44:03 GMT</pubDate>
            <atom:updated>2025-06-19T15:44:03.541Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Welcome back to the 2nd installment of the Clean Javascript series, where I describe common anti-patterns in JavaScript applications and how to avoid them.</p><p>Today we’ll be looking at possibly the most common, and most egregious, antipatterns around: side-effects.</p><h3>The Problem</h3><p>Before we dig into what a side-effect is and why they’re so pervasive, let’s look at some code:</p><pre>async function prepareForCheckout (cart) {<br>	cart.productLineItems = cart.productLineItems.reduce((agg, pli) =&gt; ({<br>		...agg,<br>		[pli.id]: {<br>			...pli,<br>			needsTax: true<br>	}), {});</pre><pre>	const taxes = await taxService.findTaxesForProductLineItemIds(Object.keys(cart.productLineItems));</pre><pre>	for (const tax of taxes) {<br>		cart.productLineItems[tax.productLineItemId].tax = tax;<br>		cart.productLineItems[tax.productLineItemId].needsTax = false;<br>	}</pre><pre>	return cart;<br>}</pre><p>Here we have a method prepareForCheckout that accepts a cart item, transforms it’s product line items array into an object and then calculates taxes and appends the tax amount to each PLI before returning the cart object.</p><p>At face value there are some good things going on here — we avoid the N+1 problem of fetching taxes individually and have a handy new flag for finding PLIs that still need tax. But we’ve also fundamentally changed the data structure of PLIs on our Cart.. whoops!</p><p>A <a href="https://en.wikipedia.org/wiki/Side_effect_(computer_science)">side effect</a> is a any effect performed within a function beyond just what it returns. It’s a common practice in <a href="https://en.wikipedia.org/wiki/Imperative_programming">imperative programming</a>, which is unfortunately the easiest style of programming to learn and the (probably) most frequent cause of heartburn, insomnia, and burnout among JS developers.</p><p>See, JavaScript is a pass-by-reference language, which means when you pass your cart object to prepareForCheckout you’re passing the <em>actual</em> cart object, not just a copy to be used and discarded. When we make changes to these objects inside of functions, you assume that anyone using the object after this functions knows you made the change and will handle it accordingly. While I’m sure you told your team about this change in standup and wrote paragraphs of comments, I have some bad news - no-one is going to remember, no-one is going to read your comments, and it will 100% be the reason you’re getting spammed by PagerDuty for outages at 3AM on a Saturday.</p><h3>The Solution</h3><p>If you’re like me and enjoy sleep, or just don’t want to piss off your teammates, there is an easy solution!</p><p>Imperative programming has an older, wiser cousin named <a href="https://en.wikipedia.org/wiki/Declarative_programming">declarative programming</a>, and it’s ready to swoop in like a Marvel superhero to save your job, sanity, and marriage. Declarative programming is simple — methods should be ignorant to the order in which they are called. If you think that sounds a little vague I hear you, so let’s revisit the method from before:</p><pre>async function prepareForCheckout (cart) {<br>	cart.productLineItems = cart.productLineItems.reduce((agg, pli) =&gt; ({<br>		...agg,<br>		[pli.id]: {<br>			...pli,<br>			needsTax: true<br>	}), {});</pre><pre>	const taxes = await taxService.findTaxesForProductLineItemIds(Object.keys(cart.productLineItems));</pre><pre>	for (const tax of taxes) {<br>		cart.productLineItems[tax.productLineItemId].tax = tax;<br>		cart.productLineItems[tax.productLineItemId].needsTax = false;<br>	}</pre><pre>	return cart;<br>}</pre><p>It looks like there are two side-effects in this function:</p><ol><li>We transform cart.productLineItems from a happy little array into an object keyed by id.</li><li>We set two properties on the PLIs — tax and needsTax</li></ol><p>Let’s start with the first (and worst) side-effect: the transformation.</p><p>The first step is figuring out how deeply entrenched this side-effect is — are we calling prepareForCheckout in a lot of places? Can we tell if anything downstream uses the object form of cart.productLineItems? Do we have good test coverage wherever we call this method, so we can make changes confidently? Anywhere we call this code is suspect, and we need to be extra careful to avoid more rippling changes lest you risk pissing off your coworkers further.</p><p>Maybe it’s hard to tell or we lack adequate test coverage. We can start by renaming the method to better express its risk: something like prepareForCheckout_UNSAFE. Still the same side-effect problems, but hopefully it will cause future developers to pause and consider this method before continuing on (there be dragons!).</p><p>The next (and most obvious) step is to add unit tests for prepareForCheckout. We’re about to perform open heart surgery on this method so we should make sure our watch is still on our wrist afterwards.</p><p>Next, we start to push the transformations down the periphery of our method:</p><pre>async function prepareForCheckout_UNSAFE (cart) {<br>	const productLineItemIds = cart.productLineItems.map((pli) =&gt; pli.id);</pre><pre>	const taxes = await taxService.findTaxesForProductLineItemIds(productLineItemIds);<br>	const taxesObj = taxes.reduce((agg, tax) =&gt; ({ ...agg, [tax.productLineItemId]: tax }), {});</pre><pre>	cart.productLineItems = cart.productLineItems.reduce((agg, pli) =&gt; ({<br>		...agg,<br>		[pli.id]: {<br>			...pli, // NOTE: The spread operator wouldn&#39;t clone nested properties, you may need a utility to deep copy<br>			tax: taxesObj[pli.id],<br>			needsTax: Boolean(taxesObj[pli.id])<br>		}<br>	}), {})</pre><pre>	return cart;<br>}</pre><p>Now the top part is starting to look sane again, even though we’re still modifying cart in the same way. Notice we’re creating a shallow copy of each product line item instead of mutating the parameter’s property directly. This is a subtle, but important, distinction — any callee’s that plan on using these properties will need to use the return value. Finally, note that we didn’t just update the return value — there’s no guarantee the callee is using it!</p><p>Next, let’s move those pesky side-effects to their own methods, and instead of updating the properties themselves we’ll return a new copy of the object instead:</p><pre>const convertProductLineItemsToObj = (productLineItems) =&gt; productLineItems.reduce((agg, pli) =&gt; ({<br>	...agg,<br>	[pli.id]: pli<br>}), {});</pre><pre>async function prepareForCheckout_UNSAFE (cart) {<br>	const productLineItemIds = cart.productLineItems.map((pli) =&gt; pli.id);</pre><pre>	const taxes = await taxService.findTaxesForProductLineItemIds(productLineItemIds);<br>	const taxesObj = taxes.reduce((agg, tax) =&gt; ({ ...agg, [tax.productLineItemId]: tax }), {});</pre><pre>	cart.productLineItems = convertProductLineItemsToObj(<br>		cart.productLineItems.map((pli) =&gt; ({<br>			...pli,<br>				tax: taxesObj[pli.id],<br>				needsTax: Boolean(taxesObj[pli.id])<br>		}))<br>	);</pre><pre>	return cart;<br>}</pre><p>OK. We did a couple of things there. First, we moved the logic to set tax properties on a PLI into it’s own method, and used currying + a map to transform the PLIs. We also created a method to do the actual map transformation, which is important for mitigating downstream errors.</p><p>The final boss is to rip this band-aid off, which unfortunately means making changes outside the scope of this function. This can be done in two parts, ideally test driven, where you pull this logic out and perform the side-effect in the calling function, and use our new convertProductLineItemsToObj anywhere that needs it:</p><pre>async function prepareForCheckout (cart) { // Safe again!<br>	const productLineItemIds = cart.productLineItems.map((pli) =&gt; pli.id);</pre><pre>	const taxes = await taxService.findTaxesForProductLineItemIds(productLineItemIds);<br>	const taxesObj = taxes.reduce((agg, tax) =&gt; ({ ...agg, [tax.productLineItemId]: tax }), {});</pre><pre>	return {<br>		...cart,<br>		productLineItems: cart.productLineItems.map((pli) =&gt; ({<br>			...pli,<br>				tax: taxesObj[pli.id],<br>				needsTax: Boolean(taxesObj[pli.id])<br>		}))<br>	};<br>}</pre><pre>...</pre><pre>const preparedCart = await prepareForCheckout(cart);<br>preparedCart.productLineItems = convertProductLineItemsToObj(preparedCart.productLineItems);</pre><h3>Conclusion</h3><p>I’ll stop here, but hopefully it’s clear what we’re aiming for. If you have to update a property, return it’s copy. Avoid mutating properties like the plague! And tests make everything easier.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87141eb4c9ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Clean JavaScript: Currying]]></title>
            <link>https://alphafhb-plus.medium.com/clean-javascript-currying-be2c12bd0b7b?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/be2c12bd0b7b</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Thu, 19 Jun 2025 15:42:27 GMT</pubDate>
            <atom:updated>2025-06-19T15:42:27.332Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Currying is a powerful tool that leverages partial application of parameters to create pure higher-order functions that can be composed to build complex JavaScript applications.</p><h3>Currying in Practice</h3><p>Consider this example of a typical function comparing a widget’s price:</p><pre>const isWidgetUnderMaxPrice = (widget: Widget, maxPrice: number) =&gt; {<br>    return widget.price &lt; maxPrice;<br>};</pre><p>This method could be called in a variety of places and with different prices:</p><pre>// foo.js<br>isWidgetUnderMaxPrice(widget, 500);</pre><pre>// bar.js<br>widgets.filter((widget) =&gt; isWidgetUnderMaxPrice(widget, 1000));</pre><p>With currying, we’re able to abstract away the constant and enrich the domain language of our application:</p><pre>const isWidgetUnderMaxPrice = (maxPrice: number) =&gt; {<br>    return (widget: Widget) =&gt; {<br>        return widget.price &lt; maxPrice;<br>    };<br>};</pre><pre>const isWidgetPriceUnder500 = isWidgetPriceUnderMaxPrice(500);<br>const isWidgetPriceUnder1000 = isWidgetPriceUnderMaxPrice(1000);</pre><pre>// foo.js<br>isWidgetPriceUnder500(widget);</pre><pre>// bar.js<br>widgets.filter(isWidgetPriceUnder1000);</pre><h3>Explanation</h3><p>Currying works through a process called <a href="https://en.wikipedia.org/wiki/Partial_application">partial application</a> where a function with a higher arity (the number of parameters) can be invoked to create smaller functions at different points in the application lifecycle. This feature is particularly useful when creating <a href="https://en.wikipedia.org/wiki/Pure_function">pure functions</a> that can be <a href="https://en.wikipedia.org/wiki/Function_composition_(computer_science)">composed</a> into complex algorithms, like using Lego blocks build the Death Star.</p><h3>Conclusion</h3><p>I hope this has helped you understand what currying is and how valuable it can be in an application. Try it out and let me know what you think!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be2c12bd0b7b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Artificial general intelligence?]]></title>
            <link>https://alphafhb-plus.medium.com/what-is-artificial-general-intelligence-b3cf8d274161?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3cf8d274161</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[agi]]></category>
            <category><![CDATA[general-intelligence]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Sun, 24 Mar 2024 04:58:20 GMT</pubDate>
            <atom:updated>2024-03-24T04:58:36.030Z</atom:updated>
            <content:encoded><![CDATA[<p>Demystifying Artificial General Intelligence (AGI): Unveiling the Future</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JEEpP2VE2qsJCwd2faZQTQ.png" /></figure><p>In the realm of technological advancements, the concept of Artificial General Intelligence (AGI) stands as a beacon of the future, embodying the pinnacle of what artificial intelligence can achieve. Unlike its predecessor, Artificial Narrow Intelligence (ANI), which excels in performing specific tasks, AGI represents a form of AI that possesses the ability to understand, learn, and apply intelligence across a broad range of cognitive tasks at a level comparable to, or even surpassing, human intellect. This leap from narrow to general intelligence invites us to explore the intricacies of AGI, its potential impacts, ongoing projects, business use cases, and the ethical considerations it entails.</p><h3>Understanding AGI: A Glimpse into Cognitive Flexibility</h3><p>At its core, AGI is designed to mimic the cognitive flexibility of humans, enabling it to perform any intellectual task that a human being can. This includes the ability to reason, plan, solve problems, think abstractly, comprehend complex ideas, learn quickly, and learn from experience. The quest for AGI is not just about creating a machine that can perform tasks autonomously but about fostering an entity that can understand and adapt to the world with the depth and breadth of human cognition.</p><h3>How AGI Works: The Mechanisms Behind Intelligence</h3><p>AGI systems are envisioned to employ a combination of machine learning algorithms, neural networks, and sophisticated data processing techniques. These systems would not only excel in pattern recognition but also in understanding the nuances of human languages, emotions, and social cues. The key to achieving AGI lies in developing systems that can generalize learning across domains, allowing them to transfer knowledge and skills from one area to another seamlessly.</p><h3>Impact on the Future: A Dual-Edged Sword</h3><p>The potential of AGI to revolutionize every aspect of human life is immense. From transforming healthcare through personalized medicine to tackling climate change by optimizing energy consumption, the applications are boundless. However, this transformative power also brings with it a host of ethical and societal challenges. The displacement of jobs, the risks of autonomous weapons, and the profound questions about the essence of consciousness and identity are just the tip of the iceberg.</p><h3>Pioneering AGI Projects: Leading the Charge</h3><p>Several ambitious projects are currently underway, aiming to bridge the gap between narrow AI and AGI. Projects like OpenAI’s quest for safe and beneficial AGI, DeepMind’s AlphaZero, and the Human Brain Project in Europe, each aim to unravel the complexities of intelligence in unique ways. While some focus on creating neural networks that mimic the human brain, others aim at developing algorithms capable of learning any intellectual task without prior training.</p><h3>Business Use Case: AGI in the Corporate Sphere</h3><p>For businesses, AGI promises to unlock new levels of efficiency and innovation. Imagine a scenario where AGI systems manage supply chains, predicting and adjusting to market changes in real-time, or where they conduct R&amp;D, accelerating the pace of innovation at a fraction of the current costs. The ability of AGI to understand and interact with humans in a natural manner could also revolutionize customer service and engagement.</p><h3>Navigating Risks: The Ethical Imperative</h3><p>As we stand on the cusp of creating intelligences that could surpass our own, the ethical considerations become paramount. Issues of privacy, security, and control loom large. Ensuring that AGI systems are aligned with human values and can be controlled safely is a challenge that researchers and ethicists are grappling with. The development of AGI calls for a collaborative, multidisciplinary approach to ensure that these systems benefit humanity while mitigating risks.</p><h3>Human Threads: The Societal Fabric</h3><p>The advent of AGI will inevitably reshape the fabric of society. The integration of AGI into daily life could lead to unprecedented levels of prosperity, but it also raises fundamental questions about human purpose and fulfillment in a world where machines can perform many tasks better than humans. Balancing technological advancement with human-centric values will be critical to navigating the future AGI promises.</p><p>In conclusion, Artificial General Intelligence represents a horizon beyond our current technological landscapes, offering both extraordinary possibilities and profound challenges. As we venture into this uncharted territory, it is imperative that we proceed with caution, foresight, and a commitment to the betterment of humanity. The journey towards AGI is not just a technological endeavor but a deeply human one, requiring us to reflect on what it means to be intelligent, to be ethical, and, ultimately, to be human in the age of advanced AI.</p><p>Let’s delve into these frequently asked questions about Artificial General Intelligence (AGI) one by one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*cX21Vw0huKqS4_H6psSi1w.png" /></figure><h3>What is AGI vs AI?</h3><p>Artificial Intelligence (AI) is a broad term that refers to machines programmed to perform tasks that typically require human intelligence. This includes capabilities like recognizing speech, learning, planning, and solving problems. AI can be categorized into two main types: Narrow or Weak AI, which is designed to perform specific tasks, and General or Strong AI, which is what AGI represents. AGI is the concept of a machine with the ability to understand, learn, and apply intelligence comprehensively and flexibly, much like a human being.</p><h3>Will AGI ever exist?</h3><p>The question of whether AGI will ever exist is a subject of much debate among scientists, technologists, and philosophers. The timeline for its development is uncertain, and experts in the field offer predictions ranging from a few decades to a century or more. Some believe it is an inevitable part of our technological evolution, while others raise doubts about the feasibility of creating machines with the full range of human cognitive abilities.</p><h3>What is an example of AGI?</h3><p>Currently, there are no true examples of AGI, as all existing AI systems are forms of Narrow AI, designed for specific tasks. AGI would be a system that could perform any intellectual task that a human can. It would not only excel at specific tasks but also possess the ability to learn and apply its intelligence to any problem or domain without specific training for it.</p><h3>What is AGI in medicine?</h3><p>In the context of medicine, AGI would refer to an AI system that could perform a variety of medical tasks, from diagnosing patients to developing treatment plans and conducting medical research. Such a system would need to understand complex medical data, adapt to new medical discoveries, and apply reasoning comparable to a highly trained human physician across all areas of medicine.</p><h3>Is AGI smarter than AI?</h3><p>If AGI were to be achieved, it could be considered “smarter” than current AI systems in the sense that it would have a generalizable form of intelligence that can learn and perform a wide range of tasks, similar to a human. Current AI systems are limited to specific tasks and lack the general intelligence and adaptability that AGI represents.</p><h3>Is ChatGPT considered AGI?</h3><p>ChatGPT, like me, is not considered AGI. It is a highly advanced example of Narrow AI. While it can generate human-like text and perform a variety of language-related tasks, it operates within a pre-defined range of capabilities and doesn’t possess the broad, adaptable intelligence across domains that AGI implies. ChatGPT is designed for natural language processing and does not have the ability to learn new tasks on its own or understand the world in the way humans do.</p><p>Written by FHB — The North Star</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3cf8d274161" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What makes Bangladesh different from other countries?]]></title>
            <link>https://alphafhb-plus.medium.com/what-makes-bangladesh-different-from-other-countries-fabfaf8ff6eb?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/fabfaf8ff6eb</guid>
            <category><![CDATA[green-heart-of-asia]]></category>
            <category><![CDATA[evolving-bangladesh]]></category>
            <category><![CDATA[fhb-the-north-star]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 09:11:13 GMT</pubDate>
            <atom:updated>2024-03-19T09:18:31.947Z</atom:updated>
            <content:encoded><![CDATA[<h4>Exploring the Vibrant Uniqueness of Bangladesh</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3F1h9vVd3FqKFaD_vZSqg.jpeg" /></figure><p>Nestled in the heart of South Asia, Bangladesh is a nation replete with contrasts and cultural richness that sets it apart from its neighbors. Through the lens of common inquiries, this blog post dives into the facets that make Bangladesh distinct.</p><h4>What is Unique to Bangladesh?</h4><p>Bangladesh’s uniqueness is found in its resilient spirit, vibrant culture, and natural wonders such as the Sundarbans Mangrove Forest. It’s the birthplace of the Bengali language and the stirring poetry of Nobel laureate Rabindranath Tagore. The nation’s commitment to cultural celebration is witnessed in festivals like Pohela Boishakh, the Bengali New Year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TyKEJwypXdwOykV50MY1Mw.jpeg" /></figure><h4>For What Reason Bangladesh is Famous?</h4><p>Beyond its heroic liberation war in 1971, Bangladesh is famous for its textile industry, which is one of the world’s largest garment exporters. It’s also known for the Royal Bengal Tiger, and its fertile land, particularly the Ganges Delta — the largest delta on Earth.</p><h4>Is Bangladesh a Rich or Poor Country?</h4><p>While still categorized as a developing country with challenges in poverty and infrastructure, Bangladesh has made significant economic strides in recent years, exhibiting robust GDP growth and improvements in health and education sectors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PacwZp1kH9-uxJa4zbzB4A.jpeg" /></figure><h4>Why Bangladesh is Not a Developed Country?</h4><p>Bangladesh faces hurdles towards development, including political instability, environmental challenges such as cyclones and flooding, and social issues like inequality. Yet, the nation is on a path of rapid development, making substantial progress in economic and human development metrics.</p><h4>Is Bangladesh Considered a Third-World Country?</h4><p>The term “Third World Country” is outdated and often considered pejorative. While historically it referred to nations that were neither aligned with NATO nor the Communist Bloc, today it’s more apt to refer to Bangladesh as a developing or emerging economy.</p><h4>What is the Middle Class in Bangladesh?</h4><p>The middle class in Bangladesh is a growing demographic, characterized by increased consumer spending, education levels, and a rising influence on socio-economic policies. It’s a segment reflecting the country’s economic evolution and development potential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*ro6D1U_byVScOF20VQDdAg.jpeg" /></figure><h4>Why the Culture of Bangladesh is Different?</h4><p>Bangladeshi culture is a tapestry woven from its rich history, diverse ethnic groups, and religions. It stands out for its traditional music, dance, attire like the saree and lungi, and its culinary delights that emphasize fish, rice, and lentils.</p><h4>What is the Future of Bangladesh?</h4><p>Bangladesh’s future looks promising, with projections of continued economic growth. Efforts toward sustainable development, technological advancement, and an emphasis on education hint at a bright horizon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xjK2-K3xPbWPNnmPovWgMA.jpeg" /></figure><h4>Which Country is Similar to Bangladesh?</h4><p>Countries like Vietnam and Indonesia have similarities with Bangladesh, including their economic structure, agricultural dominance, and a recent shift towards industrialization.</p><h4>What is Bangladesh in 5 Sentences?</h4><p>Bangladesh is a South Asian country renowned for its rich cultural heritage and natural beauty. It has a dynamic economy, largely propelled by its textile industry. The nation prides itself on its linguistic and artistic traditions. Despite facing environmental and developmental challenges, it has exhibited remarkable resilience and growth. Bangladesh is a testament to the spirit of progress and the vibrant life of its people.</p><h4>What is Bangladesh Used to be Called?</h4><p>Before its independence, Bangladesh was known as East Pakistan, following the partition of British India. Prior to that, it was part of the historical region of Bengal.</p><h4>What is the Average Age in Bangladesh?</h4><p>The average age in Bangladesh is relatively young, reflecting a significant youth demographic, which can be a potential demographic dividend for the country’s economy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BPpmmNS7ADdAEMmzUpygCQ.png" /></figure><p>In this exploration, we’ve barely skimmed the surface of what makes Bangladesh a nation unlike any other. From its emerald green landscapes and mighty rivers to its burgeoning economic landscape, Bangladesh continues to carve its unique identity on the world stage. For a deeper dive into the heart of Bangladesh and its people, stay tuned to our series on the world’s most fascinating countries.</p><p>*For those captivated by the stories of emerging economies and rich cultures, subscribe for more insights into the ever-evolving narrative of nations like Bangladesh.*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fabfaf8ff6eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the difference between Bangladesh and Pakistan?]]></title>
            <link>https://alphafhb-plus.medium.com/what-is-the-difference-between-bangladesh-and-pakistan-20668064eac0?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/20668064eac0</guid>
            <category><![CDATA[fhb-the-north-star]]></category>
            <category><![CDATA[cultural-identity-bd]]></category>
            <category><![CDATA[bangladesh-growth]]></category>
            <category><![CDATA[bangladesh-history]]></category>
            <category><![CDATA[bangladesh]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 07:47:30 GMT</pubDate>
            <atom:updated>2024-03-19T08:07:06.210Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Unraveling the Threads: A Closer Look at Pakistan and Bangladesh</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2tQfh9Z7BysTqBcILmsMFA.jpeg" /></figure><p>The South Asian landscape is vibrant with a tapestry of cultures, languages, and histories. At the heart of this region lie Pakistan and Bangladesh, two countries that share a deep historical connection yet have tread distinct paths since their inception. Here, we delve into the most commonly asked questions that arise when considering the relationship and individual identities of these two nations.</p><h4>Is Pakistan or Bangladesh More Developed?</h4><p>Development is a multifaceted concept encompassing economic indicators, human welfare, education, and healthcare. As of the latest data, both countries are striving towards improvement with varying degrees of success in different sectors. While Pakistan has a larger economy due to its size, Bangladesh has made significant strides in human development indices such as health and education.</p><h4>Can a Pakistani Go to Bangladesh?</h4><p>Yes, travel between the two countries is possible, but it requires the usual immigration protocols such as obtaining a visa. The relationship between the two countries influences the ease of travel, which can vary depending on the current diplomatic climate.</p><h4>Which Pakistan is Called Bangladesh?</h4><p>Historically, before its independence in 1971, Bangladesh was known as East Pakistan. It became a separate nation after a struggle for independence, which was marked by significant strife and bloodshed.</p><h4>How Many Bangladeshis Live in Pakistan?</h4><p>The number of Bangladeshis in Pakistan has fluctuated over the years, largely depending on the political and economic situations of the time. The communities of Bangladeshis in Pakistan are the remnants of the time before the separation of Bangladesh in 1971.</p><h4>Which Came First, Pakistan or Bangladesh?</h4><p>Pakistan was established first, on August 14, 1947. Bangladesh, which was initially part of Pakistan known as East Pakistan, became an independent country later, on December 16, 1971.</p><h4>Has Pakistan Recognized Bangladesh?</h4><p>Pakistan officially recognized Bangladesh in 1974, a few years after Bangladesh’s independence from Pakistan.</p><h4>How Do Pakistan and Bangladesh Differ in Their Islamic Practices?</h4><p>While both countries have predominantly Muslim populations, their Islamic practices are influenced by cultural, ethnic, and historical factors. These differences manifest in varying legal interpretations, cultural customs, and degrees of religious conservatism.</p><h4>Does Pakistan Share a Border with Bangladesh?</h4><p>No, Pakistan and Bangladesh do not share a land border. They are separated by approximately 1,400 miles, with India lying between them.</p><h4>How Much Bigger is Pakistan Than Bangladesh?</h4><p>Geographically, Pakistan is larger than Bangladesh. However, Bangladesh has a higher population density due to its smaller land area combined with a large population.</p><h4>Is Bangladesh a Part of India?</h4><p>No, Bangladesh is a sovereign nation. It was part of British India until 1947 and then became East Pakistan until its independence in 1971.</p><h4>What is the HDI of Bangladesh vs Pakistan?</h4><p>The Human Development Index (HDI) is a comparative measure of life expectancy, literacy, education, and standards of living. Both countries have been showing an upward trend in their HDI scores, with Bangladesh often scoring slightly higher in recent years.</p><h4>Is Bangladesh a Country?</h4><p>Absolutely, Bangladesh is a sovereign country that has been independent since 1971. It has its own government, legal system, and defined national borders.</p><p>Understanding Pakistan and Bangladesh’s past and present offers us a glimpse into the complexities of nationhood and identity. Though born from the same cloth, they have embroidered their own distinct patterns on the fabric of South Asia. As we continue to explore these narratives, we not only learn about them but also about the intricate nature of human societies at large.</p><p>*If you’re fascinated by the stories and journeys of nations like Pakistan and Bangladesh, follow for more insights.*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20668064eac0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the difference between react js-and react native — clarification]]></title>
            <link>https://alphafhb-plus.medium.com/what-is-the-difference-between-react-js-and-react-native-clarification-852225f94765?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/852225f94765</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[fhb]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[forhadhossenbabu]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Mon, 11 Apr 2022 07:07:41 GMT</pubDate>
            <atom:updated>2022-04-11T07:07:41.288Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is the difference between react js-and react native — clarification</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*efYsfX2iBH_hegoy.jpg" /></figure><p><strong>Reactjs</strong> and <strong>React Native</strong> which are right now powering some of the most popular and widely used mobile apps and websites, have an interesting history:</p><p>In 2011, when Facebook ads were expanding and bringing in newer, exciting features, the engineering team realized that the constant updates were slowing down their progress. Content cascading changes and updates forced the developers to realign the entire app. As the team size expanded, the problems grew in the same proportion.</p><p>They had the right model, but the user-interface needed a revolution.</p><p>At the same time, an engineer at Facebook, Jordan Walke, used XHP (an HTML component library for PHP) to create FaxJS, which was the first prototype of Reactjs.</p><p>In 2011, Reactjs was deployed for Facebook’s timeline, and this was a big leap.</p><p>In 2012, Instagram was acquired by Facebook, and then Reactjs was used for their timeline as well.</p><p>The same year, Mark Zuckerberg quoted:</p><blockquote><em>“The biggest mistake we made as a company was betting too much on HTML as opposed to native”.</em></blockquote><p>This signified the development of React Native as a framework. And soon, the developer world witnessed the emergence of two of the most powerful technologies. Reactjs vs React Native is a fascinating comparison and forces developers to think hard into their usefulness and application for developing web apps, mobile apps mobile responsive websites, and more.</p><p>Below is an overview of the business advantages of working with both React.js and React Native. It should give you a fair idea of their respective strengths and what makes them different.</p><h3>React.js</h3><p>React.js often referred to as React or ReactJS is a JavaScript library responsible for building a hierarchy of UI components or in other words, responsible for the rendering of UI components. It provides support for both frontend and server-side.</p><blockquote><em>Remember, React.js is just the V part of the MVC framework, a library meant for rendering your views.</em></blockquote><h3>Business advantages while working with React:</h3><ul><li>DOM (document object model) is a viewing agreement on data inputs and outputs. React’s virtual DOM is faster than the conventional full refresh model, since the virtual DOM refreshes only parts of the page. The interesting part is, the team at Facebook wasn’t aware that partially refreshing a page would prove faster. Facebook was just looking for a way to reduce their re-build time, and partial DOM refresh was just a happy consequence. This increases performance and faster programming.</li><li>You can reuse code components in React JS, saving you a lot of time.</li><li>The rendering of your pages completely, from the server to the browser will improve the SEO of your web app.</li><li>It improves the debugging speed making your developer’s life easier.</li><li>Even to those unfamiliar with React, it is easily readable.Many frameworks require you to learn an extensive list of concepts which are only useful within the framework. React strives to do the opposite.</li><li>You reap the benefit of all the advancements in the JavaScript language and its ecosystem.</li></ul><h3>React Native</h3><p>React Native is a framework for building native applications using JavaScript. React Native compiles to native app components, which makes it possible for you to build native mobile applications. In React JS, React is the base abstraction of React DOM for the web platform, while with React Native, React is still the base abstraction but of React Native. So the syntax and workflow remain similar, but the components are different.</p><h3>Business advantages of using React Native:</h3><ul><li>React Native comes with Native Modules and Native components that improve performance. Unlike Cordova, PhoneGap, and other <a href="https://www.cognitiveclouds.com/insights/what-to-keep-in-mind-while-designing-a-cross-platform-application/">cross-platform frameworks</a> that render code via WebView, React Native renders certain code components with native API’s.</li><li>React Native comes with all the advantages that React.js brought you. React.js focuses on a better UI, so those benefits remain.</li><li>You don’t have to build the same application for iOS and Android, separately as React Native allows your developers to reuse the common logic layer.</li><li>React Native’s component-based structure allows developers to build apps with a more agile, web-style approach to development than most hybrid frameworks, and without any web at all.</li><li>If you know JavaScript, React Native will be easy to pick-up, allowing most front-end web developer to be a mobile developer. All you need to know is JavaScript, platform APIs, some native UI elements, and any other platform-specific design patterns and you’re set.</li><li>No need to overhaul your old app. All you have to do is add React Native UI components into your existing app’s code, without having to rewrite.</li><li>Native app development usually means inefficiency, slower time to deployment, and less developer productivity. React Native is all about bringing high speed, responsiveness, and agility of web app development along with effectual processing and best user experience to the hybrid space, to provide your users with a native app experience.</li></ul><h3>Conclusion (TL;DR)</h3><p>React is a framework for building applications using JavaScript. React Native is an entire platform allowing you to build native, <a href="https://www.cognitiveclouds.com/insights/why-cross-platform-mobile-app-development-tools-deliver-subpar-user-experiences/">cross-platform mobile apps</a>, and React.js is a JavaScript library you use for constructing a high performing UI layer. React.js is the heart of React Native, and it embodies all React’s principles and syntax, so the learning curve is easy. The platform is what gave rise to their technical differences. Like the browser code in React is rendered through Virtual DOM while React Native uses Native API’s to render components on mobile. React uses HTML and with React Native, you need to familiarize yourself with React Native syntax. React Native doesn’t use CSS either. This means you’ll have to use the animated API which comes with React Native to animate different components of your application.</p><p>Bottom line, React is ideal for building dynamic, high performing, responsive UI for your web interfaces, while React Native is meant to give your mobile apps a truly native feel.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=852225f94765" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 JavaScript concepts for React beginners]]></title>
            <link>https://alphafhb-plus.medium.com/10-javascript-concepts-for-react-beginners-1886c3831812?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/1886c3831812</guid>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[reactjs-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react-js-tutorials]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Sun, 10 Apr 2022 11:40:47 GMT</pubDate>
            <atom:updated>2022-04-10T11:40:47.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*t2ChIeB1iXyulTNZC0fkng.png" /></figure><h4><strong>React</strong> is a Javascript frontend library and if you want to get started with React first, you have to learn <strong>Javascript</strong>, the programming language that powers React. Javascript itself is a huge language, and it’s not possible for you to learn all of it before learning React. But fear not, this article explains 10 Javascript concepts you must learn before moving on to React.</h4><blockquote><em>Thanks for reading! Topics covered:</em></blockquote><ul><li>What is Javascript - Short info</li><li>Introduction to React</li><li>#1 — Variables</li><li>#2 — Functions Definition</li><li>#3 — Classes and the Extend keyword</li><li>#4 — Async/Await</li><li>#5 — Array methods</li><li>#6 — Ternary Operator</li><li>#7 — Template Literal</li><li>#8 — Destructuring</li><li>#9 — Spread Operator</li><li>#10 — Import and Export</li><li>Code a Hello World in <strong>React</strong></li></ul><h3>What is JavaScript?</h3><p>JavaScript is a high-level scripting language for web pages. It was invented by Brendan Eich in 1995. At first JavaScript’s work was to make the web page interactive. but later developers built frameworks, and libraries to make JavaScript available almost on all platforms.</p><p>For instance, you can build a mobile app with react native, a desktop app with electron. backend with node.js and frontend with react.js etc.</p><p>These are just a few things I mentioned JavaScript is capable of doing. if I say all the things javascript is capable of doing it will be an article itself.</p><p>With that said, let’s move on and see what React is.</p><h3>✨ What is React?</h3><p><strong>REACT JS</strong> is an open-source JavaScript front-end library created and maintained by Facebook. It’s a component-based library, which means React breaks down a bigger application into smaller pieces named components. This approach makes building and managing bigger projects easier.</p><p>In case this is your first contact with React, you should note that React is a library, and not a framework like Angular.js, which means it’s not a complete solution. When building apps with React you need to use external libraries for things like routing, HTTP requests, and state management.</p><p>This is the short intro to react. if you wanna learn more I’ll put a few free resources at the end of the article. go check them out.</p><p>Enough of the definitions, now, let’s get to the JavaScript concepts you need to learn before learning React.</p><h3>#1 — Variables</h3><p>Before getting started with React, you must how to declare a variable in javascript. You can declare variables in javascript in three ways. using var, let, or const. each of them has pros and cons.</p><pre>var foo = &quot;hello world!&quot;;<br>let bar = &quot;Hey, There!&quot;;<br>const baz = &quot;What&#39;s up?&quot;;</pre><p>There’s a quiet difference between these three. Because the “var” type will make the variable visible in the global scope, “let” or “const” is recommended.</p><p>To learn more about each definition feel free to access a full tutorial that covers in deep of the differences:</p><p><a href="https://www.freecodecamp.org/news/var-let-and-const-whats-the-difference/">https://www.freecodecamp.org/news/var-let-and-const-whats-the-difference/</a></p><h3>#2 — Functions Definition</h3><p>React’s fundamental rule is to break a bigger project into smaller components. And those components are either Functions or Classes.</p><p>So, knowing how to declare a function with JavaScript is very important. Also as with the variables, there are more than 2 ways to declare a function. but these 2 are the most important:</p><ul><li>Function declaration</li><li>Arrow Function</li></ul><p>Let’s see the examples of each one.</p><blockquote><strong><em>Function Declaration</em></strong></blockquote><pre>// function declaration<br>function add(num1, num2) {<br>  return num1 + num2;<br>}</pre><pre>add(2, 2) // 4</pre><p>This is how you would declare and call a function in plain Javascript.</p><p>Now that you know how to declare a simple function with javascript, let’s see how it is used in React.js. In React functions are used to create functional components.</p><pre>function App() {<br>  return (<br>    &lt;div className=&#39;App&#39;&gt;<br>      &lt;h1&gt;Hello world!&lt;/h1&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>This is the use of function declaration in React. As you can see a component does not return any value, it returns the HTML which determines how the application will look.</p><blockquote><strong><em>Arrow Function</em></strong></blockquote><pre>// Arrow function<br>const subscract = (num1, num2) =&gt; {<br>  return num1 - num2;<br>}</pre><pre>subscract(5, 2) // 3</pre><p>The arrow function is just a little cleaner than the function declaration. there’s not much difference between these two. Example of functional components:</p><pre>const App = () =&gt; {<br>  return (<br>    &lt;div className=&#39;App&#39;&gt;<br>      &lt;h1&gt;Hello world!&lt;/h1&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>Just like the arrow function, the arrow function component is a little cleaner than the function declaration. It looks nicer and more intuitive.</p><h3>#3 — Classes and the Extend keyword</h3><p>As I said before, React has class components and functional components. The functional component is built with functions and the class components are built with classes.</p><p>Let’s look at the example of the javascript class then we will look at react class components.</p><pre>// javascript class<br>let Rectangle = class {<br>  constructor(height, width) {<br>    this.height = height;<br>    this.width = width;<br>  }<br>}; </pre><pre>const square = new Rectangle(10, 10);</pre><pre>console.log(square.height); // output: &quot;10&quot;</pre><p>Javascript classes are just templates for creating objects. with the new keyword, you can create a new object from the class. you can also use the extend keyword to create a new object from the class.</p><p>Example of Class component:</p><pre>class App extends Component {<br>  render() {<br>    return (<br>      &lt;div&gt;App&lt;/div&gt;<br>    )<br>  }<br>}</pre><p>Here we created a class component by extending the component class. it’s just the javascript class that returns HTML/JSX.</p><h3>#4 — Async/Await</h3><p>Async-await is a very important javascript concept. but before we get into them you’ll first need to understand asynchronous javascript.</p><blockquote><em>Asynchronous JavaScript</em></blockquote><p>When building web apps you’ll need to make API calls to get data from the backend and these fetching operations might take a while to finish.</p><p>While fetching the data all the other functionalities would freeze. To prevent this javascript introduced asynchronous functions. That means asynchronous functions help you write code that will get the data from the API at the same time won’t block the rest of the application.</p><p><strong>This is asynchronous javascript.</strong></p><p>There are a few ways to handle asynchronous code, but I am going to talk about async/await. because it is currently the best way to handle async code.</p><p><strong>Let’s start with an example:</strong></p><pre>async function getPersonsInfo(name) {<br>  const people = await server.getPeople();<br>  const person = people.find(person =&gt; { return person.name === name });<br>  return person;<br>}</pre><p><strong>Async:</strong></p><p>the async keyword declares that this function is an asynchronous function. an async function automatically returns a promise. an async keyword can be used in all types of functions. like, arrow function, callback function, or function expression.</p><p><strong>Await:</strong></p><p>What the await keyword does is it says an async function to wait to finish the operation. It is the same as the .then() block of a Promise. It’s just much cleaner.</p><p>One note here is that you can only use the await keyword inside an async function, otherwise you’ll get an error.</p><blockquote><em>Handling Errors</em></blockquote><p>As you can see the await keyword waits for the promise to resolve and returns the result. we need to keep in mind that our promise can be rejected. so, now we need a way to handle that.</p><p>We can handle errors in the async function in 2 ways.</p><p><strong>Solution #1</strong> — Use try ... catch() blocks:</p><pre>asyncFunctionCall().catch(error =&gt; {<br>  console.error(error)<br>});</pre><p><strong>Solution #2</strong> — Use Inner try ... catch() block:</p><pre>async function getPersonsInfo(name) {<br>  try {<br>    const people = await server.getPeople();<br>    const person = people.find(person =&gt; { return person.name === name });<br>    console.log(person)<br>  } catch (error) {<br>    console.error(error)<br>  }<br>}</pre><p><strong>Async/await in React</strong></p><pre>const App = () =&gt; {</pre><pre> useEffect(() =&gt; {<br>  // declare the data fetching function<br>  const fetchData = async () =&gt; {<br>    //get the data<br>    const data = await fetch(&#39;&lt;https://yourapi.com&gt;&#39;);<br>  }</pre><pre>  // call the function<br>  fetchData()<br>  // make sure to catch any error<br>    .catch(console.error);<br>    }, [])</pre><pre>  return &lt;&gt;...&lt;/&gt;;<br>};</pre><h3>#5 — Array methods</h3><p>Array methods are ways to manipulate arrays in javascript. Knowing how these methods work will come in handy in the future. Because when you start building projects with react you’ll use them all the time.</p><blockquote><strong><em>array.map()</em></strong></blockquote><p>array.map() creates a new array by applying a callback function on each element of the array. also, it does not change the original array.</p><p><strong>Code Sample</strong></p><pre>const numbers = [2, 3, 4, 6];<br>const newArr = numbers.map(myFunction)</pre><pre>function myFunction(num) {<br>  return num * 2;<br>} </pre><pre>console.log(numbers); //2,3,4,6<br>console.log(newArr); //4,6,8,12</pre><blockquote><strong><em>array.filter()</em></strong></blockquote><p>array.filter() loop through all the elements of an array and filter out the elements that match the condition in the callback function. just like the map method, it doesn&#39;t change the old array.</p><p><strong>Code Sample</strong></p><pre>const ages = [32, 33, 16, 40];<br>const result = ages.filter(checkAdult);</pre><pre>function checkAdult(age) {<br>  return age &gt;= 18;<br>}</pre><pre>console.log(ages);<br>console.log(result);</pre><blockquote><em>Example in React for </em><em>map()</em></blockquote><pre>function App() {<br>  const names = [&#39;sam&#39;, &#39;jack&#39;, &#39;tom&#39;, &#39;dave&#39;];</pre><pre>  return (<br>    &lt;div className=&#39;App&#39;&gt;<br>      &lt;h1&gt;Hello world!&lt;/h1&gt;<br>      {<br>        names.map(name =&gt; &lt;h2&gt;hello {name}&lt;/h2&gt;)<br>      }<br>    &lt;/div&gt;<br>  );<br>}</pre><p>The above sample renders all the elements of the names array using map. This is very useful and probably you’ll use it all the time.</p><blockquote><em>Example in React for </em><em>filter()</em></blockquote><pre>const numbers = [1, 2, 3, 4, 5, 6, 7];<br>const lessThanFive = numbers.filter(num =&gt; num &lt; 5);</pre><pre>console.log(lessThanFive); //1,2,3,4<br>console.log(numbers) //1, 2, 3, 4, 5, 6, 7</pre><p>Here I filtered the numbers array to less than five. This method is also very important for creating filter functionalities.</p><h3>#6 — Ternary Operator</h3><p>Ternary Operator is the simplified form of the if/else conditional. Basically, It’s just another way to write if-else conditional.</p><p><strong>Code Sample</strong> — Classic If/else</p><pre>//if/else<br>if (loading) {<br>  loadingComponent();<br>} else {<br>  App();<br>}</pre><p><strong>Code Sample</strong> — Ternary Operator</p><pre>loading ? loadingComponent() : App();</pre><p><strong>React Sample</strong> — Ternary Operator</p><pre>class App extends Component {<br>  render() {<br>    const isLoggedIn = this.state.isLoggedIn;<br>    return (<br>      &lt;div&gt;<br>        The user is &lt;b&gt;{isLoggedIn ? &#39;currently&#39; : &#39;not&#39;}&lt;/b&gt; logged in.<br>      &lt;/div&gt;<br>    );<br>  }<br>}</pre><h3>#7 — Template Literal</h3><p>If you are building a web app, it’s normal that you need to work with strings. In earlier versions of Javascript (ES5), if you wanted to concatenate(add) a string to a variable you had to use the + operator. And it doesn’t look good and is not easy to understand.</p><p>But now you can use ES6 template literal. Template literal uses ${} notation to concatenate strings with variables.</p><p><strong>Code Sample</strong></p><pre>const name = &quot;Sam&quot;;<br>const greeting = `Hello, ${name}!`<br>console.log(greeting) // Hello, Sam!</pre><h3>#8 — Destructuring</h3><p>Destructuring is a way to extract values from an Object or Array into variables.</p><p>In earlier versions of Javascript (ES5), if you wanted to extract a value from an array or object you would do this:</p><pre>//Array<br>const foo = [&#39;one&#39;, &#39;two&#39;];<br>const one = foo[0]</pre><pre>const bar = [&quot;Tom&quot;, &quot;Jerry&quot;];<br>const tom = bar[0]</pre><p>Now what you can do with ES6 (modern version of Javascript) restructuring is this:</p><pre>const foo = [&#39;one&#39;, &#39;two&#39;];<br>const [one] = foo;</pre><pre>//Object<br>const bar = [&quot;Tom&quot;, &quot;Jerry&quot;];<br>const {tom} = bar</pre><p>It will assign the value one to the variable one. This is much cleaner and more intuitive.</p><p><strong>Example In React.js</strong></p><p>To pass data to components React uses props. Props are just like arguments in a normal function.</p><p>The point here is that props are objects. For example, if you had a component named Greeting and it takes a prop name:</p><pre>&lt;Greeting name={&quot;Sam&quot;} /&gt;</pre><pre>If you want to access it, you need to write props.name.<br>function Greeting(props) {<br>  return (<br>    &lt;div&gt;hello {props.name}&lt;/div&gt;<br>  )<br>}</pre><p>But also, you can use restructuring like this:</p><pre>function Greeting(props) {<br>  const {name} = props<br>  return (<br>    &lt;div&gt;hello {name}&lt;/div&gt;<br>  )<br>}</pre><p>Now you can use the name without calling props.name.</p><h3>#9 — Spread Operator</h3><p>A spread operator is used to copy a whole or part of an array or an object.</p><p>The spread operator is used to create an exact copy of an Array or an Object. it is very handy when working with react states because states are immutable.</p><pre>const arrayOne = [1, 2, 3];<br>const arrayTwo = [4, 5, 6];<br>const arrayThree = [...arrayOne, ...arrayTwo];</pre><h3>#10 — Import and Export</h3><p>As mentioned before, React is a component-based UI framework. So, to build a complete application you need to use the components you built.</p><p>To use the component you need to import them into the file you want to use. you can use export and import to use components in your application.</p><blockquote><strong><em>Export Sample</em></strong></blockquote><pre>// app.js file - Exports the “App” object<br>function App() {<br>  return (<br>    &lt;div&gt;App&lt;/div&gt;<br>  )<br>}</pre><blockquote><em>Import Sample</em></blockquote><pre>// index.js - Use the “App” object via an “import”<br>import App from &#39;./App&#39;;<br>ReactDOM.render(<br>  &lt;React.StrictMode&gt;<br>    &lt;App /&gt;<br>  &lt;/React.StrictMode&gt;,<br>  document.getElementById(&#39;root&#39;)<br>);</pre><p>After this short introduction of 10 useful JS concepts, we can use in React, curious minds might go further and code a simple Hello World in React.</p><h3>Code Hello World project with React</h3><p>This section explains how to code a classic “Hello World” project using React and Javascript.</p><blockquote><strong><em>Step#1: Install the tools</em></strong></blockquote><p>To get started with React first you need to install Node.js. You can download Node from here.</p><blockquote><strong><em>Step#2: Build the app</em></strong></blockquote><p>After you’ve installed NodeJS, open up the terminal/command line and create your project folder with this command:</p><pre>$ mkdir hello-react</pre><p>Then generate a basic React project using CRA (create-react-app tool).</p><pre>$ npx create-react-app my-app<br>$ cd my-app<br>$ npm start</pre><p>After running all these commands your browser will open up the React project on port 3000.</p><pre>import React from &#39;react&#39;</pre><pre>function App() {<br>  return (<br>    &lt;div&gt;&lt;/div&gt;<br>  )<br>}</pre><pre>export default App</pre><p>And write an h1 tag with Hello world! inside the div.</p><pre>import React from &#39;react&#39;</pre><pre>function App() {<br>  return (<br>    &lt;div&gt;<br>    &lt;h1&gt;hello world!&lt;/h1&gt;<br>    &lt;/div&gt;<br>  )<br>}</pre><pre>export default App</pre><p>At this point, you should see Hello World message in the browser.</p><blockquote><strong><em>Congrats!</em></strong><em> From now on </em><em>you are a React (beginner) developer.</em></blockquote><h3>Conclusion</h3><p>If you start learning/using React without understanding the <strong>Javascript basic concepts</strong> you might be unproductive and not use the full power of <strong>React</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1886c3831812" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Primitive vs Reference Values in JavaScript]]></title>
            <link>https://alphafhb-plus.medium.com/primitive-vs-reference-values-in-javascript-1edcf4533369?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/1edcf4533369</guid>
            <category><![CDATA[forhadhossenbabu]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Sun, 10 Apr 2022 11:25:03 GMT</pubDate>
            <atom:updated>2022-04-10T11:25:03.013Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6PBRgCbn1ifJKV_YXzdxqA.png" /></figure><h3>Accessing by value or by reference</h3><p>In JavaScript, a variable may store two types of data: primitive and reference. JavaScript provides six primitive types as undefined, null, boolean, number, string, and symbol , and a reference type object.</p><p>When you assign a variable a value, the JavaScript engine must determine whether the value is a primitive or a reference value.</p><p>If the variable stores a primitive value, when you manipulate its value, you are working on the actual value stored in the variable. In other words, the variable that stores a primitive value is accessed <em>by value</em>.</p><p>Unlike the primitive value, when you manipulate an object, you are working on the <em>reference</em> to that object, rather than the actual object. In short, a variable that stores an object is accessed <em>by reference</em>.</p><h3>Copying primitive values</h3><p>When you assign a variable that stores a primitive value to another, the value stored in the variable is created and copied into the new variable.</p><p>Let’s take a look at the following example.</p><p>First, declare a variable a and initialize its value to 10.</p><p>1</p><p>var a = 10;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/0*teKqa8r3x7C2Mg0T.png" /></figure><p>Second, declare another variable b and assign it a value of the variable a. Internally, JavaScript engine copies the value stored in a into the location of b.</p><p>1</p><p>var b = a;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/0*OzKroh86_ojJ4gAF.png" /></figure><p>Third, assign the variable a new value 10.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/0*A-LJqyycufRVU_y7.png" /></figure><p>Because a and b have no relationship, therefore when you change the value stored in the b variable, the value of the a variable remains intact.</p><p>1</p><p>2</p><p>console.log(a); <em>// 10;</em></p><p>console.log(b); <em>// 20;</em></p><h3>Copying reference values</h3><p>When you assign a reference value from one variable to another, the value stored in the variable is also copied into the location of the new variable. The difference is that the values stored in both variables now are the address of the actual object stored in the heap. As the result, both variables are pointing to the same object.</p><p>Here is an example.</p><p>First, declare a variable x that holds an object whose name property is &#39;John&#39;.</p><p>1</p><p>var x = {name: ‘John’};</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*oRNm-S1gbES5msjv.png" /></figure><p>Second, declare another variable y and assign the x variable to y. both x and y are now pointing to the same object in the heap.</p><p>1</p><p>var y = x;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*KcxTiOs6GpXG72Fh.png" /></figure><p>Third, modify the value stored in the name property of the object using the y variable.</p><p>1</p><p>y.name = ‘David’;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/0*BjWGkmkP5FtQwS0r.png" /></figure><p>Because both x and y are pointing to the same object, therefore the change is also reflected if you access the object using the x variable.</p><p>1</p><p>console.log(x.name); <em>// ‘David’</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*G4Tf6E0wgcaLw_O9.png" /></figure><p>In this tutorial, you have learned about accessing by value and by reference, and also the differences between them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1edcf4533369" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 50 Useful GitHub Repos That Every Developer Should Follow]]></title>
            <link>https://alphafhb-plus.medium.com/top-50-useful-github-repos-that-every-developer-should-follow-68a34a3d5b8c?source=rss-efc3fac53618------2</link>
            <guid isPermaLink="false">https://medium.com/p/68a34a3d5b8c</guid>
            <category><![CDATA[top-50-github-repos]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[developer-resources]]></category>
            <category><![CDATA[forhadhossenbabu]]></category>
            <dc:creator><![CDATA[Alpha FHB]]></dc:creator>
            <pubDate>Sun, 10 Apr 2022 11:16:24 GMT</pubDate>
            <atom:updated>2022-04-10T11:16:24.746Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iT7IGAtGRuotaOsHVS86LA.png" /></figure><p><strong>Github….facebook for developers.</strong> Giving this name to this amazing site is not injustice. Afterall this site not only helps you to host your code with version control, but it is also helpful in making networks with other great developers across the world. A lot of developers love to spend time on GitHub exploring the project, learning a lot of stuff all the time, making connections with other developers and contributing to the open-source projects. Over 37 million users and more than 100M repository is the proof of Github’s popularity and it shows the love of developers towards this amazing site.</p><p><strong>So</strong> it’s a popular platform for tons of resources and there are many repositories which provide free resources on various aspects of software engineering. I would like to share 50 github repositories that would help you in the journey of programming.</p><ul><li><strong>1. </strong><a href="https://github.com/freeCodeCamp/freeCodeCamp"><strong>FreeCodeCamp</strong></a></li></ul><p>A non profit organization and best opensource community. Over here you can help others code and also learn to code by the various tutorials they have provided.</p><ul><li><strong>2. </strong><a href="https://github.com/vinta/awesome-python"><strong>Awesome Python</strong></a></li></ul><p>A github repository that lists various python frameworks, libraries, softwares, podcasts, resources for python developers</p><ul><li><strong>3. </strong><a href="https://github.com/DhanushNehru/Ultimate-NodeJs-Resources"><strong>Ultimate Node Js Resources</strong></a></li></ul><p>Resources related to Node Js at one place which includes IDE’s security, testing frameworks blogs and much more.</p><ul><li><strong>4. </strong><a href="https://github.com/getify/You-Dont-Know-JS"><strong>You don’t know JS</strong></a></li></ul><p>You don’t know JS is a popular javascript book which is available in github as well.</p><ul><li><strong>5. </strong><a href="https://github.com/jwasham/coding-interview-university"><strong>Coding Interview University</strong></a></li></ul><p>If you want to get into top software companies it provides a study plan. It also helps yourself to stay prepared for technical interviews for Google, Microsoft etc.</p><ul><li><strong>6. </strong><a href="https://github.com/public-apis/public-apis"><strong>Public Apis</strong></a></li></ul><p>As a developer when dealing with Apis for application you can choose a list of free Apis from this site which ranges from animation, games, google analytical apis etc.</p><ul><li><strong>7. </strong><a href="https://github.com/florinpop17/app-ideas"><strong>App Ideas</strong></a></li></ul><p>It lists a collection of application ideas to improve your coding skills</p><ul><li><strong>8. </strong><a href="https://github.com/DhanushNehru/Ultimate-Web-Development-Resources"><strong>Ultimate Web Development Resources</strong></a></li></ul><p>Lists collection of web development resources which ranges from the list of softwares, hosting platforms, code challenges, fonts etc. If you want to get started with web development these resources listed here would help you to get started</p><ul><li><strong>9. </strong><a href="https://github.com/sindresorhus/awesome"><strong>Awesome</strong></a></li></ul><p>Awesome lists about all kinds of interesting topics and resources.</p><ul><li><strong>10. </strong><a href="https://github.com/kamranahmedse/developer-roadmap"><strong>Developer Roadmap</strong></a></li></ul><p>It provides a roadmap inorder to become a software engineer</p><ul><li><strong>11. </strong><a href="https://github.com/TheAlgorithms"><strong>The Algorithms</strong></a></li></ul><p>If you want to learn algorithms based on different programming languages this one is for you.</p><ul><li><strong>12. </strong><a href="https://github.com/you-dont-need"><strong>You dont need</strong></a></li></ul><p>People choose popular projects, often not because it applies to their problems. It contains a list which you don’t need for developing</p><ul><li><strong>13. </strong><a href="https://github.com/lydiahallie/javascript-questions"><strong>Javascript Questions</strong></a></li></ul><p>It contains advanced javascript questions which helps to upgrade yourself as a javascript developer</p><ul><li><strong>14. </strong><a href="https://github.com/denysdovhan/wtfjs"><strong>Wtfjs</strong></a></li></ul><p>A list of funny and tricky JavaScript examples</p><ul><li><strong>15. </strong><a href="https://github.com/Pierian-Data/Complete-Python-3-Bootcamp"><strong>Complete Python 3 Bootcamp</strong></a></li></ul><p>There is a course in udemy based on the repository name and all the course files are present here</p><ul><li><strong>16. </strong><a href="https://github.com/yangshun/tech-interview-handbook"><strong>Tech Interview Handbook</strong></a></li></ul><p>A curated interview preparation materials for busy engineers</p><ul><li><strong>17. </strong><a href="https://github.com/jlevy/the-art-of-command-line"><strong>The Art of Command Line</strong></a></li></ul><p>One github page to master all your command line operations</p><ul><li><strong>18. </strong><a href="https://github.com/github/gitignore"><strong>Gitignore</strong></a></li></ul><p>It list useful gitignore templates for your project</p><ul><li><strong>19. </strong><a href="https://github.com/30-seconds/30-seconds-of-code"><strong>30 seconds of code</strong></a></li></ul><p>It lists short javascript snippets for your next project</p><ul><li><strong>20. </strong><a href="https://github.com/ossu/computer-science"><strong>Computer Science</strong></a></li></ul><p>A repository which provides the path to become a self taught computer science engineer.</p><ul><li><strong>21. </strong><a href="https://github.com/ossu/data-science"><strong>Data Science</strong></a></li></ul><p>A repository which provides the path to become a self taught data science engineer.</p><ul><li><strong>22. </strong><a href="https://github.com/veeral-patel/how-to-secure-anything"><strong>How to secure anything</strong></a></li></ul><p>A repository about security engineering.</p><ul><li><strong>23. </strong><a href="https://github.com/EbookFoundation/free-programming-books"><strong>Free Programming Books</strong></a></li></ul><p>List all the free programming books available for a programmer</p><ul><li><strong>24. </strong><a href="https://github.com/mvt-project/mvt"><strong>Mobile Verification Toolkit</strong></a></li></ul><p>It is a collection of utilities to simplify and automate the process of gathering forensic traces helpful to identify a potential compromise of Android and iOS devices.</p><ul><li><strong>25. </strong><a href="https://github.com/leonardomso/33-js-concepts"><strong>33 Js concepts</strong></a></li></ul><p>It lists about 33 Javascript concepts which every developer must know.</p><ul><li><strong>26. </strong><a href="https://github.com/yangshun/front-end-interview-handbook"><strong>Front end interview handbook</strong></a></li></ul><p>It lists various front end interview preparation materials for busy engineers.</p><ul><li><strong>27. </strong><a href="https://github.com/practical-tutorials/project-based-learning"><strong>Project based learning</strong></a></li></ul><p>A list of programming tutorials in which aspiring software developers learn how to build an application from scratch. These tutorials are divided into different primary programming languages. Tutorials may involve multiple technologies and languages.</p><ul><li><strong>28. </strong><a href="https://github.com/danistefanovic/build-your-own-x"><strong>Build your own X</strong></a></li></ul><p>What you cannot create you cannot understand. It lists resources which help you to build your own database, bots, cryptocurrency etc.</p><ul><li><strong>29. </strong><a href="https://github.com/donnemartin/system-design-primer"><strong>System Design Primer</strong></a></li></ul><p>Learn how to design large-scale systems and also preparation for the system design interview.</p><ul><li><strong>30. </strong><a href="https://github.com/trekhleb/javascript-algorithms"><strong>Javascript Algorithms</strong></a></li></ul><p>Algorithms and data structures implemented in JavaScript with explanations and links to further readings.</p><ul><li><strong>31. </strong><a href="https://github.com/minimaxir/big-list-of-naughty-strings"><strong>Big List of naughty strings</strong></a></li></ul><p>The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data.</p><ul><li><strong>32. </strong><a href="https://github.com/trimstray/the-book-of-secret-knowledge"><strong>The book of secret knowledge</strong></a></li></ul><p>A collection of inspiring lists, manuals, cheatsheets, blogs, hacks, one-liners, cli/web tools and more.</p><ul><li><strong>33. </strong><a href="https://github.com/goldbergyoni/nodebestpractices"><strong>Node best practices</strong></a></li></ul><p>The Node.js best practices list</p><ul><li><strong>34. </strong><a href="https://github.com/gothinkster/realworld"><strong>Real World</strong></a></li></ul><p>“The mother of all demo apps” — Exemplary fullstack Medium.com clone powered by React, Angular, Node, Django etc.</p><ul><li><strong>35. </strong><a href="https://github.com/TheAlgorithms/Python"><strong>TheAlgorithms/Python</strong></a></li></ul><p>Lists all Algorithms implemented in Python.</p><ul><li><strong>36. </strong><a href="https://github.com/elsewhencode/project-guidelines"><strong>Project Guidelines</strong></a></li></ul><p>A set of best practices for JavaScript projects</p><ul><li><strong>37. </strong><a href="https://github.com/ryanmcdermott/clean-code-javascript"><strong>Clean Code Javascript</strong></a></li></ul><p>Lists all the clean Code concepts adapted for JavaScript</p><ul><li><strong>38. </strong><a href="https://github.com/thedaviddias/Front-End-Checklist"><strong>Front End Checklist</strong></a></li></ul><p>The perfect Front-End Checklist for modern websites and meticulous developers</p><ul><li><strong>39. </strong><a href="https://github.com/AllThingsSmitty/css-protips"><strong>Css Pro Tips</strong></a></li></ul><p>A collection of tips to help take your CSS skills pro</p><ul><li><strong>40. </strong><a href="https://github.com/goldbergyoni/javascript-testing-best-practices"><strong>Javascript Testing Best Practices</strong></a></li></ul><p>Comprehensive and exhaustive JavaScript &amp; Node.js testing best practices</p><ul><li><strong>41. </strong><a href="https://github.com/iluwatar/java-design-patterns"><strong>Java Design Patterns</strong></a></li></ul><p>Lists various design patterns implemented in Java</p><ul><li><strong>42. </strong><a href="https://github.com/firstcontributions/first-contributions"><strong>First Contributions</strong></a></li></ul><p>Lists Materials to contribute to open source projects</p><ul><li><strong>43. </strong><a href="https://github.com/slidevjs/slidev"><strong>Slidev</strong></a></li></ul><p>Lists the presentation slides for developers</p><ul><li><strong>44. </strong><a href="https://github.com/chubin/cheat.sh"><strong>Cheat.sh</strong></a></li></ul><p>Unified access to the best community driven cheat sheets repositories of the world.</p><ul><li><strong>45. </strong><a href="https://github.com/pluja/awesome-privacy"><strong>Awesome Privacy</strong></a></li></ul><p>A curated list of services and alternatives that respect your privacy because PRIVACY MATTERS.</p><ul><li><strong>46. </strong><a href="https://github.com/dvf/blockchain"><strong>Blockchain</strong></a></li></ul><p>To create a simple block chain using python</p><ul><li><strong>47. </strong><a href="https://github.com/ionic-team/ionic-framework"><strong>Ionic framework</strong></a></li></ul><p>A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.</p><ul><li><strong>48. </strong><a href="https://github.com/pixijs/pixijs"><strong>Pixijs</strong></a></li></ul><p>The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.</p><ul><li><strong>49. </strong><a href="https://github.com/jonasstrehle/supercookie"><strong>Supercookie</strong></a></li></ul><p>Supercookie uses favicons to assign a unique identifier to website visitors. Unlike traditional tracking methods, this ID can be stored almost persistently and cannot be easily cleared by the user.</p><ul><li><strong>50. </strong><a href="https://github.com/vasanthk/how-web-works"><strong>How web works</strong></a></li></ul><p>Details information about how DNS, HTTP protocol, servers work or about Render Tree, DOM Tree, page painting etc. It is a useful repository to learn the basics of how the web works.</p><p>Cool, You’ve finished reading, Now if you have any other valuable github repositories to share feel free to drop below…</p><p><strong>Forhad H. Babu<br>Software Developer at IDARE Bangldesh</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68a34a3d5b8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>