<?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 Ahmad Abuwardeh on Medium]]></title>
        <description><![CDATA[Stories by Ahmad Abuwardeh on Medium]]></description>
        <link>https://medium.com/@ahmadabuwardeh?source=rss-4bfb96789626------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lYQiLEyRA97Tk4vPNvbp_A.jpeg</url>
            <title>Stories by Ahmad Abuwardeh on Medium</title>
            <link>https://medium.com/@ahmadabuwardeh?source=rss-4bfb96789626------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:12:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmadabuwardeh/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[The importance of unit testing]]></title>
            <link>https://medium.com/edraak-engineering/the-importance-of-unit-testing-6196e7808001?source=rss-4bfb96789626------2</link>
            <guid isPermaLink="false">https://medium.com/p/6196e7808001</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[unit-testing]]></category>
            <dc:creator><![CDATA[Ahmad Abuwardeh]]></dc:creator>
            <pubDate>Thu, 11 Mar 2021 09:15:35 GMT</pubDate>
            <atom:updated>2021-03-11T09:15:35.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6aRzQfVhVuL9vJvrBUQAxA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@dtravisphd?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">David Travis</a> on <a href="https://unsplash.com/s/photos/test?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>It is hard to overestimate the importance of software quality. A single error can have a huge negative impact on your project. If bugs are not addressed in a timely, efficient manner, they may turn into an endless cycle of fixes or even hurt your company’s reputation.</p><p>There are numerous testing techniques to choose from, but today we want to tell you about a basic yet very effective one called <em>unit testing</em>. Let’s have a look at the role of unit testing in software testing and how it makes sure your product works properly.</p><h4>What is unit testing?</h4><p>Let’s start with the definition: Unit testing is a software testing method where “units” — the individual components of software — are tested. Developers write unit tests for their code to make sure that the code works correctly, and performs as intended. This helps to detect and protect against bugs in the future.</p><p>The basic feature of unit testing is isolation — a unit test only performs a specific function and excludes all external influences, such as dependencies between units, calls to other functions, etc.</p><p>unit testing is not something you will see in an end product — it’s a type of testing performed during the coding stage by(developer or tester).</p><blockquote>Code without tests is broken as designed. — Jacob Kaplan-Moss</blockquote><h4>Why unit testing?</h4><p>In software development, testing is paramount. So why should I do it, you ask?</p><ul><li>Tests have a short feedback loop, enabling you and your team to learn faster and adjust</li><li>Less time is spent debugging, allowing you to spend more time writing code</li><li>Fixing an issue in unit testing can fix many other issues occurring in later development and testing stages</li><li>Tests act as documentation for your code!</li><li>They improve code quality while reducing bugs</li><li>After refactoring the code, your tests will tell you whether the change has broken previously working code</li><li>Writing unit tests help developers to understand the code better. It can often be a good way for new developers on the project to get to know your code if it was written by someone else</li></ul><p><strong>“One of the biggest benefits of unit testing is that it also serves as credible proof of the quality of the technology your product is built using.”.</strong></p><h4>How to do unit testing</h4><p>I’ll go over the structure of a typical unit <strong>test</strong>, which is usually represented by the Arrange-Act-Assert pattern (AAA), <em>it </em>is a great way to structure test cases. It prescribes an order of operations:</p><ol><li><strong><em>Arrange</em> </strong>inputs and targets. <em>Arrange </em>steps should set up the test case. Does the test require any objects or special settings? Does it need to prep a database? Does it need to log into a web app? Handle all of these operations at the start of the test.</li><li><strong><em>Act</em> </strong>on the target behavior. <em>Act </em>steps should cover the main thing to be tested. This could be calling a function or method, calling a REST API, or interacting with a web page. Keep actions focused on the target behavior.</li><li><strong><em>Assert</em> </strong>expected outcomes. <em>Act </em>steps should elicit some sort of response. <em>Assert </em>steps verify the goodness or badness of that response. Sometimes, assertions are as simple as checking numeric or string values. Other times, they may require checking multiple facets of a system. Assertions will ultimately determine if the test passes or fails.</li></ol><p>Here’s a basic unit test for Python’s absolute value function:</p><pre>def test_abs_for_a_negative_number():</pre><pre>   # Arrange<br>   negative <strong>=</strong> <strong>-</strong>5</pre><pre>   # Act<br>   answer <strong>=</strong> abs(negative)</pre><pre>   # Assert<br>   <strong>assert</strong> answer <strong>==</strong> 5<br></pre><p>This test may seem trivial, but we can use it to illustrate our pattern. I like to write comments denoting each phase of the test case as well.</p><ul><li>The <strong><em>Arrange</em></strong><em> </em>step creates a variable named “negative” for testing.</li><li>The <strong><em>Act</em></strong><em> </em>step calls the “abs” function using the “negative” variable and stores the returned value in a variable named “answer.”</li><li>The <strong><em>Assert</em></strong><em> </em>step verifies that “answer” is a positive value.</li></ul><h4>Conclusion</h4><p>The importance of unit testing should never be underestimated. It is a powerful tool that brings a lot of benefits to software development. With unit testing, you have a chance to catch and fix a lot of bugs early in the development process, thus significantly improving the quality of your software solution. Unit tests have proven themselves to be a great method within the quality assurance that help you both rid your code of flaws <em>and</em> save money doing it</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6196e7808001" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/the-importance-of-unit-testing-6196e7808001">The importance of unit testing</a> was originally published in <a href="https://medium.com/edraak-engineering">Edraak Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Cement and Concrete to 0s and 1s]]></title>
            <link>https://medium.com/edraak-engineering/from-cement-and-concrete-to-0s-and-1s-d34b651f6823?source=rss-4bfb96789626------2</link>
            <guid isPermaLink="false">https://medium.com/p/d34b651f6823</guid>
            <category><![CDATA[career-shifts]]></category>
            <category><![CDATA[success-story]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ahmad Abuwardeh]]></dc:creator>
            <pubDate>Sat, 07 Nov 2020 15:49:11 GMT</pubDate>
            <atom:updated>2020-12-18T18:55:07.193Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Cement and Constructions to Zeros and Ones</h3><blockquote>It’s never too late for a career switch.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*wf9Vl_vRu8HPjHEJsk58zg.jpeg" /></figure><h3><strong>Introduction</strong></h3><p>I did something that most people would think is impossible; I switched my career!</p><p>In 2013, I graduated from high school with the second-highest score in the country’s Tawjihi examinations. Full of energy and ambition, it was time for me to decide on a university major. I was interested in everything related to computers, cutting-edge technologies, and innovation!</p><p>However, as is the case in many Middle Eastern households, my family was keen on me studying civil engineering — a program that admitted only top-scoring high school graduates. Although it wasn’t my number-one passion, that’s what I went with!</p><p>The first two years were very enjoyable since I was studying my favorite subjects, like math and science. But in the following years, as we delved deeper into more advanced civil engineering topics, I gradually lost interest. I consoled myself by thinking I could switch careers upon graduation. I kept pushing and, eventually, graduated as an engineer. My parents were thrilled! Me? I was happy yet skeptical!</p><p>In 2018, I kickstarted my career as a civil engineer at the Ministry of Public Works and Housing. I participated in exciting projects, but I wasn’t enjoying the overall work experience, which just confirmed my earlier doubts.</p><p>Sometime later, I moved to Dubai to work on the Expo 2020 project, hoping to find my passion there. I worked long hours and perfected my roles and duties; nevertheless, I still felt something was amiss.</p><h3><strong>The Deciding Moment</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*E0ECP74k2An4EZdF75GqBA.jpeg" /></figure><p>The biggest question on my mind was: Should I work for a different employer but stay in my comfort zone (civil engineering), or should I embark on a different path?</p><p>The time seemed right for a career switch. This decision stemmed from my curiosity to find my passion, my ability to dream big, and the courage to do whatever it took to make my dream a reality.</p><p>I knew that programming compiles everything I love: Math, science, problem-solving, and building new things using creativity and teamwork.</p><p>I consulted with my cousin, who, unlike me, had gone ahead and studied computer science. He encouraged me and gave me valuable advice. He also introduced me to a more experienced programmer who ended up being my mentor. To be honest, I was feeling lost, but he developed a detailed plan for me to study many online courses within a specific timeframe. He advised me to start with Python first to grasp the basics of programming and then move on to more advanced topics, such as web development and modern JavaScript frameworks.</p><p>It was refreshing to rediscover my appetite for learning. The satisfaction and joy I found in coding was something very novel to me. I felt like I found my ‘perfect’ career path.</p><blockquote>“The sooner you do it, the easier it is.”</blockquote><p>I quit my job and went back to Jordan to immerse myself in this new self-learning journey.</p><h3><strong>The Learning Journey</strong></h3><p>My new goal was to land a job as a software developer. But to get there, I needed to prove that I could complete my plan. Relentlessly and without fail, I spent 12 hours a day working on it. Not because I had to, but because every module felt great to complete, and I was genuinely enjoying what I was learning. I took many Python, Flask, JavaScript, HTML, CSS, Bootstrap, React, and Redex courses. Ultimately, I finished the plan in half the timeframe. I learned so much in three months, but I knew there was still a long way ahead.</p><p>I conducted several projects to grow my GitHub portfolio and, many courses and books later, I became confident in writing code. I finally felt ready for my first interview.</p><p>After several job applications, I got a call from <a href="https://go.edraak.org/smc/"><strong>Edraak</strong></a> (the first non-profit Arabic MOOC platform), scheduling an interview with the Head of Engineering and Research. It was my first interview as a software developer, and I was incredibly nervous throughout. He asked many questions, each harder than the previous. During the interview, I started doubting this new path: Was I ready for this step? Have I been wasting my time all along, attempting a career shift?</p><p>My interviewer was straightforward. He told me I needed to improve and offered me a learning project for two months, followed by another interview. On my way home, I received a pleasant call from the company informing me that my interviewer had seen potential in me and invited me to complete a three-month internship that would accelerate my learning by being in an immersive feedback environment.</p><p>On my first day, I asked the department head why he offered me the internship instead of the project. He said that <a href="https://go.edraak.org/smc/"><strong>Edraak</strong>’s</a> core mission is to enable the Arab society to fulfill its potential — a belief practiced internally as well.</p><p>From the start of the internship, it was clear there was nothing in common between the construction and tech industries. I could barely understand what was going on; I was faced with a completely different environment and work processes.</p><p>Within a short period — and through great teamwork and support from my colleagues (shoutout to Salah, Fahmi, and Qutaiba from Edraak Engineering) — I was set on a clear path, with two projects to accomplish.</p><p>The first one was a greenfield project (building a website or app from scratch). I created a website compiling Edraak’s new UI design system, similar to Bootstrap, using React, Javascript, and CSS. My main objective was to build it using best practices and clean code and ensure its high performance. When I was done, I felt thrilled with what I had learned and accomplished!</p><p>My second project was a brownfield (improving upon an existing application). I developed an automation solution for business development reports using Python, Django, MySQL, and Celery. The challenge here was to finish it within two weeks. I did it in 10 days.</p><p>On October 18th, I received an official job offer from Edraak. This moment proved to me that all the time, effort, and emotions I had invested for months had not been in vain!</p><p>I am now a proud member of the core development team at Edraak. I’m gaining new experiences with every project and expanding my knowledge across multiple languages and technologies — including Python, Django, JavaScript, React.js, CSS, MySQL, and Git.</p><p>It’s been a fulfilling journey in many ways. Despite the uncertainties, risks, and fears, it led me to my true passion: software engineering.</p><p>What’s next? As I tackle bigger challenges, I worry less about the code and more about the problem we’re meant to solve, such as offering better educational opportunities to learners in need. I believe a software engineer is a problem solver and, as they advance, they impact not only the codes but also the world around them.</p><p>The bottom line is don’t be afraid of change, no matter your age. You will always have options. But the sooner you do it, the easier it will be.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d34b651f6823" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/from-cement-and-concrete-to-0s-and-1s-d34b651f6823">From Cement and Concrete to 0s and 1s</a> was originally published in <a href="https://medium.com/edraak-engineering">Edraak Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>