<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chukwuemeka Chima on Medium]]></title>
        <description><![CDATA[Stories by Chukwuemeka Chima on Medium]]></description>
        <link>https://medium.com/@chukwuemekachm?source=rss-bd846ed01c09------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*O3_7By34dcy2vM4Vdwp-Vw.jpeg</url>
            <title>Stories by Chukwuemeka Chima on Medium</title>
            <link>https://medium.com/@chukwuemekachm?source=rss-bd846ed01c09------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 08:49:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chukwuemekachm/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[TabIndex and Web Accessibility]]></title>
            <link>https://medium.com/the-javascript-dojo/tabindex-and-web-accessibility-2be6b5969e14?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/2be6b5969e14</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[accessibility]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Sun, 06 Dec 2020 15:41:24 GMT</pubDate>
            <atom:updated>2020-12-06T15:41:24.234Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*5pBwOM4JWhaGWr6k" /><figcaption>Image by @freegraphictoday on Unsplash</figcaption></figure><blockquote><strong>The HTML tabindex attribute can be used to improve the experience of a webpage for disabled users, however, if used in-appropriately this can also break the experience and flow of a webpage for disabled users (or users trying to navigate the webpage using the tab key).</strong></blockquote><p><strong><em>tabindex</em></strong> is an HTML attribute that can be assigned to any HTML element. The major aim of adding the <strong><em>tabindex</em></strong> attribute to an element is to inform the browser that the element is focusable when using the tab key on the keyboard to navigate a web page.</p><p>The <strong><em>tabindex</em></strong> attribute accepts a negative or positive integer value as well as the value zero. The common values often assigned to <strong><em>tabindex</em></strong> is -1, 0, 1 (you can also assign any other integer value).</p><h3>Positive Values</h3><p>Assigning a value greater than zero an element’s <strong><em>tabindex</em></strong> attribute moves that element away from its position on the page while tabbing through and adds more priority on it. This breaks the normal flow of the document for users with assistive technologies.</p><h3>Negative Values</h3><p>Assigning a negative value makes the element inaccessible while tabbing through the document with the tab key. This value is fine and usually implored by off-screen interactive elements that are shown to a user when they get to that part of the page (with a little JavaScript).</p><h3>Value zero</h3><p>Assigning the value zero to an element tells the browser to manage to handle the focus to that element by its position in the web document’s source code or the element’s position in the DOM tree. This method is used when trying to build custom interactive components with none focusable elements like span, div, li e.t.c. A zero <strong><em>tabindex</em></strong> value makes the browser aware that the component/element is interactive and focus should be handed to it when the user gets to its position in the document.</p><p>This is the ideal value to assign to the <strong><em>tabindex </em></strong>attribute.</p><h3>Considerations</h3><p>It can be tricky to change the visual positions of elements on a webpage using floats, column-reverse, or row-reverse values on flex-direction CSS properties as well as any other CSS properties which make elements appear visually different from their DOM positions. This tends to disorganize the intended flow of the page when navigating the document with the tab key. This also happens with native focusable elements such as links, buttons e.t.c Browsers use an element’s position in the DOM or source code to determine when it should get the focus while tabbing through the document using the tab key.</p><h3>Recommendations</h3><ul><li>Avoid using styles to change the visual positions of interactive elements which will place the elements different from its position in the DOM or source code.</li><li>Add elements and structure your documents in a sequential order that interactive elements can be accessed.</li><li>Get in the habit of tabbing through your web pages periodically to ensure the tabbing experience for interactive elements works as expected.</li><li>Use accessibility <a href="https://www.w3.org/WAI/ER/tools/"><strong><em>evaluation tools</em></strong></a> to see if it meets web accessibility guidelines.</li><li>If possible have an accessibility expert audit your web pages to uncover more accessibility issues.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2be6b5969e14" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-javascript-dojo/tabindex-and-web-accessibility-2be6b5969e14">TabIndex and Web Accessibility</a> was originally published in <a href="https://medium.com/the-javascript-dojo">The JavaScript Dojo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improving code readability with Path Aliases]]></title>
            <link>https://medium.com/the-javascript-dojo/improving-code-readability-with-path-aliases-1a41143d7632?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a41143d7632</guid>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Mon, 20 Jan 2020 18:36:30 GMT</pubDate>
            <atom:updated>2020-01-20T21:45:10.632Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*E5RS5jHyMOnWeJxf" /><figcaption>Image by <a href="https://unsplash.com/@alvaroreyes">Alvaro Reyes</a> from UnSplash</figcaption></figure><p>A couple of months back, some friends and I decided it was time we addressed a problem which we promised to address sometime past. To achieve this, we agreed it was best if we use the agile kanban to build our solution and I was asked to play the role of front-end lead and UI/UX designer. This was because I had more experience in this area than other areas of the software development life-cycle. In this role, I had to review all pull requests coming up on the front-end, periodically go over the codebase for technical debts and also ensure we adhere to best practices.<br>Two weeks down this path I discovered I was spending more time than I allotted for these reviews. At first, I felt I underestimated my Todo so I increased the time, but every time, I spent more time than I had allotted. So I began to analyze what happens and realised the bulk of that time was spent trying to find dependence files (relative JavaScript modules) that are imported at the top of files. It felt like I was trying to perform some sort of computation (in my head) 😂 to know where these files where located on the codebase as the codebase grew.<br>Below is a sample of what these import statements would look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*cmQXiyTmLRhu_PcX_MPNcQ.png" /><figcaption>Component imports without alias</figcaption></figure><p>I started researching better ways to import files (relative modules) and stumbled upon path aliases. 🎉 Path aliasing or aliases are preconfigured names used to replace long paths in files and resolve to certain directories on a codebase. There are diverse ways of achieving this ranging from configuring webpack resolve (React), using module-alias and in TypeScript configuring the baseUrl and paths in the tsconfig file. We’ll be looking at these in a bit.</p><h3>Option One: Configuring webpack resolve</h3><p>If you’re using webpack, you just have to update the resolve object in your webpack config to change the way webpack resolves (finds) modules on your codebase. You’ll do this by adding an alias property which tells webpack how and where to look for certain names in your imports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXR6xw7JcGAv58w2rAKAKw.png" /><figcaption>Configuring Webpack for path aliases</figcaption></figure><p>Now you can import files and relative modules using the alias.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*zGJogo9EvxNs6gFs53DnOQ.png" /><figcaption>Component imports using Webpack alias</figcaption></figure><h3><strong>Option Two:</strong> Configuring the tsconfig</h3><p>If you’re using TypeScript, there are two tsconfig properties to be aware of. These are the `baseUrl` and the `paths` properties.</p><ul><li><strong>baseUrl</strong>: is used to tell TypeScript where to start resolving relative imports. This accepts a string which indicates where TypeScript will locate relative modules and files. A common value set for this is “.” which means relative to the tsconfig file. However, most devs prefer to have project modules in an src directory which will be relative to the tsconfig file. For that, the value of the `baseUrl` will be “./src”.</li><li><strong>paths mapping</strong>: a lot of times, we have dependencies that are not in the root path of our codebase (relative to the tsconfig file). Irrespective of this, we might still want to alias these modules/dependencies when importing them into our codebase. Using the paths property on the tsconfig provides us with more sophisticated ways of mapping and resolving aliases. Paths mapping will be resolved relative to the baseUrl and not the tsconfig. So if you set you baseUrl to a value such as “./src” then you have to write the paths mappings with “./src/” as the root path for the path mappings. We’ll just see a basic example of this, you can use the official TypeScript docs here to learn more about paths.</li></ul><h3><strong>Option Three: Using module-alias</strong></h3><p>If you don’t use webpack nor TypeScript, you can still set up path aliases using the module-alias module/library. Run the following command based on your package manager.</p><pre>yarn add module-alias</pre><p>OR</p><pre>npm install module-alias</pre><p>Add this to your package.json file and configure your aliases as desired.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*BoeD66qmlaxhJXgYFpF8bA.png" /><figcaption>Module-alias config to be set up in package.json</figcaption></figure><p>Now, one last thing to do. Add this at the entry point of your app, like the index.js . This requires and registers your aliases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*K5EY9mNAKgdqDX92vlCqvg.png" /></figure><p>Awesome, you can now import files using your alias. 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*u-QbFAOcPbW2raRNBqAPUQ.png" /><figcaption>Component imports with module-alias alias</figcaption></figure><p><strong>Note: </strong>The examples above worked in a codebase with the structure below. 👇🏽 Your folder structure might the different or similar, so you’ll have to update the configs to work with your folder structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*AoSERjjlUmsTISy4iRwOHg.png" /><figcaption>Folder structure examples were tested with</figcaption></figure><p>With the introduction of path aliases to our project not only was it able to improve review time, but it also improved code readability, the time it took to onboard into a file and reduced errors due to typos in import statements thereby increasing our productivity. I’ll love to hear your thoughts after trying this out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a41143d7632" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-javascript-dojo/improving-code-readability-with-path-aliases-1a41143d7632">Improving code readability with Path Aliases</a> was originally published in <a href="https://medium.com/the-javascript-dojo">The JavaScript Dojo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Modeling with Sequelize]]></title>
            <link>https://medium.com/the-javascript-dojo/data-modeling-with-sequelize-a215f129cde2?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/a215f129cde2</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-modelling]]></category>
            <category><![CDATA[association]]></category>
            <category><![CDATA[sequelize]]></category>
            <category><![CDATA[orm]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Wed, 30 Jan 2019 15:25:51 GMT</pubDate>
            <atom:updated>2019-01-30T19:41:26.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*ixu16vyF8GE72tbN" /></figure><p>Welcome back, now we will discuss the REST API we will build so we can model the data objects needed. To get up to speed, please visit the <a href="https://medium.com/the-javascript-dojo/sequelize-project-setup-4a6a566c6cfa">previous articles</a> in this series to follow along.</p><h3>Migrations</h3><p>We will be building a simple API to manage books and reviews on books. Our API will expose endpoints which will create, update, delete and retrieve books as well as endpoints to create reviews and modify reviews on the platform. We will not be covering authentication in this series.<br>Looking at this we can observe a relation between books and reviews. So a book will have many reviews and a review can belong to a single book, we will dive deep into that in the associations’ section of this article. For now, let us create the necessary migrations for this relation(application).</p><p>Copy and paste the code snippet below into your terminal, ensure you are in the project’s root directory.</p><pre>$ node_modules/.bin/sequelize model:generate --name Book --attributes title:string,description:string,genre:enum,isbnNo:string,pages:integer</pre><pre>$ node_modules/.bin/sequelize model:generate --name Review --attributes title:string,review:string,bookId:integer</pre><p>This command just created four new files in the project. Two files in the migrations folder and two files: <strong>book.js</strong> and <strong>review.js</strong> in the models’ folder.<br>Let us examine the command we just used with its options. We used the <strong>model:generate</strong> command now which accepts two options to create a model and a matching migration to upgrade the state of our database.</p><ul><li><strong><em>— name </em></strong>— The name of the model to be created.</li><li><strong><em>— attributes</em></strong> — The attributes or properties of the model.</li></ul><p>Let’s take a closer look at the review migration file. This file exports an object with two properties <strong>up</strong> and <strong>down</strong>. Funny up and down isn’t it? 😀</p><ul><li><strong>up</strong> — Upgrades the database schema with the new changes. This property is a function that will be invoked with two arguments: <strong>queryInterface</strong> and <strong>sequelize</strong>. The queryInterface argument, just as the name is an interface/object for executing different queries on a database. The sequelize argument is an object which houses all the different data type definition supported by the Sequelize ORM.</li><li><strong>down</strong> — Resets the database to its previous state before the up migration was run. So essentially it just reverts the database to how it was before that migration file was introduced.<br>If we look closely at the file, we can see that a method on the queryInterface with the name <strong>createTable</strong> was invoked with two arguments. The arguments are the name of the table to be created as well as the attributes/properties of the table with their data type declarations and other constraints.</li></ul><p>Let’s take a closer look at the second argument to <strong>queryInterface.createTable</strong>. This argument is an object with key-value pairs. The keys are the column names to be created on the table while the value is an object containing the constraints and data type of the column.<br>Below is what the first property of the attributes should look like.</p><pre>id: {<br>  allowNull: false,<br>  autoIncrement: true,<br>  primaryKey: true,<br>  type: Sequelize.INTEGER,<br>},</pre><ul><li><strong>allowNull</strong> — is equivalent to the SQL <strong><em>NOT NULL</em></strong> constraint.</li><li><strong>autoIncrement</strong> — is equivalent to the SQL <strong><em>AUTO_INCREMENT</em></strong> constraint in <strong><em>MySQL</em></strong>, <strong><em>SERIAL</em></strong> in PostgreSQL, and <strong><em>IDENTITY(1, 1)</em></strong> in MS SQL.</li><li><strong>primaryKey</strong> — is equivalent to the SQL <strong><em>PRIMARY KEY</em></strong> constraint.</li><li><strong>type</strong> — is used to denote the data type of the column.</li></ul><p>Click <a href="http://docs.sequelizejs.com/manual/tutorial/models-definition.html#data-types">here</a> to see a list of data types supported by sequelize along with their declarations.</p><p>Now, we will update the <strong>bookId</strong> property in the attributes object with the code below.</p><pre>bookId: {<br>  type: Sequelize.INTEGER,<br>  onDelete: &#39;CASCADE&#39;,<br>  onUpdate: &#39;CASCADE&#39;,<br>  references: {<br>    model: &#39;Books&#39;,<br>    key: &#39;id&#39;,<br>  },<br>},</pre><ul><li><strong>onDelete</strong> — setting this to <strong><em>CASCADE</em></strong> will cause all reviews related to a book to be deleted once the book it references gets deleted.</li><li><strong>onUpdate </strong>— setting this to <strong><em>CASCADE</em></strong> will update the<strong> bookId</strong> column to the new value of the id on the book table if the id of the book it references is deleted.</li><li><strong>references </strong>— is an object that contains information to point the foreign key to the table it references. The <strong><em>model</em></strong> property on the references object will have the name of the book table in our example above “Books”. The <strong><em>key</em></strong> property will have the name of the column(<strong><em>primary key</em></strong>) the foreign Key(<strong><em>reviewId</em></strong>) on the review table references.</li></ul><p>Good, now our migration files have been modelled to update our database schema to suit our API needs. 🙌</p><h3>Models</h3><p>Now let’s examine our model files in the models’ directory. Let’s start with the book model.<br>The book model exports a function which accepts two parameters: sequelize and dataTypes.<br>The sequelize parameter has a method called define which when invoked with 2–3 parameters returns an instance of a sequelize model.</p><ul><li><strong>Book</strong> — this is the first argument accepted by the define method. It bears the name of the model which we can use to reference the model. The model will be stored in sequelize.models with this name(this is also the name we will use to import the model from sequelize’s index model file later).</li><li><strong>attributes </strong>— this is an object which contains the list properties/attributes on a table to be exposed by the Book model. A lot of magic happens here like the mapping of properties to different columns on the table, adding constraints and custom validations to the models’ properties e.t.c.</li><li><strong>options </strong>— this is the third argument supplied to the <strong>sequelize.define</strong> method. This allows for lots of configuration to be added to the model such as mapping the model to a different table or schema on the database. You can also add hooks, indexes and triggers here. However, in this article, we will only cover hooks in the options argument. You can check out other options, what they are used for and the values they accept <a href="http://docs.sequelizejs.com/manual/tutorial/models-definition.html#configuration">here</a>.</li></ul><h4><strong>Hooks</strong></h4><p>Sequelize hooks provide an interface for programmers to modify certain behaviours or attributes on the model before a model action is triggered/executed.</p><pre>{<br>  hooks: {<br>    afterFind: <em>books</em> =&gt; {<br>      if (!books[0]) {<br>        books.dataValues.createdAt = new Date(books.dataValues.createdAt).toUTCString();<br>        books.dataValues.updatedAt = new Date(books.dataValues.updatedAt).toUTCString();<br>        return books;<br>      }</pre><pre>      books = books.map(<em>book</em> =&gt; {<br>        book.dataValues.createdAt = new Date(book.dataValues.createdAt).toUTCString();<br>        book.dataValues.updatedAt = new Date(book.dataValues.updatedAt).toUTCString();<br>        return book;<br>      });<br>    },<br>  },<br>}</pre><p>In the snippet above we defined a hook to modify the format of the createdAt and updatedAt date values to UTC format. You can do a lot more with hooks, like password hashing using the beforeCreate hook and lots more.</p><h4>Associations</h4><p>Associations are used in sequelize to denote the relation between models. Sequelize supports many types of relationships. However, in this article, we will focus on the One-To-Many association.<br>We will now define the associations between our Book and Review models. Replace the code in your Book associations section on book.js with the snippet below.</p><pre>Book.associate = ({ <em>Review</em> }) =&gt; {<br>  Book.hasMany(Review, {<br>    foreignKey: &#39;bookId&#39;,<br>    as: &#39;Reviews&#39;,<br>  });<br>};</pre><p>We will notice that a method(hasMany) on our book model was invoked with two arguments, Review and options.</p><ul><li><strong>Review</strong> — this is the model we are associating our Book model too.</li><li><strong>options</strong> — this is an object which attributes to denote how this relation should be treated. The <strong><em>foreignKey</em></strong> attribute specifies the <strong><em>foreignKey</em></strong> on the Review table while the <strong><em>as</em></strong> attribute is an alias we will use to reference this association on later.</li></ul><p>Replace the code in your Book associations section on book.js with the snippet below.</p><pre>Review.associate = ({ <em>Book</em> }) =&gt; {<br>  Review.belongsTo(Book, {<br>    foreignKey: &#39;bookId&#39;,<br>    onDelete: &#39;CASCADE&#39;,<br>    onUpdate: &#39;CASCADE&#39;,<br>    as: &#39;Book&#39;,<br>  });<br>};</pre><p>We will notice that a method(belongsTo) on our review model was invoked with two arguments, Book and options.</p><ul><li><strong>Book</strong> — this is the model we are associating our Review model too.</li><li><strong>options</strong> — same as above in Book association. However, two new attributes <strong>onDelete </strong>and <strong>onUpdate </strong>are now present on the options for belongs to. onDelete is set to CASCADE. This will cause all reviews related to a book to be deleted once the book is deleted. onUpdate set to CASCADE will update the foreign key(bookId) on the reviews if the primary key(id) on the book changes.</li></ul><h4>Scopes</h4><p>Scopes provide a way to define commonly used queries. It can include finders like where, include, limit e.t.c. Scopes are defined on the model options(the third argument supplied to the <strong>sequelize.define</strong> method.<br>Below, we will define scopes using <strong>sequelize operators</strong> to enable us to query fictional and non-fictional books without writing them always. We will cover operators in the next article on CRUD operations with sequelize.<br>Copy and paste the snippet below into the options on the book.js file after the <strong>hooks</strong> declaration.</p><pre>scopes: {<br>  nonFiction: {<br>    where: {<br>      genre: {<br>        Op.in]: [&#39;Biography&#39;, &#39;Memoir&#39;, &#39;Essay&#39;, &#39;Textbook&#39;],<br>      },<br>    },<br>  },<br>  fiction: {<br>    where: {<br>      genre: {<br>        [Op.in]: [&#39;Fable&#39;, &#39;Fiction&#39;, &#39;Mythology&#39;, &#39;Adventure&#39;],<br>      },<br>    },<br>  },<br>},</pre><h4>Validations</h4><p>Now we will be adding a couple of validations to our model attributes. Sequelize uses the <a href="https://github.com/chriso/validator.js">validator.js</a> library for validations, so you can use all of the validator’s validations. You can also add your own custom validations not supported by validator.js. Below, we will define validations for the Book model.</p><ul><li><strong>title</strong> — is a not null string which contains 2 to 100 characters.</li><li><strong>description </strong>— is a not null string which contains 10 to 250 characters.</li><li><strong>isbn</strong> — is a not null string which contains 10 to 13 characters.</li><li><strong>pages</strong> — is an optional number which must be an integer.</li></ul><p>Wow, congratulations on making it this far. 👏 That was definitely so much information. This is what your model and migration files should now look like. I will love to hear your comments. Feel free to respond.</p><h4>Migration files</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6748880580ed580867d888f59da1d506/href">https://medium.com/media/6748880580ed580867d888f59da1d506/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9139438bf07e9f2b608215fbb5e6be7e/href">https://medium.com/media/9139438bf07e9f2b608215fbb5e6be7e/href</a></iframe><h4>Model files</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f96baddcad6a27c576165e0ce954c393/href">https://medium.com/media/f96baddcad6a27c576165e0ce954c393/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fce8ec7949a64c7685bc4bd2214b702b/href">https://medium.com/media/fce8ec7949a64c7685bc4bd2214b702b/href</a></iframe><p>Click the link below to view the complete code for this article and other articles in this series. Don’t forget to give us a star if this was helpful to you.</p><p><a href="https://github.com/TheJavaScriptDojo/Introduction-to-Sequelize/tree/data-modelling-with-sequelize-3">TheJavaScriptDojo/Introduction-to-Sequelize</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a215f129cde2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-javascript-dojo/data-modeling-with-sequelize-a215f129cde2">Data Modeling with Sequelize</a> was originally published in <a href="https://medium.com/the-javascript-dojo">The JavaScript Dojo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Sequelize]]></title>
            <link>https://medium.com/the-javascript-dojo/introduction-to-sequelize-1cbfc2d2d1bf?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cbfc2d2d1bf</guid>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[orm]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[sequelize]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Mon, 28 Jan 2019 22:58:43 GMT</pubDate>
            <atom:updated>2019-02-11T20:57:07.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*PE9tzehmCqJc5J3Q" /><figcaption>man standing on a stone looking at the sunset — image from unsplash</figcaption></figure><h3><strong>What is sequelize?</strong></h3><p>According to the docs “Sequelize is a promise-based ORM for Node.js v4 and upwards. It supports the dialects PostgreSQL, MySQL, SQLite and MSSQL and features solid transaction support, relations, read replication and more.”<br>A promise in Nodejs is an event which will produce a result in the future. This result can either be a success(fulfilled) or failure(rejected).<br>Sequelize being a promise-based ORM means that it supports NodeJS promises using the bluebirdJS library internally(which is a NodeJS promise library).</p><p><a href="http://docs.sequelizejs.com/">Manual | Sequelize | The node.js ORM for PostgreSQL, MySQL, SQLite and MSSQL</a></p><h4>What is an ORM</h4><p>An ORM is known as Object Relational Mapper. This is a tool or a level of abstraction which maps(converts) data in a relational database into programmatic objects that can be manipulated by a programmer using a programming language(usually an OOP language). ORMs solely exist to map the details between two data sources which due to a mismatch cannot coexist together.</p><h4><strong>Benefits of using ORMs</strong></h4><p>ORMs save time in writing raw SQL queries thereby reducing development time.</p><p>SQL queries are written as strings and embedded in the application logic. It is very difficult to get tools like syntax highlighting, autocorrect, or Intellisence support while writing raw queries in an application. ORMs provide a type-safe interface for interacting with databases.</p><p>ORMs helps to prevent against <a href="https://www.w3schools.com/sql/sql_injection.asp">SQL injections</a>.</p><p>ORMs lets you write Object-oriented code for your models and abstracts away the complete CRUD process enabling you to write declarative code in your application.</p><h4><strong>Features of Sequelize</strong></h4><p>Sequelize is packed with lots of features, below are a couple of features we will cover in this series on sequelize and more.</p><ul><li>Promises.</li><li>Support for MySQL, SQLite, PostgreSQL, and Microsoft SQL server.</li><li>Model Hooks</li><li>Transaction support</li><li>Database synchronization</li><li>Database migrations</li><li>Model Validations</li><li>Raw queries</li><li>Data seeding</li><li>Scopes</li></ul><h4><strong>Conclusion</strong></h4><p>In the series, we will be building a REST API for a book service. A basic understanding of SQL, NodeJS, and ExpressJS are good to have before reading through.</p><p>Before you proceed to the <a href="https://medium.com/the-javascript-dojo/sequelize-project-setup-4a6a566c6cfa">next article</a> in this series do ensure to have the following installed and set up on your local machine.</p><ul><li><a href="https://nodejs.org/en/download/current/">Node.js</a> 6 and above</li><li><a href="https://www.getpostman.com/apps">Postman</a> Native or Postman <a href="https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en">Chrome extension</a></li><li><a href="https://www.postgresql.org/download/">Postgres</a> Database or create an Online <a href="https://www.elephantsql.com/">Elephant SQL</a> database</li><li><a href="https://git-scm.com/downloads">Git</a></li></ul><p>Sequelize is a great ORM in the NodeJS space with an active community on Github and Slack e.t.c. Check out the users of Sequelize.</p><p><a href="http://docs.sequelizejs.com/manual/faq/whos-using.html">FAQ | Sequelize | The node.js ORM for PostgreSQL, MySQL, SQLite and MSSQL</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cbfc2d2d1bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-javascript-dojo/introduction-to-sequelize-1cbfc2d2d1bf">Introduction to Sequelize</a> was originally published in <a href="https://medium.com/the-javascript-dojo">The JavaScript Dojo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sequelize Project setup]]></title>
            <link>https://medium.com/the-javascript-dojo/sequelize-project-setup-4a6a566c6cfa?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a6a566c6cfa</guid>
            <category><![CDATA[sequelize]]></category>
            <category><![CDATA[orm]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[body-parser]]></category>
            <category><![CDATA[expressjs]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Mon, 28 Jan 2019 22:56:55 GMT</pubDate>
            <atom:updated>2019-02-12T00:37:19.777Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*2mqoLnkYyYbaNPan" /></figure><p>We will start by setting up a basic express web API application which will use the sequelize ORM to manipulate data on a PostgreSQL database.</p><p>I believe you now have all the necessary tools installed on your machine or you can go to the <a href="https://medium.com/the-javascript-dojo/introduction-to-sequelize-1cbfc2d2d1bf">previous article</a> in this series to check out the necessary tools and the links to install them.</p><h4>Express API setup</h4><p>Open your terminal and run the following command to create a workspace and navigate into it. Copy and paste the commands below into your terminal.</p><pre>$ mkdir introduction-to-sequelize<br>$ cd introduction-to-sequelize</pre><p>Let’s create a basic and empty NodeJS project using the command below</p><pre>$ npm init -y</pre><p>Next, we will install the required dependencies to create a REST API using express.</p><pre>$ npm install express body-parser helmet --save</pre><p>Next, we will install the required babel dependencies as we will be using ES2015/ES6 and above.</p><pre>$ npm install babel-cli babel-core babel-preset-env babel-plugin-transform-class-properties babel-plugin-transform-object-rest-spread nodemon --save-dev<br>$ touch .babelrc</pre><p>Good, let&#39;s add the snippet below to our <strong>.babelrc</strong> file.</p><pre>{<br>  &quot;presets&quot;: [<br>    [<br>      &quot;env&quot;, {<br>        &quot;targets&quot;: {<br>          &quot;node&quot;: &quot;current&quot;<br>        }<br>      }<br>    ]<br>  ],<br>  &quot;plugins&quot;: [<br>    &quot;transform-object-rest-spread&quot;,<br>    &quot;transform-class-properties&quot;<br>  ]<br>}</pre><p>Now that we have our express and babel dependencies ready, we will create the <strong>server</strong> directory to house our application.</p><pre>$ mkdir server<br>$ cd server &amp;&amp; touch index.js &amp;&amp; cd ../</pre><p>Add the following code snippet to the <strong>./server/index.js</strong> file. This will be the entry point of our app. We now have the basic middleware setup for the API.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ddb2853017c5a3e0302a512e4672a803/href">https://medium.com/media/ddb2853017c5a3e0302a512e4672a803/href</a></iframe><p>Next, we will add a router which will contain a handler for the index route as well as other routes(404).</p><pre>$ cd server &amp;&amp; mkdir routes &amp;&amp; touch index.js<br>$ cd ../</pre><p>Add the code snippet below to the <strong>./server/routes/index.js</strong> file. This contains our application router with two route handlers.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e6ad8d20d86cd355a6313341c9b85b95/href">https://medium.com/media/e6ad8d20d86cd355a6313341c9b85b95/href</a></iframe><p>Replace the scripts object in your package.json file with the snippet below. This scripts will be used to build, run the app in development and production environments.</p><pre>&quot;scripts&quot;: {<br>  &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,<br>  &quot;dev&quot;: &quot;NODE_ENV=development nodemon --exec babel-node ./server/index.js&quot;,<br>  &quot;build&quot;: &quot;babel ./server --out-dir ./build&quot;,<br>  &quot;prestart&quot;: &quot;npm run build&quot;,<br>  &quot;start&quot;: &quot;node ./build/index.js&quot;<br>},</pre><p>Now, let’s start our server.</p><pre>$ npm run dev</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8tTmmlN3FsMdTs7gzUzjMg.png" /></figure><p>You should see something similar to the image above on your console terminal. CONGRATS!!! 🙌.</p><h4>Sequelize installation</h4><p>Next, we will install the required sequelize dependencies. Paste the command below into your terminal.</p><pre>$ npm install sequelize-cli --save-dev<br>$ npm install sequelize pg pg-hstore --save<br>$ touch .sequelizerc<br>$ touch .env</pre><ul><li><strong>sequelize</strong> — the sequelize NodeJS package.</li><li><strong>pg</strong> — a query library for PostgreSQL which sequelize uses internally to connect to PostgreSQL.</li><li><strong>pg-hstore</strong> — a library which sequelize uses for serializing and deserializing JSON data to hstore format.</li><li><strong>sequelize-cli </strong>— the sequelize command line interface.</li></ul><h4>Sequelize setup</h4><p>Now that we have all our basic dependencies installed we will add the code snippet below to the <strong><em>.sequelize</em></strong> file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/380fd81f525cae0fdfbae7e85f8bf169/href">https://medium.com/media/380fd81f525cae0fdfbae7e85f8bf169/href</a></iframe><p>Good, now we will use the <strong>sequelize-cli</strong> to bootstrap the sequelize setup on our application. Let’s run the command below on our terminal to achieve this.</p><pre>$ node_modules/.bin/sequelize init</pre><p>Wonderful, now replace the code in your database.js file with the snippet below.</p><pre>require(&#39;dotenv&#39;).config(); </pre><pre>module.exports = {  <br>  development: {<br>    username: process.env.DEV_DB_USERNAME,<br>    password: process.env.DEV_DB_PASSWORD,<br>    database: process.env.DEV_DB_NAME,<br>    host: process.env.DEV_DB_HOSTNAME,<br>    dialect: &#39;postgres&#39;,<br>  },<br>  test: {<br>    username: process.env.CI_DB_USERNAME,<br>    password: process.env.CI_DB_PASSWORD,<br>    database: process.env.CI_DB_NAME,<br>    host: &#39;127.0.0.1&#39;,<br>    dialect: &#39;postgres&#39;,<br>  },<br>  production: {<br>    username: process.env.PROD_DB_USERNAME,<br>    password: process.env.PROD_DB_PASSWORD,<br>    database: process.env.PROD_DB_NAME,<br>    host: process.env.PROD_DB_HOSTNAME,<br>    dialect: &#39;postgres&#39;,<br>  },<br>};</pre><p>Add the following code snippet into your .env file and update the values with the connection details of for your PostgreSQL database.</p><pre>DEV_DB_USERNAME=&lt;string&gt;<br>DEV_DB_PASSWORD=&lt;string&gt;<br>DEV_DB_NAME=&lt;string&gt;<br>DEV_DB_HOSTNAME=&lt;string&gt;</pre><pre>CI_DB_USERNAME=&lt;string&gt;<br>CI_DB_PASSWORD=&lt;string&gt;<br>CI_DB_NAME=&lt;string&gt;</pre><p>Following all these instructions, you will now have a folder structure similar to this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FIC2CKPY1bBLPNP361C07Q.png" /></figure><p>Where did all these folders come from? Well, we will get to that so no need to panic.</p><h4>The Sequelize cli</h4><p>The sequelize-cli provides a command line interface for us to interact with our sequelize ORM like creating models, migrations, seeders and lots more.<br>To see all the available commands and operations available on the cli, run the command below in your terminal.</p><pre>$ node_modules/.bin/sequelize --help</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Euy7aM4vKTpm2zf3ipmJbg.png" /></figure><h4>Migrations, Models, and Seeders</h4><p>We will now see the sequelize-cli in action.<br>Previously, when we executed the sequelize init command it created lots of folders and files in our workspace. Now we will dive into what those files and folders are used for.</p><ul><li><strong>migrations </strong>— This folder contains all the files(migrations) needed to update our database schema and keep it up to date with the latest requirements of our application.</li><li><strong>models</strong> — This folder contains the M in the MVC architectural pattern. It contains objects which form the mapping between our tables in our database and our domain-specific objects. They retrieve and store model state in the database.</li><li><strong>seeders</strong> — This folder contains files which add data to our database. I’ve found this most useful when following TDD. This combined with migration is a powerful feature.</li></ul><p>We will look at these in full in the <a href="https://medium.com/the-javascript-dojo/data-modeling-with-sequelize-a215f129cde2">next article</a> in this series. Click the link below to view the complete code for this article and other articles in this series. Don’t forget to clap or give us a star if this was helpful to you.</p><p><a href="https://github.com/TheJavaScriptDojo/Introduction-to-Sequelize/tree/sequelize-project-setup-2">TheJavaScriptDojo/Introduction-to-Sequelize</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a6a566c6cfa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-javascript-dojo/sequelize-project-setup-4a6a566c6cfa">Sequelize Project setup</a> was originally published in <a href="https://medium.com/the-javascript-dojo">The JavaScript Dojo</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adapting to an ever changing world]]></title>
            <link>https://medium.com/@chukwuemekachm/adapting-to-an-ever-changing-world-e75973cdf6b3?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/e75973cdf6b3</guid>
            <category><![CDATA[andela-bootcamp]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Tue, 08 May 2018 14:46:34 GMT</pubDate>
            <atom:updated>2018-05-08T14:46:34.531Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3no8FsqKm9XzXRxI." /><figcaption>“A white neon on a wall reads “world”” by <a href="https://unsplash.com/@2photopots?utm_source=medium&amp;utm_medium=referral">2Photo Pots</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It’s been said that the only thing constant is change. But what then is meant by this simple statement. As simple as it may sound, this statement embodies a message that is understood by few. The world today is in a constant evolving state.</p><p>Through my journey of life which consist of two decades of experience, I’ve been faced with numerous challenges and obstacles. This is as a result of the influx state of life. Changes or challenges appear in different forms in our day today activity. A key element that has enabled me surmount this changes is the ability to adapt to changes.</p><p>Adapting to change is never a bed of roses. This is due to the fact that as humans we easily get attached to our environment e.t.c. But adaptabilty is a good skill to posses. We can define adaptability as the quality of being open to changes. But it really doesn’t mean that we should try to adapt to every change in our environment.</p><p>Today is Day 2 of Week two in Andela’s boot camp. I’ve had to drop so many comforts and go out of my comfort zone in other to get this far. I love movies, enjoy football and also love to sleep early. But over the past four weeks (before bootcamp) I’ve had to make certain sacrifices and concessions, which involves doing away with my habits (watching movies and football). I’ve come across different technologies and tools. These tools and Tech have been helpful and fun, but it wasn&#39;t easy getting to use them for the first time. I had to spend extra time at nights awake practising these tools and Tech, in other to have a good understanding of them.</p><p>As I said, the only thing constant in life is change. As humans in the 21st century we should endeavour to evolve with the change. We should develop the habit of embracing, examining (analysing) change, this helps us answer the question of what and why in relation to the change. Once we’ve figured out what we have to do in other to breach the gap between us and the change, we should endeavour to get it done. Only then can we be able to adapt to an ever changing world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e75973cdf6b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Three Interestings Friends from Bootcamp]]></title>
            <link>https://medium.com/@chukwuemekachm/three-interestings-friends-from-bootcamp-e06b7688480f?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/e06b7688480f</guid>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Thu, 03 May 2018 16:10:55 GMT</pubDate>
            <atom:updated>2018-05-03T16:10:55.513Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kvp6wxMRuhlO3JQ58DK5jQ.jpeg" /><figcaption>Bootcamp Day four, Me Kevin and Ugo</figcaption></figure><p>I’ve been lucky to be in Andela cycle 31. Boot camp hasn’t been easy but it’s been fun all the way. Today I would love to tell you about three interesting people who have helped me up until this point. It’s day four in boot camp and my friends have been; <a href="https://medium.com/u/acd44e7a2ad1">kevinEze</a>, <a href="https://medium.com/u/52bde33b277c">Ugo Anayo</a> and <a href="https://medium.com/u/7e8d62139e61">Raymond Akalonu</a>.</p><p>The first time I met <a href="https://medium.com/u/acd44e7a2ad1">kevinEze</a> was in the waiting room for Andela fellowship interview. I had just arrived for my own interview which was scheduled for 12 noon. He wore an blue shirt, a black shoe and an ash pair of trousers. He sat at the far edge of the waiting chair and kept himself busy with his mobile phone. He looked like an Andelean himself, I thought he was already in the fellowship and not a candidate. We started up a conversation and talked alot about our iminent interview. I don’t know what struck me about him. But my first impression on him was really impressive. We didn’t exchange names nor contacts rather we wished each other success.</p><p>I met kevin again in Bootcamp(day one), and miraculously we shared the same LFA. Kevin is a quiet, jovial guy who is very committed to his tasks. His solid experience with JavaScript has really been helpful. To me Kevin flies when ever he is on his system. Before the end of our day’s work I would always trail behind him. I don’t know how he does it but he does. He has really helped me alot especially with TDD.</p><p><a href="https://medium.com/u/52bde33b277c">Ugo Anayo</a> is a Java developer who happens to love politics. He is very considerate and understanding. Ugo is the type of person who goes out of his way to help others. I can approach Ugo with the simplest of questions when I run into a wall, and he would very calmly smile and say; “Over there you missed that semicolon”.</p><p>Another wonderful person is <a href="https://medium.com/u/7e8d62139e61">Raymond Akalonu</a>. He is a tall, chocolate skinned and very passionate. Raymond has been very impressive, this is because he didn’t write a single line of code until he applied for bootcamp. He is a very fast learner. The fact that he doesn’t have much experience in coding doesn’t limit his imagination and work. I would say he has the best UI (User Interface) Template I’ve seen. His design is sleek and he knows how to combine colors.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e06b7688480f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My encounter with Eslint]]></title>
            <link>https://medium.com/@chukwuemekachm/my-encounter-with-eslint-9c5a49d12440?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c5a49d12440</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[andela-bootcamp-nigeria]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Wed, 02 May 2018 15:07:14 GMT</pubDate>
            <atom:updated>2018-05-02T15:07:14.514Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fKcJmU9abR_75u4R." /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>No developer starts out a project with the intent to write bad, inconsistent code, it just happens. Most times it’s as a result of a Software Development Life Cycle extending more than was expected or budgeted. Other times it’s as a result of a developer committing to so many projects at a time (with each team or project adopting a different Style guide). It can also occur when a developer switches language in between projects; such as using a ReactJs client to interact with a Laravel Php back-end e.t.c.</p><p>I would focus more on the last scenario. When a developer writes a project alone and switches in between languages it’s like shifting a car’s gear from forward movement to backward/reverse. Yes, I know you might probably be wondering. Is the human brain not equipped to withstand issues like that? Yes, it does. But having the brain make such small shifts in small intervals is quit alarming. To the ordinary mind it might seem simple but it’s not.</p><p>Different programming languages comes with different style guides and conventions, Javascript for instance has over three style guides such as: Airbnb, Google, Standard e.t.c. Some teams create and maintain their own style guides while other teams just pick a style guide and extend it. I didn’t use any style guide until I studied the material sent to me in preparation for boot camp (when I applied to join Andela’s Fellowship Cycle 31). This brings me to my encounter with linting using Eslint and Airbnb style guide for JavaScript.</p><p>Linting of code is a good habit to form. It helps you write code that works in both development and production, it helps you identify and resolve issues with scope conflicts, it helps you identify small syntax errors that conflicts with your coding style (especially when you work on a project with a team) e.t.c.</p><p><a href="https://eslint.org/">Eslint</a> is a powerful tool used to lint up JavaScript code. At first it gave me lots of issues, this is because I felt “this guy (Eslint) is doubling my job”, but after I had committed, pushed and then viewed my code on <a href="https://github.com/">Github</a>. I saw the magic and felt awed.</p><p>Many developers I know don’t lint up their code which leads to doubling of work in production (I used to be a part of that). We probably say; I know what I did, my code works, or this linting of a thing is not easy. Setting up and using Eslint in JavaScript is as easy as talking. Use Eslint to lint up you next project, it’s very easy. <a href="https://eslint.org/docs/user-guide/getting-started">Try it out.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c5a49d12440" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My reflections on Andela’s EPIC values]]></title>
            <link>https://medium.com/@chukwuemekachm/my-reflections-on-andelas-epic-values-e1df710ef2e8?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1df710ef2e8</guid>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Tue, 01 May 2018 16:01:17 GMT</pubDate>
            <atom:updated>2018-05-01T16:01:17.134Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m6NAlFRA77irlakJ." /><figcaption>“An open book in Ukrainian seen through a pair of glasses” by <a href="https://unsplash.com/@ratushny?utm_source=medium&amp;utm_medium=referral">Dmitry Ratushny</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Until I applied to Andela’s Fellowship and showed up in bootcamp, I never saw or met a group of young people so motivated and driven not just by tech but by everything they stand for. Andeleans are a select group of people dedicated and committed to changing the world and african landscape with tech.</p><p>This is day two at bootcamp, learning about Andela’s EPIC values has changed my perspective on some things, Andela’s EPIC values have given me an awesome new perspective on things not just tech or tech related, but on every aspect of life.</p><p>As humans (developers and non-developers) its essential that we appreciate excellence and in all things strive for not just obtaining a possible or mediocre result but we should strive to obtain the best and even attain the impossible. Until aeroplanes flew, people never thought it could be attained, until the first space ship was launched, space travelled has thought an impossible feat.</p><p>The bible says that “whatever our hands findeth, we should do it diligently”, up until EPIC, I translated that portion to equal passion, but now my perspective on that has changed and I now know that passion comes from Love and Joy derived from what you do, its not something you must or have to do, it just comes naturally.</p><p>No one is an Island of knowledge, an african adage says “A tree does not make a forest”, but every tree plays an important role in the forest. As humans we should believe in ourselves and abilities, we should never be afraid or proud to reach out to others when in need or when stuck.</p><p>True power or creativity doesn’t come from a single person working on something 72 hours straight, the brilliance comes when we collaborate and work together, Synergy is said to be the difference or the extra energy that comes as a result of our collaborations.</p><p>Whatever we do and wherever we find ourselves, we should endeavour to prioritise excellence, we should strive for the best, but that only comes when we are passionate about our work, when we believe in ourselves, when we trust and collaborate with others and when we commit ourselves to what we do.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1df710ef2e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The challenges of migrating from .NET Winforms to Full-Stack JavaScript]]></title>
            <link>https://medium.com/@chukwuemekachm/the-challenges-of-migrating-from-net-winforms-to-full-stack-javascript-b821d9dff782?source=rss-bd846ed01c09------2</link>
            <guid isPermaLink="false">https://medium.com/p/b821d9dff782</guid>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Chukwuemeka Chima]]></dc:creator>
            <pubDate>Mon, 30 Apr 2018 16:20:28 GMT</pubDate>
            <atom:updated>2018-04-30T16:20:28.653Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i4_FlONjOEwnGsJU." /><figcaption>Photo by <a href="https://unsplash.com/@ian_froome_photography?utm_source=medium&amp;utm_medium=referral">Ian Froome</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Learning a new programming language or migrating to a modern version of the same language is never a walk in the park, even with years of experience in the field of software development, developers and coding enthusiasts don’t find it easy.</p><p>I Learnt how to code with vb6.0 creating Winforms apps to run on windows O.S. It was really fun and engaging, in the first three months, I built various desktop apps, but after a while it felt like I wasn’t really harnessing the power of computers so I migrated to a more Object Oriented version of the same Basic language from Microsoft. VB.NET Winforms application was my thing until recently when I decided to raise the bar higher and then applied to Andela Nigeria Fellowship.</p><p>Andela Nigeria fellowship is one of the biggest developer programs every young and aspiring Nigerian developer wants to belong to. After my application to andela Nigeria was accepted and I made the tests, examination and interview to bootcamp, it became obvious that I could no longer avoid or play ignorance over the fact that web development is a wave every developer has to ride.</p><p>At first I almost gave up, I felt web wasn’t my thing, I had to reapply later or when am fully ready. So many thoughts crossed my mind to abstain from the boot-camp. But after so self thought and personal reflection I decided to attend the bootcamp.</p><p>I convinced myself that nothing was impossible if we could dream high and work hard, I believed that even though I started out on desktop I can always learn anything I put my mind to, I just needed to stay positive, have a mindset that accepts growth and attend boot-camp. I started taking courses and tutorials online to boost and enhance my skills in web development such as <a href="https://www.w3schools.com/css">CSS</a>, <a href="https://www.codecademy.com/learn/introduction-to-javascript">JavaScript</a>, <a href="https://www.edx.org/course/introduction-to-nodejs">Node.js</a> e.t.c I virtually consumed every resource and information I could lay my hand on the web, these paid off.</p><p>Learning is a Lifelong process, in life there are times we have to unlearn, relearn and even times when we stop adding new things and start updating the ones we already know. Knowledge is power and no knowledge is a waste. Every new opportunity comes with new challenges, am glad I made it to boot-camp. As humans we should never try to miss out on something that could be great just because it could also be difficult.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b821d9dff782" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>