<?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 Ajibola Ojo on Medium]]></title>
        <description><![CDATA[Stories by Ajibola Ojo on Medium]]></description>
        <link>https://medium.com/@pro.ajibolaojo?source=rss-4f0a3357efc4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AIdq3HKNbjri2adcI03LGA.png</url>
            <title>Stories by Ajibola Ojo on Medium</title>
            <link>https://medium.com/@pro.ajibolaojo?source=rss-4f0a3357efc4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:04:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pro.ajibolaojo/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[State design Pattern: (Video call case study)]]></title>
            <link>https://medium.com/@pro.ajibolaojo/state-design-pattern-video-call-case-study-f2fbcbf3af9?source=rss-4f0a3357efc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2fbcbf3af9</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[video-conferencing]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Ajibola Ojo]]></dc:creator>
            <pubDate>Wed, 29 Dec 2021 21:22:42 GMT</pubDate>
            <atom:updated>2021-12-29T21:22:42.929Z</atom:updated>
            <content:encoded><![CDATA[<p>So, after a long break, I decided to continue on the design pattern series, I gave a brief intro to design patterns, in this <a href="https://blog.devgenius.io/design-patterns-in-programming-how-and-when-to-use-them-feaf6ce4aefd">article</a>, and I’m using this series as a systematic way to show how they feature in our day-to-day code.</p><p>So the state design pattern is one of the behavioral design patterns — it helps to solve problem that involve interaction between classes, the classes being the state of the object — used when objects behave in different ways based on the current state they are in.</p><p>One major note for visualising the implementation of this design pattern is finite state machines. Can this problem be visualized as a finite state machine (FSM)?</p><p>A Finite State Machine or Finite Automaton is an abstract machine that can be in exactly one of a finite number of <em>states</em> at any given time. While learning abstract stuff like automata theory in college, building stuff like this showed one of the practical applications of automata in software development.</p><p>So can our system be represented as having a finite number of states? Yes. For the sake of this case study, they include: IDLE, RECEIVING, CALLING, ONCALL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Raa61dOJUeOlKUt877F9qQ.png" /><figcaption>FSM model for video calling</figcaption></figure><p>So this is the diagram of a finite state machine showing callers in their 4 possible states and the transitions that can occur.</p><p>Initially, Caller A and Caller B are IDLE. If Caller A attempts to call Caller B, Caller A state moves to CALLING, while Caller B moves to RECEIVING. At this point, either of the callers can decide to end the call, or Caller B can decide to receive the call. If the call is ended, both callers return to their IDLE state, in the case the call is received, both callers move to ONCALL state.</p><p>I’ll also show a brief code snippet in python to illustrate this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/457d7382fc1a2df1922a0f14ae30ca0b/href">https://medium.com/media/457d7382fc1a2df1922a0f14ae30ca0b/href</a></iframe><p>Okay, so this may have been a whole lot, but it’s pretty simple once you understand the intuition. we have a <em>Caller </em>Class which stores the <em>state</em> and the <em>other_person</em> in a call. The caller’s <em>state </em>is one of the four classes implemented in the snippet, which all inherit from <em>BaseCallerState.</em></p><ul><li>An IDLE user can <em>make_call </em>or <em>receive_call.</em></li><li>A RECEIVING user can <em>accept_call </em>or <em>end_call.</em></li><li>A CALLING user can <em>end_call </em>or continue after the callee <em>has_accepted_call.</em></li><li>An ONCALL user can only <em>end_call.</em></li></ul><p>So this wraps up the entire lesson about building using the state design pattern, we talked about the state design pattern, the usecase, finite state machines, visualised a problem as a finite state machine and translated the state machine to code.</p><p>If this article was helpful, please feel free to leave a clap🙂. You can leave comments to or reach out to me via <a href="https://twitter.com/jibolaojo">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2fbcbf3af9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Patterns in programming — How and when to use them]]></title>
            <link>https://blog.devgenius.io/design-patterns-in-programming-how-and-when-to-use-them-feaf6ce4aefd?source=rss-4f0a3357efc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/feaf6ce4aefd</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Ajibola Ojo]]></dc:creator>
            <pubDate>Sat, 02 Oct 2021 22:52:27 GMT</pubDate>
            <atom:updated>2021-10-03T14:36:54.463Z</atom:updated>
            <content:encoded><![CDATA[<h3>Design Patterns in programming — How and when to use them</h3><p>So design patterns are one of those language-agnostic concepts you’d come across as a software engineer. They’re basically more reusable solutions to common problems. A good understanding of these design patterns would make it easier to develop more suitable solutions to most problems you’d try to solve as a software engineer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nIT2IjybjOOj-oQS" /><figcaption>Photo by <a href="https://unsplash.com/@_imkiran?utm_source=medium&amp;utm_medium=referral">Sai Kiran Anagani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>While building software, there are some problems repeated quite often, and having to rewrite the same code a whole lot of times, to achieve the same thing would not be the most optimal approach, hence the need for packages. In the same vein, many of the problems you’d have to solve have similar patterns that make it easier to approach, and this is why design patterns were created. It’s basically a bunch of tested guidelines that always solve similar problems pretty well.</p><p>If you’ve built any software, you’ve probably encountered some of the most common patterns, but a more broad understanding of each design pattern and its use case would help come up with more clever solutions.</p><p>Design Patterns are broadly classified into three:<br>1. Structural,<br>2. Behavioral, and<br>3. Creational design patterns.</p><ol><li>Structural design patterns refer to the patterns that suggest approaches commonly used to compose various classes/objects in solving a problem.</li><li>Behavioral design patterns refer to the patterns that help to solve problems related to interactions between various classes/objects.</li><li>Creational design patterns refer to the patterns that suggest approaches commonly used to create objects from a class, based on the behavior required by the object.</li></ol><p>These design patterns aren’t rigid, and neither are their implementations, they’re more like a set of guidelines for solving similar sets of problems. There shouldn’t be a need to ‘box’ yourself to always following a design pattern in a certain way, a good understanding should only help shape your approach to problem-solving and not restrict it.</p><p>While this introduction may seem abstract, I’d start a series of articles going through implementations of some of the most common design patterns, and how they can be applied while programming.</p><p>If it was a great read, you can leave a clap, feel free to leave a comment, or reach me on <a href="https://twitter.com/jibolaojo">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=feaf6ce4aefd" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/design-patterns-in-programming-how-and-when-to-use-them-feaf6ce4aefd">Design Patterns in programming — How and when to use them</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data structures and Algorithms: Are they really necessary?]]></title>
            <link>https://blog.devgenius.io/data-structures-and-algorithms-are-they-really-necessary-d8f29df2125?source=rss-4f0a3357efc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8f29df2125</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[datastrucutre]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ajibola Ojo]]></dc:creator>
            <pubDate>Fri, 01 Oct 2021 19:30:35 GMT</pubDate>
            <atom:updated>2021-10-03T14:36:53.269Z</atom:updated>
            <content:encoded><![CDATA[<p>So you’ve been coding for some time, and keep hearing everyone talk about learning data structures, how it’s a usual part of the interview process at top tech companies, how it’s useful for competitive programming, you’ve probably heard other things, that made you interested in reading this article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PDNMsujPzJM0qP5A" /><figcaption>Photo by <a href="https://unsplash.com/@tma?utm_source=medium&amp;utm_medium=referral">Tianyi Ma</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So, I’d start with an example, you’ve just learned about arrays, and have this fantastic idea about indexing by a string instead of a number, and you come up with something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/862e51d1dd8e7bbd6224caf1bcc62cd1/href">https://medium.com/media/862e51d1dd8e7bbd6224caf1bcc62cd1/href</a></iframe><p>So, we’ve basically reimplemented a dictionary, with arrays because we didn’t know about the dictionary data structure. This example may have been trivial, but it goes to show how learning data structures and algorithms should shape how ideas are executed as developers. A lesser knowledge of data structures cripples the scope of work you can successfully implement as a developer.</p><p>Data structures and algorithms, are literally all you deal with while programming, you need to store a name, you go for a string, you need to store an age, an integer, you need to store a list of values, maybe use an array.</p><p>So while interviewing, I feel the purpose of algorithm tests especially is to know you can at least pick the right tool for the job, I’m not a big fan of whiteboarding — I mean, you could know the right approach and be nervous — but I won’t write off algorithm tests as a part of an interview process. And for the “less common” data structures, like graphs, trees, tries, and all that. Learning them at your pace in your spare time would definitely be beneficial, even if you don’t have to use them that frequently, the knowledge of these data structures and their regular use-case would go long way in helping to pick the right tool for the job.</p><p>In conclusion, they’re necessary for every developer, we all have to learn about them, every variable declared literally has to be based on a data structure, some are less common than others, hence the constant arguments over the usefulness of these having to learn these data structures. Should companies interview based on these data structures? Yes, if it’s something that’ll be useful for that role, if not, it may not be necessary.</p><p>Feel free to leave a couple of claps if it was a good read, you can also reach me on <a href="https://twitter.com/jibolaojo">twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8f29df2125" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/data-structures-and-algorithms-are-they-really-necessary-d8f29df2125">Data structures and Algorithms: Are they really necessary?</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Choosing a programming language]]></title>
            <link>https://blog.devgenius.io/choosing-a-programming-language-21721881d390?source=rss-4f0a3357efc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/21721881d390</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Ajibola Ojo]]></dc:creator>
            <pubDate>Mon, 08 Jun 2020 14:11:00 GMT</pubDate>
            <atom:updated>2021-09-13T11:38:41.039Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been programming for some time now and I’ve met a lot of people who are interested in programming. A handful of the people I’ve met had heard about several programming languages, yet one very common problem was deciding the programming language they needed to learn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HsXSQWUpHOL5iM5l" /><figcaption>Photo by <a href="https://unsplash.com/@ffstop?utm_source=medium&amp;utm_medium=referral">Fotis Fotopoulos</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The programming language to learn</h3><p>Now, this cannot be given a definite answer, and that’s why this article is there to guide your choice and make selection easier. These are the major pointers to the programming language you should learn:</p><p><strong>The Field of interest. </strong>A google search on the most used language in the field you’re interested in will help a whole lot. <em>Every good developer is a good googler, you might as well start your journey early. A g</em>oogle search in this direction will help a lot because you get to know the languages and technology that have been considered important by more experienced developers in that field, you get to know which tools are more recommended to start learning with, then there’ll be a whole lot of community support while learning.</p><p><strong>The organization you’d like to work for. </strong>While this is closely related to the field of interest, learning a programming language widely used in a particular field doesn’t mean all the organizations in that field support the use of that language. Let’s say you’re planning to work for Facebook, learning Angular, though it’s an awesome Framework would be an extremely terrible idea. So a good google search on the tech stack of that organization you will like to work with will help you know what language to use.</p><p><strong>Ease of use.</strong> Not everyone has a particular organization or field of interest while beginning to learn to program, and this is quite understandable, given you also want to explore your options. In this case, I advise a programming language that is easy to learn. While <em>‘easy to learn’</em> may be debatable, languages with simpler syntax, like Python and JavaScript, make it easier for you to focus more on learning how to code rather than mastering the syntax of a particular language. There are lots of languages with a simple syntax, a good google search will help, but those two are my personal favorites.</p><h4>Conclusion</h4><p>The perfect programming language for you can only be determined by you. A good google search based on the points above will help. If you just want to get into programming and need any language <em>‘easy to learn’</em>, I recommend Python or JavaScript. If you’re still not sure if you’re making the right choice, reach out to a developer to guide you.</p><p>Please, feel free to add anything you think I’ve left out in the comments below, you can also reach me on <a href="https://twitter.com/jibolaojo">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21721881d390" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/choosing-a-programming-language-21721881d390">Choosing a programming language</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>