<?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 Ayooluwa Alfonso on Medium]]></title>
        <description><![CDATA[Stories by Ayooluwa Alfonso on Medium]]></description>
        <link>https://medium.com/@AyoAlfonso?source=rss-862577c5ed0d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*82hxvzOFbOfWsW-fQAFsDQ.jpeg</url>
            <title>Stories by Ayooluwa Alfonso on Medium</title>
            <link>https://medium.com/@AyoAlfonso?source=rss-862577c5ed0d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 20:22:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@AyoAlfonso/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[Week 1/8 at Antler: Building From Zero]]></title>
            <link>https://medium.com/@AyoAlfonso/week-1-8-at-antler-building-from-zero-8cf63bf3c92f?source=rss-862577c5ed0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cf63bf3c92f</guid>
            <category><![CDATA[money]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[venture-capital]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Ayooluwa Alfonso]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 12:11:58 GMT</pubDate>
            <atom:updated>2026-01-17T12:11:58.059Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*th4nCmBKpr6G-lvx" /></figure><p>I prefer to rely heavily on my gut for decisions involving people.</p><p>I am also big on data, but when you’re thrown into a cohort of almost 100 other entrepreneurs all trying to figure out what to build in 8 weeks for an investment of £120k, two things happen: you realize rapidly that you have no data on how to navigate this, and you have to start capturing and making sense of data rapidly.</p><p>I spent the first week of the program refining my thoughts on the kind of founding team I wanted to build. My role on a team as a technical person is quite clear-cut. I have led teams through similar programs like this several times, so this pressure isn’t new.</p><p>On cofounders? When considering forming my team or joining one, a couple of things come to mind: I want the team composition to resemble a triad consisting of a visionary operator, a go-to-market wordcel, and a technical shape-rotating generalist. I’d rather the team’s skillset didn’t overlap unnecessarily. I want the team to feel comfortable sharing any ideas or questions. I want us to have an abundance of empathy—empathy doesn’t mean niceness. Team members should be interested in asking fundamental and important questions that will help us reach the truth more quickly.</p><p>Another factor to consider is energy; if I leave a team call with more energy than when I arrived, I consider it a positive sign. If not, I would categorize that experience as &quot;not working&quot; until it is resolved. Just like relationships, because the dynamic did not work between both of you doesn’t mean it cannot work between them and other people.</p><p>How do you figure these out? Sprints. The process involves collaborating with other founders. “Working” cuts across everything from 20-minute focused conversations to brainstorming to speaking with potential customers together, listening to what they are saying and what they are not saying.</p><p>In the first week, I completed nearly twice as many sprints (and pre-sprints) as the regular Antler schedule; the second week flew by. And on the first day of this week, I experienced my first “cofounder breakup.”</p><p>Then I started working my way up, supporting multiple teams technically and helping them with ideas or guidance on potential confounders to discuss. I think this was beneficial because it helped me listen to other people’s ideas and really understand their problem-solving process and blind spots. Perhaps this experience will also help me strengthen my elevator pitch skills, problem-solving approach, and delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*ZT2vZJvCMu2lj-yu" /></figure><p>Thinking through our billion-point entry</p><p>I also took some breaks from sprinting during the first weekend and spent two days talking to people and truly listening to them. Refining my original idea, up until this point, not up to 3 people knew the idea. Only my squad members were aware of my idea due to the mandatory squad activities. Engaging in more open-ended conversations significantly facilitated my progress throughout the remainder of the week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*LQJFZ7aHi-AfuiWG" /></figure><p>Knowing when to say “no” has also been crucial in a program with potentially 80+ partners. To give you some context, over 5000 people applied, and only about 2% were accepted into the cohort.</p><p>In the last week, I have had to say no in various situations, including breaking up with teams just 24 hours after collaborating with them, rejecting ideas that seemed promising on paper but lacked a clear rationale for why this was the right time to launch the product, and addressing a lack of chemistry between team members. There are several more themes to explore this coming week, where we really dig into our problem spaces.</p><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/week-1-antler-building-from-zero-ayooluwa-alfonso-nx9fe/?trackingId=aS9WbbHzR0yADDOhFYZcTQ%3D%3D"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cf63bf3c92f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Is Everyone Building AI Browsers?]]></title>
            <link>https://medium.com/@AyoAlfonso/why-is-everyone-building-ai-browsers-1164e352ebdd?source=rss-862577c5ed0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1164e352ebdd</guid>
            <category><![CDATA[claude-cowork]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[ai-automation]]></category>
            <dc:creator><![CDATA[Ayooluwa Alfonso]]></dc:creator>
            <pubDate>Sat, 17 Jan 2026 09:36:58 GMT</pubDate>
            <atom:updated>2026-01-17T09:36:58.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*rcDNGwxGFlRrStDZyPCWuw.jpeg" /><figcaption>The Legendary Web Browsers : Visual History | Tech Nirvana</figcaption></figure><p>About 2 months ago I peeped into the future, saw what was coming, and decided to build an AI browser for kids. Last week OpenAI released their own AI browser called Atlas for everyone. If I had pursued that idea, I might have been in trouble or not. We’d never know.</p><p>But why AI browsers now?</p><ul><li>Data</li><li>Distribution FOMO</li></ul><p>The data angle is relatively straightforward; if you have enough data on a group of users, you can better communicate to, build for, and sell to them, but distribution FOMO is a different beast, and I will explain.</p><p>You see, for the longest time, Google has lived inside other people’s browsers; in fact, it even paid huge tickets to remain in these browsers as the default search engine, without this, Google would never be where it is today.</p><p>Starting in the year 2000:</p><ul><li>Chrome became the most popular browser.</li><li>But when it first came out, Google Search was nothing more than a website inside of browsers made by Microsoft, Mozilla, Apple, etc.</li></ul><p>Initially, Google offered the Google Toolbar, which was essentially a precursor to Chrome; it integrated Google Search into Internet Explorer and Firefox. Although toolbars are ineffective, Sundar Pichai’s initial role at Google was to develop one. Your kiosk will never be truly secure if the landlord owns the building, unless you either purchase it or find a different location for your business.</p><p>Google released Chrome in 2008.</p><p>Building Chrome turned out to be a very good investment.</p><p>Chrome, by default, uses Google Search, and most users stick with it, ensuring billions in ad revenue. This setup allows Google to track a wealth of user activity through the browser. By 2025, Chrome held a commanding 60–70% of the global browser market across all devices, with Safari trailing behind. Controlling the browser landscape proved to be a savvy move.</p><h3>c. How does Google’s budget for competitive maintenance look?</h3><p>We know the following, even though Google does not publish the “Chrome budget” as a separate line item:</p><ul><li>Google continues to pay Apple between $18 and $20 billion annually to maintain Safari as the default search engine on Macs and iPhones. Bloomberg 2nd Verge</li></ul><p>That is not Chrome itself, but rather Safari. In retrospect, it simply meant:</p><blockquote><em>“Securing default search in a browser is worth tens of billions per year to us.”</em></blockquote><p>That makes one think:</p><ul><li>Chrome and Chromium cost billions of dollars a year to maintain and require a large engineering and infrastructure team, with thousands of engineers working on desktop, Android, iOS, security, performance, user interface, and standards.</li><li>It’s actually a fairly reasonable investment because the combined revenue from search and ads has consistently exceeded $100 billion annually.</li></ul><p>If they are willing to pay Apple $20 billion annually to borrow one (Safari), you can imagine the value of owning one (Chrome).</p><h3>2. Smartphones, Android, and the “play”</h3><p>Google had a new issue after the world switched from PCs to phones, and this is all well documented; in fact, it coincides with the time when they had to deal with numerous lawsuits:</p><blockquote><em>What if the phone maker controls search and ads instead of us?</em></blockquote><p>As a result, Google acquired Android, a tiny startup, in 2005. Why? Because mobile platform lockdowns by Nokia, Microsoft, BlackBerry, and eventually Apple would put Google search and ads on the back burner.</p><h3>a. Why Android is so important.</h3><p>Right now:</p><ul><li>Approximately 70–75% of mobile operating systems worldwide are Android. <a href="https://gs.statcounter.com/os-market-share/mobile/worldwide?utm_source=chatgpt.com">StatCounter Global Stats +1</a></li><li>Chrome (or a Chromium-based browser) comes preinstalled.</li><li>The OS is intricately integrated with Google Search and other Google services.</li></ul><p>Because of this stack, Google got</p><ul><li>Guaranteed distribution On most Android phones (outside China), Google services are the default.</li><li>Data and ads at the operating system level include telemetry from Android, Google Play, and Chrome.</li></ul><p>Regulators see this too; the DOJ then explicitly floated forcing Google to spin off Android as part of search remedies <a href="https://nypost.com/2025/04/30/business/google-ceo-sundar-pichai-testifies-extraordinary-doj-remedies-would-cause-many-unintended-consequences/?utm_source=chatgpt.com">New York Post</a></p><h3>3. So what does it mean when a company says, “We want your data”?</h3><p>Let’s time-travel a bit.</p><h3>50 years ago (1970s–80s): data = paper records + early databases</h3><p>“Data” mostly meant:</p><ul><li>Bank account balances</li><li>Credit histories (think early credit bureaus)</li><li>Retail purchase logs and loyalty stamps</li><li>TV ratings from panels like Nielsen</li></ul><p>It was:</p><ul><li>Mostly structured (rows and columns).</li><li>Collected relatively slowly (monthly statements, manual forms).</li></ul><p>No one was tracking every click you made. The tech didn’t exist.</p><h3>1990s–2000s: the web, cookies, and ad tech</h3><p>Now “data” starts to mean:</p><ul><li>Web server logs: what pages people visit, when, and from where.</li><li>Cookies: tiny browser identifiers that let sites recognize you.</li><li>Search queries: what you type into Google, Yahoo, etc.</li><li>Email metadata: who emails whom, when.</li></ul><p>Companies use this to:</p><ul><li>Build interest profiles: “likes sports,” “shopping for car,” etc.</li><li>Optimize websites (A/B tests).</li><li>Run targeted ads across sites through ad networks.</li></ul><p>This is when “if you’re not paying, you’re the product” starts to become a thing.</p><h3>2010s–2020s: AI, social media, and smartphones</h3><p>The concept of “your data” has evolved into:</p><ul><li>Real-time behavioral data points</li><li>Location/mobility</li><li>Social graph</li><li>Device + sensor data</li><li>Financial &amp; transaction data.</li><li>Training data for AI models</li></ul><p>When a company today says, “We want your data,” in practice it often means:</p><ol><li>We want every interaction you have with our product:</li><li>We want to link it to a persistent identity:</li><li>We want to use it for three things:</li><li>Occasionally, we want to share or sell it:</li></ol><p>It’s:</p><ul><li>The raw events (clicks, taps, and searches).</li><li>The profiles or segments include categories such as “likely car buyer” and “high-value gamer.”</li><li>AI models provide insights such as “users like you tend to favor layout X”.</li></ul><p>Everyone is building the AI browsers because why not make a bet against Chrome and for data? Perplexity has already launched its browser, which I find to be a much better experience than Atlas, by the way.</p><p>A data point I am interested in getting is the ratio of desktop to mobile users using OpenAI’s customer-facing apps. It won’t surprise me much but will confirm a couple of things about how users can make adjustments if the product is excellent.</p><p>Why are AI browsers a poor investment?</p><p>Building browsers is a technical job, and the raw engineering and ecosystem effort that goes into it gets very little praise. The development is riddled with thousands of dependencies, and things go wrong all the time.</p><p>If OpenAI follows through to continue building their own browser, they’d immediately carry the cost of the maintenance overhead, as I can see that they have added a layer on top of the Chromium engine clone and extended the work with Swift (created by Chris Lattner for Apple in 2010). This simply means that Windows users will not receive any updates in the near future, especially considering the overhead costs they are inheriting.</p><p>In terms of products, Google Chrome already includes some AI components in its development area; users can utilize the AI SDK integrated into the browser for voice transcription and text-to-speech (TTS) functions. I discovered this when I was building random personal software. They have also released AntiGravity, which I will review at some point. I believe the long-term goal would be to do more AI-native user-facing features beyond dev tools.</p><p>Google is currently in the best position to win the escalating AI browser war due to their extensive organizational expertise in building browsers and their current strategy for deploying AI applications, such as NotebookLLM and Antigravity. Also, word on the street is that a couple of ex-senior Google employees have moved back from Microsoft to Google, and they are really excited about what they are building. Quite encouraging.</p><p>The experience with the Atlas browser is quite disappointing. I am uncertain whether the team is A/B testing to discover insights that we already figured out a long time ago.</p><p>We want searches to be blazingly fast.</p><p>There are different types of searches, but the one we do most times doesn’t need to be quick.</p><p>On Atlas, it appears that there are plans to rewrite that feature, but the automated mode still makes many mistakes. Personally, I believe they will figure out all these issues; if you’ve been around long enough, you know that technology always catches up.</p><p>I am more interested in …</p><p>What Do I Think Is Better Than Browsers?</p><p>Personal Automations.</p><p>The rapid growth of personal software leads me to believe that a standard marketplace for personal automations is imminent.</p><p><a href="https://matthewcassinelli.com/openai-acquires-sky-workflow-team-shortcuts/?utm_source=chatgpt.com">OpenAI’s other acquisition, “Sky,” serves as a good example of solid design and a strong team that knows their way around the Mac, as it folds natural speech into Mac workflows and floats around your Mac like a little companion</a>. Second evidence on why I know OpenAI doesn’t give a toss about Windows</p><p>I plan to delve deeper into this topic the next time I tackle this vertical.</p><p>On automations and why they work, a good example is being able to send my code to GitHub in record speed. In the past I’d have to handcode my branches—branches are the way we add new features to an existing codebase.</p><p>Yesterday, I wrote a script that takes my commits and creates a new branch based on them. Now, I no longer have to think about branching, and the script provides me with three suggestions to choose from; the only drawback is that I have to wait one second for the suggestions to return.</p><p>Regular folk will want to do things like this and do this for everything. It’s also extremely sticky, probably stickier than personal websites. I have not opened most of my personal websites in decades.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1164e352ebdd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Starting with Cairo]]></title>
            <link>https://medium.com/@AyoAlfonso/starting-with-cairo-164eae840128?source=rss-862577c5ed0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/164eae840128</guid>
            <category><![CDATA[zksync]]></category>
            <category><![CDATA[starknet]]></category>
            <category><![CDATA[cairo-lang]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Ayooluwa Alfonso]]></dc:creator>
            <pubDate>Sat, 02 Jul 2022 12:02:29 GMT</pubDate>
            <atom:updated>2022-07-02T12:02:29.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l0--c5lhXPvf2RZ_zDarFA.jpeg" /></figure><blockquote>Follow this <a href="https://perama-v.github.io/cairo/nile">step by step guide</a> on how to install Nile — a toolkit for working with smart contracts and StarkNet</blockquote><h4>This installation worked for my older Mac</h4><pre>$ mkdir nile-cairo-examples<br>$ cd nile-cairo-examples<br>$ python3 -m venv env<br>$ source env/bin/activate<br>$ pip install cairo-nile<br>$ nile init</pre><h3>Pre-requisites:</h3><p>Python 3.3&gt;</p><p>cairo-nile</p><p>pip</p><p>py_test</p><h3>On the M1 mac</h3><p>I was getting this issue in the screenshot below, instructions are in the Open Github issue below</p><p>and then I got another issue, so I went the route of setting up docker for it</p><p><a href="https://github.com/OpenZeppelin/nile/issues/22">https://github.com/OpenZeppelin/nile/issues/22</a></p><p><a href="https://gist.github.com/AyoAlfonso/4312a0e4d42680cbaf77dd9f41054bdb">https://gist.github.com/AyoAlfonso/4312a0e4d42680cbaf77dd9f41054bdb</a></p><p>Now on continuing your Nile setup</p><p>While source env/bin/activate sets your terminal into the right env. For example you have to run this in the repo or folder you want to work in before you run other nile commands</p><pre>applepro@s-MacBook-Pro $ source env/bin/activate<br>(env) applepro@s-MacBook-Pro $ ls<br>env</pre><p>if you can see the (env) sign in front of your computer name then it is working just fine. And doing an ls will list a newly added env folder</p><p>You then need to download the cairo-nile package with pip install cairo-nile as that sets you up to use the nile command in your terminal. You will see something like the terminal response below</p><pre>$ pip install cairo-nile</pre><pre>Collecting cairo-nile<br>  Downloading cairo_nile-0.6.1-py3-none-any.whl (106 kB)<br>     |████████████████████████████████| 106 kB 70 kB/s <br>Collecting click&lt;9.0,&gt;=8.0<br>  Downloading click-8.1.3-py3-none-any.whl (96 kB)<br>     |████████████████████████████████| 96 kB 151 kB/s <br>Collecting python-dotenv&gt;=0.19.2<br>  Downloading python_dotenv-0.20.0-py3-none-any.whl (17 kB)<br>Collecting importlib-metadata&gt;=4.0<br>  Downloading importlib_metadata-4.11.4-py3-none-any.whl (18 kB)</pre><p>And then finally it will end in this</p><pre>✨  Cairo successfully installed!</pre><p>Now do a nile init to start off with a sample Cairo project setup. It is similar to using npm and running the npm init command if you’re familiar with the NPM ecosystem.</p><pre>(env) applepro@s-MacBook-Pro: $ nile init</pre><pre>Collecting ecdsa<br>  Downloading ecdsa-0.17.0-py2.py3-none-any.whl (119 kB)<br>     |████████████████████████████████| 119 kB 158 kB/s <br>Collecting fastecdsa<br>  Downloading fastecdsa-2.2.3-cp39-cp39-macosx_11_0_x86_64.whl (56 kB)<br>     |████████████████████████████████| 56 kB 2.3 MB/s <br>Collecting sympy<br>  Downloading sympy-1.10.1-py3-none-any.whl (6.4 MB)<br>     |████████████████████████████████| 6.4 MB 179 kB/s <br>Collecting six&gt;=1.9.0<br>  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)</pre><p>Then after that comes the above image confirms that all depenecies have been loaded it will end in this.</p><pre>✅ Dependencies successfully installed<br>🗄  Creating project directory tree<br>⛵️ Nile project ready! Try running:</pre><pre>nile compile</pre><p>as you can see the terminal is already asking us to run nile compile, when we do that. We get a response like the image below.</p><pre>$ nile compile<br>📁 Creating artifacts/abis to store compilation artifacts<br>🤖 Compiling all Cairo contracts in the contracts directory<br>🔨 Compiling contracts/contract.cairo<br>✅ Done</pre><p>You will see that it is installing packages you will be working with and that makes sense, you can’t do this without your network switched on by the way.</p><p>The next thing you should do after compiling this project is play sound with the files added, and probably run a test with</p><p>pytest tests</p><p>This will respond with an interactive terminal session to ask which test you want to run, there is a sample test file in the folder. And this will be the first option you get to choose from in the interactive terminal session</p><p>If you don’t have pytest a quick command should help sort that out.</p><p>pip install -U pytest</p><p>Make sure to test if pytest was actually installed and what version was installed pytest --version</p><p>Running your test as so;</p><p>pytest -s tests/test_contract.py</p><p>The ‘-s’ flag allows print statements to be viewed during tests.</p><p>By default nile compile compiles everything under contract/, but the command accepts file path(s) as arguments:</p><pre>$ nile compile contracts/contract.cairo contracts/other_contract.cairo</pre><p>Then you can finally run the</p><p>nile node</p><p>which produces 8 cryptographic addresses to work with</p><pre>(env) applepro@s-MacBook-Pro nile-cairo-examples % nile node<br>Account #0<br>Address: 0x532ecec0b828cef8bbd05da3e20224b75de176efdf5e3a77b324f42f74eb9eb<br>Public key: 0x727456c2614a896a00aaec45b12eec546bb87db2989ae297be19eef891d0d52<br>Private key: 0x9a93f95ded128fed42ace4a89aa171b3</pre><pre>Account #1<br>Address: 0x209b7da6e7ae2124afd131ad39e8d547e45e03c6564ea81d9d9903c9a9526fa<br>Public key: 0x52db0cd0ce2c3d1617b78c00d845392eacc8db9794aa066a97def46dd50d38d<br>Private key: 0x6751552ec787ecec19db56dead7a56</pre><pre>Account #2<br>Address: 0x4ff80d755b34e2093f7a2b374b165627173ec9a961bc8682f34e74152ba6e28<br>Public key: 0x278545f0d2245904845785c29d103183e3c8b088133eb7314953dd623be4432<br>Private key: 0x80e821f89dd85178a3186c29656f064</pre><pre>Account #3<br>Address: 0x31e20ff5eb4668b9669c2c2b128712210e4e1a42dc0112ddc779d5f10b8586a<br>Public key: 0x15cb80fc6fe0c3635273b0dc2c627ae03665557fa44f01e353909af65dd0f8b<br>Private key: 0x6aa09d42795368552705f4895aa0b123</pre><pre>.....<br>#and seed to replicate this account sequence, notes on why the system does this  </pre><pre>Initial balance of each account: 1000000000000000000000 WEI<br>Seed to replicate this account sequence: 1928537033</pre><p><strong>Test deployment to a local StarkNet</strong></p><p>Do the following in another terminal</p><pre>$ nile deploy vault --alias my_contract<br>#This deploys the contract to local testnet <br># 1 is the name of the contract file used to make the deployment.<br># 2 is the name you wish to refer to the contract in future commands.</pre><pre>$ nile call my_contract get_balance</pre><pre>330<br># call is how we call the @view functions [read-only functions]<br># &quot;my_contract&quot; is the alias previously given to the contract.<br># &quot;get_balance&quot; is the function of the contract being used.</pre><pre>$ nile invoke my_contract increase_balance 40</pre><pre># invoke is how we call the @external function<br># &quot;my_contract&quot; is the alias previously given to the contract.<br># &quot;increase_balance&quot; is the function of the contract being used.<br># 40 is some value being passed to the function.</pre><p>Possible errors :</p><p>If you send an argument to a function that should not be receiving an argument, this is what you get.</p><pre>$ nile invoke my_contract get_balance 30<br>Error: AssertionError: Wrong number of arguments. Expected 0, got 1.</pre><p>Contract functions with @external</p><ul><li>Are called with invoke</li><li>Are accessible outside the contract</li><li>Write to the contract and will be naturally more expensive than other functions</li></ul><p>Contract functions with @view</p><ul><li>Are called with call</li><li>Are accessible outside the contract</li><li>Doesn’t write to the contract</li></ul><p>In my next post, I will be diving more deeply into what happens when you run niles node and what environments your smart contract can be deployed to.</p><p>NB: Calling invoke on the function annotated with @view and read-only, will run fine with no terminal errors but won’t do what you expect it to do.</p><p>For example this</p><pre>$ nile invoke my_contract get_balance</pre><pre>Invoke transaction was sent.<br>Contract address: 0x034a86638a92c29d60c32dd111fc875fe41a7f7372bf4b27cafe3e2b23a8ca58<br>Transaction hash: 0x712a1350afaa3c467c58dd995993537379df754fecb74cfe0100052e2534a65</pre><p>I will be writing a proper deep dive on writing an AMM in Cairo in the next part of this article. Look out for the next drop, until then !👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=164eae840128" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Push Notifications in your React Web App (CRA)]]></title>
            <link>https://medium.com/hackernoon/integrating-push-notifications-in-your-react-web-app-cra-22d3010392e?source=rss-862577c5ed0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/22d3010392e</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[service-worker]]></category>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Ayooluwa Alfonso]]></dc:creator>
            <pubDate>Wed, 05 Dec 2018 23:12:28 GMT</pubDate>
            <atom:updated>2018-12-05T23:12:28.417Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*96VdeZrtfcvvsvHzuph-Cw.png" /><figcaption>mobify.com</figcaption></figure><p>Implementing push notifications for a react app is pretty straightforward until you have to do this on an app built with <a href="https://github.com/facebook/create-react-app">Create React App</a>, you might have a new service worker file to work with.</p><p>As someone modestly familiar with the folder structure of a CRA app you will know that this will cause conflicts or one service worker trying to overwrite the others.</p><p>It simply gets complicated.</p><p>Three reasons for this:</p><ol><li>Using the default scaffold flow for CRA npm run build, the service worker is generated automatically. Might take a while to understand all it is doing if you went through it now.</li><li>You can not simply edit this file to include your firebase service worker methods and imports. You will have to do npm run ejectparticularly and that means you will have to be<a href="https://stackoverflow.com/questions/42817478/what-do-you-lose-by-ejecting-a-react-app-that-was-created-using-create-react-app"> on your own onwards</a>.</li><li>You have to use <strong>Webpack</strong> plugins to generate the proper service worker when next you npm run build your project.</li></ol><p>An example of this is the npm package ServiceWorkerWebpackPlugin</p><p>The way these plugins work is to release a dynamic <strong>service worker</strong> file in place of the default <strong><em>sw</em></strong> with a runtime helper.</p><h3>The Solution</h3><p>The alternative is to avoid modifying the default service worker in the root of your ./src and the one generated at the /build(we do not really have a business with this), it will most likely be named something like “registerServiceWorker.js”.</p><p>You should try to put your new service worker in the public/assets folder, this is the folder that is used to hold our assets. My service worker is named “firebase-messaging-sw.js”</p><p>The idea is that webpack will not bundle the js files in the public/assets folder unlike those in ./src and then we can call it and register it at the root of our react app.</p><p>I decided to structure my app like so:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a3089309145bad7b51fa314ced54cbda/href">https://medium.com/media/a3089309145bad7b51fa314ced54cbda/href</a></iframe><p>On the initializePush() function we will be asking the users if they want us to be sending them notifications. And it is only called after registering/updating a service worker file.</p><blockquote>A service worker is updated after the browser does a binary comparison between the old and new file; on finding a difference in output after the comparison it will install the new service worker and then generate a new token.</blockquote><p>Below is the modal that shows on the first-ever request for permission to send push notifications to users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYtzosBRQyKaCI6VO3SBSw.png" /><figcaption>Show notifications modal</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/877c4d5137c9c3ab43ee92dda620ca20/href">https://medium.com/media/877c4d5137c9c3ab43ee92dda620ca20/href</a></iframe><p>And next getting the token based off your current instance of firebase. You will notice this function has the <em>requestPermission()</em> function and also the <em>messaging</em>.<em>getToken()</em> and then the <em>sendTokenToServer()</em> all in the <strong>.then() </strong>chain. Does this mean we are getting a new token from firebase every time we reach that point in the code?</p><p>Apparently, it turns out we don’t. We are not getting a new token every time the function is called. What actually happens is that the first time the getToken method is called, a network call is made, once retrieved and used (sent to our backend) subsequent calls to <em>getToken</em>() the token will return from the cache.</p><h3><strong>Extras</strong></h3><p>message.onMessage()</p><p>Receives messages sent to this client when the client has the app open.</p><p>self.addEventListener(&quot;notificationclick&quot;,()=&gt;{})</p><p>Called when a client clicks on the notification that is sent from the app server somewhere.</p><p>message.setBackgroundMessageHandler</p><p>This method handles the messages received when a client does not have the app open.</p><p>Remember to instantiate your firebase instance in another directory, in case you missed it, it was used here; import messaging from &#39;config/firebase&#39;</p><p>Goodluck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22d3010392e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/integrating-push-notifications-in-your-react-web-app-cra-22d3010392e">Integrating Push Notifications in your React Web App (CRA)</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some Thoughts On The Return Statement]]></title>
            <link>https://medium.com/hackernoon/some-thoughts-on-the-return-statement-9d99771f2838?source=rss-862577c5ed0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d99771f2838</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Ayooluwa Alfonso]]></dc:creator>
            <pubDate>Tue, 29 May 2018 00:15:18 GMT</pubDate>
            <atom:updated>2018-06-01T08:10:29.037Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vVzwGLvNK8Il14IP7ACUYw.jpeg" /></figure><p>First of all, the javascript <strong>return</strong> is a statement. Not a function.</p><p>On the surface statements and functions are commands for the javascript engine to ‘does something’. Technically however they are different. A <strong>statement</strong> is a command that doesn’t return a value.</p><p>A <strong>function</strong> can be called from anywhere in the javascript environment -no matter where it is defined- and it is often used to return a value. A function in a program is a subroutine.</p><blockquote>A <strong>subroutine</strong> is a sequence of program instructions that perform a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed.</blockquote><blockquote>-Wikipedia</blockquote><p>The<strong><em> return</em></strong> statement ends the execution of a function in a JS environment and its used to specify a value (object, array, variables) to be returned to the function’s caller scope.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc20b9defbd86a4238e86eec4e2d410e/href">https://medium.com/media/bc20b9defbd86a4238e86eec4e2d410e/href</a></iframe><p>Above here what happens?</p><p>Especially with our return statement.</p><p><strong>Pseudo-code explaining the function</strong></p><ol><li>We initialise the user variable , declare it as an array of users. These elements are objects themselves with props.</li><li>Line two is a counter set to start at zero</li><li>A filter function that will create a new array based off the condition we have defined in the function.</li><li>Notice the arrow function ? Collapses our function and makes it easy to read(If our conditional in the function was to be simpler using arrows would have been at least two lines shorter ). Not only that, it has been able to handle those weird <strong>.bind(this)</strong> situations.</li></ol><p>Lets have a little discussion about arrow functions</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dde3a65bab09a0305d7fbcb5ac42f665/href">https://medium.com/media/dde3a65bab09a0305d7fbcb5ac42f665/href</a></iframe><p>What are some things you can see? The code is shorter and the <strong>this</strong> ‘works’ without a bind call.</p><p>I have written a short note on ES6 arrow functions at the end of this post.</p><p>TL;DR The ES6 arrow function syntax will always override any previously bound or dynamically determine the value of “this” and its awesome for the engine and for the code.</p><p>**</p><p>5.<strong><em> Finally</em></strong>, our iterator steps through our array based off our condition and returns the few elements who pass the “test”. On line return which is our focus. We see two values being returned to the filter method. The user gets returned. But state is “dropped”</p><p>‘State’ is not necessarily dropped, more like it is ignored. Why does the JS engine do this? Well the engine expects the element ‘e’ to be returned to the filter method, so as a matter of fact when you write some value or expression, declaration with the return statement, the return statement has no business with this value, it will however continue to just return the elements that have passed the specified condition.</p><p>This is the particular behaviour for unique ES6 methods and this behaviour will not hold for traditional functions.</p><p>As per this code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/190d33f548f79effd8e580f2e2815dff/href">https://medium.com/media/190d33f548f79effd8e580f2e2815dff/href</a></iframe><p>When the code is run. The value of this.test is “World” Why?</p><p>Ignores all the statements(runs them of course), expressions after the return but then picks the last value stated and returns that value.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4eb08bcb40813be926884685b715fae0/href">https://medium.com/media/4eb08bcb40813be926884685b715fae0/href</a></iframe><p>At the end of the function we return every “user” in the range that fulfils the condition however state doesn’t get returned. If you are not surprised it is probably because you understand that functions return explicitly a single variable.</p><p><em>NB: The ‘this’ context works by lexical scoping. The JS engine running the code will look into the scope containing the function and use the ‘this’ context of that scope in the function. An interesting thing to note is that the ‘this’ context of an arrow function cannot be overwritten. You can’t bind it to an object you want to bind the function to. Some developers see this as a bad thing. But that’s disturbing because JS is meant to be a </em><strong><em>dynamic</em></strong><em> and </em><strong><em>strict</em></strong><em> language at the same time to really realise the potential of the language. In environments like React, the use of the arrow function really helps to avoid awkward binds between components, binding this in the</em> **render **<em>function a</em>nd other things the arrow functions does dynamically. All these add up to improve the performance of the app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d99771f2838" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/some-thoughts-on-the-return-statement-9d99771f2838">Some Thoughts On The Return Statement</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TypeScript vs. JavaScript]]></title>
            <link>https://medium.com/hackernoon/typescript-vs-javascript-b568bc4a4e58?source=rss-862577c5ed0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b568bc4a4e58</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Ayooluwa Alfonso]]></dc:creator>
            <pubDate>Tue, 27 Jun 2017 18:24:30 GMT</pubDate>
            <atom:updated>2019-02-22T15:39:22.947Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FYSe5Iw8jz8aSl9cY3N5vQ.jpeg" /><figcaption>Picture Taken By WikiImages</figcaption></figure><h3>What is TypeScript ?</h3><p>On the 27th of April 2017, you wake to begin your morning routine, It’s 4:05 AM, so you don’t see it yet. No screen time till 6:00 am. Personal policy. You meditate. You work out, you make breakfast. This time you decide to slide in the book reading routine for a little while in there. You surely haven’t done that in a while.<br>It’s 8:00 am you have managed to not have checked that phone screen. Your mind is fixed on getting to the office first. And again you don’t see it. Finally, the morning meetings are over and you have your sanity back for what? An hour? Half an hour maybe before another meeting.<br>Then you pick up your phone to check for what you believe is a Twitter notification. That’s when your eyes catch it.</p><blockquote><strong>Announcing TypeScript 2.3</strong></blockquote><blockquote>Today we’re excited to bring you our latest release with TypeScript 2.3!</blockquote><blockquote>For those who aren’t familiar, TypeScript is a superset of JavaScript that brings users optional static types and solid tooling. Using TypeScript can help avoid painful bugs people commonly run into when writing JavaScript by type-checking your code. TypeScript can actually report issues without you even saving your file, and leverage the type system to help you write code even faster. This leads to a truly awesome editing experience, giving you time to think about and test the things that really matter.</blockquote><blockquote>……..</blockquote><p>You wonder, what in Gods name is this? You had just gone through hell with React/Redux, you are still grappling at Vue.js. Somehow you have figured Angular out. Well okay let’s say you did not really have a choice, you were learning on the job. No results meant your job would suffer. And so you learned Angular.</p><p>You think of the stress you have to go through to learn this shiny new thing. You check up the usage of this <a href="https://en.wikipedia.org/wiki/TypeScript"><strong><em>strict syntactical superset of JavaScrip</em></strong>t,</a> a few days later and you find out it has an army of developers behind it. Do people love this thing? Now as a smart developer you know <a href="https://blog.codinghorror.com/so-you-want-to-be-a-programmer/">you have no other job but to keep up with the market</a> as Chad Fowler mentioned in his still very relevant book <a href="https://www.amazon.com/Passionate-Programmer-Remarkable-Development-Pragmatic/dp/1934356344">The Passionate Programmer</a>. I understand perfectly the way you feel. But I personally feel like <a href="http://www.typescriptlang.org/">TypeScript</a> has come to stay.</p><h3>But What Exactly Is This JavaScript ?</h3><p>JavaScript the very dynamic programming language that everyone was drawn to because it didn’t “house them in” like C++ did. Its<strong> untyped</strong> nature and its unique <strong><em>prototypal inheritance</em></strong> was perfect bait. To justify my gut feeling about this just days after TypeScript was released by Microsoft, Angular picked it up and abandoned the plain<a href="https://es6.io/"> ES6</a> that was another available option. Initially, their idea was to go with actionScript, a javascript scripting language that extended Typescript and got published by Google’s <a href="https://en.wikipedia.org/wiki/AngularJS">AngularJS</a> team exactly two years after the forerunner TypeScript. In fact, it was going to run on the TypeScript of course as an extension.</p><p>With all that being said since then a <a href="https://github.com/wycats/javascript-decorators">decorator proposal</a> has appeared for ES and it seems to be quite close to what original actionScript did. But before we jump the gun here really. What is this decorator proposal ES utilizes ?</p><p>A Decorator is:</p><ul><li>An expression</li><li>That evaluates to a function</li><li>That takes the target, name, and decorator descriptor as arguments</li><li>And optionally returns a decorator descriptor to install on the target object</li></ul><p>Read more<a href="https://github.com/wycats/javascript-decorators"><strong> here</strong></a>. But if you don’t want to branch out into another page until you are done with this article, a decorator is basically a high order function? An high order function ‘takes in’ another function and when it runs, it extends the behaviour of the latter function without explicitly modifying it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/1*gXdff6xP0PtvS0KzBVgV4g.png" /><figcaption>UA very simple python decorator</figcaption></figure><p>So if our function myFunction(as a higher function) here takes in a function it won’t necessarily modify that function, though the output will turn out differently.</p><p>One of the first things that put me off with decorators was the ‘@’ sign. It immediately felt like I was reading another language other than JavaScript. I am sure this was the experience for a lot of other people too. Either ways the ‘<em>@`</em> tells the parser that everything (in that block of code) after that sign is a decorator. Sounds easy now? It is simply just talking to the computer directly what is about to happen which is that a function will be decorated by another function and the results will be passed back up.</p><p>And the computer says; ‘Got it! Fine, go on’ . The computer then treats that block of code as a different kind of function, kind of like how a parent would treat a favourite child and as a result of this special attention from the ‘parent’, it becomes a function that can do cool things like memoization, authentication, logging and so on. Again I won’t go deeply into the details of this for now but when you think of decorators think of them as this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*ahu8v6ASPC0XJbh1889ZXQ.png" /><figcaption>A decorator at work</figcaption></figure><p><em>…Instead of this train wreck.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*brrJU2sFcRtTz0uJjv2nyw.png" /></figure><p>Imagine you have a couple of functions you want to wrap around themselves. It would be a nightmare to code and maintain such program. All said and done about ES6, of course, you would still have to deal with <a href="https://en.wikipedia.org/wiki/Programming_language#Type_system">typing</a> somehow in ES. And TypeScript is a natural fit there(when it comes to typing). You can complement ES with a solution like <a href="http://flowtype.org/">Flow</a> to get gradual typing after all. Maybe we’ll see two bigger camps. One for ES (Babel guys) and one for TS.</p><h3><strong>What is Static vs Dynamic Typing ?</strong></h3><p>Typing has always been about the variables in the program. If I create a static typing language I don’t have to immediately tell the compiler that this particular integer and will always be an integer. It will be exactly what I stored in the program even If I forget while coding and changed its value by passing it to another class or something. A number of good language examples are C, C++, Java. Dynamic typing, on the other hand, is the direct opposite of what the above is about. Ruby, Perl and of course our poster boy: JavaScript. This doesn’t mean any one of these languages is inherently weak or bad. And that should be the focus.</p><p><strong>Example of Java (Static and Strongly Typed)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*j15umZk3lz8JLVLAPl9vOw.png" /></figure><p>There is no way the system can go wrong in evaluating the value of ‘foo’, ever.</p><p><strong>Example of Javascript (Dynamic and Strongly Typed)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*iIar0CxfdYOCEzzAjJ3Xlw.png" /></figure><p>As opposed to Java or C++, which are both strongly typed languages, <strong>Javascript is intelligent</strong> enough to know/interpret what variable type you want to use. but because of the laxness that this creates or can create in code quality it is also called a <strong>weakly typed language. </strong>But we know better. Especially if you follow best practices.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F7ef2d2%3Fas_embed%3Dtrue&amp;url=https%3A%2F%2Fupscri.be%2F7ef2d2%2F&amp;image=https%3A%2F%2Fupscri.be%2Fmedia%2Fform.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/101fb830f1a9d5d5634656d2860b84b9/href">https://medium.com/media/101fb830f1a9d5d5634656d2860b84b9/href</a></iframe><p><strong>Example of PHP (Static and Weakly Typed)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*O0fGNfHB1bkcSqDsuYagHQ.png" /></figure><p>Between the two up there they are just paradigm ways of coding, it doesn’t mean Static typing is bad or Dynamic typing is good. The devil that should be your sole attention should be weak and strong type languages. Here is what you lose by overlooking a scripting language that is focused on improving the life its users.</p><ul><li><strong>Generic functions &amp; Polymorphism</strong></li><li><strong>Higher order functions</strong></li><li><strong>Object composition</strong></li></ul><p>Again. Dynamic types DOES NOT =/ No type checks. on that topic check out this article that <a href="https://blogs.agilefaqs.com/2011/07/11/dynamic-typing-is-not-weak-typing/">Dynamic Typing is NOT Weak Typing</a> Taking a step back what if we combined both sides of the coin, meaning we take what made C++ be C++ and introduced that into Javascript?</p><ul><li><em>Speed</em>: Static languages are generally faster</li><li><em>Efficiency/Effective </em>Static languages make the programmer more accountable. Dynamic programming sometimes creates a moral hazard and encourages bad programming habits</li></ul><p>Here is JavaScript <strong>Dynamically typed</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*Ygu-YxSrYaS6H2ORHkgimw.png" /></figure><p>Here is Javascript Strongly Typed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*ICsbwYPQDAQV0TO1ficPpQ.png" /></figure><p><strong>And that is TypeScript!</strong></p><p>If this article makes Typescript sound interesting, you can delve more into Typescript and see if it’s something you want to invest time and energy into. This is just a very brief article talking about these tools in a very peripheral manner.</p><p>‘</p><figure><a href="http://bit.ly/HackernoonFB"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0hqOaABQ7XGPT-OYNgiUBg.png" /></a></figure><figure><a href="https://goo.gl/k7XYbx"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vgw1jkA6hgnvwzTsfMlnpg.png" /></a></figure><figure><a href="https://goo.gl/4ofytp"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gKBpq1ruUi0FVK2UM_I4tQ.png" /></a></figure><blockquote><a href="http://bit.ly/Hackernoon">Hacker Noon</a> is how hackers start their afternoons. We’re a part of the <a href="http://bit.ly/atAMIatAMI">@AMI</a> family. We are now <a href="http://bit.ly/hackernoonsubmission">accepting submissions</a> and happy to <a href="/service/mailto:partners@amipublications.com">discuss advertising &amp; sponsorship</a> opportunities.</blockquote><blockquote>If you enjoyed this story, we recommend reading our <a href="http://bit.ly/hackernoonlatestt">latest tech stories</a> and <a href="https://hackernoon.com/trending">trending tech stories</a>. Until next time, don’t take the realities of the world for granted!</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35tCjoPcvq6LbB3I6Wegqw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b568bc4a4e58" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/typescript-vs-javascript-b568bc4a4e58">TypeScript vs. JavaScript</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing Africa’s Software Talent Problem]]></title>
            <link>https://medium.com/@AyoAlfonso/how-to-build-an-african-focused-andela-64131bf7e02?source=rss-862577c5ed0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/64131bf7e02</guid>
            <category><![CDATA[nigeria]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[andela]]></category>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Ayooluwa Alfonso]]></dc:creator>
            <pubDate>Sun, 09 Apr 2017 02:27:40 GMT</pubDate>
            <atom:updated>2024-03-16T00:22:10.833Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*c6vQpamMA_CddpAh3CLlFA.jpeg" /><figcaption>The Andela Team</figcaption></figure><p>In 2010 the Chinese government made it compulsory for Western companies to sell software to the ‘state-owned’ companies bred in China -<a href="https://www.chinabusinessreview.com/state-owned-enterprises-partners-and-competitors/">https://www.chinabusinessreview.com/state-owned-enterprises-partners-and-competitors/</a>. These foreign companies had to disclose their source code and work hand in hand walking these local companies through the software. Long story short this did not turn out well for the Chinese state</p><p>The Western software companies refused, meaning China lost that fight, but if you are familiar with China. Their cut-throat foreign policies initially insinuate harmlessness and a ‘softie’ attitude but turn around abruptly to bite you in the back, you would have an idea that China didn’t stop at that they made sure to issue product standards and specifications to these Western companies if they wanted any contracts with the Chinese government.</p><p>The win for the Chinese-owned companies is that they could exploit the products that adhered to China’s product specs to their advantage. They could now begin to evade Western patents and intellectual property protections to create their software with their people.</p><p>Why is Nigeria not doing this? The most interesting part of this story is still coming up but I want to flat-out identify why I am even writing this post in the first place. Here we go:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*W729NmmJmOIoj0sK1dJm8A.png" /></figure><p>The tweet above opens us to the state of demand for Nigerian tech talent in Africa. Now if you read more of those tweets:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*Wjodu7t5zctXuZ_APN9HOA.png" /></figure><p>It wouldn’t be hard to notice how some of the talks shifted to be all about money and some saying the cost of hiring developers should be chopped. Most primarily thanks to Iyin Aboyeji dropping this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*xNh2TidBBjErQSKrrYb_HQ.png" /></figure><p>Secondly, developers are not Tomato(as in commodity), stop treating them like Tomato and expect them to deliver amazing things for you. They won’t because now they are tomato developers, not world-class something. Read <a href="https://t.co/Xkn5NYHCNW">this</a> post by Celestine Omin Ex software engineer at Konga and now at Andela to get a good idea of what a Tomato and a world-class developer is.</p><p>As for me what I want to achieve with this post instead of tapering off is to discuss how the rest of Africa (specifically the talented youth that are prepared) be given the opportunity in multitudes to be world-class. I don’t know if you notice but the world and the way it works can only be best described as a winner-takes-all game. When you are highly skilled as Cal Newport described in his book So Good They Can’t Ignore You :</p><blockquote>“The good news about deliberate practice is that it will push you past this plateau and into a realm where you have little competition.”</blockquote><p>Meaning when highly skilled individuals emerge from hard work and years of deliberate practice they are worth a lot more than the average performer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*i309OZejTtEYtVghH8rIqg.png" /></figure><p>Let me give a shabby explanation of that 80/20 theory. Remember it? If you have never heard of it, it was discovered by Pareto in Italy. He was an economist and while moving in his garden he noticed that 80% of the pods that were produced were from a smaller group of the plant populace in that garden. He applied this new idea he stumbled upon to the Italian economy. And he saw quite the same thing; less than 10% in fact of the population possessed more than 90% of the economy’s wealth.</p><p>The top 10-20% developers that are world class will and are grabbing 80% of the market ‘dollarzz’ and the rest will be left with just 20% to fodder on. That’s terrible, isn’t it? But this is what has been happening in Africa compared to the wold . For years. And to bring us back to the issue of China being a bitter back stabber, they were as a nation in the same pot of soup. Data doesn’t say they are ahead of the Western/Russian powerhouses yet but the nation doesn’t ship in software as it used to before present.</p><p>China as of now sells their software to other countries same as the applied materials and semiconductor market. China’s local companies whose state of technology was being overshadowed by foreign manufacturing giants in that past now win international contracts in Australia and the likes.</p><p>Here is what Nigeria is spending on software importation :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*HlU34e9udYGzE7vMRqFsrw.jpeg" /></figure><p>Here is what we make from software exportation in Billions</p><blockquote>Are you kidding ? You were expecting a graph?? That thing is non-existent.</blockquote><p>The Orientals applied what I call a three-pronged strategy to alleviate their lack of domain knowledge, it didn’t fix it. Not a golden bullet in a way but China now ships their own software/manufactured products out to the abroad and win contracts in foreign countries. Even giving the U.S. a run for their money in mainstream industrial production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*IBDdjowfEruPOQP8m2y6jw.jpeg" /></figure><p>If that was Nigeria wouldn’t that solve the ‘Developer Quality’ issue we all agree and believe we need to decipher?</p><h3>The Three Pronged Plan to Set Africa in the Right Direction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*bApZllJr9UNhoxgvmLfaGw.png" /></figure><p>What this plan should do is create an environment where well-grounded traditional software programmers can emerge from.</p><p>First, the government should set up hubs/ventures in every major university; these hubs will be in charge of buying advanced software technologies. In fact it would be their sole purpose.</p><p>These ventures will have very similar structure to the likes of CcHub, very much like a software house-with modular teams, the software vendors selling us, has to partner with them to release or sell any of their products. This gives the techies in the country the upper hand and we can dictate which and which companies would benefit us by working with them. At least it’s our domain we should be in the best place to know.</p><p>Second move will be to merge these tiny hubs to few big software houses/national champions even though they are distributed, so that a handful of universities will be say supporting a single functional hub. Why? It is obvious that some schools for some reasons will not be able to handle the venture say for operational and financial reasons.</p><p>Very understandable but the first step is meant to spread the work amongst the states and make some universities fail. And then the ones with the most student talent, managerial skills, and deepest financial pockets (like University of Ibadan) can lead a group of like four underperforming universities(FUTO, UniPort ,Elizade Uni etc) to manage a single brand hub spread across the cities that the universities reside in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*S7qjcICmURmeRDpVNzkFaw.jpeg" /><figcaption>What the software houses should look like</figcaption></figure><p>The idea above means that the hubs would enjoy economies of scale and more concentrated knowledge houses. The software house led by FUTA (Federal University of Akure) followed by four other schools in that south western area might begin to specialize in VR or Semantic Web Programming. Now when that begins to happen we will have very specialized but highly skilled developers breeding in these software dev ‘factories’.</p><p>Third move, the last and most important is that Nigerian government has to coerce these foreign software vendors to form joint ventures with these software houses and transfer their technology to the in-house devs for reciprocation; they will be able to secure future contracts with Nigeria and Nigerian business entities.</p><p>This way our in-house devs will be allowed on real jobs, a great deal of information and even if the foreign companies find loop holes to keep their products out of reach(because they will), many of their practices and the exposure they have passed to the houses is enough to ignite the community to world class.</p><p>This is not just some random thinking, this is exactly the model china used to develop its OEM and manufacturing market. The market that has succeed in enveloping the world and putting china back on the map of technology. We can apply this too in software and I think the University is a great place to do it.</p><p>However I don’t hear you asking a question that quite defeats this in all its theoretical glory? What if the government doesn’t want to do this? Like what do we then do? What can private companies do? I will write about that in the second part of this series. You can follow to be updated when the next part comes up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XG5dVG8TjTFMjRoMaOsEZg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64131bf7e02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tech In Africa Is Broken]]></title>
            <link>https://medium.com/@AyoAlfonso/tech-in-africa-is-broken-d8b70246ec4c?source=rss-862577c5ed0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8b70246ec4c</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[africa]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Ayooluwa Alfonso]]></dc:creator>
            <pubDate>Wed, 05 Apr 2017 16:58:04 GMT</pubDate>
            <atom:updated>2017-04-05T16:58:04.107Z</atom:updated>
            <content:encoded><![CDATA[<p>President Adams said: “I must study politics and war, that my sons may have liberty to study mathematics and philosophy.<br>My sons ought to study mathematics and philosophy, geography, natural history, naval architecture, navigation, commerce, and agriculture, in order to give their children a right to study painting, poetry, music, architecture, statuary, tapestry, and porcelain.”</p><p>There is value gained by a nation from investing in and winning wars or political plays. That value is wealth and infrastructure. Then the coming generation captures some of that value and diverts the use of infrastructure to other fields, those fields &#39;benefit&#39; from some kind of &#39;unconventional application&#39; and when said fields develop we call this benefit - &#39;technology&#39; because it increases the fields Total Productivity Factor (TPF) value. Fields that find a way to improve productivity open a new source/level of wealth(that’s another discussion for another day) .</p><p>Lest I diverge the field then provide enough leverage for another unique generation that don’t really know about the former decade’s development to make really &quot;amazing&quot; things like entrainment, music, aesthetics, etc.<br>These are not necessarily REAL developments music doesn’t necessarily make me &#39;productive&#39; like my personal computer does. But it’s an incremental development.</p><p>I will steal a word from Peter Theil and say it’s a 1 to n incremental developments, what we need are 0 to 1’s and they are HARD!!!<br>Selah</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8b70246ec4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>