<?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 Saba on Medium]]></title>
        <description><![CDATA[Stories by Saba on Medium]]></description>
        <link>https://medium.com/@saba-saif?source=rss-815a34a97a8e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*JyGCOqWBOUjZHDfwPCfaMg.jpeg</url>
            <title>Stories by Saba on Medium</title>
            <link>https://medium.com/@saba-saif?source=rss-815a34a97a8e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:15:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saba-saif/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[Face-to-Face Small-Group Teaching: What Close Proximity Does to the Learning Brain]]></title>
            <link>https://saba-saif.medium.com/face-to-face-small-group-teaching-what-close-proximity-does-to-the-learning-brain-f905030993cc?source=rss-815a34a97a8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f905030993cc</guid>
            <dc:creator><![CDATA[Saba]]></dc:creator>
            <pubDate>Thu, 14 Aug 2025 17:58:35 GMT</pubDate>
            <atom:updated>2025-08-14T17:58:35.026Z</atom:updated>
            <content:encoded><![CDATA[<p>Saba Saif<br>12 August 2025</p><p><strong>In small, close-proximity circles, students get safety, turns to retrieve, immediate feedback, shared gaze, better audibility, and social synchrony — exactly the conditions that help the brain encode, correct, and remember.</strong></p><figure><img alt="small close proximity study circle" src="https://cdn-images-1.medium.com/max/1024/0*cmgtFvvYFLQaFIxO" /><figcaption><a href="https://riwaqalquran.com/free-weekly-halaqah/">source</a></figcaption></figure><h3>Why proximity and small group benefits the learning brain</h3><p><strong>1. Safety and Cognitive Bandwidth</strong></p><p>In a 2006 experiment by Coan and colleagues, the simple presence and touch of a supportive other dampened neural threat responses, freeing prefrontal resources for processing and self-regulation. In classroom terms, close, calm proximity can reduce anxiety and “free up” working memory for learning.</p><p><strong>2. More Turns, More Memory</strong></p><p>In a 2006 study by Roediger and Karpicke, learners who regularly retrieved information (speaking, explaining, answering) remembered far more than those who only re-read. Close-proximity small circles naturally raise each student’s speaking turns, converting time into memory-building retrieval events.</p><p><strong>3. Feedback Density</strong></p><p>In a 2007 review by Hattie and Timperley, targeted, timely feedback emerged as one of the most powerful influences on learning. Sitting within arm’s reach enables rapid micro-feedback on wording, reasoning, and misconceptions — tighter error-correction loops with less delay.</p><p><strong>4. Joint Attention and Eye-Gaze</strong></p><p>In a 2007 review by Frischen and colleagues, gaze cues were shown to shape attention and comprehension. In a ḥalqa, students and teacher coordinate gaze on the same line of text or diagram and on each speaker’s face; this joint attention helps align mental models and supports comprehension.</p><p><strong>5. Interpersonal Synchrony (Brains Aligning)</strong></p><p>In a 2017 study by Dikker and colleagues, moments of higher brain-to-brain synchrony in real classrooms predicted greater engagement and better understanding. Small circles with shared attention, voice cadence, and turn-taking appear to promote this synchrony, supporting retention.</p><p><strong>6. Listening Effort, Noise, and Intelligibility</strong></p><p>In classroom acoustics research by Shield and Dockrell (2018; 2019), elevated background noise increased listening effort and impaired reading-related performance. Sitting close improves the signal-to-noise ratio, especially for multilingual or hard-of-hearing students. The classroom acoustics standard ANSI/ASA S12.60 recommends ≤35 dB(A) background noise and short reverberation — conditions easier to approximate in a small, close group.</p><p><strong>7. Working-Memory Limits and Cognitive Load</strong></p><p>In a 2001 synthesis by Cowan, typical adult working memory holds about 4 ± 1 units, with a lower capacity for children. Fewer competing signals, slower pace, and concise turns in a small group reduce cognitive load and help information “stick”.</p><p><strong>8. Embodied Cognition (Hands, Eyes, Voice)</strong></p><p>In a 2014 review by Goldin-Meadow, gestures were shown to anchor abstract ideas and facilitate transfer. Close-proximity settings naturally elicit pointing, tracing, and shaping gestures around a shared text, reinforcing understanding.</p><p><strong>9. Belonging, Autonomy, and Effort</strong></p><p>In a 2000 paper by Ryan and Deci, meeting learners’ needs for relatedness and competence increased intrinsic motivation and persistence. The intimacy of a ḥalqa — being seen and heard — signals belonging, which supports effortful engagement.</p><h3>When to Prefer</h3><ul><li><strong>Foundations &amp; fragile knowledge</strong>: early reading/phonology, core math ideas (Roediger &amp; Karpicke, 2006; Cowan, 2001).</li><li><strong>Feedback-heavy skills</strong>: pronunciation, proofs, worked-example coaching (Hattie &amp; Timperley, 2007).</li><li><strong>Discussion-driven understanding</strong>: textual analysis, reasoning, seminar questions (Frischen et al., 2007; Dikker et al., 2017).</li><li><strong>Learners needing audibility &amp; belonging</strong>: multilinguals, newcomers, hard-of-hearing (ANSI/ASA, 2010/2020; Shield &amp; Dockrell, 2018/2019; Ryan &amp; Deci, 2000).</li></ul><p><strong>References</strong></p><ol><li>ANSI/ASA S12.60 (2010, R2020). Acoustical Performance Criteria, Design Requirements, and Guidelines for Schools.</li><li>Cepeda, N. J., Pashler, H., Vul, E., Wixted, J. T., &amp; Rohrer, D. (2006). Distributed practice in verbal recall tasks: A review and quantitative synthesis. Psychological Bulletin, 132(3), 354–380.</li><li>Cepeda, N. J., Vul, E., Rohrer, D., Wixted, J. T., &amp; Pashler, H. (2008). Spacing effects in learning: A temporal ridgeline of optimal intervals. Psychological Science, 19(11), 1095–1102.</li><li>Coan, J. A., Schaefer, H. S., &amp; Davidson, R. J. (2006). Lending a hand: Social regulation of the neural response to threat. Psychological Science, 17(12), 1032–1039.</li><li>Cowan, N. (2001). The magical number 4 in short-term memory: A reconsideration of mental storage capacity. Behavioral and Brain Sciences, 24(1), 87–185.</li><li>Dikker, S., et al. (2017). Brain-to-brain synchrony tracks real-world dynamic group interactions in the classroom. PNAS, 114(30), 7954–7959.</li><li>Frischen, A., Bayliss, A. P., &amp; Tipper, C. (2007). Gaze cueing of attention: Visual attention and social cognition. Psychological Bulletin, 133(4), 694–724.</li><li>Goldin-Meadow, S. (2014). How gesture works to change our minds. Trends in Cognitive Sciences, 18(8), 434–441.</li><li>Hattie, J., &amp; Timperley, H. (2007). The power of feedback. Review of Educational Research, 77(1), 81–112.</li><li>Roediger, H. L., &amp; Karpicke, J. D. (2006). Test-enhanced learning: Taking memory tests improves long-term retention. Psychological Science, 17(3), 249–255.</li><li>Ryan, R. M., &amp; Deci, E. L. (2000). Self-determination theory and the facilitation of intrinsic motivation, social development, and well-being. American Psychologist, 55(1), 68–78.</li><li>Shield, B., &amp; Dockrell, J. (2018; 2019). The effects of classroom noise on children’s academic performance. Journal of the Acoustical Society of America.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f905030993cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Show your work programmers!]]></title>
            <link>https://saba-saif.medium.com/show-your-work-programmers-4444ca6978e7?source=rss-815a34a97a8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4444ca6978e7</guid>
            <category><![CDATA[personal-branding-tips]]></category>
            <category><![CDATA[showcase]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[personal-branding]]></category>
            <dc:creator><![CDATA[Saba]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 05:57:44 GMT</pubDate>
            <atom:updated>2023-03-12T05:57:44.173Z</atom:updated>
            <content:encoded><![CDATA[<p>Sharing your creativity as a coder and getting discovered could be a superpower in this fast-paced and continuously evolving age of IT whether you are looking for a job or starting your own business.</p><blockquote><strong>“Find your voice, shout it from the rooftops, and keep doing it until the people that are looking for you find you.”</strong></blockquote><blockquote><em>— Dan Harmon</em></blockquote><p>Here are a few ways to get started:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*eu9Wmz7BHWmQ3T3Q.png" /><figcaption>Source: © Shutterstock</figcaption></figure><ol><li><strong>Document your work</strong>: “Become a documentarian of what you do”. Start a work journal: Write your thoughts down in a notebook, or speak them into an audio recorder. Shoot videos/take photographs of you working/coding. Whether you share it or not, documenting and recording your process as you go along has its own rewards: You’ll start to see the work you’re doing more clearly and feel like you’re making progress. And when you’re ready to share, you’ll have a surplus of material to choose from.</li><li><strong>Teach what you know</strong>: Learning and teaching always go hand in hand. The more you teach, the more you learn. You don’t have to be a genius or expert to teach the tools and technologies you know, to beginners in the field. Pick any social media platform and start sharing everyday small tips and tricks that you have learned throughout your experience. There is always someone looking for some help around troubleshooting little issues to developing or designing whole new features and your little contributions can make a big difference.</li><li><strong>Collaborate and Contribute</strong>: The software industry has grown fast today just because of the giant open-source software we have like React, Postgres, and many more. Open-source projects have a tendency to produce very high-quality projects, and help to build a community around the technology that drives the tools to higher levels, beyond what’s possible with proprietary solutions. Therefore, contributing to open-source software e.g. on Github can be extremely beneficial to you as a developer and strengthen the community we have.</li><li><strong>Keep LinkedIn up-to-date</strong>: Professionals for some strange reason like LinkedIn more than any other platform and your profile on LinkedIn acts as your CV nowadays. Recruiters, collaborators, and others will know about your career aspirations “what you show” on LinkedIn. We as humans tend to forget things and if you will not keep your LinkedIn professional descriptions updated regularly you might end up forgetting what tech stack you worked on in your last role or something you have learned recently from your personal project.</li><li><strong>Create a portfolio website</strong>: You can lose access to your GitHub account but you can never lose access to your own portfolio website. Your personal website will speak about your skills itself.</li></ol><blockquote><strong>“Carving out a space for yourself online, somewhere where you can express yourself and share your work, is still one of the best possible investments you can make with your time.”</strong></blockquote><blockquote><em>— Andy Baio</em></blockquote><p>To learn more and dive deeper into this, I would recommend reading the book; <a href="https://www.pdfdrive.com/show-your-work-10-ways-to-share-your-creativity-and-get-discovered-e199462138.html">“Show your work”</a>.</p><p>I would love to hear from you, what are your key takeaways from this post in the comment section below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4444ca6978e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 obstacles to Self-Mastery]]></title>
            <link>https://saba-saif.medium.com/5-hindrances-to-self-mastery-4c0ac7276ab?source=rss-815a34a97a8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c0ac7276ab</guid>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[power]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[point-of-view]]></category>
            <category><![CDATA[mind]]></category>
            <dc:creator><![CDATA[Saba]]></dc:creator>
            <pubDate>Fri, 25 Jun 2021 16:38:19 GMT</pubDate>
            <atom:updated>2021-06-25T21:57:48.462Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gyGBJGo7Vtjq6Yeje6dydQ.jpeg" /><figcaption>picture: <a href="https://www.flickr.com/photos/larique/3235896099">Larique</a></figcaption></figure><p>All our lives, we are enslaved by our minds, in one way or another way got distracted from primary goal, we are unaware of our emotions and take actions involuntarily. But we hold more power than we know.</p><p>The term <a href="https://destinysodyssey.com/personal-development/self-mastery/"><strong>Self-Mastery</strong></a> is the ability to recognize, understand, control, and make the most out of your physical, mental, emotional, and spiritual <strong>self</strong>. It is gained through awareness, understanding, and control over your thoughts, emotions, and actions.</p><blockquote><strong>History and origin</strong>: <a href="https://www.britannica.com/topic/Scholasticism">Scholastic</a> thinkers such as Aquinas, <a href="https://www.britannica.com/biography/Francisco-de-Vitoria">Francisco de Vitoria</a>, and <a href="https://www.britannica.com/biography/Bartolome-de-Las-Casas">Bartolomé de Las Casas</a> developed the concept of “<a href="https://www.britannica.com/topic/self-mastery">self-mastery</a>” (<em>dominium</em>) — later called “self-propriety,” “property in one’s person,” or “self-ownership” — and showed how it could be the foundation of a system of individual rights.</blockquote><p>So, <strong>what stops you from mastering yourself?</strong></p><p>A <a href="https://www.youtube.com/watch?v=4-079YIasck&amp;t=577s&amp;ab_channel=TEDxTalks">video</a> of Shaolin Kung Fu master <a href="https://www.shihengyi.online/">Shi Heng Yi</a> on YouTube has excellently described 5 hindrances to self-mastery. Self-mastery is when you see more clearly and make better decisions.</p><ol><li><strong>Sensual Desire</strong>: Temptation of other things during the journey towards the goal.</li><li><strong>Ill will / aversion</strong>: Hate towards a certain aspect of the goal, for example, you want to be a businessman but you don’t like to take risks.</li><li><strong>Dullness / Heaviness: “torpor” </strong>Dullness of mind and <strong>“sloth”</strong> heaviness of the body due to lack of energy.</li><li><strong>Restlessness:</strong> Unsettlement of mind because it is not in the present moment. You are either too judgemental about the past or too afraid about the future.</li><li><strong>Sceptical Doubt: </strong>Indecisiveness of mind, what if this? what if that? is this the right path? These doubts stop you from moving on.</li></ol><p>Afterward, he described the 4 step process to remove the black cloud of these hindrances from your mind, which will lead towards clarity.</p><ol><li>Recognize</li><li>Accept — State of your mind</li><li>Investigate: what happens if I remain in this state?</li><li>Non-identity: Its practice, you have to treat your body, mind, and emotions as three separate entities apart from yourself and take an overview of the situation.</li></ol><p>We all are different human beings, even our tiniest fingerprints do not match with each other, break the chains of hindrances and carve your own path.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c0ac7276ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Landing an IT Job in Finland, during COVID]]></title>
            <link>https://saba-saif.medium.com/landing-an-it-job-in-finland-during-covid-5e0269793963?source=rss-815a34a97a8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e0269793963</guid>
            <category><![CDATA[technical]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[experience]]></category>
            <dc:creator><![CDATA[Saba]]></dc:creator>
            <pubDate>Fri, 25 Jun 2021 15:21:22 GMT</pubDate>
            <atom:updated>2021-06-25T15:38:45.046Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*LKLnNPSgemed8icU5AOReA.jpeg" /><figcaption>picture: <a href="https://taskshift.com/blogs/article/illustration-job-hunting-101-how-to-find-a-freelance-illustration-job">TaskShift</a></figcaption></figure><p>Well, the great way to share the tips of finding a job in a European country like Finland (where the language barrier is one of the main things) by telling my <strong>own experience</strong>.</p><p>I came to Finland in December 2020 for studying master&#39;s in ICT. To be honest, I <strong>began to apply for jobs</strong> in Finland from my home country as soon as I got my residence permit for Finland in November 2020. I didn’t have any Finnish home address or phone number to write it in my CV. But I <strong>wanted to see</strong> how the Finnish <strong>job market</strong> works.</p><p>Alright, so after one month when I reached Finland. I <strong>started getting rejections</strong> from the companies. I wondered, why I was not able to get a single interview invitation. <strong>I researched</strong> and saw many YouTube videos of Finnish recruiters. <strong>“Networking”</strong> and <strong>“personal branding”</strong> were the key points highlighted by all, to secure a job. I began to attend <strong>CV clinics</strong> through university, job hunting meetups, <strong>improved my LinkedIn profile</strong>, <strong>Github</strong> profile, and <strong>enrolled in Coursera</strong> and other <strong>certification platforms</strong> to show all the skills I really have. I gave few months to this phase.</p><p>Then, I <strong>continued the process of applying for jobs</strong> again in April 2020. This time, like a Phoenix, I emerged from the ashes and got quite many <strong>interview calls</strong>. One company has considered me the third best candidate in their candidate list, but unfortunately, they had only two open positions for the particular role. The reason for being on third was that I was not familiar with bonus (not required but a plus) technologies for the role. <strong>I learned</strong> that technology. Soon, I got one more opportunity through my friend’s referral. That company was multi-national and has great work culture. I was <strong>motivated</strong> enough to give my best to each hiring process step. <strong>I worked</strong> on my <strong>cover letter, CV</strong>, <strong>prepared</strong> for the technical interview. Which I passed, and then got the final team interview call. I nailed the final interview also. Finally, I got accepted for the role of Technical Consultant. Following are <strong>few tips,</strong> to sum up, my journey:</p><ol><li>Stay <strong>Motivate</strong>d.</li><li>Keep <strong>apply</strong>ing to jobs as many as you can.</li><li>Learn from rejections. Critically <strong>analyze</strong> why you are rejected and how can you improve yourself as a professional.</li><li>Think the other way around, how can you <strong>add value</strong> to the company rather than what will I get?</li><li>Work on your <strong>communication skills</strong>, <strong>portfolio</strong> as a software engineer or IT person we neglect this but showing your technical skills is also an art.</li><li>Last but not least, <strong>give it time</strong>. Sometimes, things need time and everything falls into place. :)</li></ol><p>I hope it helped someone who is striving for finding a job in the Technology sector. Feel free to comments, suggestions, or connect with me on <a href="https://www.linkedin.com/in/saba-saif/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e0269793963" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing in React App with Material-UI]]></title>
            <link>https://medium.com/geekculture/designing-in-react-app-with-material-ui-2663be0e43a6?source=rss-815a34a97a8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2663be0e43a6</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[material-ui]]></category>
            <dc:creator><![CDATA[Saba]]></dc:creator>
            <pubDate>Wed, 23 Jun 2021 23:22:59 GMT</pubDate>
            <atom:updated>2021-06-25T16:55:52.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqflNIhvAREyi9Qe0HPr-A.jpeg" /><figcaption>picture: <a href="https://morioh.com/p/5adcdaf61364">Morioh</a></figcaption></figure><h3>What are we creating?</h3><p>In the <a href="https://saba-saif.medium.com/build-your-first-react-custom-hook-5d61a5355510">previous episode</a>, we created a custom hook to fetch from <a href="https://restcountries.eu/">Countries API</a>. In this tutorial, we will take the <strong>API response</strong> and render it into the <strong>Material-UI table</strong>. Before moving forward, what is Material-UI?</p><h4><a href="https://material-ui.com/getting-started/usage/">Material-UI</a></h4><p>Material-UI components work in isolation. <strong>They are self-supporting</strong>, and will only inject the styles they need to display. They don’t rely on any global style-sheets such as <a href="https://github.com/necolas/normalize.css/">normalize.css</a>.</p><h3>Pre-requisites:</h3><p>For this tutorial, we will be assuming that you already have familiarity with the basic concepts of Javascript and React.</p><h3>Setup for the Tutorial:</h3><p>To install and save in your package.json dependencies, run:</p><pre>// with npm<br>npm install @material-ui/core</pre><pre>// with yarn<br>yarn add @material-ui/core</pre><p>Please note that <a href="https://www.npmjs.com/package/react">react</a> &gt;= 16.8.0 and <a href="https://www.npmjs.com/package/react-dom">react-dom</a> &gt;= 16.8.0 are peer dependencies.</p><p><strong>Step 1</strong>: Passing props to the Table component for rendering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0Tk3fBtuEZXMGJsrI0k7A.png" /></figure><p><strong>Step 2: </strong>Create function component “countryTable.js” and restructure props.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*H-YKSDvtHISiREIbB-5tFA.png" /></figure><p>Note: you can use <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions">arrow functions</a> also.</p><p><strong>Step 3</strong>: Import Material-UI components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*Mlgquy9BuOAIDrKC2opSAA.png" /></figure><p><strong>Step 4:</strong> Render table with UI components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*eflX0z8kIJp7Q41bylDU8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*_ovWcLaq2jxDjtWz5LNglw.png" /></figure><p>Here, we could also create different functional components for the table head and body. Below is the styling class “table” used above,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*miCE05Uie_9uwKSxDAUrbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*C9P6BXaADIm1Q3jZjZDawQ.png" /></figure><p><strong>Step 5:</strong> Run the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h3xfgtT3bgp6qM7tmBpnxg.png" /></figure><p>Congratulations, you just learned a new tool for designing your React App. For further documentation on Material-UI, visit the link below:</p><blockquote><a href="https://material-ui.com/">https://material-ui.com/</a></blockquote><p>For any queries or suggestions, feel free to comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2663be0e43a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/designing-in-react-app-with-material-ui-2663be0e43a6">Designing in React App with Material-UI</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Examples of Premature Optimization in Software Development]]></title>
            <link>https://javascript.plainenglish.io/examples-of-premature-optimization-ecff9eac67b7?source=rss-815a34a97a8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecff9eac67b7</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Saba]]></dc:creator>
            <pubDate>Tue, 22 Jun 2021 15:49:04 GMT</pubDate>
            <atom:updated>2021-06-28T00:00:26.709Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e_P1ELCdBMLDwnQNX_utig.png" /><figcaption>picture: <a href="https://www.toptal.com/freelance/curse-premature-optimization">toptal</a></figcaption></figure><p>In the <a href="https://javascript.plainenglish.io/all-you-need-to-know-about-performance-optimization-in-reactjs-89150db61556">previous episode</a>, we had learned about how, when, and why we do optimization.</p><p>In this article, you will be enlightened about some <strong>examples of premature optimization in general</strong> and <strong>what problems are linked to it</strong></p><p>Let’s get started.</p><h3>General Examples</h3><ol><li>Spending too much time tweaking a button and giving a pixel-perfect look.</li><li>Taking too long to read documentation just for finding the correct React pattern.</li><li>Wondering so much about choosing the best platform like AWS, GCP, Heroku, Netifly for simple app deployment.</li><li>Aiming for 100 percent test coverage.</li><li>Spend hours on choosing whether a class component or hooks.</li></ol><h3><strong>Potential Problems</strong></h3><ol><li>Wastage of time as optimization is hard.</li><li>The effort to time ratio is not justifiable. (e.g. 1% efficiency by taking 10% time)</li><li>Less secure code, which is more difficult to read and maintain.</li><li>Makes the system unnecessarily complicated.</li></ol><h3>Conclusion</h3><p>Optimization is good for application efficiency, but doing it at the right time and in the right way is vital. We have to be aware of what we are coding and why we are coding and make sure it&#39;s worth the time.</p><p><em>More content at </em><a href="http://plainenglish.io/"><strong><em>plainenglish.io</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecff9eac67b7" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/examples-of-premature-optimization-ecff9eac67b7">Examples of Premature Optimization in Software Development</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build your first React Custom Hook]]></title>
            <link>https://medium.com/geekculture/build-your-first-react-custom-hook-5d61a5355510?source=rss-815a34a97a8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d61a5355510</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[hooks]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Saba]]></dc:creator>
            <pubDate>Mon, 21 Jun 2021 15:00:45 GMT</pubDate>
            <atom:updated>2021-06-28T06:46:34.353Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IbfsXCPT4v6z4_v_VHLxOQ.jpeg" /><figcaption>picture: <a href="https://morioh.com/p/50fc89d6e2b6">Morioh</a></figcaption></figure><h3>Why we need hooks?</h3><p>Previously, react was offering <em>props-rendering</em> and <em>higher-order components</em> which make your code reusable. But it was hard to follow and understand. There comes the need of using Hooks in react, which basically allows you to reuse <strong>stateful logic</strong> without disturbing your component hierarchy. It lets you split your code into smaller functions. There are already some hooks available in the store to use, for example, useEffect, useState, useContext. You can just call them and you are good to go.</p><p>But as your code gets complex, you need more control over it which you can do by <strong>creating your own custom hook</strong> which is aligned with your own project needs. So let’s get started:</p><h3><strong>What are we creating?</strong></h3><p>In this tutorial, we will create a custom hook for fetching countries&#39; data from an API. we will be using <a href="https://restcountries.eu/">Countries API</a>.</p><ol><li>We will fetch and return all countries if there is no argument.</li><li>If a country name is given in the argument, we will return data of that country only.</li><li>Example usage of the custom hook:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*ZA03rg4K4K-OgCdJhBdp_Q.png" /></figure><h3><strong>Pre-requisites:</strong></h3><p>For this tutorial, we will be assuming that you already have familiarity with the basic concepts of Javascript and React.</p><h3>Setup for the tutorial:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sCmzujIFwJ-iCmYRFJTOLA.png" /></figure><p><strong>custom-hook</strong> is the name of my react-app, you can name it anything. After the creation of the app, you can change the directory to your app and run “yarn start” to check if your app is running in the browser on localhost.</p><p>Next, create <strong>useCountry.js </strong>in the src folder.</p><p>Note: You have to use the “use” keyword with your hook, so that react can recognize that it&#39;s a Hook.</p><p><strong>Step 1: </strong>Write functionality for your Hook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*LH6JC_kB1Fou_Wycv_E9Vg.png" /></figure><p>Note: you can use other hooks in your custom hook.</p><p><strong>Step 2:</strong> Call and destructure your hook in the main component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z_W7fAdjqpQo3GKSEonSBA.png" /></figure><p><strong>Step 3:</strong> Run the code.</p><p>Now you can see the response of <strong>your First Custom Hook</strong> in the browser console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vnap8Kxk2mKOzBnopZvyUw.png" /></figure><p>The code of the hook is also available on <a href="https://github.com/SabaSaif-github/custom-hook">Github</a>. In case of further queries, feel free to comment!</p><p>In the next episode, you will learn how to render API response to a table with the help of Material-UI.</p><blockquote><a href="https://saba-saif.medium.com/designing-in-react-app-with-material-ui-2663be0e43a6">https://saba-saif.medium.com/designing-in-react-app-with-material-ui-2663be0e43a6</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d61a5355510" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/build-your-first-react-custom-hook-5d61a5355510">Build your first React Custom Hook</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All about Performance Optimization in React]]></title>
            <link>https://javascript.plainenglish.io/all-you-need-to-know-about-performance-optimization-in-reactjs-89150db61556?source=rss-815a34a97a8e------2</link>
            <guid isPermaLink="false">https://medium.com/p/89150db61556</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Saba]]></dc:creator>
            <pubDate>Sun, 20 Jun 2021 22:48:31 GMT</pubDate>
            <atom:updated>2022-09-01T07:55:13.384Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bx8YaOyxxpwSbCcbvIBgVQ.jpeg" /><figcaption>Picture: <a href="https://railsware.com/blog/why-use-react/">Railsware</a></figcaption></figure><p>Performance optimization is the process of streamlining and making your server as effective as possible to deliver the web content faster.</p><p>Generally, React is famous for its incredible speed and performance is one of its great advantages. The features React using for this purpose are virtual DOM, server-side rendering, support for bundling, and tree-shaking. Therefore, we will look at several ways how you can make your React Application efficient.</p><h4><a href="https://reactjs.org/docs/optimizing-performance.html">Optimization Techniques:</a></h4><p><strong>1.Use Production Build</strong></p><p>You should use minified production build if having any performance troubles. Although, React gives warnings by default which are useful in development, but to make sure the build process use <a href="https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en">React developer tools</a>.</p><p><strong>2. DevTools profilier for profiling components</strong></p><p>react-dom 16.5+ and react-native 0.57+ provide enhanced profiling capabilities in DEV mode with the React DevTools Profiler.</p><p><strong>3. Long lists virtualization</strong></p><p>If your application renders long lists of data (hundreds or thousands of rows), a technique called “windowing” only renders a small subset of your rows at any given time. It can tremendously reduce the time it takes to re-render the components as well as the creation of the number of DOM nodes. <a href="https://react-window.now.sh/">react-window</a> and <a href="https://bvaughn.github.io/react-virtualized/">react-virtualized</a> are famous windowing libraries.</p><p><strong>4. Avoid Reconciliation</strong></p><p>Reconciliation is the process of updating DOM in react. React builds and maintains an internal representation of the rendered UI. It includes the React elements you return from your components. This representation lets React avoid creating DOM nodes and accessing existing ones beyond necessity, as that can be slower than operations on JavaScript objects.</p><p><strong>5. Use shouldComponentUpdate</strong></p><p>Even though React only updates the changed DOM nodes, re-rendering still takes some time. In many cases, it’s not a problem, but if the slowdown is noticeable, you can speed all of this up by overriding the lifecycle function shouldComponentUpdate, which is triggered before the re-rendering process starts. The default implementation of this function returns true, leaving React to perform the update. If you know that in some situations your component doesn’t need to update, you can return false from shouldComponentUpdate instead, to skip the whole rendering process, including calling render() on this component and below.</p><p><strong>6. No Data Mutation</strong></p><p>The simplest way to avoid this problem is to avoid mutating values that you are using as props or state. ES6 supports a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator">spread syntax</a> for arrays which can make this easier.</p><p>When you deal with deeply nested objects, updating them in an immutable way can feel convoluted. If you run into this problem, check out <a href="https://github.com/mweststrate/immer">Immer</a> or <a href="https://github.com/kolodny/immutability-helper">immutability-helper</a>. These libraries let you write highly readable code without losing the benefits of immutability.</p><p>While thinking of optimization, the next question arises in mind, <strong>when we should do optimization?</strong> So, don’t worry about it at the start of the project. Because if you worry too much about it, you are going to waste time and resources as it could get complicated. You can do it when you notice a lag in system performance.</p><p><strong>“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil”</strong></p><p>- <em>Donald Knuth</em></p><p>Optimization should not be confused with the coding best practices. Its always recommended following the coding conventions which can help better perform your react application. Following are some of them:</p><blockquote>Usage of Hooks over Higher order Functions.</blockquote><blockquote>Destructure Props and define their types (if not defined already).</blockquote><blockquote>Usage of stateless functions to avoid re-rendering.</blockquote><blockquote>Render conditionally.</blockquote><blockquote>Usage of <a href="https://eslint.org/">ESLint</a> (for javascript) or <a href="https://www.npmjs.com/package/tslint">TSLint</a> (for typescript)</blockquote><blockquote>React Developer Tools (<a href="https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en">chrome extension</a>) for Debugging.</blockquote><p>In the next episode, you can learn more about premature optimization.</p><p><a href="https://saba-saif.medium.com/examples-of-premature-optimization-ecff9eac67b7">Examples of Premature Optimization</a></p><h4>Further Reading</h4><p><a href="https://javascript.plainenglish.io/5-tools-practices-to-help-you-develop-faster-in-react-b884c1b20fc2">5 Tools &amp; Practices To Help You Develop Faster in React</a></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><em>, and </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89150db61556" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/all-you-need-to-know-about-performance-optimization-in-reactjs-89150db61556">All about Performance Optimization in React</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>