<?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 Ayo Ijidakinro on Medium]]></title>
        <description><![CDATA[Stories by Ayo Ijidakinro on Medium]]></description>
        <link>https://medium.com/@ijidak?source=rss-4aaf546d2886------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5Cz7MUGKQ86awbADwkU9AQ.png</url>
            <title>Stories by Ayo Ijidakinro on Medium</title>
            <link>https://medium.com/@ijidak?source=rss-4aaf546d2886------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 07:00:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ijidak/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[I wanted to see the entire stock market at once, so we built StockAtlas]]></title>
            <link>https://ijidak.medium.com/i-wanted-to-see-the-entire-stock-market-at-once-so-we-built-stockatlas-e68cc22aa39a?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/e68cc22aa39a</guid>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 07:10:20 GMT</pubDate>
            <atom:updated>2026-11-15T07:32:21.307Z</atom:updated>
            <content:encoded><![CDATA[<p>As an investor, I’ve always felt frustrated because I wanted a holistic view of the market and it was just so hard to see everything, everywhere all at once.</p><p>I craved a visualization that would let me watch not just Nvidia, but see a stock like Micron start to explode, while also being able to quickly spot in seconds EVERY other stock that is starting to explode or collapse.</p><p>I was also surprised that enough investors didn’t crave such a view to motivate someone to build a solution.</p><p>So, I decided to build it for myself.</p><p>That is how we ended up building StockAtlas.</p><p><a href="https://stockzoomai.com/articles/i-wanted-to-see-the-whole-market-at-once/#watch-the-video">Watch the video: The big idea behind StockAtlas (6 minutes)</a></p><h3>Our goal was to remove market blind spots and tunnel vision</h3><p>Staring at an Nvidia chart isn’t going to help you find Micron. And staring at charts of AI companies all day won’t tell you when something starts happening in solid-state batteries or quantum computing.</p><p>That was the part that kept bothering me.</p><p>While I am focused on one area of the market, another might be starting its boom. By the time I noticed because of a news story or article, it is too late. The early move has already happened.</p><p>At the same time, adding endlessly to a watchlist doesn’t solve the problem. The market changes too fast and any list quickly becomes stale.</p><p>Plus, there are too many great stocks to track via a static list. Once the list gets so big, we’re back to having too many assets to keep track of via lists of randomly moving numbers.</p><p>Plus, I wanted to stop having to guess what belonged on it in the first place. Invariably, what makes it onto the list are just the stocks I was aware of up until that point in time, which still requires a streamlined process for discovery.</p><h3>A visual view that scales for whole-market stock discovery</h3><p>With StockAtlas, we bring thousands of stocks and ETFs traded on U.S. markets together on one screen. We organize them into clusters of assets that have tended to move together over the period you’re analyzing.</p><p>That gives you a way to see movement across groups of companies. You can look for a cluster that’s starting to gain strength, then explore which assets are participating. You can also look for groups that are falling while your attention has been on something else.</p><p>This is what I wanted so badly: a way to follow the companies I already cared about while keeping the rest of the market in view.</p><p><a href="https://stockzoomai.com/articles/i-wanted-to-see-the-whole-market-at-once/#watch-the-video">Watch the video: The big idea behind StockAtlas (6 minutes)</a></p><h3>The night sky seemed like the perfect model for a view of the market</h3><p>Think about how, as man has looked up at the night sky for thousands of years, we have been able to spot things that stand out. Wandering planets. Supernovae. Nebulae. The brightest stars.</p><p>For example, Chinese astronomers recorded “guest stars” in AD 185, AD 393, AD 1006 and AD 1054 that are now associated with supernovae. (NASA: <a href="https://heasarc.gsfc.nasa.gov/docs/heasarc/headates/0.html">early records</a>, <a href="https://heasarc.gsfc.nasa.gov/docs/heasarc/headates/1000.html">later records</a>)</p><h3>Isn’t an explosive company somewhat like a supernova?</h3><p>Really, how different is an explosive company’s revenue, profit, or price event from a supernova?</p><p>A dim object suddenly increases in brightness, indicating a major event is unfolding.</p><p>On a screen, I wanted an explosive market event to catch my attention just as clearly.</p><p>That’s why we felt the night sky is the perfect model for a stock analysis dashboard that allows you to explore the universe of tradeable assets.</p><p>It’s also why we designed StockAtlas to maintain stable positions for assets and their clusters — between cluster refreshes. As you become familiar with a map, you know where to look. You can compare the same parts of the map across time periods and notice what’s changing without having to reorient yourself.</p><h3>From galaxies to individual stars</h3><p>When studying stocks, just as when studying the night sky, sometimes you want to take in the whole picture — the larger scale structures like galaxies, and sometimes you need a closer look like looking at individual stars within a galaxy.</p><p>Likewise, StockAtlas gives you two views for different perspectives on the market and clusters of similar stocks: collapsed view and scattered view.</p><h3>Collapsed view — Performance at the cluster level</h3><p>In collapsed view, each cluster is brought together, with collective performance metrics for the group. This gives you a sense of the scale of movement in that part of the market and lets you compare it with other clusters.</p><h3>Scattered view — Performance at the level of individual assets</h3><p>Then you can switch to scattered view, where every asset appears as its own point. Now you can see what’s happening inside the group.</p><h3>An example to demonstrate the benefits of collapsed view versus scattered view</h3><p>Suppose you’re looking at a cluster of memory manufacturers. Perhaps companies exposed to high-bandwidth memory are doing well, while others in the cluster are barely moving. The collective numbers might not tell you how much is happening in that smaller group.</p><p>Whereas, scattered view lets you see which companies are most responsible for the movement of the overall cluster.</p><p>The same applies when a few weak performers drag down a cluster’s overall results.</p><p>We want to be able to see those differences for ourselves by drilling down into scattered view.</p><p>Otherwise, we might glance at the average performance for a cluster of assets and miss a trend worth investigating.</p><h3>Regenerating clusters to look at different timeframes</h3><p>No single clustering timeframe is universally best for every investor. Each of us is looking for different types of opportunities and different market events.</p><p>That’s why StockAtlas allows you to change the time window and regenerate your asset clusters.</p><p>That way, you’re looking at relationships over the period you choose, so that you can explore how companies moved together perhaps during a particular event.</p><h3>Using custom clustering windows to study AI memory stocks</h3><p>Suppose you want to study the period when AI memory stocks began to take off.</p><p>You might use StockAtlas to choose a window around that specific time period and rebuild your clusters.</p><p>Then you can investigate the companies grouped together, compare how far they’ve moved, and look for related companies you hadn’t considered.</p><p>That then gives you a set of companies to research and questions to follow up on, such as: Are these companies benefiting from the same demand? Does a company that hasn’t moved much have a connection worth understanding? You’re much more likely to identify winners than doing that research retroactively once a new name pops up in a headline.</p><p>Typically, by the time a stock shows up in a headline, that’s because the big move up or down has already happened.</p><p><a href="https://stockzoomai.com/articles/i-wanted-to-see-the-whole-market-at-once/#watch-the-video">Watch the video: The big idea behind StockAtlas (6 minutes)</a></p><h3>Why is a tool like this better than reading market news and newsletters?</h3><p>News and newsletters can absolutely still be useful. A good article can explain why something is happening. A good newsletter can introduce an idea you or I haven’t considered.</p><p>But, again, by the time a move attracts coverage to make into your feed, it’s likely already well underway.</p><h3>Plus I still want to find overlooked assets loosely associated with a trend</h3><p>Also, even when someone recommends a stock or a group of stocks, I still want to see what’s happening around those companies. Are there other assets moving with them? Is the move spreading across a larger group?</p><h3>The same applies to stock signals</h3><p>Individual stock signals leave me with similar questions as receiving an article or seeing news. An alert might tell me that one company is moving, but I want to understand whether it’s part of something broader.</p><p>Alerts tend to also be narrow to a set of stocks for which you’ve asked to receive those alerts. Otherwise, you’d be overwhelmed with noise because expanding the number of stocks you get alerts for means more alerts to keep up with.</p><p>That’s why I wanted a visual way to explore the market alongside those tools. I want to be able to notice something, investigate it, and form my own view.</p><h3>A 30,000-foot view of markets</h3><p>That’s why I’m so excited about StockAtlas! I think this tool will help investors like me and you spot amazing market opportunities faster and give us more of a 30,000 ft view of the markets.</p><p>I can’t wait to see how we improve StockAtlas over the following months and year! What you see today are just the first baby steps towards our final vision. Please join us for the ride!</p><p>If you just want to know what we’re up to, please <a href="https://stockzoomai.com/articles/i-wanted-to-see-the-whole-market-at-once/#newsletter">join our mailing list</a> now to get status updates and hear our unfiltered brainstorms and ideas!</p><p>If you want to get in line to use StockAtlas, <a href="https://stockzoomai.com/waitlist/">join the waitlist now</a>.</p><p><em>Originally published on </em><a href="https://stockzoomai.com/articles/i-wanted-to-see-the-whole-market-at-once/"><em>StockZoomAI.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e68cc22aa39a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Developers Can Satisfy Requirements And Hand-over Quality Code]]></title>
            <link>https://ijidak.medium.com/how-developers-can-satisfy-requirements-and-hand-over-quality-code-9ee47a9d53bc?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ee47a9d53bc</guid>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Mon, 15 Apr 2024 22:17:55 GMT</pubDate>
            <atom:updated>2024-04-15T22:17:55.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YRlOZwjGedsEoSSn" /><figcaption>Photo by <a href="https://unsplash.com/@johnishappysometimes?utm_source=medium&amp;utm_medium=referral">John Schnobrich</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As a software developer, below are two of your most critical responsibilities:</p><ol><li>Correctly interpret provided requirements (perhaps with some provided implementation details) into a concrete implementation</li><li>Hand-over quality code to QA</li></ol><p>If you fail at either of these, your co-workers, managers, and stakeholders will likely be dissappointed.</p><p>For example, you might correctly interpret requirements. But, if you hand-over poor quality code to QA you’ve failed.</p><h3>QA is meant to be a last-line-of-defense, not the only line of defense!</h3><p>You might say to yourself, we’ll of course, I’ll just write unit tests.</p><p>But, think about this question, how can you write good unit tests if you’ve incorrectly interpreted requirements?</p><p>Unit tests are no better than your interpretation of requirements.</p><p>Alternatively…</p><h3>Your code can be of impeccable quality, but if your implementation misses key requirements, under-implements requirements, or incorrectly interprets requirements you’ve failed again</h3><p>Now, at this point you might say, “It’s not my fault! The requirements are always bad!”</p><p>Unfortunately, in the real world, this excuse doesn’t fly.</p><p>Why not?</p><h3>Requirements are insufficient so often, that your ability to deal with insufficient requirements is a key factor that distinguishes great developers from average and below average</h3><p>Saying “requirements are bad” is a valid statement, but the real question for you as the developer is: “What process will you use to get the information you need to clarify requirements before your start your feature AND DURING your implementation!”</p><p>On this point regarding process, the three common mistakes I’ve seen average and below average developers make are:</p><h3>Mistake #1: The developer puts insufficient effort into understanding the requirements</h3><p>He scans the requirements for 30 seconds, and off he goes to write code.</p><p>Invariably he’s failed to think through the requirements sufficiently and thus has written deficient code and deficient test cases.</p><h3>Mistake #2: The developer believes he can avoid human interaction during development because he believes requirements are and should be 100% accurate</h3><p>This developer retreats into his cave to write code with plans to triumphantly emerge in spring like a bear leaving hibernation.</p><p>In reality…</p><h3>100% requirements accuracy is a fantasy</h3><p><em>Regular communication with all key stakeholders is ALWAYS critical to PATH correct during implementation.</em></p><p>For example, many agile methodologies encourage regular demos for this very reason.</p><h3>Remember: Deficiencies in requirements and specifications can often ONLY by found DURING implementation.</h3><p>There is nothing like DOING something to discover problems.</p><p>For example, if you’ve ever worked on a car (say, changing your brakes) or tried to do your own home remodel, you’d be surprised how often you have to go back to the hardware store to ask questions, buy new tools, etc.</p><p>This is because, despite knowing exactly what you are trying to accomplish — and perhaps reading up on it, until you start a job you cannot anticipate everything you might encounter.</p><p>This is true during development, and it’s also true for those who wrote the requirements.</p><h3>Requirement insufficiency is simply a reality of life; in fact you can count on it!</h3><p><em>So what is your responsibility?</em></p><p>A great developer realizes that this is why no set of theoretically “perfect” requirements can ever replace regular, timely communication.</p><h3>Mistake #3: The developer plows through despite knowing requirements are lacking</h3><p>In the real world, you MUST be productive despite some unknowns.</p><p>If you’re waiting for perfect requirements before getting started you will never get work done.</p><p>However, when you encounter questions that can have a material impact on the success of your feature, you MUST take the responsibility to ask questions of the stakeholders who requested, wrote, and edited the original requirements and specifications.</p><h3>If some of your feature’s stakeholders are hard to reach, you MUST find a suitable proxy</h3><p>A proxy is someone knows enough about the feature to accurately answer questions on behalf of a key stakeholder.</p><p>For example, if the stakeholder for your feature is the CEO of your company, you may have difficulty getting time on her schedule.</p><p>But that CEO should have designated a proxy who can answer questions in his place.</p><p><em>If, for an important question, you do not have access to the needed stakeholder(s), NOR A PROXY, you MUST document this and escalate.</em></p><p>Don’t just plow forward.</p><h3>Plowing forward without answers from a stakeholder or proxy can be disastrous</h3><p>Going back to working on a car, or a home remodel, let’s illustrate why plowing forward can be disastrous.</p><p>Imagine you’re changing the brakes on your car, and you find a strange part in the box and you’re not sure where it goes. You check the manual, and the manual isn’t clear.</p><p>Should you simply guess and attach the part wherever you feel is sensible?</p><p>Plowing through could cause a life-threatening catastrophe!</p><p>Likewise, with development.</p><h3>If the requirements aren’t clear, and you plow forward with your best guess, you’re inviting catastrophe at worse and frustration among key stakeholders at best!</h3><p>You can save yourself and other a lot of pain by pausing development to ask questions.</p><h3>Mistake #4: Failure to add your own technical requirements!</h3><p>Typically, especially if your team is using an Agile model, there are technical requirements that are overlooked during the planning process.</p><p>For example, session timeouts for 3rd party APIs, bandwidth limitations, etc.</p><p>Before and during implementation, document technical requirements as you discover them!</p><p>And like above, if a technical requirement conflicts with a non-technical requirement, communicate!</p><h3>Finally, a word on how to use the above to improve your code quality</h3><p><em>After you’ve done the above to understand your requirements, you’re now in a much better place to write thorough test cases.</em></p><p>Most developers try hard to test their code before handing it over to QA. Hopefully that includes you!</p><p>But, if you fail to thoroughly understand your requirements — including unstated technical requirements, no amount of testing on your part will be sufficient.</p><h3>Conclusion</h3><p>Your first responsibility as a developer is to deliver features that satisfy stakeholder requirements — according to THEIR interpretation of what they wrote, not yours.</p><p>Your second responsibility is to deliver those features with high quality.</p><p>But, in my experience, poor quality code often stems from a developer failing to think sufficiently deep regarding requirements — including unstated technical requirements!</p><p>To deliver better features and code quality, you must FIRST make a greater effort to understand and document requirements both before and DURING implementation.</p><p>If you do this, your stakeholder(s), co-workers, and manager(s) will be more satisfied with you implementation! In addition, you are also more likely to write better unit tests and to do better manual testing, which will improve your code quality!</p><p>Doing these things will help you stand out as a GREAT, rather than average, developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ee47a9d53bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[StockZoomAI’s Email List Architecture — An Event-Driven Architecture Ideal for Rapid Time-to-Market]]></title>
            <link>https://ijidak.medium.com/stockzoomais-email-list-architecture-an-event-driven-architecture-ideal-for-rapid-time-to-market-7cd6f313bdfc?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cd6f313bdfc</guid>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[stock-trading]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Sun, 21 Jan 2024 20:12:26 GMT</pubDate>
            <atom:updated>2024-01-22T02:16:08.955Z</atom:updated>
            <content:encoded><![CDATA[<h3>An Event-Driven Email List Architecture Ideal for Rapid Time-to-Market and Feature Growth</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JeXS7ix7T-ZiBS-Q2ZdcJQ.png" /></figure><h3>StockZoomAi’s most important user interface is email</h3><p><a href="https://medium.com/@ijidak/stockzoomai-an-ai-to-help-you-find-stock-market-opportunities-with-less-effort-371160c82b27">StockZoomAi’s</a> stock reports, stock movement alerts, and other stock tips and updates are delivered via email.</p><p>Even when a feature is not entirely delivered via email, email is still often the launchpad.</p><p>We need a system design for our emails that is quick to rollout and quick to iterate on.</p><h3>Below is an explicit set of requirements</h3><h4>Requirement #1: Users must be able to easily join the lists they care about and leave the lists they don’t</h4><p>We don’t want customers to get overwhelmed with irrelevant emails.</p><p>Therefore, we need a simple architecture for building LOTS of email lists, but also making it very easy for customers to join or leave those lists.</p><h4>Keep in mind that these email lists are NOT marketing lists</h4><p>These emails are ONLY going to customers.</p><p>Therefore, we’re not worried about spam filters, etc.</p><p>For one thing, StockZoomAI has its own email domain, so most emails will be internal to that domain.</p><p>But also, even for email addresses to other domains, we expect customers to add our email address to their safe senders list.</p><h4>Requirement #2: We want rapid time-to-market for new features</h4><p>Time-to-market is everything. So we need an architecture that makes it easy to add new email lists.</p><h4>Requirement #3: We want minimal maintenance overhead and operational cost</h4><p>At such an early stage, we don’t want to be slowed managing hardware and platform resources.</p><p>We also don’t want high monthly costs at low volumes. (e.g. We want to avoid fixed monthly costs.)</p><h4>Requirement #4: We want easy development across the languages our microservices are written in</h4><p>Our microservices are built in Python, Node.js, and C#; therefore, we want our architecture to use SDKs that are easy to work with from a variety of languages.</p><h4>Given the above requirements, we need an email list architecture that provides the following</h4><ol><li>The ability to rapidly roll-out new lists for new microservices</li><li>Minimal code required to trigger and send emails to a specific list</li><li>Reliability in the method for triggering and sending emails from our microservices</li><li>An easy to understand architecture for debugging and complexity growth</li><li>Good ergonomics across different languages</li><li>Low cost to manage and operate</li></ol><h3>The design</h3><h4>#1: Our microservices raise events by writing to a message queue</h4><h4>Putting email logic in our microservices would needlessly complicate them</h4><p>Suddenly:</p><ol><li>Each microservice would have to know what email service we’re using. What happens if the email service changes over time?</li><li>Each microservice would have to know what email lists their computations apply to, and send the appropriate emails for every list, etc.</li></ol><p>By decoupling raising the event and sending of the email, we drastically reduce churn in our microservice code.</p><p>Now we can refactor and re-design email as many times as needed with hopefully minimal impact on our microservices.</p><h4>For our message queue, we use AWS SQS</h4><p>The cloud can get expensive, but in this case, our scale is small, so we save money and time using a fully managed message queue, rather than trying to host a 3rd party message queue solution ourselves.</p><p>This satisfies our goals of low fixed monthly costs to operate.</p><h4>Using a message queue also helps us satisfy some of our reliability goals</h4><p>SQS will hold an event until the event is processed and the consumer indicates that the event has been handled.</p><p>This also gives us flexibility as the system grows.</p><p>Spinning up and talking to a new queue has low dev and operations overhead.</p><h4>Decoupling email and writing to a message queue keeps each microservice simple</h4><p>Writing a message to a message queue is a simple operation that helps satisfy our desire for minimal code required and our desire for good ergonomics for the developer.</p><p>For example, below are the six lines of Python added to the DCF_ENGINE microservice to raise an event that will later trigger the sending of an email.</p><pre>sqs_queue_url = ...<br>msg_body = ...<br>...<br>sqs_client = boto3.client(&#39;sqs&#39;)<br>  queue_response = sqs_client.send_message(QueueUrl=sqs_queue_url, MessageBody=msg_body)<br>  print(f&quot;SQS Queue Response: {queue_response}&quot;)<br>  print(f&quot;SQS Message ID: {queue_response[&#39;MessageId&#39;]}&quot;)</pre><h4>#2: Email send is handled by a lambda triggered by the message queue write</h4><p>Many AWS services can fire off a lambda automatically when various events occur.</p><p>This is perfect for the case of sending email(s) when an event is written to SQS.</p><p>Each SQS event queue has its own simple Lambda that fires to send the appropriate email(s) for that specific queue.</p><h4>#3: A NoSQL database stores our email lists</h4><h4>An email list is just an array of contacts with metadata</h4><p>In its simplest form, an email list is really just a collection of objects, where each object must get us to an email address along with other relevant data.</p><p>This leaves us with a few options to store email lists.</p><h4>Options rejected for storing email lists</h4><p>We need options that are very low overhead to roll-out and maintain.</p><ol><li>An RDBMS like SQL Server, PostgreSQL, etc. (Way too complicated for this use case. Too much overhead. — See notes about RDBMSs below)</li><li>Local file storage (Not durable. Much of our system is serverless to keep operational cost low. Requiring local file storage would drastically reduce our architecture flexibility.)</li><li>Object storage like S3. Makes list edits tedious and brittle. Are these file operations? How do we solve concurrency issues? Introduces overhead managing URLs. (e.g. where should each component look to find this data?)</li><li>Self-managed NoSQL database. For such a small amount of data, hosting ourselves is too much operational overhead.</li></ol><h4>Fully-managed NoSQL database; our solution for storing email lists</h4><p>We use one collection per email list. Each record in the collection contains the email address and all data relevant to the email list.</p><p>So, we can get the subscribers to dcf_engine_results, with a simple query like:</p><pre>subscribers = nosql_client.collection(&#39;dcf_engine_results&#39;).all()</pre><p>This design has the following benefits:</p><ol><li>At our scale, read/write costs should be close to zero.</li><li>Every client talks to a single known nosql endpoint (configuration overhead is low)</li><li>Adding a new email list is as simple as adding a new collection</li><li>Using the nosql client, a new email list can be consumed from any of our systems with two or three lines of code and no new configuration</li></ol><h4>Yes, duplicating email addresses makes email address changes more difficult</h4><p>For now, this is a new product. Therefore, for the foreseeable future, this should not be a major problem.</p><p>If the system grows to where this is an issue we have very good problems.</p><p>Migrating to a slight better solution for email address changes is.</p><ol><li>Add a Customer collection.</li><li>Swap out the email addresses in each mailing list with the CustomerId of the Customer in the Customers collection.</li></ol><p>But, to speed time-to-market, we can ignore this concern for now.</p><h4>Why an RDBMS is overkill for our use case</h4><p>We could use an RDBMS to model an email list as a pointer to an email address that has metadata that is global to all of our system.</p><p>Maybe each mailing list could be an association table, etc. Or a single mailing lists table and a single mailing_list_to_customer association table.</p><p>But, this is already showing the operational downsides of using an RDBMS.</p><p>There is simply too much schema work for such a simple problem. We’re already adding multiple tables and foreign keys…</p><p>And the normalization of the schema bleeds into complicating querying data from the database.</p><p>By far our most common coding task will be to get data from our database. And complicating querying complicates every code base that needs to query data.</p><h4>The schema design overhead of using an RDBMS is overkill for our scale</h4><p>De-normalization of our data is perfectly fine at this scale.</p><p>An RDBMS provides far more functionality than we are likely to need. And using one comes with the extra overhead of managing a database, defining tables, defining schemas, and on and on.</p><p>Whereas a fully managed NoSQL system like AWS DynamoDb or Google Firestore is simple. They are also very cheap at this scale.</p><p>(Note: Our system uses resources from both AWS and GCP, so both DynamoDB and Firestore could work here.)</p><h4>#5: Each Lambda loads the appropriate email list from a managed NoSQL store</h4><p>When an event hits SQS, SQS launches the Lambda associated with the target queue.</p><p>The Lambda then loads all records in the appropriate mailing list NoSQL collection.</p><p>For example, see the below pseudo code:</p><pre>recipients = nosql_client.collection(&#39;this-mailing-list&#39;).all()</pre><p>Now, the lambda can iterate through recipients and send the appropriate email.</p><h4>#6: Sending the email itself can use a number of different email providers</h4><p>This part isn’t important. We can use a number of different email providers.</p><p>In our case, because we use Google to manage our email domain and client inboxes, we will send email via Google’s SMTP servers.</p><p>But, this could change in the future to a number of any providers.</p><h4>Alternatives rejected: A dedicated email microservice</h4><p>We could have built a dedicated email microservice that reads from AWS SQS message queues and has logic for sending emails to mailing lists.</p><p>This approach has drawbacks.</p><p>Trying to handle every mailing list through a single service is going to make that service increasingly complex.</p><p>For example:</p><ol><li>Where do we save email templates for each email list?</li><li>Every time we add a new SQS, we need to add branching to support this new queue. Or, we have to generalize the service to handle an arbitrary number of queues.</li><li>How do we ensure high uptime of the service? It requires dedicated resources. Then it requires redundancy.</li><li>And on and on…</li></ol><p>Hopefully, the above is sufficient to see that this email service would quickly become difficult to reason about, a major single point of failure, and add lots of code to the system.</p><p>Overall, a dedicated email service would become a major distraction.</p><h4>Splitting a single email microservice into multiple email microservices is even worse</h4><p>We have the same problems with uptime, redundancy and managing the resources to provide both.</p><p>But, now we’re just multiplying these problems.</p><p>For our use case, such an approach doesn’t make sense.</p><h3>An image of the final architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sPRGLzBu7ZovD67faSAhEQ.png" /></figure><h3>StockZoomAI Email List Architecture, A Low-Cost Event Driven Architecture That is Ideal for Rapid Time-to-Market, Feature Growth, and List Expansion!</h3><p>For this architecture, we bring together just the right set of tools to provide: flexibility, simplicity, reliability, and low cost of operation!</p><ol><li>AWS SQS to raise events</li><li>AWS Lambdas to respond to raised AWS SQS events, and to handle sending the emails</li><li>Fully managed noSql database for storing mailing lists (e.g. AWS DynamoDB or Google Firestore)</li></ol><p>These choices SPEED time-to-market, while keeping the system scalable, low cost at our scale, and make it very easy to iterate and grow!</p><p>If you enjoyed this article or this article helped you, please hit the Clap buttons a few times to help me write more articles like this! Also, hit follow to get future articles like this one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cd6f313bdfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[StockZoomAI: An AI To Help You Find Stock Market Opportunities With Less Effort]]></title>
            <link>https://ijidak.medium.com/stockzoomai-an-ai-to-help-you-find-stock-market-opportunities-with-less-effort-371160c82b27?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/371160c82b27</guid>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[trading-bot]]></category>
            <category><![CDATA[dcf]]></category>
            <category><![CDATA[trading-system]]></category>
            <category><![CDATA[warren-buffett]]></category>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Tue, 16 Jan 2024 04:04:25 GMT</pubDate>
            <atom:updated>2024-01-16T04:04:25.353Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SpgZWUiMHkdcog9eSlbmcA.png" /></figure><h3>The Core Concept Underlying StockZoomAI is DCF</h3><p>Stock Zoom AI helps you find investment opportunities with less effort.</p><p>The methods StockZoomAI uses help make you money because StockZoomAI is built around the best method for valuing stocks, Discounted Cash Flow (DCF).</p><p><a href="https://www.investopedia.com/articles/stocks/08/discounted-cash-flow-valuation.asp">No other method for valuing investments is more reliable</a> or more accurate than DCF.</p><h3>The DCF Engine</h3><p>The DCF engine is the core component that calculates the DCF valuation of THOUSANDS of stocks every day.</p><p>As a StockZoom AI user, you get a daily email with the latest DCF numbers for thousands of different stocks, including companies like: Tesla, Microsoft, Netflix, Nvidia, Meta, Google, UPS, FedEx, etc.</p><p>You can <a href="https://medium.com/@ijidak/i-wrote-software-to-bulk-analyze-and-calculate-the-dcf-value-of-all-stocks-in-u-s-stock-markets-284fdcc040a">read about an early version of the DCF engine, here.</a></p><p>Below is just a partial list of some of the thousands of companies that Stock Zoom AI analyzes each day:</p><p>(<a href="https://docs.google.com/spreadsheets/d/1c0fzT9hFlxF6cJ4DyTcZ7VzAsZYsXsOeQiq8nKVnqtk/edit?usp=sharing">See the list</a> here: <a href="https://docs.google.com/spreadsheets/d/1c0fzT9hFlxF6cJ4DyTcZ7VzAsZYsXsOeQiq8nKVnqtk/edit?usp=sharing">https://docs.google.com/spreadsheets/d/1c0fzT9hFlxF6cJ4DyTcZ7VzAsZYsXsOeQiq8nKVnqtk/edit?usp=sharing</a>)</p><h3>Stock buy &amp; sell alerts</h3><p>DCF is only the beginning of the analysis StockZoomAi uses to find investment opportunities in the U.S. stock markets.</p><p>Not to mention, we have yet to discuss the AI part of StockZoomAi.</p><p>But also, StockZoomAi uses other metrics, to be explained in future articles, to identify stocks that are a great buy and to warn you about stocks that seem overvalued.</p><h3>Follow me to get more information about StockZoomAI</h3><p>Over the next weeks and months I will write more about StockZoomAi to explain how it works and the code and math behind it.</p><p>I will also start to explain the AI components that allow StockZoomAi to read patterns in the market.</p><p>If you want to learn more about StockZoomAI, or to give it a try as a part of your investment strategy, follow me to stay up to date.</p><p>Also, please hit “clap” as many times as possible. Doing so helps me share more information about Stock Zoom AI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=371160c82b27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[C# Coding Standards::Avoid Rolling Your Own Path Manipulation]]></title>
            <link>https://ijidak.medium.com/c-coding-standards-avoid-rolling-your-own-path-manipulation-ac0d25ef79c1?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac0d25ef79c1</guid>
            <category><![CDATA[coding-standards]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Tue, 09 Jan 2024 20:47:52 GMT</pubDate>
            <atom:updated>2024-01-09T20:50:48.913Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Ayo Ijidakinro, Shift4 Manager, Payment Engineering" src="https://cdn-images-1.medium.com/max/1024/1*Lr0tRxpvWtf_3C4OE0Pcew.png" /></figure><p>Sometimes I see code like this in a developer’s check-in:</p><pre>someMergedPath = string.Format(&quot;{0}{1}&quot;, rootPath,fileOrDirectoryPathToAppend);</pre><p>There are two problems with this.</p><p><strong>#1: These days, C# code should use </strong><a href="https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/interpolated"><strong>String interpolation</strong></a><strong> instead of format strings</strong></p><p>Format strings are not checked at compile-time and are thus prone to nasty run-time bugs because mistakes are easy to overlook.</p><p><strong>#2: The .NET framework provides more robust path manipulation utilities than manually concatenating paths</strong></p><p>Manual path concatenation is susceptible to trailing slash bugs — where the presence of a trailing slash, or lack thereof, causes problems.</p><p>Even if your code is implemented correctly on day one, a future developer may inadvertently cause a regression by making a change in upstream code. The change could invalidate the assumptions made by your hand-rolled path manipulation code.</p><p>Also, don’t be surprised when you yourself are the one who makes the inadvertent upstream change!</p><p>In fact, solid code practices protect the original developer almost as much as his teammates!</p><h3>Use System.IO.Path or another reliable library</h3><p>Ultimately, writing path manipulation code is not only unreliable, it’s also a waste of your time.</p><p>Your development time is better spent doing work with higher ROI.</p><p>Thus, rather than rolling your own path manipulation, use the path manipulation tools that are built into the .NET framework.</p><p>Something like:</p><pre>someMergedPath = Path.Combine(rootPath,fileOrDirectoryPathToAppend)</pre><p>Or, if you prefer, use a different 3rd party library that provides robust path manipulation. (Because, even Microsoft’s implementation has <a href="https://stackoverflow.com/questions/53102/why-does-path-combine-not-properly-concatenate-filenames-that-start-with-path-di">its own idiosyncrasies</a>.)</p><h3>In summary</h3><p>If you’re writing code for yourself, it probably doesn’t matter what you choose.</p><p>But, if your code is going into a system that is customer-facing, do not roll your own path manipulation. Doing so makes your code brittle and is not a good use of your time.</p><p>Instead, for robust code that is reliable and easy to maintain, use .NET’s built-in path manipulation utilities in System.IO, or use a reliable 3rd-party library!</p><p>[If this article helped you, please hit the Clap and Follow buttons to help me write more articles like this.]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac0d25ef79c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Based On A Study Of Five Distributed Systems, These Three Code Smells Cause 35% Of Outages]]></title>
            <link>https://ijidak.medium.com/based-on-a-study-of-five-distributed-systems-these-three-code-smells-cause-35-of-outages-0f565e763d7c?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f565e763d7c</guid>
            <category><![CDATA[reliability-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[reliability]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Tue, 10 Oct 2023 19:18:05 GMT</pubDate>
            <atom:updated>2023-10-10T19:24:51.027Z</atom:updated>
            <content:encoded><![CDATA[<h3>Per Yuan et al., Based On A Study Of Five Distributed Software Systems, These Three Code Smells Cause 35% Of Catastrophic Outages</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1npSFdpDlNh2BMjmjgbgGg.png" /></figure><p>I manage software engineering for an application used at 40,000+ locations across the United States and Canada.</p><p>An outage can cost thousands, even millions.</p><p>Therefore, I review research papers and books to get hard data to pass on to my engineering team to boost code stability and reliability.</p><h3>Buried in a 2014 paper, presented during the 11th Proceedings of the USENIX OSDI 2014 conference, is a surprising statistic</h3><p>Researchers Ding Yuan, Yu Luo, et. al, found the following across 198 randomly selected catastrophic failures.</p><p>For the five distributed applications studied, 35% of catastrophic system failures resulted from three easily identifiable and correctable code smells.</p><p>Even better…</p><h3>You can detect these three issues via code review and static analyzers</h3><p>The paper states that in their review of the 198 randomly-selected catastrophic failures:</p><blockquote>35% of the catastrophic failures are caused by trivial mistakes in error handling logic — ones that simply violate best programming practices; and that can be detected without system specific knowledge.</blockquote><p>For reference, the paper is titled: <em>“</em><a href="https://www.usenix.org/system/files/conference/osdi14/osdi14-paper-yuan.pdf"><em>Simple Testing Can Prevent Most Critical Failures: An Analysis of Production Failures in Distributed Data-Intensive Systems</em></a><em>”</em>.</p><p>The distributed applications studied were: Cassandra DB, HBase, Hadoop Distributed File System, Hadoop MapReduce, and Redis.</p><h3>All three of these issues relate to CATCH blocks in try-catch statements</h3><p>In their research, they found that for these well-tested, distributed, applications ‘92% of the catastrophic system failures are the result of incorrect handling of non-fatal errors <strong><em>explicitly signaled</em></strong> in software”.</p><p>These popular distributed systems are well tested.</p><p>So, the solution is not as simple as adding extra unit tests.</p><p>But this research paper shows that we can find these errors during code reviews and via static analyzers.</p><p>To do so, we need our teams to be aware to keep an eye out for these code smells.</p><p>The heuristic they discover is to pay attention to catch blocks. Most of the failures came from poor handling of non-fatal failure modes.</p><p>I myself have seen two of these issues first-hand.</p><p>Below are the three code smells from the paper.</p><h3>Code Smell #1: The log-only error handler</h3><p>The first case is having an error handler that logs the error, but does nothing else.</p><p><strong><em>25% of catastrophic failures were caused by this case alone.</em></strong></p><pre>try {<br>   ...<br>}<br>catch(...) {<br>  Logger.Warn(...);<br>}</pre><p>Whether this is done unintentionally or on purpose, Yuan et al. found that this type of catch-block can cause non-fatal issues to fester and culminate in application collapse.</p><h4>The solution</h4><p>Developers should take a hard look at all non-fatal error logging to see if:</p><ol><li>It was a mistake to log only, and if the developer meant to re-throw the exception</li><li>If the developer is taking an easier route — by logging the issue — rather than taking advantage of proactive steps for runt-time mitigation</li></ol><p>If a catch block is empty, the above suggestions apply as well.</p><p>An error handler that solely logs is not always wrong.</p><p>But it should cause your spidey-sense to tingle.</p><h3>Code Smell #2: Re-throwing an exception on a generic exception handler</h3><p>On the opposite end of the spectrum is the error handler that’s too broad.</p><p><strong><em>This issue caused 8% of avoidable catastrophic failures.</em></strong></p><p>For example code like the below:</p><pre>try {<br>    ...<br>}<br>catch(Exception ex) { //catching the base class Exception will catch ALL exception types that inherit from Exception<br>    ...<br>    throw;<br>}</pre><p>Such handlers abort an entire application when perhaps only one of many possible exception types is fatal.</p><p>For example, imagine that certain file handling code can encounter the below exceptions:</p><ul><li>The disk is full</li><li>The disk is busy</li><li>The file is locked</li></ul><p>Most likely, only one or two of those exceptions is fatal.</p><p>Also, each of those exceptions should likely have different error handling logic.</p><p>If a developer is handling ALL exception types with a single catch-block, non-fatal issues can trigger catastrophic failures. (Especially, a catch block that naively re-throws.)</p><p>An easily recoverable problem could be treated with the same panic as a transient issue.</p><p>For example, a busy disk exception being treated with the same panic as disk full.</p><h4>The solution</h4><p>Check to see if the developer has thought through the nuances of the different exception types a block of code may trigger.</p><p>Then, check that each exception type is handled appropriately.</p><p>Some exceptions may require a re-throw.</p><p>But, can some exception types be handled gracefully?</p><p>As always, exception handling should be as specific as possible.</p><p>Code reviews and static code analysis can easily spot this danger before the overly generic error handler makes it to production.</p><h3>Code Smell #3: The ‘To-Do’ Error Handler</h3><p>Only 2% of failures were caused by this issue, but it is still worth mentioning.</p><p>As a developer builds a large feature, he may add comments like “FIXME” or “TODO” to remind himself to come back and address an issue.</p><p>Indeed, when following an Agile methodology, some production code may ship with “FIXME” and “TODO” still in place.</p><p>However, when statements like “FIXME” and “TODO” are in an exception catch-block, BE VIGILANT!</p><p>It could be that the programmer forgot to go back and add error handling.</p><p>Or, the developer may truly believe he can come back to this error handling later.</p><p>As you would expect, Yuan et al. found that these sorts of comments in error handling blocks become explosive landmines in production.</p><h4>The solution</h4><p>During code reviews, or via static analysis, scan the codebase for TODO-like comments in error handlers.</p><p>Verify that these are not an oversight or improper postponement by the developer.</p><p>Again, it’s too strict of a rule to say that code must ship with zero TODOs.</p><p>But, when a TODOs is found in error handling code, you should be concerned.</p><h3>A final bonus thought</h3><p>Beyond the three above mentioned smells, the study had another alarming statistic.</p><p>In 23% of catastrophic failures, error handling logic for a non-fatal error was flawed.</p><p>These flaws were so evident that basic statement coverage testing or more thorough code reviews would have caught them.</p><p>So, again, having error handlers in our code is excellent.</p><p>But, we need to pay close attention to the content of error handlers. We need to verify that <strong>error handling code <em>itself</em> is correct</strong> and robust.</p><p>This is one area where targeted automated tests could help.</p><h3>Conclusion</h3><p>Yuan, et al.’s research gives us three powerful code review guidelines that we can use to make sure our developers ship robust, reliable code.</p><p>Adding exception handling to our software is great. However, to make our systems robust, code reviews must pay close attention to the <strong><em>contents </em></strong>of exception handlers.</p><ol><li>Is the handler catching too broad an array of exceptions?</li><li>Is the handler handling each exception type with the appropriate nuance?</li><li>Is the handler unintentionally swallowing the exception?</li><li>If a handler is intentionally swallowing an exception, does it attempt reasonable mitigation?</li></ol><p>Finally, if available for your language, use a good static code analyzer that helps you find these three code smells.</p><p><strong>Per Yuan et al., these changes to your code reviews and static analyses could reduce your catastrophic production outages up to 35%!</strong></p><p><strong>Put these tips into action NOW </strong>to help your team release software that is more reliable and robust!</p><p>Failure to monitor these code smells will leave you with software that is less reliable, with a higher occurrence of incidents!</p><p>Let me know how these tips help your software dev team! Or if you disagree with any of the findings from this paper.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f565e763d7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I wrote software to bulk analyze and calculate the DCF value of all stocks in U.S. stock markets]]></title>
            <link>https://ijidak.medium.com/i-wrote-software-to-bulk-analyze-and-calculate-the-dcf-value-of-all-stocks-in-u-s-stock-markets-284fdcc040a?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/284fdcc040a</guid>
            <category><![CDATA[fintech-app-development]]></category>
            <category><![CDATA[fintech-startups]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[warren-buffett]]></category>
            <category><![CDATA[fintech]]></category>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Sun, 30 Jul 2023 01:27:20 GMT</pubDate>
            <atom:updated>2023-07-30T01:34:49.997Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5if4l_bXq6sK5BoJtjHB_A.jpeg" /><figcaption>I like software, finance, and hanging out by the beach</figcaption></figure><h3>Why DCF?</h3><p>As a value investor, I believe the starting point to making money in the stock market is to determine a base value of a company using the sum of it’s future cash flows, discounted by risk, expected inflation, and the return of safe alternative investments.</p><h3>But, why did I build software to automate DCF analysis en masse?</h3><p>Running a DCF analysis for a single stock is tedious. 😩</p><p>(For example, I wrote this article that covers <a href="https://ijidak.medium.com/a-quick-overview-of-the-11-steps-to-perform-a-discounted-cashflow-e2688a4e0c9d">the eleven basic steps to generating a dsicounted cash flow value for a given stock</a>.)</p><h3>Running a DCF analysis by hand for 5,000+ stocks is <strong>impossible</strong>.</h3><p>I’ve always wanted to write software to automate the process, but I lacked a clean, cost-effective data feed with which to do it.</p><p>Four or five years ago, when doing a software project for a friend, I finally found a great set of APIs (iexcloud.io) for writing this software tool.</p><h3>How did I develop the application?</h3><p>This application was written, over a weekend, in Microsoft’s .NET C#. (.NET 6.0 to be exact)</p><p>The beautiful expressiveness of C#, combined with .NET’s support for Dynamic, means that this entire application is only 620 lines of code (including whitespace).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7yw2LNR0C9W9h5FcPni-Nw.png" /><figcaption>A snippet of code computing relevant capex numbers</figcaption></figure><h3>How does the application work?</h3><p>I call the application, Analyzer-Engine. (Very creative. I know. 🙂)</p><p>Analyzer-Engine takes a list of stock tickers provided in JSON format as input.</p><p><strong><em>For each company ticker, my application</em></strong> <strong><em>calls iexcloud.io APIs</em></strong> to retrieve:</p><p>1. The company’s <strong>last 12 quarters of cash flow data</strong></p><p>2. The <strong>company’s balance sheet</strong> as of the latest filing</p><p>3. The company’s <strong>latest stock quote</strong></p><p>From there, my Analyzer-Engine:</p><p>1. Computes the company’s free cash flows for the last 3 years.</p><p>2. Calculates current totals of cash and other liquid assets</p><p>3. Calculates current totals of current and long-term debt</p><p>4. Computes the company’s net liquid assets after subtracting debts</p><p>5. Computes free cash flow averages over the last 3 years</p><p>6. Calculates average free cash flow growth rates</p><p>7. Projects a conservative and aggressive discounted cash flow value for the company using the average growth rates and free cash flows</p><p>8. Computes a net DCF value after adding/subtracting net cash from the DCF value</p><p>9. Computes what the per-share price of the company would be at its conservative and aggressive DCF values</p><p>10. Computes the amount which the company is over or undervalued based on the conservative estimate and based on the aggressive estimate</p><p>11. Appends these computations and data to a single output CSV file</p><h3><strong>Now, in CSV format, I have a quick and dirty DCF value for EVERY COMPANY in U.S. stock markets! 🤯</strong></h3><p><strong>I can use Excel filters to scan these companies, or I can print the data to hand select the companies on the U.S. stock markets that look most undervalued!</strong></p><p>This is no small deal.</p><p><strong>Over the past year, this tool allowed me to see the META and Tesla opportunities before those stocks’ meteoric rise from Q4 2022 to Q3 2023!!</strong></p><p>Below you can see what the application looks like as it executes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kH4e_XBYJYF5HLWnYdWYeA.png" /><figcaption>Output as my dcf analyzer calculates the DCF on thousands of U.S. equities</figcaption></figure><p>And below is a snapshot of what the CSV looks like as I use it in Excel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oO2eZ7-xU35JbFtx07uqLA.png" /><figcaption>There are a lot of columns output by my tool. Here is the first half that shows current stock quote information</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gUfKRQp5qczriiqY9Eh_ew.png" /><figcaption>The latter columns in the CSV file show the DCF analysis. This allows for easy comparison between DCF value and current market capitalization.</figcaption></figure><h3>How did I develop the application?</h3><p>This application was written, over a weekend, in Microsoft’s .NET C#. (.NET 6.0 to be exact)</p><p>The beautiful expressiveness of C#, combined with .NET’s support for Dynamic, means that this entire application is only 620 lines of code (including whitespace)!</p><p>As you can see above, to speed development, I developed it as a command line application.</p><p>Below is an example of what the command line looks like to trigger an application execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R6P2pQuvgQTsyno1a0vHBw.png" /><figcaption>The analyzer-engine takes an input JSON file with all of the stocks to process and a maximum growth rate to cap automatically calculated growth rates</figcaption></figure><p>Below is a snapshot of a simple input test file with just two tickers. (Note: My full JSON file contains as many as 7,500+ tickers — some of these tickers are for international companies that trade OTC.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*2pVy2sYri_GXT3Y5OknKIw.png" /><figcaption>This is a simplified view of the JSON file that is input into the analyzer-engine. I can control the set of equities I analyze by adding or removing them from the input JSON file. In practice, I have different JSON files for different equities of interest.</figcaption></figure><h3>How do I build the JSON file of stock tickers? Definitely not by hand…</h3><p>The source list of tickers came from Nasdaq’s own stock screener (See: <a href="https://www.nasdaq.com/market-activity/stocks/screener">https://www.nasdaq.com/market-activity/stocks/screener</a>). From there I got a CSV of tickers.</p><p>I converted the CSV to JSON using Powershell. Using JSON allows for safer, easier structured consumption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FSlKEfyNDit6EDoPxi9k2g.png" /><figcaption>Using Microsoft Powershell to convert an input CSV file to a JSON file.</figcaption></figure><h3>What sort of stock analysis tool do you think I should write next?</h3><p>Let me know if you’d like to use this application. I’ve thought about making it publicly available.</p><p>If you’re interested, I can share the code with you so you can have it too.</p><h3>Contact me now here or via my LinkedIn profile and let me know what you think I should build next!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=284fdcc040a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A quick overview of the 11 steps to perform a discounted cashflow]]></title>
            <link>https://ijidak.medium.com/a-quick-overview-of-the-11-steps-to-perform-a-discounted-cashflow-e2688a4e0c9d?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2688a4e0c9d</guid>
            <category><![CDATA[warren-buffett]]></category>
            <category><![CDATA[dcf]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[intrinsicvalue]]></category>
            <category><![CDATA[dcf-model]]></category>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Sun, 30 Jul 2023 00:12:32 GMT</pubDate>
            <atom:updated>2023-07-30T00:12:32.388Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WofuxWtm0LAC14rtEl4cTQ.jpeg" /><figcaption>I like software, hiking, and investing</figcaption></figure><p><strong>Important disclaimer: </strong>This article provides information only and should not be construed as advice. It is provided without warranty of any kind.</p><h3>Performing a discounted cash flow (DCF) analysis involves roughly eleven steps</h3><p>Here is a simplified overview of the process:</p><ol><li><strong>Get the Balance Sheet, Income, and Cash Flow statements</strong> for the last three to five years for the target company for which you would like to calculate the DCF value.</li><li><strong>Calculate the Annual Free Cash Flow</strong> for each of the three to five years of data.</li><li><strong>Calculate the average growth rate of those cash flows</strong> for the time period your data covers.</li><li><strong>Pick a year zero (current year) cash flow as the starting point</strong> for your cash flow projection. <strong>Note: </strong>I say, pick a cash flow, because you can be conservative and use an average of the last few years of cashflow, you can use the current year’s free cash flow, or you can use some other starting point. (This is why free cash flow estimation is both art and science.)</li><li><strong>Determine a discount rate</strong>. The discount rate is a percentage used to reduce the value of future cash flows because, in general, future cash is worth less than cash you have in your pocket today. The discount rate reflects the risk associated with future cash flows. (Some use the weighted average cost of capital — WACC, which is the average rate a company is expected to pay to finance its assets.)</li><li><strong>Using the year zero cash flow and the average growth rate, project future cash flows.</strong> This projection is often done on a year-by-year basis and commonly extends out five to ten years into the future. <strong><em>Of course your projected growth rate is just a guess. The actual growth rates could be wildly better or worse than your projection.</em></strong> I usually use a conservative growth rate of half the average of the last three to five years.</li><li><strong>Calculate the Present Value of the projected future cash flows.</strong> This is done by dividing each year’s projected cash flow by one plus the discount rate, raised to the power of the years into the future (e.g. 1 year, 2 year, 3 years, etc.).</li><li><strong>Sum the present value of the projected future cash flows</strong>.</li><li><strong>Estimate the Terminal Value.</strong> It only makes sense to assume growth out a fixed number of years. The further you try to project out cash flow growth, the more unrealistic your projections become. As mentioned above, five years is a typical end point for projected growth. Thus, a terminal value is calculated to account for all cash flows beyond the five-or-so years projection horizon. Usually, zero growth is assumed beyond the projection horizon. And eventually, Terminal_FCF / (1+discount_rate)^n will tend to zero.</li><li><strong>Add up all present values.</strong> So, add the present value of the future cash flows and the terminal value.</li><li><strong>Subtract out the company’s net liabilities </strong>from the latest balance sheet. (This is the only step that uses the balance sheet.)</li></ol><p>Now, you have the total DCF value of the company!</p><p>Once you have the DCF value of the company, you can compare this value to the market cap of the company</p><p>If the current market cap of the company is lower than the DCF value, the company may be undervalued, suggesting a potential investment opportunity.</p><h3>Don’t forget this final reminder!</h3><p>A DCF analysis is not infallible. It is based on assumptions and projections about the future, which are inherently uncertain. The accuracy of your DCF analysis relies on the accuracy of your assumptions, so it is important to be conservative and realistic in your projections.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2688a4e0c9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why your company’s AI intellectual property fears might be overblown]]></title>
            <link>https://ijidak.medium.com/heres-why-ip-fears-holding-your-company-back-from-adopting-ai-might-be-overblown-fcb68bd3d7a2?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcb68bd3d7a2</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[business-strategy]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Mon, 17 Jul 2023 20:51:22 GMT</pubDate>
            <atom:updated>2023-07-31T20:26:24.952Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1pm9le1wfJQG5lbC" /><figcaption>Photo by <a href="https://unsplash.com/@jupp?utm_source=medium&amp;utm_medium=referral">Jonathan Kemper</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In 2002, my startup’s investors — a group of Harvard Business School professors, private-equity directors, and self-made businessmen — gave me this advice:</p><h3>&#39;Excessive protection of intellectual property can hinder your business&#39; progress&#39;</h3><p>What did they mean? And what does this have to do with AI?</p><h3>Executives can become so engrossed in protecting IP that they fall behind their competition</h3><p>For some companies, as I write this…</p><h3>This is happening with regards AI</h3><p>There is an understandable fear that using AI tools like ChatGPT can leak company intellectual property.</p><p>But…</p><h3>Have your company’s IP concerns regarding AI been well-defined and verified? Or, are these IP-concerns an excuse to do nothing, maintain the status quo, and avoid the unknown?</h3><p>For example, in a code base of 100,000 lines of code, it is unlikely that all but a few thousand lines are genuine unique IP.</p><p>Has your company identified the areas of code that represent true IP? Or, has your company taken the easy route and declared 100% of all code critical intellectual property?</p><p>An analysis could reveal that many IP concerns are un-vetted and thus an unwitting excuse for inaction.</p><h3>Regarding AI adoption laggards, “The Economist” published an article, on July 16th 2023, discussing this concern</h3><p>The article is titled: “<a href="https://www.economist.com/finance-and-economics/2023/07/16/your-employer-is-probably-unprepared-for-artificial-intelligence">Your employer is (probably) unprepared for artificial intelligence</a>.”</p><p>In it, the writer discusses evidence that<em> a persistent productivity gap exists between rich-world companies that are effective early-adopters of technology versus companies that are consistent laggards</em><strong>.</strong></p><p>The below quote from the article explains:</p><p><em>“Speculation about the consequences of ai—for jobs, productivity and quality of life—is at fever pitch. The tech is awe-inspiring. And yet ai’s economic impact will be muted unless millions of firms beyond Silicon Valley adopt it…</em></p><p><em>That would mean far more than using the odd chatbot. Instead, it would involve the full-scale reorganisation of businesses and their in-house data.</em></p><p><em>...In 2020 just 1.6% of American firms employed machine learning</em></p><p><em>Firms that embrace tech are pulling away from the competition. In 2010 the average worker at Britain’s most productive firms produced goods and services worth £98,000 (in today’s money), which had risen to £108,500 by 2019. Those at the worst firms saw no rise. In Canada in the 1990s frontier firms’ productivity growth was about 40% higher than non-frontier firms. From 2000 to 2015 it was three times as high.”</em></p><h3>The Economist article closes with the following words</h3><p>“…<strong>The technology is undoubtedly revolutionary. But are businesses ready for a revolution?</strong>”</p><h3>Don&#39;t let your company be an underproductive laggard</h3><p>As The Economist article says, this is a REVOLUTION. But is your company ready for it?</p><p>Don’t allow unvetted concerns regarding IP, security, and privacy to become an excuse for inactivity and maintenance of a ‘safe’ status-quo.</p><p>Here are three actions you can take to make sure your company reaps the benefits of AI before your competition:</p><ul><li>Figure out what parts of your company’s digital assets hold genuine IP.</li><li>Force those with unvetted “concerns” to prove those concerns.</li><li>Quantify the risks versus the benefits for your company.</li><li>Take your best ideas for boosting productivity and customer satisfaction with AI, and execute on them with urgency!</li></ul><p>By doing these things, you can avoid allowing your competitors to out-innovate your company and team.</p><p>You will free your employees to immediately use AI responsibly, <strong><em>now</em></strong>.</p><p>And, as The Economist article highlights, by being a responsible, rapid adopter of AI, your company can build and maintain its productivity lead over the competition!</p><p>If you fail to seize this moment, you could see your competition pull further ahead of your business than ever before.</p><p>===</p><p>To read the Economist article, visit: <a href="https://www.economist.com/finance-and-economics/2023/07/16/your-employer-is-probably-unprepared-for-artificial-intelligence">https://www.economist.com/finance-and-economics/2023/07/16/your-employer-is-probably-unprepared-for-artificial-intelligence</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcb68bd3d7a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 tips to crush a large existing code base]]></title>
            <link>https://ijidak.medium.com/7-tips-to-crush-a-large-existing-code-base-3779bef85700?source=rss-4aaf546d2886------2</link>
            <guid isPermaLink="false">https://medium.com/p/3779bef85700</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <dc:creator><![CDATA[Ayo Ijidakinro]]></dc:creator>
            <pubDate>Sun, 06 Mar 2022 03:55:32 GMT</pubDate>
            <atom:updated>2022-03-06T03:55:32.166Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wGZbSwMUJzxMyVGULchcxQ.jpeg" /></figure><p>Making more money as a developer requires maintaining productivity despite challenges.</p><p>Working with existing code is difficult.</p><p>But…</p><h3>Productive developers can quickly analyze and work with existing code</h3><p>True, some code is too broken to revive.</p><p>But, over the years, I’ve learned 7 tricks to boost productivity with existing code bases.</p><h3>#1: Add documentation as you learn the code</h3><p>Don’t waste time complaining about a lack of documentation.</p><p>Yes. Most code is poorly documented. But complaining changes nothing.</p><p>Instead of complaining…</p><p><em>Add comments as you learn the codebase.</em></p><p>Adding comments:</p><ul><li>Can quickly improve documentation.</li><li>Organizes your thoughts as you learn new areas of the system.</li><li>Boosts your memory retention and productivity when you go back to that section of code.</li></ul><h3>#2: After learning new code, add comments immediately</h3><p>You’ll be surprised how fast you forget things you learn about a codebase.</p><p>Why wait to capture what you learn?</p><p>I hear developers say, “I’ll go back and add comments later.”</p><p>Sure you will…</p><p>Life is too busy. You’ll never go back and add meaningful comments.</p><p>If you do go back, your comments will be perfunctory.</p><p>The original frustration is gone. Your brain forgets the smaller details. Your delayed comments will be vague, general, less helpful.</p><p>If you never go back and add comments, then six months later you’ll be back in that same code again, and you’ll realize you’ve forgotten most of it.</p><p>Re-learning the same code twice is a waste of time.</p><p>Wasted time equals low productivity. Lower productivity equals lower income over the long-term.</p><p>Instead of delaying and hurting yourself, add comments to existing code as soon as you learn it.</p><h3>#3: Maintain a private, personal knowledge base</h3><p>Sometimes adding a comment isn’t possible or doesn’t fit. For example, maybe you learned about a whole new technology platform.</p><p>For knowledge that doesn’t fit in code comments, maintain a set of text files organized in a private knowledge base.</p><p>Use folders to organize sub-sets of knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*BpUbzaJ_71BxQpPd5z9J4g.png" /><figcaption>An example of one of my personal knowledgebases with information about various technologies that I work with.</figcaption></figure><p>As you learn how to do things, like build the code base, deploy it, attach a debugger, change settings, etc. document these steps in your knowledge base.</p><p>The advantage of keeping your knowledge base private is you’ll feel less pressure to make it polished.</p><p>Sometimes we don’t write documentation because we feel pressure to make it polished. It might feel less embarrassing to do nothing.</p><p>That’s why having a private knowledgebase can help make you more likely to do it.</p><h3>#4: Learn the underlying technologies rather than tunnel-visioning for quick solutions</h3><p>I’m shocked when developers get stuck fixing a problem, but hesitate to study the underlying technology.</p><p>For example, a developer needs to solve a null-reference exception thrown when calling an unfamiliar API.</p><p>So, he starts to Google how other developers solved similar problems with the API.</p><p>He hopes for a quick copy-paste solution, or an easy step-by-step guide.</p><p>Unfortunately, that doesn’t work.</p><p>Then, he starts setting breakpoints. Trying to switch to different, but similar endpoints on the API, etc.</p><p>The developer wastes hours — even days. But, he never stops to ask, “Have I read the Startup Guide and Technical Reference for this API?”</p><blockquote>Often, you can save time by pausing and reading available documentation for dependencies</blockquote><p>When you’re under pressure, pausing to study might feel like wasted time.</p><p>An ongoing log-grade delay might feel more productive than a complete pause to study.</p><p>But if you don’t understand the underlying technologies, you’re wasting small amounts of time every day.</p><p>Over time this starts to add up. It ruins your productivity and your quality of life.</p><p>Also, when you have a hazy understanding of what your dependencies do, you have more anxiety.</p><p>And when you have anxiety your productivity struggles.</p><p>In my experience, it’s better to take the day or two to learn an underlying technology.</p><p>True, you lose time up front.</p><p>But your joy and long-term productivity increase dramatically.</p><p>Each time you come across a new technology in the existing code base, you may need to repeat the exercise. But it’s worth it.</p><h3>#5: Invest in quality tools</h3><p>It’s amusing. Developers are some of the best paid employees in the world. And we make software…</p><p>Yet, we <em>HATE </em>paying for software…. Why is that? I have no idea.</p><p>When it comes to software tools that can boost your productivity, don’t make this mistake.</p><p>When you start working on a new code base, there may be tools you can buy to make it easier to:</p><ul><li>Navigate the code</li><li>Debug the code</li><li>Lint the code</li><li>Etc…</li></ul><p>SPEND THE MONEY! Either you buy it, you get your customer to buy it, or you get your company to buy it. (It’s usually tax deductible for somebody!)</p><p>If you’re making $50 to $100+ per hour, paying $100, $500, even $1,000 to boost your productivity is nothing.</p><p>Being productive leads to faster pay raises and greater job security. This is true whether you’re an employee or self-employed.</p><p>I’ve found that you more than make back the money you spend.</p><h3>#6: Don’t be afraid to print and use a pen to hand-annotate code</h3><p>As programmers, our work is digital.</p><p>Sometimes we forget that pen and paper is still useful!</p><p>For example, if you print a complex piece of code, you can spread it all out on a table and see many pages (hundreds of lines) at once.</p><p>On paper, you can:</p><ul><li>Circle areas</li><li>Draw lines to connect pieces of code</li><li>Underline</li><li>Highlight with different colors</li><li>Write notes in the margins</li></ul><p>Also, hand-written notes stand out easier on paper.</p><p>And you can always flip back and forth from your paper copies to your digital copies in your IDE.</p><p>Remember, <em>just because we code on a computer doesn’t mean we can’t use paper any more</em>!!!</p><h3>#7: Draw flowcharts, dependency graphs, and diagrams (especially sequence diagrams)</h3><p>As you start to understand a large code base, visual representations are faster to refer to than lines of code.</p><p>For example, if 7 or 8 methods coordinate to accomplish a task, you’ll be happy if you diagram it as you learn it.</p><p>Creating diagrams helps you grok the flow &amp; dependencies faster.</p><p>Also, your diagrams become visual documentation you can refer to whenever revisiting that code flow.</p><h4>Either on paper, or using a diagramming tool, build visual diagrams that describe the flow of code</h4><p>Sequence diagrams are one of my favorite types of diagram.</p><p>But basic flowcharts are great as well.</p><p><strong>Bonus tip: </strong>If you use paper to draw diagrams or take notes, take pictures with your cell phone and save the pictures in your personal knowledge base.</p><h3>These are just some of my tricks for successfully tackling a large pre-existing code base!</h3><p>I hope these help you!</p><p>What tricks did I miss?</p><p>I love learning from other successful developers!</p><p>Are there tricks you use to work with existing code bases?</p><p>If so, please let me know in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3779bef85700" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>