<?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 Samuel Ocran on Medium]]></title>
        <description><![CDATA[Stories by Samuel Ocran on Medium]]></description>
        <link>https://medium.com/@ocranbillions?source=rss-bf3618aa450e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XE02sv_f4nEI9bnBMJOGtQ.jpeg</url>
            <title>Stories by Samuel Ocran on Medium</title>
            <link>https://medium.com/@ocranbillions?source=rss-bf3618aa450e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:23:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ocranbillions/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[Explained: How Redux & React works together to fetch and render data in a component.]]></title>
            <link>https://medium.com/@ocranbillions/explained-how-redux-react-works-in-fetching-and-rendering-data-7520cd5bf95a?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7520cd5bf95a</guid>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Wed, 24 Jan 2024 14:01:20 GMT</pubDate>
            <atom:updated>2024-01-24T14:34:38.138Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello there, in this post I want to quickly go over the process of fetching a set of data from react, storing the data into redux, and getting the data from redux to present on the screen. I will be using code snippets from one of my past projects to explain this.</p><ol><li>Create Redux Store (store.js)</li></ol><p>Assuming react-redux and redux are installed in the project already. The next step is to create a redux store from the redux library. The createStore function takes the root reducer as the first parameter and an enhancer function as the second parameter. Here I am making use of two Higher Order Functions within the second parameter. composeWithDevTools will enable me to inspect and debug my Redux state and actions, while the applyMiddleware function is used to apply the redux-thunk middleware, which enables the handling of asynchronous actions in Redux</p><p>The createStore function returns a Redux store that I can then use to interact with the state of my application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fg8HEc9aoMY1TGoaXWPQgg.png" /></figure><p>The rootReducer which is the first parameter to createStore is a combination of all the reducers in my application as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFVN--4M6MCz5Xy88DcYiA.png" /></figure><p>In this post, I am explaining how data is fetched from React, then stored in Redux, and retrieved from redux to be rendered in a component. This application has data related to churches, membersfor a given church, and sermons for a given church. That explains why I have reducers for members and sermons. I will be using the Members data to explain this data-fetching process as we go. The screenshot below displays what the memberReducer looks like. A reducer takes an initial state and an action. An action as seen on line 9, an action contains a payload and an actionType. Based on the type we return a new slice of data to the store. Particularly updating the members data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tkm194qxD88KR_11yhgcXQ.png" /></figure><p><strong>2. Connect Redux to React</strong></p><p>Once the store is created, I then make use of it by wrapping my application with the Provider from react-redux , passing the store to make the store available to my components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D7lM5rAOZX1OJ76aunTF3w.png" /></figure><p><strong>3. Fetch Data from React</strong></p><p>Now that the redux store is created and connected to React, its time to fetch data from an external API (the /members endpoint to be precise). I then store the data in redux and consume it in any react component.</p><p>In the memebers-list-screen, I fetch the list of members in a given church by the churchId. Then I render the list on the screen using a FlatList.</p><p>The key elements that enable this data fetching can be found on line 32. dispatch(fetchMembersByChurch(churchId.toString())) As shown below, I am dispatching the return value of the fetchMembersByChurch asynchronous function. Assuming its a successful fetch, it returns an action object containing a payload and a type .</p><p>The useSelector hook works just as the name implies. It selects a slice of data from the store. As seen on line 26 the data from membersReducer is being selected and rendered in the FlatList on line 45.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SpamY2MEeiLJn1tfr7nWIA.png" /></figure><p>Here’s what the internals of the fetchMembersByChurch looks like. Once the data is fetched successfully I dispatch MEMBERS_LOADED type and the payload. This will trigger the membersReducer…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c7j47G5cvkFAJrTlimrhLg.png" /></figure><p>Given the type, the reducer updates the store with the new data. As an example, dispatching the MEMBERS_LOADED action type will trigger the switch statement to load new members in the redux store as seen on line 20. Then the useSelector hook mentioned above will select the newly updated members data to be rendered using the FlatList</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tkm194qxD88KR_11yhgcXQ.png" /></figure><p>This is a simple illustration of how data is fetched, stored in redux, and rendered in a component.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7520cd5bf95a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a RESTFul Nodejs API with Express, Postgres  and Sequelize]]></title>
            <link>https://medium.com/@ocranbillions/create-a-restful-nodejs-api-with-express-postgres-and-sequelize-74ab9a77b7d5?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/74ab9a77b7d5</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[sequelize]]></category>
            <category><![CDATA[restful-api]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[postgres]]></category>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Sat, 25 Jan 2020 01:08:22 GMT</pubDate>
            <atom:updated>2020-01-25T09:02:57.676Z</atom:updated>
            <content:encoded><![CDATA[<h3>Create a RESTful Nodejs API with Express, Postgres and Sequelize</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*fhdapW2BhpMApkqY78pI5w.jpeg" /></figure><p>Today we’re building a REST API in Nodejs as quickly as possible. focusing on fundamental rest routes and basic database interactions.</p><p>We’re simulating a blogging application where we can create, read, edit and delete blog posts.</p><p>We will be using the below technologies</p><ul><li>Node</li><li>Express</li><li>Postgres</li><li>Sequelize</li></ul><p>Let’s get started.</p><ol><li><strong>Setup Dev Environment and install dependencies</strong></li></ol><p>I’m assuming you have Node installed on your computer already. If not you can grab it here <a href="https://nodejs.org/en/download/">https://nodejs.org/en/download/</a></p><p>Create a new directory called blog and switch to the directory. Then run npm init -y. This will create a package.json file. (Some basic level of familiarity with the terminal is assumed as we’re going to be moving pretty fast.)</p><pre>mkdir blog<br>cd blog<br>npm init -y</pre><p>With our package.json created, we can start installing the dependencies for the project.</p><p>Let&#39;s install express and body-parser. We should also install nodemon as a development dependency</p><pre>npm install --save express body-parser<br>npm install --save-dev nodemon</pre><ul><li>Express is our node framework to enable us to create the node server.</li><li>Body parser will give our server the ability to process form data. Without body-parser, all form data sent to the server will be undefined</li><li>Nodemon is a development package that will automatically restart our server anytime we make a change so we don’t have to restart it ourselves.</li></ul><p>We want to write modern Javascript (ES6) so we will install babel to enable us convert all our ES6 code to ES5 Javascript. This conversion is required because as of today Nodejs is unable to interpret all features of modern Javascript on its own. Statements like import from will throw an error unless they are converted to require() so this is what we need babel for.</p><pre>npm install --save-dev @babel/cli @babel/core @babel/node @babel/preset-env @babel/register</pre><p>After these installations are completed, create a .babelrc file in the root folder and paste the below content in it.</p><pre>{ &quot;presets&quot;: [&quot;@babel/preset-env&quot;] }</pre><p>This is all we’ll need for babel to do its work. We can start writing our code in ES6 and babel will do the rest.</p><p>At this point our package.json file should look like this:</p><pre>{</pre><pre>&quot;name&quot;: &quot;blog&quot;,</pre><pre>&quot;version&quot;: &quot;1.0.0&quot;,</pre><pre>&quot;description&quot;: &quot;&quot;,</pre><pre>&quot;main&quot;: &quot;index.js&quot;,</pre><pre>&quot;scripts&quot;: {</pre><pre>&quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;,</pre><pre>},</pre><pre>&quot;dependencies&quot;: {</pre><pre>   &quot;body-parser&quot;: &quot;^1.19.0&quot;,</pre><pre>   &quot;express&quot;: &quot;^4.17.1&quot;</pre><pre>},</pre><pre>&quot;devDependencies&quot;: {</pre><pre>    &quot;@babel/cli&quot;: &quot;^7.8.3&quot;,</pre><pre>    &quot;@babel/core&quot;: &quot;^7.8.3&quot;,</pre><pre>    &quot;@babel/node&quot;: &quot;^7.8.3&quot;,</pre><pre>   &quot;@babel/preset-env&quot;: &quot;^7.8.3&quot;,</pre><pre>   &quot;@babel/register&quot;: &quot;^7.8.3&quot;,</pre><pre>   &quot;nodemon&quot;: &quot;^2.0.2&quot;</pre><pre>}</pre><pre>}</pre><p><strong>2. STARTING THE SERVER</strong></p><p>Create a new file called index.js and paste in the below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/47ad889129acd7dca0a5d8f7a6d4814c/href">https://medium.com/media/47ad889129acd7dca0a5d8f7a6d4814c/href</a></iframe><p>All we are doing in this file is using express to create a server that listens on port 3000 of our machine. On lines 6 and 7, we tell our application to make use of body-parser so that we can process form data as JSON. <br>We also set up a handler for the root route which returns a welcome message to our visitors.</p><p>To run this with nodemon let&#39;s add an npm script in our package.json file.</p><p>In the script section, under the test script, add this script</p><pre>&quot;devStart&quot;: &quot;nodemon --exec babel-node index.js&quot;</pre><p>We can now run the application in our terminal by runningnpm run devStart</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*YIG1h9-VGY9QOaVcBwfzpg.jpeg" /></figure><p>You should see the server running in your terminal. Remember running our app with nodemon means whenever we make a change nodemon automatically restarts our server so our changes can take effect.</p><p>Great job. We now have a server in place. All we need to do is to set up our routes for CREATE, READ, UPDATE and DELETE operations on our server so we can start performing these CRUD actions for our blog posts.</p><p><strong>3. SETTING UP THE ROUTES and INSTALLING POSTMAN</strong></p><p>We’re going to need separate routes for each of the CRUD actions. The code below is our boilerplate for all the /post endpoints we’ll need.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d61c6d618280148beea8b23eef024388/href">https://medium.com/media/d61c6d618280148beea8b23eef024388/href</a></iframe><p>We have five separate endpoints in this file. There’s one for each action; creating a post, getting all posts, getting a single post, updating a post, and deleting a post.</p><p>I have placed temporary response messages in each of them, to be updated once we set up a database to work with. You should also notice the use of asynchronous callbacks, this is needed since we’ll be making asynchronous calls to the database. For now, create a folder named routes and a file named posts.routes.js in it then copy and paste the above code into the file.</p><pre>mkdir routes<br>touch routes/posts.routes.js</pre><p>Back in our index.js file, let&#39;s import this new file right after the import statement for body-parser. On line 3, add the below code.</p><pre>import postRoutes from &#39;./routes/posts.routes&#39;;</pre><p>Now we just need to tell our express server to route any request to hppt://localhost:3000/posts through this file.</p><p>Below line 8 add app.use(&#39;/posts&#39;, postRoutes). Our index file should now look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/caf5c3e4d8d271de6720d534acd81003/href">https://medium.com/media/caf5c3e4d8d271de6720d534acd81003/href</a></iframe><p><strong>Installing postman:</strong></p><p>Go over to <a href="https://www.getpostman.com/downloads/">https://www.getpostman.com/downloads/</a> and download postman. We need this to make our API calls once we’ve implemented them. Postman serves as our frontend which we’ll use to consume our API.</p><p>Once your installation is complete, you can go ahead and test the routes to see if they return the dummy responses in the boilerplate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mBDY9617jFpgLZ6C_93yEA.jpeg" /></figure><p><strong>4. SETTING UP THE POSTGRES DATABASE</strong></p><p>Just in case you don’t already have Postgres installed. You can grab a copy from this page <a href="https://www.postgresql.org/download/">https://www.postgresql.org/download/</a></p><p>If in any way you’re having issues installing Postgres on your machine, you can join me in using ElephantSQL, an online Postgres database service. <a href="https://www.elephantsql.com/">https://www.elephantsql.com/</a> Signup and create a free database instance with any name of your choice. I chose ‘my_blog’ for mine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*rIecY3PrdYMy9ZMD2nrAmw.jpeg" /></figure><p>Choose a free-plan then select any region and hit the review button. You will be provided with an online Postgres database for free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*piM_ffTgpBKUICmuhzBK_g.jpeg" /></figure><p>Click on your newly created database, go to the details-tab, copy the database URL and store it somewhere We’ll need this shortly. (You must click on the eye icon to see the full URL).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SQDf2gYy7zWBUktzqndHsQ.jpeg" /></figure><p>Now that we have a Postgres database, we need a way to communicate with it from within our node application</p><p><strong>5. INSTALLING SEQUELIZE</strong></p><p>Sequelize is a Nodejs ORM for connecting to and interacting with SQL databases. We’ll be using it to perform all our CRUD operations. Sequelize provides us with models with which we can perform these actions so we won’t have to write raw SQL queries</p><p>Install the following dependencies</p><pre>npm install --save sequelize-cli sequelize pg pg-hstore</pre><p>We’re installing four packages namely, sequelize-cli: A command-line tool for running sequelize commands, the sequelize package itself, a PostgreSQL client for Node.js (pg), and a node package for serializing and deserializing JSON data to hstore format (ph-hstore).</p><p>If you’re curious to learn more about these packages, you can read up on the sequelize docs. <a href="https://sequelize.readthedocs.io/en/v3/docs/getting-started/">https://sequelize.readthedocs.io/en/v3/docs/getting-started/</a></p><p>Create a .sequelizerc file in the root of your application and paste this content in it.</p><pre>const path = require(&#39;path&#39;);</pre><pre>module.exports = {</pre><pre>  &#39;config&#39;: path.resolve(&#39;database/config&#39;, &#39;config.js&#39;),</pre><pre>  &#39;models-path&#39;: path.resolve(&#39;database&#39;, &#39;models&#39;),</pre><pre>  &#39;seeders-path&#39;: path.resolve(&#39;database&#39;, &#39;seeders&#39;),</pre><pre>  &#39;migrations-path&#39;: path.resolve(&#39;database&#39;, &#39;migrations&#39;)</pre><pre>}</pre><p>Sequelize uses this configuration file to store all database-related files in a folder called database.</p><p>We can now initialize sequelize for use within our app by running the command:</p><pre>node_modules/.bin/sequelize init</pre><p>Notice the new database folder created within the application. This is what we specified in the configuration file (we told sequelize to create a folder named database and store all database connection info in it). There are four folders within this new directory. config, models, seeders, and migrations. We will go over them gradually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*j3L83_ddM43J3z318BBo5A.jpeg" /></figure><p>For now open the config.js file in the config folder and replace the contents with the code below.</p><pre>require(&#39;dotenv&#39;).config()</pre><pre>module.exports = {</pre><pre>    development: {</pre><pre>        use_env_variable: &#39;DATABASE_URL&#39;,</pre><pre>    },</pre><pre>    test: {</pre><pre>        use_env_variable: &#39;TEST_DATABASE_URL&#39;,</pre><pre>    },</pre><pre>    production: {</pre><pre>        use_env_variable: &#39;DATABASE_URL&#39;,</pre><pre>    }</pre><pre>};</pre><p>Depending on the environment the app runs in, sequelize will choose one of either development test or production databases to use. In order to do this though we’ll need to provide the database URLs as environment variables. This means we need to install a package that allows us to use environment variables within a node application. The dotenv package</p><pre>npm install --save dotenv</pre><p>Now create a .env file within the root of the application. Open this file and paste the following</p><pre>DATABASE_URL=postgresql://username:password@localhost:5432/database_name</pre><p>Replace the value of DATABASE_URL with the URL you copied from elephantSQL. If you’re using a local Postgres installation, then replace the username password and database_name with your information.</p><p><strong>6. GENERATING MODELS AND MIGRATIONS</strong></p><p>Now comes the time to define our model — the blogpost model. A blog post will have a title and a body. We’re avoiding the use of slugs and other information here to keep it simple.</p><p>There’s a sequelize command for generating models. To create the post model, run this command</p><pre>node_modules/.bin/sequelize model:create --name Post --attributes title:string,body:text</pre><p>This will generate two files, the post.js file in the models folder and a migration file that looks like this 20200124075445-create-post.js in the migrations folder. This is the file that we run against our database to create the post table. Generally, the files in the models folder are used by sequelize to map to the database tables. This is why when we generate a model in sequelize, it automatically generates an associated migration file. As stated earlier, the migration file contains the commands to create or drop the table for its associated model. By now it should be clear to you why sequelize is called an ORM (Object Relational Mapper). You should open both files and have a good look at the similarities. In this case, the post model maps to the posts table in our database which will soon be created by the migration file. Here, we have Javascript objects that map to tables in our database</p><p>Its time to run our migration on the database. In order words, its time to create our database table.</p><pre>node_modules/.bin/sequelize db:migrate</pre><p>You can now check your database to see the newly createdposts table. You may also see the SequelizeMeta table. Sequelize uses it to keep metadata about our tables you don’t need to communicate with it directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zYpch8VjgWScoHwKXiqPWw.jpeg" /></figure><p><strong>6. FINISHING THE ROUTE CONTROLLERS</strong></p><p>We now have a database and a table that we can write to an read from. Back in our posts.routes.js file, replace its’s contents with this code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ecf1ef178fe51e730a15c9cecee8fb4/href">https://medium.com/media/8ecf1ef178fe51e730a15c9cecee8fb4/href</a></iframe><p>What we’ve done here is to implement the actual CRUD functionalities. For example, from line 9 to 16, I have replaced the initial dummy response with the code necessary for Creating a blog post. The same goes for Read, Update, and Delete.</p><p>Line 2 is where I import the Post model from the models folder. With that I am able to perform these actions for each endpoint</p><pre>Post.create()        CREATES A BLOG POST<br>Post.findOne()       RETURNS A SINGLE BLOG POST<br>Post.findAll()       RETURNS ALL POSTS<br>Post.update()        UPDATES A BLOG POST<br>Post.destroy()       DELETES A BLOG POST</pre><p>Because these methods are asynchronous, we await all operations with the database before proceeding. I sure hope you’re beginning to see the usefulness of sequelize. Without these methods, we would have had to write SQL queries to perform these actions.</p><p><strong>7. TESTING THE ENDPOINTS WITH POSTMAN</strong></p><p>To test the endpoints, make sure the dev server is running npm run devStart</p><p>On postman, make a post request to <a href="http://localhost:3000/posts">http://localhost:3000/posts</a> with a title and a bodyas the form data.</p><p>The server should perform your request and send back a response with the details of the newly created blog post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*OvgcJZuAsh9uPb7ngVIWhQ.jpeg" /></figure><p>Check your database to see that the new post has been recorded in the posts table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*wDjF_qaNLB9-RBYGiSMbGg.jpeg" /></figure><p>You should test the remaining endpoints to confirm that they work.</p><p>GET <a href="http://localhost:3000/posts">http://localhost:3000/posts</a></p><p>GET <a href="http://localhost:3000/posts">http://localhost:3000/posts</a>/1</p><p>PATCH <a href="http://localhost:3000/posts">http://localhost:3000/posts</a>/1</p><p>DELETE <a href="http://localhost:3000/posts">http://localhost:3000/posts</a>/1</p><p>This was a simple tutorial on creating a REST API with Node, Postgres and Sequelize.</p><p>In the next episode, we will be adding comments to our blog posts. We will define a 1-to-many SQL relationship between posts and comments. We are also going to implement replies for comments. Such that when a user comments on a blog post, another user can reply to that comment, making the new comment a child of the previous comment. This will be implemented using a many-to-many relationship. All these can be achieved with sequelize associations. See you in the next episode.</p><p>The source code for this tutorial can be found here: <a href="https://github.com/ocranbillions/blog">https://github.com/ocranbillions/blog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74ab9a77b7d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building World-Class Features.]]></title>
            <link>https://medium.com/@ocranbillions/building-world-class-features-e8a031b4b1a8?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8a031b4b1a8</guid>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Fri, 24 Jan 2020 02:17:16 GMT</pubDate>
            <atom:updated>2020-01-25T10:54:32.631Z</atom:updated>
            <content:encoded><![CDATA[<p>There are a couple of attributes that come to mind when the term ‘world-class feature’ is mentioned.</p><p>In this write-up, I will describe what the key attributes of a world-class feature should have. Then I will discuss a feature I previously implemented and why I think it’s a world-class feature.</p><p><strong>Maintainability:</strong> A world-class feature should be easy to maintain. The easiest way to write maintainable code is to break tasks down into smaller units where possible. Writing unit code makes it easy to find and fix bugs since you can easily locate that unit producing the error. Writing code this way also makes it easy to scale.</p><p><strong>Scalability/Growth: </strong>If there is a need to add extra functionality to a given feature, how efficient will it be? Do they need to refactor over 50% of the code just to add additional functionality? World-class engineers always make sure features allow for easy growth of the entire application itself.</p><p><strong>Modularity/Reusability:</strong> Reusability is another reason code should be written in units. Because code repetition is always frowned at, features must be implemented in independent units so it can be called upon for use to avoid rewriting them again.</p><p><strong>Reliability: </strong>As a developer, you want to ensure your world-class features are reliable. A feature is meant to work as intended at every point in time. If this is not the case, it will be difficult to sell a product with uncertain functionalities. Other developers should also be able to rely on your features.</p><p>Code reliability can be achieved if proper Test Driven Development is adopted.</p><p><strong>Test:</strong> A world-class feature is a feature that is properly tested using the Test Driven Development approach. TDD requires us to write tests for our features as they’re being developed. We basically end up having a feature that is tested through as many use cases as possible.</p><p><strong>Follows conventions:</strong> A world-class feature is implemented following generally accepted coding conventions thus making it easier for other developers to understand the code.</p><ul><li>Use descriptive naming conventions</li><li>Use object-oriented design patterns</li><li>Separate concerns. Adopting the MVC design approach can be useful here.</li></ul><p><strong>Documentation:</strong> Documentation is a developer’s guide to using an application’s interface (or an API). A world-class feature is expected to have this guide to help others track all aspects of the app.</p><p><strong>Why I think this ‘article-comment’ feature is world-class</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yv7qyw2ahkje9aOn" /></figure><ol><li><strong>Modularity/Reusability:</strong> It uses the separation of concern approach. Right from the moment the endpoint is hit, there are four separate middlewares for handling four separate checks. This way these middleware can be reused on other endpoints that needs it.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pCoEI84RUhkK2gyU" /></figure><ul><li><em>verifyToken: a middleware with a separate unit of code for authenticating users (only logged in users can comment)</em></li><li><em>verifiedUserOnly: Does exactly what its name says. Only verified users are allowed to comment on articles.</em></li><li><em>validateComment: This checks and validates form inputs. For example this middleware will not allow a user to post an empty comment. We can’t allow our database to store empty rows of data.</em></li></ul><ol><li><strong>Descriptive naming</strong>: All functions/middlewares use a descriptive name so it’s easy to understand its purpose.</li><li><strong>Separation of Concern:</strong> The features is designed using the MVC design pattern to further separate concerns. There’s a controller folder for all controllers, and a database folder for our models. The postComment method is found in the CommentController class. This method is called on the create comment route when all middleware checks have passed. While some other developers might have implemented postComment function directly in the router file, I made it a separate file in the controllers folder. This way, it’s a lot easier to maintain</li><li><strong>Scalability:</strong> If an extra functionality needs to be added to the article comment feature. For example let’s say we also want to enable users reply to other comments. That is, create a comment thread. It can easily be added to the postComment method by getting the commentId from the request body and adding a few lines of code to check if the incoming comment is for an article or an existing comment on that article.</li><li><strong>Use of OOP: </strong>The feature further proves itself to be world-class as it uses the Object Orientation approach. We can see in the snapshot that the postComment is a method of a class called CommentController. This way, other CRUD operations for comments can be added to the CommentController class, making the code modular.</li><li>The controller doesn’t go straight ahead to create a comment, it first checks if the slug provided in the URL parameter actually belongs to an article in the database. This is necessary as there might be other consumers of the API aside from the person browsing the frontend application who have no direct use of the API.</li><li><strong>Reliability:</strong> The feature was implemented using the TDD approach, to ensure it works as expected.</li></ol><p>To start building your next world-class features, you should have these concepts in mind.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8a031b4b1a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A great relationship is the foundation for great performance]]></title>
            <link>https://medium.com/@ocranbillions/a-great-relationship-is-the-foundation-for-great-performance-659d669a37ef?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/659d669a37ef</guid>
            <category><![CDATA[relationship-building]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[communication-skills]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Mon, 10 Jun 2019 21:56:23 GMT</pubDate>
            <atom:updated>2020-01-25T07:58:38.882Z</atom:updated>
            <content:encoded><![CDATA[<p>A relationship is a means by which two or more people are connected. Relationships are built with people around us. It could be with our families, friends, colleagues or perhaps our superiors at work.</p><p>I’ll narrow this writeup down to building relationships with your team or co-workers.</p><p>The ability to build great relationships with your team is a necessary trait if you’re going to be a great employee. At our workplaces, effective teamwork is needed to grow a team and produce great performance in terms of quality and quantity. Success in a team will be judged by each individual contribution, thus, teams need to have a mutual understanding between themselves. As the saying goes, “A great relationship is the foundation for great performance.”</p><p>To build great relationships with a team you just joined, here is a list of things you can do</p><p><strong>Get yourself properly acquainted with your teammates.</strong></p><p>This is vital to both your personal improvement and that of the team as a whole. You cannot effectively contribute to a team where you are unfamiliar with the members. Hence, there is need for each team member to have an open mind and warm attitude towards the others. In doing this, your colleagues will have no issues associating themselves with you, thereby learning from you and sharing their knowledge with you.</p><p><strong>Be an active listener</strong></p><p>Building good rapport with teammates requires listening, listening attentively to the information being passed. This involves putting distractions aside, providing the speaker an uninterrupted atmosphere to speak, checking your understanding of the information being passed by asking relevant questions when necessary, etc. Paying attention to your teammates comes with the benefit of being in sync with current developments and discussions within the team.</p><p><strong>Give accolades/Recognize achievements:</strong></p><p>It’s important to acknowledge your teammates whenever they perform outstandingly well, perhaps when they contribute great ideas that can enhance team performance. By doing this, they will feel really appreciated, you also ignite their passion by giving accolades and recognizing their efforts towards the team&#39;s goals, which makes them want to contribute more to the team.</p><p><strong>Share from your wealth of knowledge</strong></p><p>Teams grow better when each member is willing to share their ideas and knowledge with the members. Sharing your ideas with your team provides the platform for your teammates to bring in suggestions for improving what you’ve shared. Ultimately, you can get an improved version of your idea if you share it them with, thereby advancing your knowledge on the subject matter.</p><p>In conclusion, building good relationships with your team is a necessity if you want to grow fast. You also get results fast with your team if you have a good relationship with your teammates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=659d669a37ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[INTRODUCTION TO TEST DRIVEN DEVELOPMENT]]></title>
            <link>https://medium.com/@ocranbillions/introduction-to-test-driven-development-6dfad038300e?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dfad038300e</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[tdd]]></category>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Mon, 10 Jun 2019 21:31:30 GMT</pubDate>
            <atom:updated>2020-01-25T08:14:23.664Z</atom:updated>
            <content:encoded><![CDATA[<p>“It is worth taking the time to build things the right way”</p><p>Test-driven development, TDD for short is an agile software development technique where small units of tests are first written before writing the code that passes the test.</p><p>We normally write a test knowing fully well that the test will fail since the feature has not yet been implemented. So when the test fails, we then write enough code to fulfill the test, that its, we write just enough code to make the test pass. If it passes, we then refactor the code to make it as clean as possible. Next is to write another test for the next unit of the feature we are about to implement, as usual, it fails because the unit hasn’t been implemented. So we update the code with the new unit to make the test pass again. These steps are then repeated over and over again until the full application is built. This is sometimes called the ‘red-green-refactor cycle’.</p><p>Instead of writing the code then writing tests for it, TDD approach requires us to write the test before writing a functional code for it. As explained above, this is done in small incremental steps, one test, then one small unit of functioning code to pass the test. Programmers using the TDD approach always do this before even a single line of functioning code is written. When they have the test written, then they proceed to write the code that is required for that test to pass.</p><p>It takes a disciplined software developer to adhere to the TDD principles because it is easy to skip writing test and go straight ahead to implement the feature before writing the test cases (if at all it is ever written).</p><p><strong>Benefits of TDD</strong></p><ol><li>With TDD, you can be sure that your code works exactly as intended. This is because, at the end of a finished product, almost every function of the app would have been tested since we write a test for each unit before implementing them. Therefore you’ll have a finished application that works as intended.</li><li>The approach also makes your code cleaner since almost every functionality is implemented as a single unit of a much larger codebase. This makes it extensible and a lot easier to maintain. Aside from this, it also saves us from lots of bugs that would otherwise be encountered as we write our application.</li></ol><p>The benefits are so numerous and I hope that with this simple explanation, you now have a better idea of what TDD is and its benefits to software developers.</p><p>As a developer, I encourage you to make some more research and start using this approach as you write your next application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dfad038300e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Whatever the mind can conceive it can achieve — Napoleon Hill]]></title>
            <link>https://medium.com/@ocranbillions/whatever-the-mind-can-conceive-it-can-achieve-napoleon-hill-50336d3eaad1?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/50336d3eaad1</guid>
            <category><![CDATA[passion]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[andela]]></category>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Wed, 24 Apr 2019 15:55:22 GMT</pubDate>
            <atom:updated>2020-01-25T08:18:51.333Z</atom:updated>
            <content:encoded><![CDATA[<h3>Whatever the mind can conceive it can achieve — Napoleon Hill</h3><p>Hello readers,</p><p>I am Sam, a few weeks ago, I got an invitation to participate in Andela’s Cycle 43 Bootcamp. This brought me great joy, I was really excited I must say. I have always wished to join this team of great technologists where there is an enabling environment for me to develop my tech interest, so I saw the bootcamp as the opportunity I had been looking for.</p><p>We started, and our first task was to build out the template of ‘Banka’ in pure HTML/CSS. Banka is a lightweight banking application where customers can register and create bank accounts, view their transactions online but must visit the bank to make those transactions. I felt determined and I was ready to put in my best. The project itself sounded exciting and I saw it as an opportunity for me to build my first functional full-stack application, something I would be proud to show to my friends.</p><p>The assignment was divided into sections, the first task of which was to build the backend API of the application. This is where things got serious. I had already decided in me that no matter what happens I will do everything possible to not be evicted.</p><p>Luckily for me, I had enrolled in Andela’s #AlcwithForloop program prior to the start of the bootcamp. This gave me some fair amount of knowledge on writing APIs. Lucky me! I quickly leveraged the skills I had acquired from #AlcwithForloop workshops. Within a reasonable amount of time, I was done with my APIs. This, along with other attributes my learning facilitator must have observed got me advanced into week 2 of the bootcamp.</p><p>Today makes day two of the second week. So far I have faced quite a number of challenges and I have overcome them by persistence. Words like Heroku, database migrations, continuous integration were scary terms to me. However, once you have the passion for something and set your mind to it, anything is achievable. We are still in week 2 of the bootcamp and I am most definitely overcoming all odds by every means possible.</p><p>I hope this encourages you in your pursuit of happiness.</p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50336d3eaad1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An interesting tool I encountered in preparation for Bootcamp]]></title>
            <link>https://medium.com/@ocranbillions/an-interesting-tool-i-encountered-in-preparation-for-bootcamp-1c898cf0da72?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c898cf0da72</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[travis-ci]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Wed, 17 Apr 2019 14:21:09 GMT</pubDate>
            <atom:updated>2020-01-25T08:25:23.149Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*nB9_nyiTrtFQkKJ0OYLyiA.jpeg" /></figure><p>Hello readers,</p><p>It’s my third day at Andela’s bootcamp; the final stage of the Andela Fellowship application process. Within these few days, I have encountered a handful of tools developers use in their daily life to make them more productive and efficient. Among these tools is TravisCI, a very useful tool as you’ll soon learn from this post. To explain TravisCI, let me first explain what the term ‘continuous integration’ means.</p><p><strong>Continuous Integration: </strong>The CI in TravisCI stands for Continuous integration, this is the practice of merging small chunks of code to an existing codebase. Usually, a developer would push their project to a remote repo like GitHub while they continue working on their local version. Whenever the developer completes a new feature or when they make an improvement, the new code is pushed to the repo to be merged.</p><p>Sometimes in the process of adding new features bugs may be introduced in the new code unknowingly. This is where Travis CI comes in. Travis is a cool tool for implementing continuous integration. It works by checking the new code whenever there is a pull request against the default remote branch. It runs a test on the code to be merged; if errors are found it reports them. This is really cool because you may never know for sure if your application’s performance will still remain the same after a new branch is merged. Travis makes this check for you. You can then fix the reported errors on the new branch and try again. The branch won’t be merged until Travis passes all tests pass.</p><p>Travis is really easy to set up, and once you have it set up you are not required to go through the setup process again for each merge. This makes it very simple to use, although it can seem intimidating at first if you haven’t used it before, the good part is that it doesn’t take much time to get familiar with it though.</p><p>Without Travis, developers would have to go through the pain of manually testing every functionality of their application whenever new features are added to the codebase.</p><p>If you ever decide to build a serious business application, there is no way you’ll not want to implement continuous integration and luckily for us, this great tool is available to automate the process.</p><p>I hope you found this insightful.</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c898cf0da72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My reflections on Andela’s EPIC Values]]></title>
            <link>https://medium.com/@ocranbillions/my-reflections-on-andelas-epic-values-fc622e959e71?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc622e959e71</guid>
            <category><![CDATA[andela]]></category>
            <category><![CDATA[intergrity]]></category>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[passion]]></category>
            <category><![CDATA[epic]]></category>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Tue, 16 Apr 2019 15:49:19 GMT</pubDate>
            <atom:updated>2020-01-25T08:47:01.331Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s what I think about Andel’s EPIC Values.</p><p>Andela grooms talented Africans into world-class programmers. An opportunity I am looking forward to benefiting from. One of the key things Andela holds in high esteem is its EPIC values. The acronym stands for Excellence, Passion, Integrity, and Collaboration. If you happen to know anyone who works at Andela, then you most definitely would have seen these values in them. Every Andelan believes they should be EPIC in their day to day lives. Yes, and they believe they can change the world; perhaps they are already doing so.</p><p>At Andela, to be EPIC means to possess these qualities:</p><p><strong>Excellence: </strong>Andelans believe that everyone can bring out the best in them if they’re willing to strive harder. They believe you own your learning, and they also believe to achieve a world-class standard, you must be able to produce outstanding outputs.</p><p>Andela outsources software developers to both start-up and world-class technology companies. As an African developer, you need to be able to produce excellent work in order to convince a foreign client that an African developer on the streets of Lagos or Nairobi can be as good as a developer in Silicon Valley. Therefore excellence is a must for every Andelan. This is the culture at Andela.</p><p>I believe that excellence is never an accident as it can be achieved by any man who is willing to apply the required amount of effort. The result of which is the feeling of producing quality output, looking at what you did and feeling good about it. It’s no wonder Andelans believes they can change the world; because they produce outstanding results.</p><p><strong>Passion: </strong>Andelans are passionate about what they do. I’ll put it this way to achieve the ‘E’ in EPIC you must first possess the ‘P’. It will be almost impossible to achieve excellence if you are not passionate about it. To be passionate means to be enthusiastic or to have an intense desire towards something. And wherever there is passion there is already motivation. Andelans believe it is their duty to change the world one line of code at a time and this is the passion that drives them. Failure does not exist on a passionate man’s path because every obstacle is an opportunity for growth.</p><p><strong>Integrity: </strong>The quality of being honest and having strong moral principles.</p><p>Last week I was at Andela’s pre-bootcamp workshop. We were taught how to set up a node and Postgres project. Unfortunately for me, I got in late so I missed a lot of information that was shared in the beginning. When the session finished I asked if they can share the code with us so we can go through it to better understand what was taught. They refused! I was surprised. That’s when I knew how strict they are on integrity. Andela provides you with guidelines and resources but never hands you already made solutions. Bravo! This really impressed me.</p><p>Again, at Andela ‘you own your learning’ and plagiarism is greatly frowned upon. It looks to me like integrity is the most upheld of the EPIC values. This is good because pushes fellows to go out of their comfort zones and makes them research on their own. In the process of doing so, they get to pick up more skills.</p><p><strong>Collaboration (my favorite)</strong></p><p>Although Andela is very strict on integrity. I came to understand that they foster collaboration among peers. People are always ready to give you guidelines whenever you face any challenge. I experienced this at bootcamp and other ALC programs I have participated. Senior developers are always willing to share their wealth of knowledge.</p><p>So dear reader, just in case you wish to join this company, these are the values they expect you to uphold. Your technical skills alone aren’t enough.</p><p>I hope this was informative.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc622e959e71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My most recent challenging learning experience.]]></title>
            <link>https://medium.com/@ocranbillions/my-most-recent-challenging-learning-experience-96088d651573?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/96088d651573</guid>
            <category><![CDATA[full-stack]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[andela]]></category>
            <category><![CDATA[bootcamp]]></category>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Mon, 15 Apr 2019 14:47:50 GMT</pubDate>
            <atom:updated>2020-01-25T08:40:46.399Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello readers,</p><p>My most recent challenging learning experience has been learning backend technologies. Writing APIs in Nodejs, configuring and communicating with databases. *sighs* There’s a lot of moving parts on the backend of a web application. For those of you that don’t know, well here’s a thing. You probably enjoy having the ability to log into a website like Facebook and setting up a profile for yourself and perhaps uploading your pictures and tagging your loved ones to comment on them. (quite fun right?). Well, there are many moving parts behind a web application. Things like databases, APIs, validations routes and so much more. There are specialists called backend developers who make these things possible.</p><p>Before I continue, I would like to appreciate these guys for the efforts they put in writing these functionalities. They are very intelligent individuals and I admire their work a lot. This, amongst other interesting facts, is one of the reasons why I chose software development as my career path.</p><p><strong>How I started learning Nodejs</strong></p><p>Early this year I saw a tweet from @unicodeveloper (Prosper Otemuyiwa) a popular software developer based in Lagos, Nigeria. The tweet was a call for aspiring developers to register for a 6-week workshop on building backend applications using Nodejs, a technology I wasn’t familiar with. Not that I didn’t know anything about Nodejs, I knew of its existence and its use but for some reason, I felt it wasn’t time for me to learn it yet. I felt it was necessary for me to learn and understand the JavaScript language well enough before moving on to learning backend technologies or frontend frameworks like Reactjs. Well, that made sense and still makes sense if you ask me. However, because it was a program organized in collaboration with Andela, I decided since its Andela, I’ll apply, like who wouldn’t want to learn from the best. They say opportunity comes ones, and so I applied, did the test and got selected. A few weeks later we started on a fun and challenging journey. Unknown to me, I was about to write my first full-stack app. The materials we were to cover were overwhelming to me.</p><p>We were required to build a meal-booking app. I read the entire project requirements and honestly, I was both excited and afraid. I was afraid because I had no knowledge of about 90% of the things I saw in the requirements; I was quite comfortable with frontend languages like HTML, CSS, and JavaScript. So when I saw things API testing, Continuous Integration with Travis and Coveralls, Postgres and sequelize, I had a second thought again, like this program is not for beginners like me. Least I forget there was Git/GitHub and also API documentation. All these we were meant to learn on our own with minimal supervision, hmm. I was one of the lucky people to receive Udacity frontend Nanodegree course from ALC3.0 so I was a bit conversant with git, but still, I was like ‘who do they want to kill?’</p><p>I started anyway; I did a lot of research because the resources they gave us weren’t enough to complete the whole project. At the end of the second week, they started evicting people. We were over 150 when we started, by the 3rd week we were less than half of that. I managed to scale through though and I think one motivating factor for me was the fact that I got to find out the true meaning of this saying they always say at Andela. ‘You own your learning’. What this meant to me was, Andela provides us with minimal resources; steps required to build the project and expect us to do further research on the given steps.</p><p>Truly the program thought me that I actually own my own learning. I got really amazed at how much I was able to learn in a short period.</p><p>To cut this story short, today I am at my first Andela Bootcamp today writing APIs, testing them with mocha and chai, setting up continuous integration with Travis, deploying to Heroku and doing a lot of cool stuff that seemed weird to me a few months ago.</p><p>- The opportunity came for the top performers of the #alcwithForloop program to be selected for the next Andela bootcamp and since I was among the top 10, I got selected. Hurray!! We however didn’t finish the last part of the meal-booking-app because we had to start working on our new bootcamp project. I intend to go back and finish it sometime later</p><p>Yes! So that was my most recent learning challenge and how I overcame it with a growth mindset.</p><p>I hope this encourages you in whatever skill you’re trying to acquire.</p><p>Best of luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96088d651573" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FOCUS! — Unless we focus, we cannot achieve our goals.]]></title>
            <link>https://medium.com/@ocranbillions/focus-unless-we-focus-we-cannot-achieve-our-goals-2dc671b99a67?source=rss-bf3618aa450e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dc671b99a67</guid>
            <category><![CDATA[focus]]></category>
            <category><![CDATA[goals]]></category>
            <category><![CDATA[achievement]]></category>
            <category><![CDATA[success]]></category>
            <dc:creator><![CDATA[Samuel Ocran]]></dc:creator>
            <pubDate>Wed, 03 Apr 2019 10:04:38 GMT</pubDate>
            <atom:updated>2020-01-25T08:42:10.815Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>FOCUS! — Unless we focus, we cannot achieve our goals.</strong></p><p>One day a master archer was teaching his students the art of archery. He set a wooden bird on a tree and told the one student to aim for the eye of the bird. The student got his bow and arrow, positioned himself to make his hit. Just then the master asked him ‘what do you see’. The student responded ‘I see the tree, the branches, the bird and its eyes’. The master allowed him to shoot. He made his shot but he missed.</p><p>The second student got prepared for his shot and the master asked him the same question. ‘Tell me what you see’. He responded ‘I only see the eye of the bird’. ‘Good’ said the master. The student made his shot and the arrow went straight to hit the eye of the bird.</p><p>Moral Lesson: There are many things to distract us from achieving our goals but unless we focus on that particular thing we want, we may not achieve them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dc671b99a67" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>