<?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[Edraak Engineering - Medium]]></title>
        <description><![CDATA[We are a leading non profit, online education platform that is transforming education in the MENA region. Being one of the few educational Arabic content providing   platforms, our aim is to provide equal chances for every individual that seeks knowledge. - Medium]]></description>
        <link>https://medium.com/edraak-engineering?source=rss----ffbe1b0e3b6c---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Edraak Engineering - Medium</title>
            <link>https://medium.com/edraak-engineering?source=rss----ffbe1b0e3b6c---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 19:00:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/edraak-engineering" 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----ffbe1b0e3b6c---4</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[We Hate Half Full Progress Bars, Here is Another Proof!]]></title>
            <link>https://medium.com/edraak-engineering/we-hate-progress-bars-here-is-another-proof-5e52c2f74d33?source=rss----ffbe1b0e3b6c---4</link>
            <guid isPermaLink="false">https://medium.com/p/5e52c2f74d33</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[progress-bar]]></category>
            <category><![CDATA[gamification]]></category>
            <dc:creator><![CDATA[Omardabbas]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 09:50:50 GMT</pubDate>
            <atom:updated>2021-02-11T13:30:08.732Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65jJVTsS3TAtX8I5kR8dlg.jpeg" /><figcaption>Credits to Lindsay Henwood</figcaption></figure><p>It’s no secret that we hate seeing a progress bar that’s half full (or half empty, depending on how you look at it!), and you probably know that LinkedIn <a href="http://thomas-lindemann.com/en/gamification-en/how-linkedin-uses-gamification-to-boost-engagement/#:~:text=To%20increase%20the%20completion%20rate,information%20to%20their%20virtual%20profile.&amp;text=The%20image%20below%20shows%20the,receive%20on%20completing%20their%20profile."><strong>used gamification to urge users</strong></a> to complete their profile information on their platform.</p><p>So, we thought to give it a shot at Edraak!</p><p>But for real, we didn’t just create that bar to “give it a shot”. We wanted our learners to feel a bit curious to find out what this half full bar is about.</p><h3>The Problem</h3><p>If you’ve read my other post on <a href="https://medium.com/edraak-engineering/small-changes-huge-impact-with-a-bit-of-science-behind-that-3a9c5b3bb626?source=your_stories_page-------------------------------------"><strong>why &amp; how we changed our signup form</strong></a>, you probably know why we left some demographics information optional for new signups on the platform, which - in the end - resulted in less data/information about those users who leave their demographic details unfilled.</p><p>So, we decided to use gamification to fix this!</p><h3>The Solution?</h3><p>We released a new learner dashboard back in December, and due to the importance of the information we want to gather, we decided to allocate the top section of the header for a progress bar.</p><p>Being a new feature, the progress bar took a couple of rounds of <a href="https://medium.com/edraak-engineering/ready-set-test-the-process-of-usability-testing-bfc12a28a8f6?source=collection_home---1------4-----------------------"><strong>user testing</strong></a><strong>, </strong>we usually conduct these sessions with any new feature on the platform, in an effort to make sure the users understand its purpose and not to confuse it with learning progress for example. Another use of user testing was to identify “what &amp; how” of a CTA button placement should be on the bar.</p><p>User testing can tell you wonders! Even for small features like this, we noticed that users had different perceptions of the progress bar based on how it’s being filled (color density, dividing it into portions, etc.).</p><p><strong>How it Looked at the End?</strong></p><p>We grouped all the feedback from users and came up with a design that answers all questions we received from tested users.</p><p>Eventually, it looked like this:</p><figure><img alt="Progress bar partially filled" src="https://cdn-images-1.medium.com/max/1024/1*DBCX5TmlhVQH2frGVV8iCw.png" /><figcaption>Progress bar partially filled</figcaption></figure><p>The bar is clearly encouraging users to visit their profile page and fill their remaining information. Thus, not leaving the unfilled progress bar in front of their eyes which is annoying to their experience.</p><h3><strong>Show Me the Numbers!</strong></h3><p>Okay, enough information on the background of what we did, let’s see if it worked or not!</p><p>The new dashboard went live earlier this December, and by the time of writing this, 60 days have passed already with more than 140 thousand learners who experienced the new dashboard (since it is the default for 50% of new users only).</p><blockquote><strong>Numbers don’t lie! </strong>The progress bar decreased percentage of learners who leave demographics info unfilled by <strong>70%</strong>!</blockquote><p>In a bit more details, the case before was like this:</p><p>We had 78% of learners who fill their complete information and around 22% that leave some info blank on the signup form.</p><p>Those 78% are either filled during the signup of a learner on the platform or after the learners login to the platform and (by their own choice) visit their account settings page to fill these information.</p><p>Now with the progress bar, only less than 7% resist seeing a half full progress bar, resulting in 93% of learners with full details.</p><h3><strong>Why is this Important to us?</strong></h3><p>We don’t want learners to fill their info for the sake of having more details about our learners! In addition, we didn’t create the progress bar just to prove its effect on user interface. The info we need goes to reasons beyond that.</p><p>Whenever we analyze data to create better products, customize experiences for learners or to understand demographics behavioral differences those 20% of missing information always comes right in our face!</p><p>In some cases (when we do analysis based on countries breakdown), these 20% can bias the results in a way that the number one “Country” in Edraak’s platform isn’t actually the top country but a mere results of the missing information! But now? <strong>Not anymore!</strong></p><p>Now with less than 7% of missing information, our data is more accurate, tackles demographics differences in a more targeted manners and eventually a returned value to our learners!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e52c2f74d33" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/we-hate-progress-bars-here-is-another-proof-5e52c2f74d33">We Hate Half Full Progress Bars, Here is Another Proof!</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[How to Build RESTful APIs? The Unknown Hero Under The Hood (Part 2)]]></title>
            <link>https://medium.com/edraak-engineering/how-to-build-restful-apis-the-unknown-hero-under-the-hood-part-2-fd2190455d4a?source=rss----ffbe1b0e3b6c---4</link>
            <guid isPermaLink="false">https://medium.com/p/fd2190455d4a</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[flask]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Fahmi Al-Najjar]]></dc:creator>
            <pubDate>Sun, 17 Jan 2021 15:49:16 GMT</pubDate>
            <atom:updated>2021-01-27T20:32:42.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vGVKA5c_f6_6ORivdp7drA.jpeg" /></figure><p><a href="https://medium.com/edraak-engineering/how-to-build-restful-apis-the-unknown-hero-under-the-hood-part-1-4c1df16c0258">In Part 1</a>, we talked about how applications communicate and interact with each other, we said that each service has its own API and we use REST to provide a unified style of designing an API and to set a list of constraints to standardize how applications communicate with each other. We talked about the 6 main constraints of REST, and lastly, we discussed the benefits of REST.</p><h3>How to build a REST API?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*HIgma42-VdsuL9WXBsuC0A.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@nubelsondev">Nubelson Fernandes</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>Imagine that you are working in a big online learning platform and you have been requested to build a Course Service that provides CRUD (create, read, update, and delete) methods to deal with a course resource.</p><p>First, let’s go through DOs and DONTs, important principles, and best practices in RESTful APIs then I’ll walk you through hands-on steps on how you can build your RESTful API.</p><h4>RESTful API Best Practices</h4><ul><li><strong>Keep it simple</strong></li><li><strong>Use nouns instead of verbs</strong> unless you are based on business actions and you really need them</li></ul><pre># GOOD<br>/courses<br>/courses/&lt;int:course_id&gt;</pre><pre># BAD<br>/get_courses<br>/get_course/&lt;int:course_id&gt;</pre><ul><li><strong>Use URL parameters</strong> for filtering, pagination, ordering, and any other use case</li></ul><pre># GOOD<br>/courses?name=python&amp;page=1</pre><pre># BAD<br>/python_courses</pre><ul><li><strong>Use nested resources for data relationships<br></strong>For example, if you have many lessons for each course the URL would be as follows:</li></ul><pre># GOOD<br>/courses/88/lessons</pre><pre># BAD<br>/lessons</pre><ul><li><strong>Use the right HTTP methods</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*46e2a3bcNVA4yg82lGzJYQ.png" /><figcaption>CRUD operations for course resource</figcaption></figure><ul><li><strong>Use the right HTTP status codes<br></strong>There are many <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status">HTTP status codes</a> but the following are the most used ones:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IKqIeS2kSK80aZOi_Kmd8g.png" /><figcaption>Sample of HTTP Status Codes</figcaption></figure><ul><li><strong>Use pagination</strong><br>It’s highly recommended to use pagination in your API to prevent returning huge data. Let’s say that a client requested all courses, the result could be a massive response.</li><li><strong>Unify your API content format</strong><br>You should decide if your requests and responses will be in JSON or XML format.</li><li><strong>Handle errors</strong><br>You should return the HTTP status code that indicates what kind of error occurred with some informative details to eliminate confusion.</li><li><strong>API documentation</strong><br>You should provide your clients with clear API documentation to inform them about how they can communicate with your service. For each API endpoint, you should include endpoint URL, expected request data, expected headers, a sample of the response, and a list of errors that could happen when calling the endpoint. I would recommend <a href="https://swagger.io/">Swagger</a> as a good tool for generating API documentation.</li></ul><p>There are numerous ways of building a REST API but I would like to show you an example of my favorite one. Let’s walk through steps on how you can build a RESTful API for this service:</p><h4>Step 0: Installation</h4><ul><li>We’ll use Python3.x so make sure that you have <a href="https://www.python.org/">Python3.x</a> installed on your machine</li><li>We’ll use <a href="https://www.sqlite.org/index.html">SQLite</a> as it’s easy for this demonstration purpose</li><li>We’ll create a virtual Python environment for our application using <a href="https://docs.python-guide.org/dev/virtualenvs/#lower-level-virtualenv">virtualenv</a></li></ul><h4>Step 1: Set up the application</h4><ul><li>First, create a directory for this application called course_service , the structure of your application will look like this:</li></ul><pre>course_service<br>|-- app<br>|   |-- __init__.py     # App entry point<br>|   |-- api.py          # API endpoints<br>|   |-- errors.py       # API errors<br>|   |-- models.py       # App models<br>|   |-- configs.py      # App configurations<br>|-- requirements.txt    # App dependencies and requirements</pre><ul><li>Next, create a virtual environment for the application called venv :</li></ul><pre>$ cd course_service<br>$ virtualenv -p python3 venv</pre><ul><li>Activate the virtual environment:</li></ul><pre>$ source venv/bin/activate</pre><ul><li>Now add the application requirements to the requirements.txt file. The good thing about Flask that it’s a micro-library and you can add extensions to your application as you need.</li></ul><p>We’ll be using Flask microframework, Flask-Restful extension to add support for REST APIs, Flask-SQLAlchemy extension to add support for SQLAlchemy, Flask-Script to provide support for writing command-line scripts, Flask-Migrate to handle SQLAlchemy database migrations for the Flask application, marshmallow (ORM/ODM/framework-agnostic library) to convert complex data types, such as objects, to and from native Python datatypes, and marshmallow-sqlalchemy because Flask-SQLAlchemy integration requires it to be installed:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d5021d6019de5f2edbd4c14b616591af/href">https://medium.com/media/d5021d6019de5f2edbd4c14b616591af/href</a></iframe><h4>Step 2: Install application requirements</h4><p>Download and install all application requirements that we added to the requirements.txt file:</p><pre>$ pip install -r requirements.txt</pre><h4>Step 3: Configure the application</h4><p>Add the following configurations to the app/configs.py module, configurations might be database configs, debug mode, and so on:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e19b4f59bc8df27a5eeb326140ca75a/href">https://medium.com/media/1e19b4f59bc8df27a5eeb326140ca75a/href</a></iframe><h4>Step 4: Create errors module</h4><p>The app/errors.py module contains all errors that might occur in the API methods. There are two errors that might occur in the API methods, NoDataProvided which will be raised if a client didn’t send data with the request and CourseAlreadyExist if there is an existing course in the database with the same provided course name (course name is a unique field).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd7caba87b7684f0dc4ac9965513d13f/href">https://medium.com/media/dd7caba87b7684f0dc4ac9965513d13f/href</a></iframe><h4>Step 5: Create the application entry point</h4><p>The app/__init__.py module will be the entry point of our application, it initializes a new Flask application with the given configurations and it defines resource routing.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b6cd6b56592abf2015a6d88750213cd2/href">https://medium.com/media/b6cd6b56592abf2015a6d88750213cd2/href</a></iframe><p>As you can see, I’m connecting the API errors dictionary with the API object, it will tell the API class to handle the errors that are defined in the app/errors.py module. You just have to raise exceptions in the API methods and it will take care of returning the response for clients.</p><p>Both /courses/&lt;int:course_id&gt; and /courses URLs route to the CourseAPI class.</p><p>Flask provides a great command-line interface (CLI). But, it only supports three commands, such as flask routes that shows the routes for the app, flask run that runs a development server, and flask shell that runs a shell in the app context. We want to add an extra extension to the Flask CLI which is flask db in order to perform database migrations, the following line does that:</p><pre>Migrate(app=app, db=db)</pre><h4>Step 6: Create the models</h4><p>In the app/models.py module, create a simple Course model (resource) that has an id as the primary key and a name field. CourseSchema uses marshmallow to define the output format (serialization/deserialization) of a course object.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d1e44d60e05d78913ef89bb1b3d5228e/href">https://medium.com/media/d1e44d60e05d78913ef89bb1b3d5228e/href</a></iframe><h4>Step 7: Create API endpoints</h4><p>Flask-Rest provides a Resource class that defines routing from any given URL to the intended HTTP method. Define CourseAPI in the app/api.py module.</p><p>CourseAPI class will have 4 methods, a get method to handle course/s retrieve (either a list of courses or a specific course), a create method to handle course creation, a put method to handle updates for a specific course, and delete to delete a specific course.</p><p>As you can see, we’re using pagination in the get method to prevent returning a huge list of courses.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fee267162d50fbea55e0922e78ab81a/href">https://medium.com/media/2fee267162d50fbea55e0922e78ab81a/href</a></iframe><h4>Step 8: Run the application server</h4><ul><li>First, initialize the database for the application. This command creates a new migration directory:</li></ul><pre>flask db init</pre><ul><li>Next, generate migration scripts (Python scripts) for the new models with detected changes, as in our case, a migration script to create the courses table:</li></ul><pre>$ flask db migrate</pre><ul><li>Run the generated migrations to apply them to the database:</li></ul><pre>$ flask db upgrade</pre><ul><li>Finally, you are good to go:</li></ul><pre>$ flask run</pre><p>Try to manipulate a course resource using the CRUD-operations. You can use the basic <a href="https://www.geeksforgeeks.org/curl-command-in-linux-with-examples/#:~:text=curl%20is%20a%20command%20line,TELNET%2C%20LDAP%20or%20FILE).">CURL</a> command or any other tool like <a href="https://www.postman.com/">Postman</a>:</p><ul><li><strong>[GET, POST]:</strong> localhost:5000/api/courses</li><li><strong>[GET, PUT, DELETE]:</strong> localhost:5000/api/courses/{ID}</li></ul><p>I pushed the code of the application to Github, you can check it out at this link: <a href="https://github.com/Fahminajjar/rest-api-example">https://github.com/Fahminajjar/rest-api-example</a></p><h3>Conclusion</h3><p>In case you need to communicate superior, APIs are the way to go, but if you designed them badly it will increase confusion. So you should design them very well.</p><p>Hopefully, you can now build your own REST API using Flask. I would like to thank you for going through this article, don’t forget to give it a few claps if you like it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd2190455d4a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/how-to-build-restful-apis-the-unknown-hero-under-the-hood-part-2-fd2190455d4a">How to Build RESTful APIs? The Unknown Hero Under The Hood (Part 2)</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[How to Build RESTful APIs? The Unknown Hero Under The Hood (Part 1)]]></title>
            <link>https://medium.com/edraak-engineering/how-to-build-restful-apis-the-unknown-hero-under-the-hood-part-1-4c1df16c0258?source=rss----ffbe1b0e3b6c---4</link>
            <guid isPermaLink="false">https://medium.com/p/4c1df16c0258</guid>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[https]]></category>
            <dc:creator><![CDATA[Fahmi Al-Najjar]]></dc:creator>
            <pubDate>Tue, 12 Jan 2021 09:36:05 GMT</pubDate>
            <atom:updated>2021-01-22T19:23:39.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vGVKA5c_f6_6ORivdp7drA.jpeg" /></figure><p>We use technology with almost everything in our life, to communicate and socialize with friends and family, to purchase and buy things from stores, and to learn new things.</p><p>How does this happen? How does data get from one place to another? How different applications and devices communicate with each other to allow us to upload a video for our friends to watch on Facebook, to chat with family, or to enroll in an online course to learn something new?</p><p>APIs (application programming interfaces) help us achieve all of that, it’s the unknown hero under the hood. In this article, I will talk about the following:</p><ul><li><strong>Introduction to APIs </strong>— Part 1</li><li><strong>What is REST?</strong> — Part 1</li><li><strong>Why REST API?</strong> — Part 1</li><li><strong>Summary</strong> — Part 1</li><li><strong>How to build a REST API?</strong> — Part 2</li></ul><h3>Introduction to APIs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZMVmAT9HQwcys9nw3pl51g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@thejohnnyme">Nikola Mirkovic</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>A long time ago, car manufacturers were used to building cars as one function or entity, they manufacture the car engine, doors, wheels, and all other parts of the car by themselves. Then, they started to build each part in the car as a separate function independently, nowadays, the market is really huge, there are a lot of companies and manufacturers that are specialized in manufacturing car engines for example, and that’s the only thing they do, and there are other companies that are specialized in manufacturing car wheels and so on. This makes cars more perfect because each company focuses on one small part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*nwdU4pEGO1aQTs3JUw76eg.jpeg" /><figcaption>One Function VS Micro Functions — Image source: Experfy</figcaption></figure><p>In the software industry, we were developing software as one monolithic application, we faced a lot of problems back then but nowadays, we separate logical functionalities in one software into multiple logical independent units (we usually call them services), let’s take an online learning platform as an example, the following are the logical units for the online learning platform:</p><ul><li>Authentication service</li><li>Student enrollment service</li><li>Content building service</li><li>Learning management system</li></ul><p>The authentication service deals with user login, registration, and authorization logic. Student enrollment service deals with everything that is related to student enrollments in courses. The content building service deals with course content creation. The learning management system deals with student states, grades, and progress in courses.</p><p>As you can see each service has its own responsibilities, it only handles its part of the job, no one can touch any logic related to the other services. That’s cool, right?</p><p>Software services need to interact with each other to provide users with the intended full experience. APIs (application programming interface) is a way for applications to communicate with each other without having to know how other applications are implemented, this provides flexibility, simplification, and a big room for innovation.</p><blockquote>An application programming interface (API) is a computing interface that defines interactions between multiple software intermediaries. It defines the kinds of calls or requests that can be made, how to make them, the data formats that should be used, the conventions to follow, etc. It can also provide extension mechanisms so that users can extend existing functionality in various ways and to varying degrees.</blockquote><blockquote>— Wikipedia</blockquote><h3>What is REST?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p2X6bW3vM_tc90Pw6PVLKw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@tingeyinjurylawfirm">Tingey Injury Law Firm</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>Imagine that each application uses its own approach of building an API without unified standards, eventually, it will lead to a missy situation so we need to introduce some unified standards or a unified style of building APIs.</p><p>Thanks to REST, it provides a unified style of designing an API and it sets a list of constraints to standardize how applications communicate with each other. RESTful APIs allow clients to access and manipulate data using a textual representation of resources like XML and JSON.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*hMIqEMzV6ga93WL9HZEsyg.png" /><figcaption>JSON logo</figcaption></figure><p>Most of the RESTful APIs use JSON as a textual representation for resources. JSON (JavaScript Object Notation) is a lightweight data-interchange format, that is easy for humans to read and understand, at the same time it’s easy for machines to parse.</p><blockquote>Representational state transfer (REST) is a software architectural style that defines a set of constraints to be used for creating Web services. Web services that conform to the REST architectural style, called RESTful Web services, provide interoperability between computer systems on the internet. RESTful Web services allow the requesting systems to access and manipulate textual representations of Web resources by using a uniform and predefined set of stateless operations.</blockquote><blockquote>— Wikipedia</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*H8X2wNHa9Ry9vDlr44_Dqg.png" /><figcaption>Image source: Systango</figcaption></figure><p>Some people mix between HTTP and REST, they are different things. <strong>HTTP </strong>(<strong>Hypertext Transfer Protocol</strong>) is an application-layer protocol for transmitting hypermedia documents, such as HTML (Hypertext Markup Language). <strong>REST</strong> (<strong>Representational State Transfer</strong>) is a set of rules, that when followed, enable you to build a distributed application that has a specific set of desirable constraints, it uses HTTP to transport messages between applications.</p><p>Interacting with REST APIs often involves the use of CRUD-like functions because they are built around resources, which can be created, updated, read, and deleted. The best practice of using CRUD-like functions in REST is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*46e2a3bcNVA4yg82lGzJYQ.png" /><figcaption>CRUD operations for course resource</figcaption></figure><p>When we want to create a new resource we usually use the <strong>POST</strong> HTTP method, <strong>PUT</strong> method with updating a specific resource, <strong>DELETE</strong> method with deleting a specific resource, and <strong>GET</strong> method with retrieving either a list of resources or a specific resource.</p><p>In order to design a RESTful API you have to follow the following 6 constraints:</p><ul><li><strong>Client-server — </strong>By separating the user interface from the backend logic and database storage, we improve backend scalability and improve portability for the user interface.</li><li><strong>Stateless — </strong>Each request from the client to the server must contain all the necessary information without using any existing state context in the backend, each request cannot know anything about any other request.</li><li><strong>Uniform interface</strong> — Must decide an API interface for resources inside the application. Each resource in the application should have one URI only. All resources should be accessed through a common approach like the above CRUD methods. It’s used in REST in order to simplify things.</li><li><strong>Cachable — </strong>Resources must declare if they are cachable or not, caching shall be applied to them when applicable. Caching can be on the client-side or the server-side, it doesn’t matter.</li><li><strong>Layered system — </strong>Allows you to use layered system architecture, you can deploy your APIs to a server, data storage to another server, and do some other logic on a third server.</li><li><strong>Code on demand (optional) — </strong>Most of the time you will be returning resources in the form of JSON or XML but it’s allowed to return an executable code in REST to the client-side (e.g. a client can call the API to request a UI widget to render).</li></ul><h3>Why REST APIs?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQqwvugWZe2FnzNSpTWODg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cristian1">Cristian Escobar</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>Designing our API with REST constraints in mind will provide you with the following advantages:</p><ul><li><strong>Scalability</strong><br>Because the client-side is separated from the server-side, the application might be scaled easily without facing any challenges. Application services can remain stable while adapting to changes, upgrades, overhauls, and resource reduction.</li><li><strong>Flexibility and Portability</strong><br>Because application components are loosely coupled, the application will have the ability to adapt to possible or future changes in requirements, It is possible to migrate from one server to another at any time, it can adapt when external changes occur, and it can respond to uncertainty. Also, the frontend and the backend can be hosted on different servers.</li><li><strong>Independence</strong><br>Due to the separation between client-side and server-side, REST makes it easier for teams to develop multiple areas of an application independently, it offers the ability to try numerous environments during development because it always adapts to the working syntax and platform.</li></ul><h3>Summary</h3><p>So now you know how applications communicate and interact with each other, each service has its own API and we use REST to provide a unified style of designing an API and to set a list of constraints to standardize how applications communicate with each other. Also, you know the 6 main constraints of REST and we follow them to take the advantage of scalability, flexibility, portability, and independence.</p><h3>Next Part: How to build a REST API?</h3><p>In the <a href="https://medium.com/edraak-engineering/how-to-build-restful-apis-the-unknown-hero-under-the-hood-part-2-fd2190455d4a">next part</a>, we’ll go through DOs and DONTs, the important technical principles, and best practices in RESTful APIs. Then, we’ll walk through steps on how you can build a RESTful API using Flask microframework from A-Z.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c1df16c0258" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/how-to-build-restful-apis-the-unknown-hero-under-the-hood-part-1-4c1df16c0258">How to Build RESTful APIs? The Unknown Hero Under The Hood (Part 1)</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[The Learner Journey]]></title>
            <link>https://medium.com/edraak-engineering/the-learner-journey-608ecbdb7a04?source=rss----ffbe1b0e3b6c---4</link>
            <guid isPermaLink="false">https://medium.com/p/608ecbdb7a04</guid>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[surveys]]></category>
            <category><![CDATA[educational-technology]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Rahma Atallah]]></dc:creator>
            <pubDate>Sun, 27 Dec 2020 07:29:15 GMT</pubDate>
            <atom:updated>2020-12-27T07:43:42.936Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UfgjWNsCnRtTENe9QVoikg.jpeg" /></figure><p>Online courses are a journey on which learners willingly embark to empower themselves with valuable knowledge, so they may secure the personal, professional and academic success they aspire for.</p><blockquote>It is not an easy journey. Will power &amp; motivation are a must in order to reach the final destination — The success of completion.</blockquote><p>Learners undergo several stages to complete an online course or specialization. As MOOC providers, we work hand-in-hand to help them reach this final destination.</p><p>Education providers can best support learners by keeping their needs and challenges at the forefront. When I entered the world of online learning at <a href="https://go.edraak.org/lj/">Edraak</a>, it was clear that understanding learners inside out was the first step towards delivering personalized products with great end value.</p><p>When learners engage in online learning, their video viewership, assessment activity, and course surveys leave a trail of data, which educators can use to derive insights on their needs, challenges, and product satisfaction rate.</p><p>One way of doing this is to study learners’ activity data, which is stored in platform databases such as basic demographics, video and exercise activity. While this data lends a general overview, it still leaves many questions unanswered. For example, video engagement might tell us which topics a learner is interested in, but it won’t convey their real purpose for enrolling in a course. Low performance on a particular exercise shows us that learners are struggling at a certain point, but it doesn’t inform us what went wrong along the learning journey. There are other important open questions, like: How did they feel about the course structure design? Did they enjoy the activities? Is there something missing they want us to add in the future?</p><p>The most common practice to gather insights is surveys. However, a survey won’t deliver strategic insights unless designed and embedded carefully. At this juncture, we decided to assemble forces from different teams to determine:</p><ul><li>The questions that uncover learner needs and goals.</li><li>The optimal way for an online learning platform to design and present surveys to obtain the most reliable feedback from learners.</li><li>The reporting mechanism of survey data.</li><li>The value of the answers returned to different teams.</li></ul><p>Survey design</p><p><strong><em>Which key insights should online educators look for?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/0*Zx1UiiNH6NH8Jzdk" /></figure><p>To deliver substantial value to learners, we concluded the following insights were needed to map the learner journey:</p><ul><li><strong>Demographics:</strong> Understanding who our learners are by gathering data on their age, gender, occupation, and professional level enables us to cater better to our audience personas.</li><li><strong>Brand value and perception:</strong> Do learners trust the Edraak brand? What do they expect from it? What do they appreciate about the platform?</li><li><strong>Drivers and goals: </strong>What are learners’ intentions and objectives? Why are they joining Edraak specifically?</li><li><strong>Content satisfaction and experience: </strong>Are learners interacting with the different features on the platform? How do they rate the content quality?</li><li><strong>Challenges and behaviors: </strong>Gaining insights on the platform learner experience, preferred learning styles, most-used features, etc.</li><li><strong>Outcomes (impact): </strong>To what extent do our courses help learners achieve their goals? Was their motivation/driver fulfilled? What real-life impact did Edraak have?<strong> </strong>What did Edraak help them achieve? (though we kept this for the future) .</li></ul><p><strong>Silent caveats!</strong></p><p>Survey experts recognize the array of factors involved in survey design and that the methods through which responses are collected can affect their validity. Previously at Edraak, we embedded one survey at the beginning of the course and one at the end. This caused numerous issues:</p><ul><li>Pre-course surveys led to misleading results as learners had not yet experienced the content.</li><li>Post-course surveys introduced a bias in results, as respondents were typically interested in the course. This meant we were missing out on those who dropped out and understanding their reasons for doing so.</li></ul><p><strong><em>How did we solve this issue?</em></strong></p><p>We did something rather unusual. We designed a four-split survey to be filled in at the beginning of the course, at the end of week one, mid-way through the course and, lastly, upon its completion. After putting a lot of thought into this, we figured this was the best way to attain an overview of learners’ behaviors and course satisfaction.</p><p>Split 1:</p><ul><li>To be placed after the first video in unit 1.</li><li>This group of questions focuses on learners’ demographics and motivations/goals.</li><li>This split targets all course learners before anyone drops out and seeks to gather information on their main goals and reasons for enrolling in order to measure their fulfillment at the end of the course.</li></ul><p>Split 2:</p><ul><li>To be placed at the end of week 1 in unit 1.</li><li>This group of questions focuses on learners’ experiences and satisfaction with the course content and features.</li><li>This split targets learners who have viewed enough of the course content to evaluate it. Since the dropout rate usually increases after week 1, it is imperative that we gain insights from the largest number of learners regarding the course content and features.</li></ul><p>Split 3:</p><ul><li>To be placed midway through the course.</li><li>This group of questions focuses on learners’ challenges, behaviors, and satisfaction, as well as on their perception of the brand value.</li><li>This split targets learners who are interested in the course and have formed a good overview of the course strengths and weaknesses. This split contains many open-ended questions as the input from learners at this stage is highly beneficial.</li></ul><p>Split 4:</p><ul><li>To be placed towards the end of the course.</li><li>This group of questions focuses on learners’ overall satisfaction with the course and platform, as well as gauges their willingness to enroll in other Edraak courses.</li><li>This split secures insights on learners’ overall course experience and can be linked to the previous splits to assess which learning goals were met or missed.</li></ul><p><strong><em>Tough-To-Design Questions:</em></strong></p><p>As usual in surveys, we faced some difficulty designing questions for various reasons, such as the sensitivity of information. For example, we wanted to ask about the size of the company the learners worked at but were concerned that adding ‘small company’ as an option might cause some discomfort. Another concern was using words like small, medium, and large as they are subjective and might not yield reliable results.</p><p>How did we solve this? We designed answer options as per the below:</p><ul><li>1–5 employees</li><li>6–20 employees</li><li>21–50 employees</li><li>51–500 employees</li><li>500+ employees</li></ul><h3><strong>Visualization</strong></h3><p>Since the survey reports were meant as references, we decided to adopt an easy-to-understand infographic data visualization style using Google Data Studio. After blending data from the four splits, reports were produced for each course that contained the embedded surveys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*19rP1loo-JhipU0qV_nVdA.jpeg" /><figcaption>Split 1 survey results</figcaption></figure><p>An example of the benefits of data blends is identifying the relationship between learner goals and how much of the course they are willing to complete.</p><p>For example, 2% of learners who did not continue the course stated their main goal was to understand a single topic from the broader subject matter. Such insights helped course managers pinpoint the reason behind learners dropping out after the first week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F-JiIpN1u_JSsMj6t5mciQ.jpeg" /><figcaption>Cross Tabulation between survey splits</figcaption></figure><p>Another benefit of this survey structure was identifying course content elements that required improvement. This is something education providers strive for in order to deliver more value to learners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MUORjtnRPZtlrNhkKQuM5w.jpeg" /><figcaption>Evaluation of course elements</figcaption></figure><p><strong>Conclusion</strong></p><p>Education surveys present us with many Aha! moments that help us distinguish the weaknesses and strengths of each course. What’s next? Better learning designs, more personalized course topics and, all in all, better MOOCs! All of this is done with the aim of helping learners complete their journeys and achieve success.</p><blockquote>And at <strong>Edraak</strong> in particular, providing the most exciting learning experience and knowledge for those who seek it.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=608ecbdb7a04" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/the-learner-journey-608ecbdb7a04">The Learner Journey</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[Webpack — why, what & how]]></title>
            <link>https://medium.com/edraak-engineering/webpack-why-what-how-c1942a942647?source=rss----ffbe1b0e3b6c---4</link>
            <guid isPermaLink="false">https://medium.com/p/c1942a942647</guid>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Rowadz]]></dc:creator>
            <pubDate>Sun, 29 Nov 2020 08:15:01 GMT</pubDate>
            <atom:updated>2020-12-01T07:23:04.998Z</atom:updated>
            <content:encoded><![CDATA[<h3>Webpack — why, what, and how</h3><p>Giving webpack a small look</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fx7SVqdjZa5KCuAhnmgqBQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cooper301?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nick Cooper</a> on <a href="https://unsplash.com/s/photos/pipe?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>A background on modules — Simple example on why we might use webpack</h3><blockquote>JavaScript programs started off pretty small — most of its usage in the early days was to do isolated scripting tasks, providing a bit of interactivity to your web pages where needed, so large scripts were generally not needed. Fast forward a few years and we now have complete applications being run in browsers with a lot of JavaScript, as well as JavaScript being used in other contexts (<a href="https://developer.mozilla.org/en-US/docs/Glossary/Node.js">Node.js</a>, for example).</blockquote><blockquote>It has therefore made sense in recent years to start thinking about providing mechanisms for splitting JavaScript programs up into separate modules that can be imported when needed. Node.js has had this ability for a long time, and there are a number of JavaScript libraries and frameworks that enable module usage (for example, other <a href="https://en.wikipedia.org/wiki/CommonJS">CommonJS</a> and <a href="https://github.com/amdjs/amdjs-api/blob/master/AMD.md">AMD</a>-based module systems like <a href="https://requirejs.org/">RequireJS</a>, and more recently <a href="https://webpack.github.io/">Webpack</a> and <a href="https://babeljs.io/">Babel</a>).</blockquote><p>— <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules">source</a></p><p>In other simple words if you are running JavaScript in <a href="https://developer.mozilla.org/en-US/docs/Glossary/Node.js">Node.js</a> context you can split up your code into multiple files (modules) and include them in each other, for example:</p><pre>// ./main.js</pre><pre>const func = require(&#39;./util/funcs.js&#39;)<br></pre><pre>// ./util/funcs.js</pre><pre>module.exports = () =&gt; {<br>   // code that dose stuff<br>}</pre><p>In the above example, we have two files ./main.js and ./util.funcs.js and we exported an arrow function from the funcs.js file and imported it with the name func into main.js.</p><p>But remember this will run in <a href="https://developer.mozilla.org/en-US/docs/Glossary/Node.js">Node.js</a> context and if you want to run the code from main.js in the context of a browser, you might include it in a script tag like so:</p><pre>// ./index.html<br>&lt;html&gt;<br>   &lt;head&gt;&lt;/head&gt;<br>&lt;body&gt;<br>   &lt;script src=&quot;./main.js&quot;&gt;&lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>But when you open your index.html in your browser, you will see the following error message</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*OYTI_KgafqchzQOWrYmLrA.png" /><figcaption>The error message if you tried to use the require function in a browser</figcaption></figure><p>That happened because the require function does not exist in any browser, and to solve this we can use <a href="https://webpack.js.org/">webpack</a>.</p><p>The above issue is one of the reasons why we might use webpack and other reasons:</p><ul><li>using webpack allows us to use <a href="http://npmjs.com/">NPM</a> packages inside our frontend application (<a href="http://npmjs.com/">NPM</a> packages were made for <a href="https://nodejs.org/">Node.js</a>)</li><li>we can use it to compile and build react applications to make them run inside browsers ( since browsers can’t understand jsx )</li></ul><h3>What Is Webpack</h3><blockquote>At its core, webpack is a <em>static module bundler</em> for modern JavaScript applications. When webpack processes your application, it internally builds a <a href="https://webpack.js.org/concepts/dependency-graph/">dependency graph</a> which maps every module your project needs and generates one or more <em>bundles</em>.</blockquote><p>— <a href="https://webpack.js.org/concepts/">source</a></p><p>To make this simpler webpack will look into your js code and see all the file that depend on each other and build a <a href="https://webpack.js.org/concepts/dependency-graph/">dependency graph</a> and by building this it can bundle your js code (put the code for the files that depend on each other in the same output file)</p><p><em>So in our example above </em><em>main.js depends on </em><em>funcs.js so webpack will put the code from </em><em>funcs.js into </em><em>main.js ( </em>roughly speaking ).</p><p>Then after bundling the js code webpack will output a file that includes all the bundled (combined) code which you can put into your &lt;script&gt; tag.</p><h3>How to use Webpack</h3><p>Before starting using webpack we need to have <a href="https://nodejs.org/">Node.js</a> and <a href="http://npmjs.com/">NPM</a> installed on our machine, and that’s because:</p><ul><li>webpack runs in a <a href="https://nodejs.org/">Node.js</a> context</li><li>to install it we use <a href="http://npmjs.com/">NPM</a></li></ul><p>Let’s start by creating an <a href="http://npmjs.com/">NPM</a> project, go to any directory you want then run the following command in your terminal</p><pre>$ npm init -y</pre><p>this will generate a pacakge.json inside the directory and the -y is to answer “yes” to all the questions npm will ask us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONqCMWQC0iB6q1ja2GPptg.png" /><figcaption>after running npm init -y</figcaption></figure><p>now after we have our package.json file we can install any npm package we want so let’s install <a href="https://www.npmjs.com/package/webpack">webpack</a>, <a href="https://www.npmjs.com/package/webpack-cli">webpack-cli</a> and <a href="https://www.npmjs.com/package/rxjs">rxjs</a></p><pre>$ npm i webpack webpack-cli -D</pre><p>-D means it’s a Develpment dependency which is a way to say that this package help automates and develop the application not to build the actual functionality for it.</p><blockquote>webpack will use webpack-cli that’s why we installed it as well</blockquote><pre>$ npm i rxjs</pre><p>now let’s create the following empty files [main.js — index.html — util/funcs.js], our project will look like this:</p><pre>.<br>├── index.html<br>├── main.js<br>├── package-lock.json<br>├── package.json<br>└── util<br>    └── funcs.js<br>└── node_modules</pre><blockquote>webpack and rxjs are inside <em>node_modules</em></blockquote><p>now to hook webpack we need to create an npm script that runs it from the node_modules folder, so in your package.json change the script object to look like this</p><pre>&quot;scripts&quot;: {<br>   &quot;dev&quot;: &quot;webpack --config webpack.config.js&quot;<br>}</pre><p>by adding this npm script, we can run npm run dev to tell webpack to bundle our project based on the configuration we will add inside a file called webpack.config.js.</p><p>here is the webpack.config.js file and in the next points I’ll explain each part of it.</p><pre>const { join } = require(&#39;path&#39;)</pre><pre>module.exports = {<br>    entry: {<br>        main: join(__dirname, &#39;main.js&#39;),<br>    },<br>    output: {<br>        filename: &#39;[name].js&#39;,<br>        path: join(__dirname, &#39;dist&#39;),<br>    }<br>}</pre><p>Remember that webpack runs in a nodejs context so I can use the require function to load the join function from the path built-in module in nodejs ( it’s a function that makes it easy to build file system paths without worrying about the operating system or / \ characters)</p><p>Your webpack file should export an object that contains information about how webpack should build your files ( if you think about it webpack will read this object by requiring your file )</p><p>In that object we have 2 properties:</p><ul><li><a href="https://webpack.js.org/concepts/entry-points/"><strong>entry</strong></a>: this is where webpack will start to build the <a href="https://webpack.js.org/concepts/dependency-graph/">dependency graph</a>, you can have multiple entry points and for each entry point webpack will create an output file.</li><li><a href="https://webpack.js.org/configuration/output/"><strong>output</strong></a>: this is the configuration for each output file webpack will do, so each file will be named as the value from filename property which is [name].js and this [name] is a placeholder that points to the current file being processed, so in our case we will have a file called main.js as an output file, and the path property is where to put the bundled files.</li></ul><blockquote>__dirname is always the directory in which the currently executing script resides</blockquote><p>so let’s put the following code in util/funcs.js</p><pre>export const sayHi = () =&gt; {<br>   alert(&#39;hi&#39;)<br>}</pre><pre>export const sayBye = () =&gt; {<br>   alert(&#39;bye&#39;)<br>}</pre><blockquote>note that we are using ES6 module system ( feel free to use Commonjs (require) or ES6 modules )</blockquote><p>in our main.js</p><pre>import { sayBye, sayHi } from &#39;./util/funcs&#39;</pre><pre>sayHi()<br>sayBye()</pre><p>in our index.html</p><pre>&lt;!DOCTYPE html&gt;<br>   &lt;html lang=&quot;en&quot;&gt;<br>   &lt;head&gt;<br>     &lt;title&gt;webpack&lt;/title&gt;<br>   &lt;/head&gt;<br>&lt;body&gt;<br>   &lt;script src=&quot;./dist/main.js&quot;&gt;&lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>now run npm run dev you will see the following output</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-mQTiDBg8SNx8-QMFnyOWA.png" /><figcaption>after running npm run dev</figcaption></figure><p>go to ./dist/main.js you will notice that all the dependency code have been added to the file!</p><p>./dist/main.js content</p><pre>(()=&gt;{&quot;use strict&quot;;alert(&quot;hi&quot;),alert(&quot;bye&quot;)})();</pre><p>now if you opened your index.html you will have 2 alerts popping up.</p><p>Remember that we installed <a href="https://www.npmjs.com/package/rxjs">RxJs</a> so let’s import a couple of functions from it and bundle our js again</p><p>our util/funcs.js will stay the same and I’ll create a new file util/rxjs.js with the following content</p><pre>import { delay } from &#39;rxjs/operators&#39;<br>import { of } from &#39;rxjs&#39;</pre><pre>export const delayedHi = of(&#39;hi..&#39;).pipe(delay(2000))</pre><p>and in our min.js</p><pre>import { sayBye, sayHi } from &#39;./util/funcs&#39;<br>import { delayedHi } from &#39;./util/rxjs&#39;<br>import { repeat } from &#39;rxjs/operators&#39;</pre><pre>sayHi()<br>sayBye()</pre><pre>delayedHi.pipe(repeat(3)).subscribe(console.log)</pre><p>Now run npm run dev and open the index.html in a browser, you will see that everything works fine, and this is a good enough intro for webpack and how to bundle your project.</p><blockquote>give your <em>./dist/main.js</em> a look, cool right?</blockquote><p>Notice here that we created our own ES6 modules util/funcs.js and imported functions from node_modules (Rxjs) and run all of that after bundling on a browser which is very cool.</p><blockquote>if you writing the code with this atricle you might notcied that writing npm run dev over and over again is annoying, to fix it just put watch: true in the webpack exported object</blockquote><p><em>Since we moved the basic out of the way, let’s talk more about some intermediate subjects in webpack</em></p><h3>Webpack Loaders</h3><blockquote>Out of the box, webpack only understands JavaScript and JSON files. <a href="https://webpack.js.org/concepts/loaders/">Loaders</a> allow webpack to process other types of files and convert them into valid modules that can be consumed by your application and added to the dependency graph.</blockquote><p>If you read that carefully, it means we can import another type of files using loaders for example</p><ul><li><a href="https://webpack.js.org/loaders/sass-loader/">SASS loader</a> allows you to load your scss into js and the styles will apply to the DOM ( you might have seen this in react)</li><li><a href="https://webpack.js.org/loaders/url-loader/">URL loader</a> allows you to load images into your js and it does that by converting the images to base64 while bundling</li></ul><p>There are a lot of loaders for webpack which allows you to customize it in a very unique way, and I’ll give you now an example of using the <a href="https://webpack.js.org/loaders/sass-loader/">SASS loader</a>.</p><h4>Using SASS loader ( import our scss files to our js code )</h4><p>we’ll work on the same project and create a file in the following path scss/main.scss and add the following content to it</p><pre>$color: #000;<br>body {<br>   background: $color;<br>   h1 {  <br>       font-size: 200px;<br>   }<br>}</pre><p>now install the <a href="https://webpack.js.org/loaders/sass-loader/">SASS loader</a>, <a href="https://github.com/sass/dart-sass">dart-sass</a> (which will be used by the SASS loader), <a href="https://webpack.js.org/loaders/style-loader/">style-loader</a> and <a href="https://webpack.js.org/loaders/css-loader/">css-loader</a></p><pre>$ npm install sass-loader sass style-loader css-loader -D</pre><p>then go to your webpack.config.js and add the code for the loader</p><pre>const { join } = require(&#39;path&#39;)</pre><pre>module.exports = {<br>    entry: {<br>        main: join(__dirname, &#39;main.js&#39;),<br>    },<br>    output: {<br>        filename: &#39;[name].js&#39;,<br>        path: join(__dirname, &#39;dist&#39;),<br>    },<br>    module: {<br>       rules: [{<br>          test: /\.s[ac]ss$/i,<br>          use: [<br>           &#39;style-loader&#39;, <br>           &#39;css-loader&#39;, <br>           &#39;sass-loader&#39;,<br>          ]<br>       }]<br>    }<br>}</pre><p>Notice the only change is inside the module property and for each loader you have you will put its rules there inside the module.rules array</p><p>Now for each file that is being processed by webpack and matches the regex in the test property webpack will pass it to the correct loader in the use array</p><p>Here is the purpose of each one of these loaders</p><ul><li><strong>style-loader: </strong>Inject CSS into the DOM.</li><li><strong>css-loader: </strong>will resolve your imported css files</li><li><strong>sass-loader</strong>: Loads a Sass/SCSS file and compiles it to CSS</li></ul><p>now go to your main.js and import the main.scss file</p><pre>import { sayBye, sayHi } from &#39;./util/funcs&#39;<br>import { delayedHi } from &#39;./util/rxjs&#39;<br>import { repeat } from &#39;rxjs/operators&#39;<br>import &#39;./scss/main.scss&#39;</pre><pre>sayHi()<br>sayBye()</pre><pre>delayedHi.pipe(repeat(3)).subscribe(console.log)</pre><p>now run npm run dev</p><p>you will see that the styles from the .scss file has been applied.</p><p>Another important loader is <a href="https://github.com/babel/babel-loader">babel-loader</a> which compiles your js code to old versions so it will run in almost all browsers ( I think you can add this loader by yourself now )</p><h3>Other Webpack concepts</h3><p>we barely scratched the surface of webpack features and I recommend that you read more about</p><ul><li><a href="https://webpack.js.org/concepts/plugins/">Plugins</a> I’ll recommend seeing <a href="https://www.npmjs.com/package/webpack-dashboard">webpack-dashboard</a> and <a href="https://www.npmjs.com/package/webpack-build-notifier">webpack-build-notifier</a></li><li><a href="https://webpack.js.org/concepts/module-resolution/">Module Resolution</a></li><li><a href="https://webpack.js.org/concepts/hot-module-replacement/">Hot Module Replacement</a></li><li><a href="https://webpack.js.org/guides/tree-shaking/">Tree Shaking</a></li><li><a href="https://webpack.js.org/guides/entry-advanced/">Advanced entry</a></li><li><a href="https://webpack.js.org/guides/typescript/">TypeScript</a></li><li><a href="https://webpack.js.org/guides/dependency-management/">dependency-management</a> — this one is very cool</li></ul><h3>End &amp; Final Notes</h3><blockquote>The good news is that modern browsers have started to support module functionality natively, [….]. This can only be a good thing — browsers can optimize loading of modules, making it more efficient than having to use a library and do all of that extra client-side processing and extra round trips.</blockquote><p>— read more about this <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules">here</a> and give the support chart a look <a href="https://caniuse.com/es6-module">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1942a942647" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/webpack-why-what-how-c1942a942647">Webpack — why, what &amp; how</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[Design Sprint: How to turn ideas into solutions! (Part 1: overview)]]></title>
            <link>https://medium.com/edraak-engineering/design-sprint-how-to-turn-ideas-into-solutions-part-1-overview-1b9c15fe076f?source=rss----ffbe1b0e3b6c---4</link>
            <guid isPermaLink="false">https://medium.com/p/1b9c15fe076f</guid>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[design-sprint]]></category>
            <category><![CDATA[prototyping]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Salah Alomari]]></dc:creator>
            <pubDate>Wed, 25 Nov 2020 08:48:25 GMT</pubDate>
            <atom:updated>2020-11-25T08:48:25.235Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever had a great idea that just makes sense but when the time came to build a solution out of it you found yourself clueless? Well you are not alone!</p><blockquote>“<strong>Ideas are cheap</strong>, <strong>execution is everything</strong>.” — Chris Sacca, Investor in Twitter &amp; Uber.</blockquote><p>As Chris Sacca once said “<strong>Ideas are cheap</strong>, <strong>execution is everything</strong>.”, and I agree, anyone can have a great idea, however only few people can turn ideas not only into solutions but into profitable businesses. Think how many people thought of a facebook and even tried to implement it, yet Zuckerberg pulled it off. This is why I laugh whenever someone refuses to share an idea fearing someone might steal it. Well, unless your idea is so unique and innovative that you can actually patent it, then it is the robustness of your execution that can place you in a league of your own.</p><p>You might ask yourself why? What makes a product successful and another not so much? Well, in this article I will be highlighting a process used at most of the big tech giants, invented at Google by Jake Knapp, perfected with more than 150 startups at GV, then shared with the world in the bestselling book Sprint.</p><p>According to GV:</p><blockquote>The sprint is a five-day process for answering critical business questions through design, prototyping, and testing ideas with customers. Developed at <a href="http://gv.com/">GV</a>, it’s a “greatest hits” of business strategy, innovation, behavior science, design thinking, and more — packaged into a battle-tested process that any team can use.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*pM2kaETM2smQzZut" /></figure><p>Design Sprint is great because it makes your product development better, cheaper, and faster. It can lead you to what the market needs before you even write a line of code.</p><blockquote>As Peter Thiel wrote in Zero to One:</blockquote><blockquote><strong>If your product requires advertising or salespeople to sell it, it’s not good enough: technology is primarily about product development, not distribution.</strong></blockquote><p>The brilliance of this process is its ability to converge a wide band of perspectives into a shared vision that can be measured and tested.</p><p>But isn’t that brainstorming. Well in a way yes, but also no. Brainstorming in a traditional sense is a group of experts behind closed door who meet for a set amount of time to just throw ideas around and decide on what is best. The problem with that is many people who are shy or unsure will never be heard, and the loudest ideas will be picked, and you know confident doesn’t mean best, an ignorant is usually pretty confident.</p><p>What the design sprint does, is it created balance between individual and group contributions, and it levels up the voices in the room achieving true democracy in electing our best MVP.</p><h3>So why should you listen to me?</h3><p>To give you dear reader a little bit of context, I am a software engineer and a tech lead whose been working at <a href="http://edraak.or/">Edraak</a> for 4 years. In 2017, Edraak won a $3-million grant from Google.org, complemented with engagement from Googlers to provide product design expertise to develop an online learning platform catering to school-aged children across the Arab world.</p><p>Through this collaboration, Edraak’s engineering team, myself included, worked alongside product design and UX experts from Google to prototype solutions in online education.</p><p>We collaborated for 3 weeks through a process that was new to us back then, called the design sprint. Widely used at Google and many tech leaders in silicon valley and across the globe, design thinking and design sprint revolutionized our way of thinking and work process. Edraak was never the same after that.</p><p>Since then, I alongside my colleagues, made design thinking our culture and our “de facto” process of elevating our tech stack. Almost every product has a <a href="https://www.productplan.com/glossary/product-requirements-document/">PRD</a> (Product Requirement Document), must be <a href="https://www.hotjar.com/usability-testing/">user tested</a>, and should be evaluated after launch. After 2 years of iterating on our process and outputs, we could finally say that our work is data driven, and our interface is user driven. We even used design thinking and the design sprint process to come up with technical solutions to complex problems, and yes I mean code.</p><p>In this article, you won’t find a recipe for building a successful product, but having design thinking, agile thinking, and robust process are definitely decisive factors in determining your competitiveness in the fast paced culture that we call tech. Add to that genius innovation and you got yourself a future.</p><h3>Design Thinking</h3><p>When we talk about Design Sprint we must talk about design thinking. Design thinking is a mentality from which one can build products that address target customer problems in a superior manner.</p><blockquote><a href="https://www.interaction-design.org/literature/topics/design-thinking">Design thinking is a non-linear, iterative process that teams use to understand users, challenge assumptions, redefine problems and create innovative solutions to prototype and test. Involving five phases — Empathize, Define, Ideate, Prototype and Test — it is most useful to tackle problems that are ill-defined or unknown.</a></blockquote><p>Design sprint is a design thinking framework that teams can use to achieve the purpose. The team that will be working on the problem during the design sprint must possess certain qualities.</p><p>A team set to solve someone’s problem must first <strong>empathize </strong>with whom they’re building the product for. How else could you build a solution if you don’t understand the pain of your customer. Drawing from that position, a <strong>creative</strong> team can devise realistic innovative solutions. <strong>Rationality</strong> is an important trait of the product development team as solutions need to be implemented and operated, otherwise all the effort goes in vain.</p><h3>The 5 day process</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*Q5bMOZ2Ioi0xdQqYU4V2NA.png" /><figcaption><em>Image Source: </em><a href="https://www.freshtilledsoil.com/getting-the-most-out-of-your-design-sprint/"><em>FreshTilledSoil</em></a></figcaption></figure><p><strong>Day 0. Before the sprint (Preparations)</strong></p><p>To start a design sprint you need to have the right team to work on the right challenge in a suitable space and time where interruptions are nearly non existent. The team will be spending a lot of time sketching, writing, conducting interviews and presentations, and that must be prepared for.</p><p>Once you have it all set up, it is time to get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vmLJs3frxRa2-OUj" /><figcaption>Photo by <a href="https://unsplash.com/@gautamlakum?utm_source=medium&amp;utm_medium=referral">Gautam Lakum</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Day 1. Understand the problem</strong></p><p>The first day of the sprint is all about understanding the problem to reach a shared perspective among the team. In your first design sprints you will be tempted to think of solutions at this stage, please don’t … day 1 is all about the user. At the end of the day, the team should have a comprehensive understanding of the users and the problems they are set to solve.</p><p>There is a concept in design sprint that is called <strong>start at the end. </strong>The idea is to have a future desired outcome, a goal which we aim to reach through our engagement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AyDBwIZIwpzy_G2_" /><figcaption>Photo by <a href="https://unsplash.com/@startaeteam?utm_source=medium&amp;utm_medium=referral">Startaê Team</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Day 2. Sketch solutions (Diverge)</strong></p><p>Next is solutions. This day is all about coming up with ideas that will become the building blocks of the final prototype that you will test on day 5.</p><p>At the start of day 2, the team will do some digging on how other products in the market are trying to solve the problem. Afterwards the team will do series of exercises to put ideas into paper and sketch! Day 2 is all about sketching, because sketching will help you take an abstract idea and make it concrete. This will make it easy to evaluate and decide on direction (In day 3).</p><p>Each team member will work on their own sketches. Nothing fancy, just enough to express ideas in a clear way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q2g2De9qbMCbmemu" /><figcaption>Photo by <a href="https://unsplash.com/@gentlestache?utm_source=medium&amp;utm_medium=referral">Bonneval Sebastien</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Day 3. Decide on solutions (Converge)</strong></p><p>This day, the team will come together to decide on the ideas they sketched on day 2. Rather than a decision meeting where discussion flare around the room, it is done in a structured series of exercises where get the time to review the notes and sketched from before then start voting on the ideas they and don’t like.</p><p>Afterwards, each team member will have time to discuss and critique to weight in their expert opinions. Then we are left with a filtered set of ideas that we would like to move forward.</p><p>These ideas (sketches) will be organized and stitched into a blue print (The storyboard) that we will use to prototype the experience on the next day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U_xxmVXzkmAXADlycYzggg.png" /></figure><p><strong>Day 4. Prototype</strong></p><p>The fourth day is where all your ideas and sketches will come together to create a prototype. A facade that will make it easy for your customers to experience your comprehensive solution and give you feedback.</p><p>Creating a prototype in a single day is not easy and many professionals will tell you its impossible!</p><p>All you need to do is build a realistic facade that you can put in front of customers, nothing fancy. You also need to pick the right tools that will enable you to rapidly produce the intended design, and this also depends on the skills you have on the team.</p><blockquote>Divide and conquer</blockquote><p>The idea is to breakdown the job among the team. You will need a writer, an asset collector who will collect the different stock imagery, icons, and other things you need for your prototype, and a stitcher who puts it all together.</p><p>At the end of the day, you will have a working prototype which you will test with the team to correct any mistakes and fine tune the prototype.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*d3gycd6hgBLGaKa_" /><figcaption>Photo by <a href="https://unsplash.com/@halacious?utm_source=medium&amp;utm_medium=referral">Halacious</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Day 5. Verify</strong></p><p>The final day! Today you will put your solution to the test. You have been working hard since the beginning of the week and now it’s time to realize the risks and devise an action plan through empirical data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jYEUfeNx8GQnMUeq" /><figcaption>Photo by <a href="https://unsplash.com/@uxindo?utm_source=medium&amp;utm_medium=referral">UX Indonesia</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this day, you will bring in your customers, usually 5 are enough, and you will conduct a series of interviews with customers as they try and experience your prototype. The rest of team will be watching from afar silently taking notes.</p><p>As you are done with the interviews, you will put all the notes on the wall and look for patterns to conclude what went wrong and what went right for the prototype.</p><p>From there you can devise a robust plan on what to do next. Whether its another iteration on the prototype, or an implementation plan, or design, every situation is different.</p><p>The great thing is that in just 5 days you moved from knowing nothing about a problem to having a solid MVP and a plan to build a solution for your customers.</p><p>… <strong>Final Thoughts</strong></p><p>The concepts and values conveyed through design thinking and embodied in design sprint go beyond the 5 day process. If you live and work by these values, your product development will always be superior, and you will find yourself close to the customer being able to serve the best way you could.</p><p>In future articles, I will be presenting a detailed case study of a design sprint. Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b9c15fe076f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/design-sprint-how-to-turn-ideas-into-solutions-part-1-overview-1b9c15fe076f">Design Sprint: How to turn ideas into solutions! (Part 1: overview)</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[2 EdTech Wrong-Turns we should Immediately Stop Taking]]></title>
            <link>https://medium.com/edraak-engineering/2-edtech-wrong-turns-we-should-immediately-stop-taking-c2b46c05047f?source=rss----ffbe1b0e3b6c---4</link>
            <guid isPermaLink="false">https://medium.com/p/c2b46c05047f</guid>
            <category><![CDATA[edtech]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[online-education]]></category>
            <dc:creator><![CDATA[Sherif Halawa]]></dc:creator>
            <pubDate>Sat, 14 Nov 2020 16:02:40 GMT</pubDate>
            <atom:updated>2020-11-14T16:02:38.603Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZ5JFnbWVrf1byrKpTr-8Q.jpeg" /></figure><p>Educational technology (EdTech) is one of the most fulfilling areas one can work in, but it can sometimes feel like driving in a crowded new city. You’re trying to reach an unknown destination (there’s no Google Maps for EdTech yet, but wouldn’t that be cool?), and you need to make fast lane changes and take sudden turns. But the street around you is crowded, and not everyone is going your same way. Others are not letting you change lanes. So, you’re missing turns, and you feel like never getting there. You feel that you want to get somewhere, but others do not really care.</p><p>This problem is as true in the Middle East as it is in other parts of the world. Whenever I speak with someone who aspires to change how people teach or learn, there’s always deep enthusiasm and an eye-glow at the start! Months later, you hear what you fear: “No one cares about what I’m doing!”</p><p>How can experts and bigger EdTech organizations, the busses and trucks on the street, help rising EdTech enthusiasts take the right turns and get somewhere? There are many ways to support, but I want to focus on one: openly sharing EdTech lessons-learned. What have we done that has worked or not worked? If it worked, how? If no, why? In our crowded city, these lessons would be like traffic signs leading fresh EdTech developers to success, and warning them of dead-ends not to turn into.</p><p>At <a href="https://go.edraak.org/edtech/">Edraak إدراك,</a> we have been developing EdTech in the Middle East since 2014. We built features that worked, and others that didn’t. We learned a lot from our experience, and from others. We want to share 2 particular street turns we learned to try to avoid.</p><h3>Warning — Steep Road: Learning Tools that are Difficult to Adopt</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wWo6NgRKwumP3h5Z" /><figcaption>Photo by <a href="https://unsplash.com/@miteneva?utm_source=medium&amp;utm_medium=referral">Maria Teneva</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Learners are pragmatic … in a good way. They learn to achieve a certain goal, as small as passing a test or writing an email, or as big as graduating with honors or making impact where they live. However, they have limited time and resources to spend on learning. Design your ed-tech product to integrate with learners’ goals as easily as possible. Help them fulfill their goals with minimum setup and effort. For example, a success factor in writing tools like Grammarly is that you learn to write better, while you are writing your emails and getting your actual work done. You don’t need to set time aside to learn. Learning is happening on-the-go.</p><p>Not everything integrates as seamlessly. Nonetheless, the principle continues to hold strongly. Delivering educational content? Think about how discoverable your content is. Can learners learn the exact bit they need using a single Google search, for example, that takes them to your product? Minimize the time your learner needs to understand your product and access it. Your content builds good reputation fast this way.</p><p>This lesson is not black-or-white, though. Products that need reasonably steep onboarding, or even learners to change their routines to use your product, do exist. Sometimes people spend months learning a tool! But they do it when there is clear proportional value to them. Road incline is not always a bad thing. It’s sometimes what people have to go through to get that amazing view of the city from up above. So make sure your users know what awaits them at the end of the road.</p><h3>Warning — Dead-end: Fancy Learning Tools with little End-Value</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lNxkUWokLubclPW0" /><figcaption>Photo by <a href="https://unsplash.com/@purzlbaum?utm_source=medium&amp;utm_medium=referral">🇨🇭 Claudio Schwarz | @purzlbaum</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Have you built an AI-based learning tool? Not yet?! You’re the only person I know who hasn’t! The EdTech community sources a lot of its excitement (and funding) from playing with new advances in other technologies, such as AI.</p><p>The excitement around building fancy tools using shiny technologies is both passion and poison in EdTech. Sometimes the desire to use a particular shiny technology steers the product in a way that makes it deliver little to no end-value. Think, building an AI product just to build an AI product.</p><p>When choosing new technologies to solve a problem, we learned to ask the following 2 questions in this exact order:</p><ol><li>Is this problem important to solve? Is there enough end-value in solving it, or are there work-arounds?</li><li>Is the new technology we’re considering the best tool to solve it? Or is there something simpler that can do as good, or even better?</li></ol><p>Oftentimes, we see new developers excited about the technology tool itself, that they invest in learning and using it, and actually in building a semi-finished product around it sometimes, without validating the value of this product. User testing is as critical in EdTech as potentially saving learners years of wasted time and efforts, and channeling millions of dollars of investment in better directions. Check out our post on “<a href="https://medium.com/edraak-engineering/ready-set-test-the-process-of-usability-testing-bfc12a28a8f6">Usability Testing</a>”, and imagine testing educational content and software this way to confirm that they drive learning gain, iterating until we get a version that works, and only then investing big sums into implementing the full product.</p><p>We can user-test educational content or tools using methods as simple as a paper-drawing or a quick digital mock-up. This leaves us some manual work to do, but it is super-easy and quick to iterate on until we reach the right design. Results of such simple testing can help us decide to go forward, change something early enough, or abandon our current direction completely. There are hundreds of ways we can think of applying AI in a certain EdTech product. How many work? Maybe one, maybe none. Maybe a non-AI approach is better after all. This is what’s important to learn fast and cheap.</p><p>The problem is that hype around fancy technologies makes us look for problems that fit the technology tool and run fast to use them, rather than starting by asking: what is the most pressing problem I should solve now, and what’s the easiest way to solve it?</p><p>This, definitely, shouldn’t be mistaken with the value of learning new technology tools and what they can do. Knowing and mastering more tools helps us solve more and tougher problems.</p><p>So all we intend to say is: Fancy but useless product: Bad! Useful product: Good, regardless of how fancy it is. It’s an easy lesson to learn, but also an easy lesson to overlook.</p><p>There’s no Google Maps for EdTech yet, but wouldn’t that be cool? Well, why wait? We’re building an EdTech “city map” to share with the World and help EdTech enthusiasts navigate what’s unknown to them through the experience of others. Do you have an EdTech (or software product) experience you think can help? Anything that drove more end-user value? Anything you tried that didn’t work? Please comment below. Know someone who can contribute valuable experience? Please mention them and share this post with them. We’ll compile and structure your contributions and publish the “EdTech City Map — V1.0” once we hit 20 contributions, and publish periodic expanded versions afterwards.</p><p>There’s no Google Maps for EdTech yet, but why not build something quick together?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2b46c05047f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/2-edtech-wrong-turns-we-should-immediately-stop-taking-c2b46c05047f">2 EdTech Wrong-Turns we should Immediately Stop Taking</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----ffbe1b0e3b6c---4</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>
        <item>
            <title><![CDATA[Small Changes, Huge Impact! With a Bit of Science behind That!]]></title>
            <link>https://medium.com/edraak-engineering/small-changes-huge-impact-with-a-bit-of-science-behind-that-3a9c5b3bb626?source=rss----ffbe1b0e3b6c---4</link>
            <guid isPermaLink="false">https://medium.com/p/3a9c5b3bb626</guid>
            <category><![CDATA[a-b-testing]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[user-interface]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[user-experience-design]]></category>
            <dc:creator><![CDATA[Omardabbas]]></dc:creator>
            <pubDate>Sat, 31 Oct 2020 16:44:04 GMT</pubDate>
            <atom:updated>2020-12-20T13:36:06.472Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rur3q_Gp8NCZvp-EK0-QOg.jpeg" /><figcaption>Image by <a href="https://pixabay.com/users/pexels-2286921/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1841158">Pexels</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1841158">Pixabay</a></figcaption></figure><h3>Small Changes, Huge Impact! <em>How design changes can make or break a website!</em></h3><p>Working on a platform that garners millions of page views per month is exciting… yet daunting!</p><p>On the one hand, we gain access to mountains of data, which we can mine and analyze. On the other, we understand that even the smallest of changes can trigger results we never expected!</p><p>At <a href="https://edraak.org/">Edraak</a>, our target audiences vary from teenagers (and younger) to older users in their sixties or seventies — a key aspect we keep in mind when implementing any new change.</p><p>In this blog post, we will examine two changes we had previously applied to the platform. Given their small scale, you’ll be surprised at the outcomes they produced!</p><h3>Hiding a CTA?</h3><p>When someone lands on your website, you need to do everything possible to turn them into regular users or convince them to complete a desired action (like buy a product or register for a course). This is achieved by highlighting your unique selling point and ensuring your call to action (CTA) is visible across the webpages.</p><p>While analyzing heatmaps, which we regularly utilize at Edraak using Hotjar, we discovered an interesting insight.</p><p>(Before we continue, we should mention that, based on our target audiences, over 70% of our users browse the platform on mobile devices, presenting us with the challenge of making the mobile view as convenient as possible for all visitors.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*1Vt-PM88MbZlBC3d8aMmlw.png" /></figure><p>In the image above, you can see our homepage heatmap for mobile visitors. The homepage design was meant to be direct and minimal, comprising a prominent search bar with the option to scroll down to browse courses and programs.</p><p>Still, this design had overlooked a user journey that entailed first signing up then moving on to discover the available courses. In doing so, we had unintentionally added an extra step for users seeking the signup button.</p><p>It’s evident from the ‘heat’ in the top left corner of the image that users had to click on the hamburger menu to find the signup button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/0*9p3E0qNSAoHHEQSR.jpg" /></figure><p>That’s why we decided to make the signup button more prominent by removing the extra search bar in the header (next to the hamburger menu) and adding a button that says ‘Sign Up’ for non-logged-in users and ‘Dashboard’ for logged-in users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/0*ZSsnCPi3aj23rypt.jpg" /></figure><p>To measure the effectiveness of this design amendment, we defined an audience on Google Analytics that shared the following characteristics:</p><ul><li>New users</li><li>Mobile-browsing users</li><li>Number of landings on the homepage</li></ul><p>Before going live with the change, we calculated that 9% of users reached the signup page based on the old design.</p><p>Within hours of the new design going live, that same percentage rose drastically!</p><p>We monitored the behavior data over a month, and the ‘micro-conversion’ rate jumped from 9% to 21%! A staggering 133% increase!!</p><h3><strong>Revamping the Signup Form</strong></h3><p>Last year, while analyzing numbers related to our signup form, we noticed a high exit rate (approximately 40%) according to our Google Analytics data.</p><p>Consequently, this led to a smaller percentage of visitors converting into platform users. On average, this percentage ranged between 19% and 25%.</p><p>The form we were using was meant to gather as much user data as possible, including their educational background, age, country, and <a href="https://medium.com/edraak-engineering/personalization-in-online-learning-platforms-67519cf8d49d">other information necessary to improve their learning experience</a>.</p><p>Eventually, we decided to sacrifice data collection for the sake of securing more users. Having to fill in 11 fields was simply too much! We knew that as a fact. So, we revamped our signup form from this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/0*nAKb0YxUXQ8BHmLt.png" /></figure><p>To this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/0*sIU0EOLPP_GJf5YW.png" /></figure><p>The new form underwent four stages of <a href="https://medium.com/edraak-engineering/ready-set-test-the-process-of-usability-testing-bfc12a28a8f6">usability testing</a> (which we take seriously at Edraak) to create a final form that caters to a broader audience.</p><p>Ultimately, following multiple iterations, we agreed on the below form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*UyBWGHIQqQbnFN1Q70-k_A.png" /></figure><p>Interested to see the results?</p><p>The exit rate dropped from 40% to 16% over a year, and the conversion rate surged from around 20% to almost 55%, marking a 190% increase!</p><p>This was one of the most expensive lessons I’ve personally learned. Signup forms are essential to any website — be it an e-commerce store, an online educational platform, or a blog just like this. If your users can’t make it through the form, you will lose them. Possibly forever…</p><p>So, when it comes to lengthy forms, let’s admit it. We avoid watching long videos and we usually skim through long articles. Why should a lengthy form be treated any differently? Moreover, for many people, data privacy can be a no go.</p><p>For this reason, we transferred the optional and detailed fields to a post-signup form, which users fill to complete their learner profile:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*bQJ7Z9h0aKgkqkwqTc09-Q.png" /></figure><h3><strong>A/B Testing on a Small Scale</strong></h3><p>Earlier this year, we began implementing A/B testing on our users via Google Optimize. Most tests were conducted to measure the effect of minor text and color changes on main platform components. Interestingly, some changes proved capable of uplifting the conversion rate to more than 20%! We will be blogging about this in the future once more sophisticated tests are conducted.</p><p>Tests like these can have a tangible impact on any platform. To the extent that, even for a free product like ours, it would be worth tens or hundreds of thousands once you calculate the cost per action (CPA) per learner!</p><p>Stay tuned for more blogs on the science behind data investigations and testing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a9c5b3bb626" width="1" height="1" alt=""><hr><p><a href="https://medium.com/edraak-engineering/small-changes-huge-impact-with-a-bit-of-science-behind-that-3a9c5b3bb626">Small Changes, Huge Impact! With a Bit of Science behind That!</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>