<?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 Ushir Raval on Medium]]></title>
        <description><![CDATA[Stories by Ushir Raval on Medium]]></description>
        <link>https://medium.com/@ushirraval?source=rss-8dd4e95185cf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ez5KUFrkvDjs6hYDO5nqRQ@2x.jpeg</url>
            <title>Stories by Ushir Raval on Medium</title>
            <link>https://medium.com/@ushirraval?source=rss-8dd4e95185cf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:29:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ushirraval/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[AI/NLP. Evolution of Compilers?]]></title>
            <link>https://medium.com/@ushirraval/ai-nlp-evolution-of-compilers-5ae2d1acd56a?source=rss-8dd4e95185cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ae2d1acd56a</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[linguistics]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[noam-chomsky]]></category>
            <category><![CDATA[compilers]]></category>
            <dc:creator><![CDATA[Ushir Raval]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 10:22:04 GMT</pubDate>
            <atom:updated>2025-06-29T10:22:04.079Z</atom:updated>
            <content:encoded><![CDATA[<p>Considering recent trends like so-called “vibe-coding” and the amount of tension around these seemingly “hands-off” exercises in creating solutions, I have some naive and simplistic thoughts (as usual). In this article I attempt to break down the wild and complex ways us humans share information and, with many a stretch, compare us humans to computers (hah! what a funny comparison, but bear with me). As a side effect to me very happily nerding out on foundational computer science concepts, hopefully, I can somewhat convince you that we’re seeing an evolution of what we know as a ‘Compiler’.</p><h3>How we excrete information out of our brains (one of the ways, at least)</h3><p>Let’s start at the root of all our troubles in a sense.</p><p>Language.</p><p>It’s the way humans send information wirelessly[1] right?</p><p>Language is quite complicated (and bizarre) for a thing that almost everyone everywhere intuitively does. The objective description of a conversation is when a human makes a series of vibrational waves (sound) or hand-signs of a certain type, tone, pitch, cadence and rhythm etc. and another human picks up those waves (sound) or hand-signs through specialized bones and organs (squishy bits) and mostly understands the intention of that first human (we’ll talk about this “understanding” stuff in a later section).</p><p>Even more weird is that if you change one of those variables, like for example the tone, but leave everything else the same, the entire bloody meaning changes.</p><p>Even crazier, is that we have specific symbols that we draw (with sticks and ink on dead trees [2]) in a specific order that (to a large extent) can convey the same intention as these series of noises and or gang hand-signs.</p><p>F**king bizarre.</p><p>Let’s add some reason to this rhyme…</p><p>My first personal hero[3], <a href="https://chomsky.info/about/">Noam Chomsky</a>, in his seminal body of work on formal language[4] describes something that would eventually be called the <em>Chomsky hierarchy</em> of formal grammars. A complicated sounding thing, but at it’s core (and this is a super simplistic explanation[5]) the aspect I’d like to highlight is — you’re limited in the amount of information you can convey depending on how you communicate:</p><ul><li>A random <strong>unstructured</strong> bunch of letters isn’t necessarily a word (believe me, with my atrocious spelling, I can attest)</li><li>Going a level higher once you solve the structure of the letters, is to make words</li><li>A random <strong>unstructured</strong> series of words doesn’t give you a sentence <em>clause [6]</em></li><li>Then a level up, a random <strong>unstructured</strong> series of clauses can’t convey meaning intentionally.</li></ul><p>And so on and so forth, up the chain of more and more intentional structure being correlated to the accuracy of conveying meaning or <strong>information</strong> (again, I can’t stress how simplistically reductive this explanation is, but it will serve my purpose for now).</p><h3>WTH is information anyways!?</h3><p>Okay, we’ve spoke about how we excrete information, but what is this information? “Everyone keeps using the bloody word!”</p><p>Let’s do a very rough thought experiment. I’m going to write something and I need you to keep track of your initial understanding of each.</p><blockquote><em>Exhibit A: “the cow was mean”</em></blockquote><p>This would mean very little to you. It would merely describe some cow that may or may not exist somewhere in my world that may or may not have been mean. How would you know with those 4 words?</p><blockquote><em>Exhibit B: “my Afrikaans teacher was a cow and was mean to me”.</em></blockquote><p>This means something different right? At face value, you get the ‘sense’ that I had a teacher that was mean to me and that they taught me Afrikaans. OR, you could interpret this to mean that the Afrikaans-speaking teacher was mean to me. Notice that the ‘cow’ as an animal has disappeared from your mental modal of what I wrote here and that depending on who’s reading this, the meaning changes.</p><p>Let’s go a final step further.</p><blockquote><em>Exhibit C: “If you knew me, you’d know that I (ironically) was naturally a piss-poor language student and that I gave my Afrikaans teachers a hard time by never doing my homework because maybe deep down, I hated that learning Afrikaans wasn’t intuitive to me, and probably as a result of not doing said homework, I had horrible marks. So it’s probably not fair to say my Afrikaans Teacher was a cow and was mean to me.”</em></blockquote><p>Let’s break this one down in more detail.</p><p>Hopefully you’ve picked up that in each of the exhibits above, there were different levels and types of information that could be taken from each scenario, despite there being more or less the same words, and even further, the same letters used.</p><p>To simplify what I’m trying to get to, there are 2 types of information I’m going to focus on that I feel are the most relevant here. Those are:</p><ol><li>Syntactic Information</li><li>Semantic Information</li></ol><p>Without going into detail of this, because trust me it would take all day and I’m not an expert by any stretch of the word anyways, let’s focus on my sob story about my relationship with my Afrikaans teacher an ungodly number of years ago [7].</p><p>Exhibit A has structure but little in the way of context. Exhibit B had structure and a little bit more in the way of objective information, but still barely any more context. Exhibit C had structure, objective information and context.</p><p>More importantly, Exhibit C had more <em>meaning</em>. Meaning is a type of information. Information that our human brains have the ability to <em>interpret</em> and <em>understand</em> (to varying degrees).</p><p>What we most apparently have in Exhibit C that makes it stand out, amongst other things, is <strong>Semantic Information</strong>.</p><p>I’ve given <em>Syntactic Information</em> — that is, a structured set of letters, words and sentences — information of a form that we call “meaning” or <em>Semantic Information</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/0*QMLZ_utLAmMKJq6p.png" /></figure><p>(Note: For the sake of simplicity, I’m going to omit things like <a href="https://en.wikipedia.org/wiki/Lexical_semantics">Lexical Information</a> and <a href="https://en.wikipedia.org/wiki/Information_theory">Information Theory</a> merely because it adds nothing useful in this context)</p><h3>Taking all the sweet, sweet information in…</h3><p>Okay, we can hopefully say that we understand:</p><ol><li>A way in which we send this thing called “Information” and</li><li>We know some of the basic components of this “Information” we’re sending</li></ol><p>Now what?</p><p>Well, now we have to recursively “understand” how we “understand” something [8] (I did say to bear with me…).</p><p>Though, understanding how humans “understand” is a subject that people much smarter then me would have to explain and is itself a subject for many an academic paper. So I’m going to shamelessly pivot to something that I understand much better then humans — Computers.</p><p>Specifically, the aspect of computers that allows us geeky engineers to create programs and software that benefits a profitably large group of people. In my opinion, the next biggest game changer in modern computing after the transistor and micro-chips isn’t AI, it’s the Compiler.</p><h3>Compilers</h3><p>In very simple and high-level terms…a compiler is something that every computing device uses and it has 2 very basic functions:</p><ol><li>allows a human to write instructions in a language that said human can easily understand</li><li>Enables the computer to take those instructions and translate (but actually, compile) it to something that itself can easily understand and follow</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/0*sjr0w5k_4CENFgCG.png" /></figure><p>Don’t take my word for it though…Merriam-Webster defines a compiler as:</p><ol><li>one that compiles</li><li>a computer program that translates an entire set of instructions written in a higher-level symbolic language (such as C) into machine language before the instructions can be executed</li></ol><p>Good we checked with dears Merriam and Webster because both definitions are actually relevant here.</p><h3>The point of this whole long af article</h3><p>Arguably, humans are compilers. We can read words and have thoughts and execute actions based on them.</p><p>Similar to a computer right?</p><p>Yes, but there has been a huge difference, seemingly until now (apart from, you know, humans being messy bags of flesh and bones and…gag…emotions) [9].</p><p>Computers — with the use of compilers — have been fabulous at understanding <em>Syntactic Information</em>. Computers — so far — haven’t been able to understand <em>Semantic Information [10]</em>.</p><p>AI, and specifically Natural Language Processing, changes this.</p><p>Natural Language to a human can convey meaning in the sense we’ve outlined above. Computers can now understand (to a certain extent) <em>Semantic Information</em>.</p><p>Don’t get it twisted. I’m not saying that Computers are going to be more like humans. I’m not qualified nor am i confident in my understanding of Computers or Humans to definitively make such a statement.</p><p>However, I do believe that we’re seeing an evolution of the Compiler in the sense that I can now tell a computer to write me a Python application that writes a letter that says “I am sorry I was such a difficult Afrikaans student” in an email 100 words long with the primary emotion of “chagrin” and send it to all my old Afrikaans teachers from High-school [11] and it will more or less do it.</p><p>This, in my (possibly naive) view, is a <em>compilation</em> of my natural language (with varying degrees of accuracy) into a <em>higher-level</em> programming language which then already gets compiled down to machine code and eventually that gets compiled to 1’s and 0’s that the chips and chocs within the computer can happily process and execute.</p><p>Anxieties and hype-cycles aside (I’ll probably write about those some other time, cause believe me, I am anxious in light of this supposed AI revolution) I find it hard to disagree with the thought that NLP is a natural (pun intended) evolution of the compiler, and I can’t help but wonder if this was how the old guard felt when punch-card systems were starting to become obsolete.</p><p>So in summation…</p><p>Glory to the Compiler gods. We’re all f***ed either way, so this makes little difference in the grand scheme of things. We’ll probably be okay though when the hype-cycle is done. If we’re not, at least we have our health.</p><p><strong>- FIN -1</strong></p><h3>Remarks</h3><ol><li>If you’re curious as to what the non-wireless/point-to-point transfer of information is, the next time you see a person you have beef with, punch them and ask after if they got any information from that interaction</li></ol><ul><li>1.1. I don’t condone violence….this is just a thought experiment</li><li>1.2. I don’t condone lying either…</li></ul><ol><li>At least I do…I’m still very much what they now call “an analog guy”</li><li>Second is Edsger Dijkstra. Just google “quotes by dijkstra” to see the absolute badassery this guy got up to.</li><li>Amongst many many more papers, this is the one I’m most familiar with so I’m just going to point you, dear unhealthily interested reader, to — Chomsky, N., The Logical Structure of Linguistic Theory</li><li>As someone who briefly studied this, believe me, this sh*t gets complicated. I’m actually doing its coolness a disservice by simplifying it like this. But alas, abstractions and precision right?</li><li>Remember English Class in primary school with all those definite and indefinite clauses bullshit? Yeah, it finally came in handy!</li><li>F**k, I’m old now. Oh what a cruel mistress is time.</li><li>All the programmers/math geeks reading this, for 20 marks, if $Understand(x) = Understanding(x)$ is a function that derives understanding from a topic $x$ prove $Understand(Understanding) = Understanding(Understand)$. I dare you.</li><li>Relax, I’m not a machine or an AI bot writing this….yet…</li><li>Things like Fuzzy Logic and such don’t count in my view. Heuristics are approximations and this, for me, doesn’t mean that the computer <em>understands</em> or <em>interprets</em> semantic meaning. Though an argument can be made that even with NLP, the computer doesn’t truly <em>understand</em> and I’d concede the point, but it says nothing of <em>interpretation</em> and compilation of <em>semantic</em> meaning, which is what I’m trying to opine about. Hit me up if you disagree…I’m always up for a nerdatious debate and, more importantly, to learn more.</li><li>Not the Primary school ones, cause they’ve definitely forgotten about me by now. See</li></ol><p><em>Originally published at </em><a href="https://urishiraval.github.io/2025/04/13/nlp-as-nlc/"><em>https://urishiraval.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ae2d1acd56a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[John O’Hara’s QCon Keynote — A Growth Checkpoint]]></title>
            <link>https://medium.com/@ushirraval/john-ohara-s-qcon-keynote-a-growth-checkpoint-6be51b956bb0?source=rss-8dd4e95185cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/6be51b956bb0</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[qcon]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ushir Raval]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 10:09:26 GMT</pubDate>
            <atom:updated>2025-06-29T10:09:26.208Z</atom:updated>
            <content:encoded><![CDATA[<h3>John O’Hara’s QCon Keynote — A Growth Checkpoint</h3><p>TL;DR: As a technologist, taking point on projects is dangerous not because you might not be up to the task, but because you have an impact beyond the technology. Anyone can learn to write code and build stuff, and yes, I also believe that over time anyone can learn to build stuff well. However, it requires a deep fundamental change in oneself to take on the mantel of leading humans.</p><h3>Context</h3><p>A few months ago, I had the pleasure of being selected to go to the <a href="https://qconlondon.com/">QCon Developer conference in London</a>. As these conferences go, QCon was done super well with a focus on senior engineers, common industry problems and a distinct segregation of your classical promotional talks and ones with real depth of content.</p><p>There were numerous talks with many lessons and epiphanies abound. However, the one that stood out to me, as someone currently aspiring to be more human than robot in my engineering career, was the keynote on day 2 by <a href="https://www.linkedin.com/in/johara/">John O’Hara</a>. Along with holding high positions in various well known companies like J.P. Morgan and Fidelity, the thing that probably earned his place on the docket was him being one of the principle inventors of AMQP, the famous and highly effective “Advanced Message Queuing Protocol” considered the gold standard of it’s kind.</p><h3>The talk</h3><p>His talk was titled <a href="https://qconlondon.com/keynote/apr2025/advanced-message-queuing-politics">“Advanced Message Queuing Politics”</a> (which, as a massive appreciator of witty word play, I considered the first indicator of this talk being outstanding). Besides the man oozing wisdom and experience from his very demeanour, his talk left such a lasting impression on me that I had to write this post.</p><p>His account of the journey from J.P. Morgan needing a messaging middleware for traders to there being a global consortium consisting of the “who’s who” of the tech industry was such a novel story, however one part of his talk stood out the most to me. In the early days of them opening the movement up to many other organisations and people with many other thoughts and opinions, he had a sit down with himself and defined the mindset that he had started to realise he needed being one of the principle leads on the project that he knew and believed in his bones, had so much potential.</p><p>That mindset was 4 main points:</p><ol><li>It’s likely that my ideas on this won’t survive the process</li><li>It’s still success if it commoditises without us</li><li>Contributors should always leave their mark</li><li>I love technology, but my role is to make it happen</li></ol><p>This resonated with me.</p><h3>My thoughts</h3><p>This put into perspective my junior days and interactions with otherwise amazing engineers being so shitty that at its worst, it made me want to quit. It made me understand that in some cases the times I had been shot down and made to feel inferior, weren’t because I didn’t have the skill (although some of those times, I probably didn’t tbf) but more because the person in that position was grappling with their own conflict against one or more of the 4 points above. The amount of times I had been unhappy and frustrated at being told things by a lead that essentially boiled down to them not having this mindset was staggering. More scarily though, it got me thinking about my own behaviour as someone with significantly more experience and reach now.</p><h3>The Checkpoint</h3><p>As a technologist, taking point on projects is dangerous not because you might not be up to the task, but because you have an impact beyond the technology. Anyone can learn to write code and build stuff, and yes, I also believe that over time anyone can learn to build stuff well. However, it takes a deep fundamental change in oneself to take on the mantel of leading humans. As a person who is deeply passionate in what I do, deeply interested in learning how to improve and deeply invested in becoming excellent, I have so so much to learn and grow in this area and I can’t fathom ever perfecting it.</p><p>Although — I now know where to start.</p><p><em>Originally published at </em><a href="https://urishiraval.github.io/2025/06/07/john-ohara-qcon-talk/"><em>https://urishiraval.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6be51b956bb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apple Liquid Glass — I get it but I don’t think it will work — yet]]></title>
            <link>https://medium.com/@ushirraval/apple-liquid-glass-i-get-it-but-i-dont-think-it-will-work-yet-fe89cc4f33c0?source=rss-8dd4e95185cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe89cc4f33c0</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[apple-liquid-glass]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[liquid-glass]]></category>
            <dc:creator><![CDATA[Ushir Raval]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 10:05:55 GMT</pubDate>
            <atom:updated>2025-06-29T10:05:55.466Z</atom:updated>
            <content:encoded><![CDATA[<h3>Apple Liquid Glass — I get it but I don’t think it will work — yet</h3><p>Yet. At least in the short term. This title is slightly click bait, but my thoughts are more scattered and boring here so I need to at least make it seam controversial to hold you through this article. Although, calling it out probably defeated the purpose.</p><p>Herewith my thoughts.</p><h4>What is Apple Liquid Glass?</h4><p>It’s a new design system/CI really. Apple calls it a new “material”. This is their language to describe a fundamental aspect of it, but in reality, it’s a new design system.</p><p>In their words it allows engineers to <a href="https://developer.apple.com/documentation/technologyoverviews/liquid-glass">“embrace design principles of Apple platforms to create beautiful interfaces that establish hierarchy, create harmony, and maintain consistency across devices and platforms”</a>.</p><p>Apple could have called it “plastic” but I suppose it doesn’t fit the pretension they’re going for. Apple be apple-ing I guess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*6CL4ExzKJHGVkbJC.png" /></figure><h4>No, but what is it really?</h4><p>Apple (and a lot of other companies) is seeing a revolution in how content is being interacted with.</p><p>In the good old days, we all had buttons. Physical ones. Buttons everywhere. Blackberry was the epitome of buttons on buttons sporting a 60% keyboard that — especially as someone with stubby fingers — were a nightmare to press until you get weirdly good at pressing the right tiny button on instinct (#UselessSkillAlert).</p><p>In the previous world where physical buttons were the only method of interaction, the content was always front and centre. In a word where bigger, better and more powerful screens have killed physical buttons, screen space has to be sacrificed to keep the device usable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*hSmfaiwGJmlbMLUQ.png" /></figure><p>Essentially, Apple Designers are trying to get rid of the need to sacrifice expensive screen real estate by using what we use to prevent the need to have the lights on in the day — adding a clear material to let in the view. This as opposed to increasing the overall size of the screen with which I believe they’ve come to a conclusion that making bigger screens is optimising in the wrong direction. Or over-optimising without much return.</p><h4>Sure, but will it work?</h4><p>I don’t think it will be well received in the short term. My empirical evidence is the release of AirPods and removing the headphone jack being super controversial and, in the case of AirPods, outright mocked and people would be ashamed/embarrassed to like it in some cases. This is obviously taking for granted that the execution of “Liquid Glass” is done well and that the ergonomics are not compromised like what happened with the Magic Mouse. I distinctly remember getting that “leek meme” from colleagues when I “rocked” my first AirPods and I daily drive a Magic Mouse and have a deep disdain for it (I can’t find a better left handed mouse and so the touch pad-like features make up for this shitty ergonomics imo — if you know of a good left-handed mouse please contact me, you will change my life forever).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*ILwVc2GWCMfUTpu4.png" /></figure><p>My experience using Apple products w.r.t. it’s design is that — at it’s best — the product is either such a pleasure to use that all flaws are forgiven or — at it’s worst — the utility of using it outweighs the terrible UX decisions. “Liquid Glass” from that perspective doesn’t feel far off from their philosophies.</p><h4>But I think it might work later</h4><p>Because we’ll supposedly have AI.</p><p>Yes, seriously.</p><p>I’m not just tenuously trying to link something to AI for the sake of it, trust me.</p><p>The age of (let’s call it) Natural Interaction with digital content requires content being front and center. I foresee “review” being a more common interaction then “operate”. Lets imagine a world where the kinks in AI are ironed out — what then will be the main thing on the screen? The content. What would be the controls? Natural Interaction mechanisms like voice, gestures and touch (but not in a way that recreates a physical button).</p><p>We’re already seeing this with Agentic AI and Prompting right? The artifact you’re working with gains “intelligence”[2] in a sense that it can tell you things about itself and can do things you command it to. Asking a “document” questions rather then manually highlighting or copying and pasting text into ChatGPT and asking it to summarize for example. Or telling your image to animate itself. The goal of Apple (and many other companies) is to seamlessly integrate AI into the process. As someone now helping to build AI into our business processes, I can personally agree with this strategy and feel that this is a superior way to do it from a “business value” perspective.</p><p>Sounds a bit sci-fi but that seems to be the direction of travel and we’re in a world where machines can more easily have autonomy to execute operations already, they’re just not that good at the big and long stuff in my opinion and experience. In this new world, the company that figures out how to get the content to “live” on the screen in a way that the controls are secondary and unobtrusive would definitely have an easier time with the way the industry is going.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*vEwKUaxoUFmzDYKr.png" /></figure><p>Maximizing value is tending towards “enriching the interaction with content while simultaneously removing the number of operations a human has to do to achieve the same result” — which was previously a hard tradeoff. Now, AI is making this possible seemingly without compromising either (with varying results imo).</p><p>As someone that loves the aesthetics of Apple and has bought into the design language and philosophy — I can only hope they don’t fuck it up.</p><p>- FIN -</p><h4>References and Asides</h4><p>[1] — Images generated by Gemini by giving it a paragraph and asking it to generate an image from that with “Use a manga style and make it dramatic. Avoid creating faces and avoid text generation.”</p><p>[2] — “Intelligence” is a strong word, but it’s the word Apple is using so I’m gonna go with it for now. I don’t believe this is the right word personally, but I’m not gonna get into it. I choose peace.</p><p><em>Originally published at </em><a href="https://urishiraval.github.io/2025/06/15/apple-liq-glass-thoughts/"><em>https://urishiraval.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe89cc4f33c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some Rules of Thumb for Complex Solutions and its’ Management — Ideal Cone of Software]]></title>
            <link>https://medium.com/@ushirraval/some-rules-of-thumb-for-complex-solutions-and-its-management-ideal-cone-of-software-254e328031b6?source=rss-8dd4e95185cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/254e328031b6</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[rules-of-thumb]]></category>
            <category><![CDATA[maintainability]]></category>
            <category><![CDATA[complexity]]></category>
            <dc:creator><![CDATA[Ushir Raval]]></dc:creator>
            <pubDate>Fri, 13 Sep 2024 18:04:55 GMT</pubDate>
            <atom:updated>2024-09-13T20:05:55.128Z</atom:updated>
            <content:encoded><![CDATA[<h3>Some Rules of Thumb for Complex Solutions and its’ Management — Ideal Cone of Software</h3><p>Over my relatively short tenure as a software engineer so far, I’ve had a few thoughts on how to deal with “efficiency” and “maintainability” across multiple facets within my teams’ estate. It’s lead to a useful⁴ rule-of-thumb¹ when trying to design/make decisions about systems in a way that balances efficiency and maintainability.</p><h3>To be, or not to be…“complex”</h3><p>The kick here, is that software is a team sport. You want things to be maintainable across the lifespan of the <em>team</em> not necessarily the individuals that happen to be within the team at the time of a decision.</p><p>Teams change over time. Knowledge gets lost with people. The solution never lies, but you might not be able to speak its language if you’ve lost the meaning of the words.</p><p>This is obviously a tall ask. If an answer to a design question seems apparent, I look at it with the utmost suspicion⁷. Maturing² as an engineer has given me a couple of questions that I feel I need to consistently ask when thinking/planning the implementation details of the stack. One of them is:</p><blockquote><em>What things do we want to be efficient and what are we comfortable compromising for the stack to be maintainable?</em></blockquote><p>Efficiency here speaks to how efficiently the system executes. Maintainability here speaks to the teams ability to keep it running.</p><p>I suspect that efficiency often times (if not always) comes at a cost of less-maintainable solutions by virtue of adding complexity to cater for non-functional things like performance and scalability or solving complex domain problems. Examples on the non-functional side include adding caching to increase speed, or at an even lower level, using something like memoization to reduce a computationally rigorous piece of logic.</p><p>If you agree with the above, the corollary is that designing specifically for maintainability could result in compromised efficiency. If you don’t agree, I’m always open to a socratic debate on it, but I’m going to work under the assumption of the former scenario.</p><p>I am of the opinion that a “maintainable” solution and an “efficient” one are contrasting. Finding the right balance between the two is one of my personal goals when I assist with designing/”solutioning” software.</p><h3>A Personal Glossary of Theoretical Relationships around Maintainability and Efficiency</h3><p>I have a few ‘theoretical relationships’ that I like to think about and use when in design conversations but before we get into it, I need to note a few definitions to make my life easier:</p><blockquote><em>Maintainability Factor (m) — a quantitative measure that denotes how maintainable something is.</em></blockquote><p>This can be subjective, or an effort could be made to create an objective measurement of this, but that’s going to be “de-scoped” in this read cause I don’t feel like doing that today⁶.</p><blockquote><em>‘Distant’ is used to mean that something is not immediately reachable from wherever you are at that time.</em></blockquote><p>An example of “distance” is if you have a <a href="https://learn.microsoft.com/en-us/azure/architecture/patterns/backends-for-frontends">BFF service</a> and a corresponding frontend application, these two units are distant from each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/0*rbfsPwSlLJGKyTd2.png" /></figure><h3>Theoretical Relationship A — Maintainability vs Complexity</h3><blockquote><em>The more complex a solution, the less maintainable it is over time.</em></blockquote><p>I feel like this might be obvious, but for the sake of brevity…the more complex a solution is, the more knowledge about its mechanism is required. This could be domain knowledge, knowledge about how a particular technology works or even something as simple as the “why”, i.e. situational knowledge gained by being there when the decision to do something a particular way was made.</p><h3>Theoretical Relationship B — Number of Units vs Change Frequency</h3><p>This is pretty straight-forward:</p><blockquote><em>The more related units of ‘distant’ software you have, the more complex it becomes to maintain it.</em></blockquote><p>If you have related software that necessitates frequent change, the multiplicity of effort to enact that change is inversely proportional to the maintainability factor.</p><p>Basically, having two BFF’s that you need to update is going to be more work then having a monolithic-esque MVC setup. We know that the front-office applications have a relatively higher frequency of change. This is a good example where you might want to compromise on the maintainability factor in favor of the non-functional, i.e. having BFF’s and following that pattern⁴.</p><h3>Theoretical Relationship C — Complexity vs Number of Units</h3><p>This is a bit more abstract. I’ve observed that in my lived-experience:</p><blockquote><em>The more complex each individual unit, the less units you tend to have in total.</em></blockquote><p>Not really sure how to reword this so instead I’m just going to make a haphazard attempt at an example.</p><p>If you design a complex function that caters for multiple scenarios, you have increased the complexity of an individual unit and decreased the need for multiple functions.</p><h3>Theoretical Relationship D — Efficiency vs Complexity</h3><p>This is arguably even more abstract:</p><blockquote><em>Efficient solutions tend to be more complex</em></blockquote><p>Note that this is drastically different from saying that complex solutions are always more efficient. <strong>Which I am not saying.</strong></p><p>I’ve just found that the more efficient you make something, the more complex the overall solution. A perfect example is caching from earlier in this read. I’m sure many, many, many engineers can relate, but caching has been both a nightmare to maintain and a blessing to the client experience (but maybe not always at the same moment in time).</p><p>As an aside, a much smarter individual⁹ than me said: “There are only two hard things in Computer Science: cache invalidation and naming things”, and yet we still use caching because it’s useful. This speaks to a journey I often see in my more junior peers where they oscillate in the beginning from wanting to create complex and elegant solutions, to hyper simplified solutions that are really maintainable, before finally finding peace in the balance. But I digress…</p><h3>Theory — Efficiency vs Maintainability (coming full circle)</h3><p>From Relationship A and Relationship D we get a theory:</p><blockquote><em>If we hold that efficiency is proportionate to complexity and maintainability is inversely proportionate to complexity, then efficiency is inversely proportional to maintainability.</em></blockquote><p>Remember that this works under the assumption that efficiency leads to complexity. Which I believe in, but you may not. Even so, however, the relationships above might prove useful for other things while this theory itself is not really that useful for much⁴.</p><h3>Enter Pseudo-Geometry — Rishi’s Ideal Cone of Software³</h3><p>A cone is this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/133/0*SVjKfv7URV_6wXG4" /></figure><p>Now that we’ve gotten that out of the way. I combine all these pseudo-formulas above into a delightful⁴ little ice-cream cone that helps you make otherwise hard decisions⁵.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/0*LHmQQ2zikvU_RPEs.png" /></figure><p>Following this mechanism, we get the following rules of thumb:</p><ul><li>More frequently changing software should probably be implemented in a less complex way</li><li>Having less complex units probably means that you will be having more of them, which means you’d probably have more segmented or “distant” units the closer you get to your front-office. (This feeds in nicely to a different rule of thumb I use (for better or for worse) that frontends should be as dumb as possible, but I digress)</li><li>You’d want more efficiency at your core, which likely means you have leeway to draft more complex solutions in your back-office to keep your operation (in the mid-office) running smoothly and efficiently</li></ul><h3>TL;DR</h3><p>Using the mechanism of the “Ideal cone of software” could help provide rules of thumb when making decisions on how much to invest in making things efficient while allowing the right things in your software stack to be maintainable for the next engineer/team after you/yours moves on to the next stack.</p><p><strong>- FIN -</strong></p><h3>Asides and References</h3><ol><li>a ‘rule-of-thumb’ is defined as “a <a href="https://dictionary.cambridge.org/dictionary/english/practical">practical</a> and <a href="https://dictionary.cambridge.org/dictionary/english/approximate">approximate</a> way of doing or <a href="https://dictionary.cambridge.org/dictionary/english/measure">measuring</a> something” by Cambridge Dictionary.</li><li>hopefully I am maturing, but is there really ever any way of knowing that are?</li><li>no, you’re thinking of <a href="https://parksandrecreation.fandom.com/wiki/The_Cones_of_Dunshire_(game)">“cones of dunshire”</a>…</li><li>in my opinion…</li><li>because everything is better with dessert…</li><li>look at me channeling my inner project manager…lol</li><li>I wonder if this is wisdom or trauma.</li><li>This is “pseudo” because I don’t claim to be a mathematician and I don’t want people that do to come after me. They happen to be pretty smart so they’d probably find a way (see my blog for why I have this aside)</li><li>Phil Karlton</li></ol><p><em>Originally published at </em><a href="https://urishiraval.github.io/2024/09/13/the-cone-of-software/"><em>https://urishiraval.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=254e328031b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inversion of Control, by any other name…]]></title>
            <link>https://medium.com/@ushirraval/inversion-of-control-by-any-other-name-585dee4943d3?source=rss-8dd4e95185cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/585dee4943d3</guid>
            <category><![CDATA[software-design]]></category>
            <category><![CDATA[solid-principles]]></category>
            <category><![CDATA[inversion-of-control]]></category>
            <category><![CDATA[opinion-piece]]></category>
            <dc:creator><![CDATA[Ushir Raval]]></dc:creator>
            <pubDate>Mon, 19 Aug 2024 23:53:57 GMT</pubDate>
            <atom:updated>2024-08-19T23:53:57.781Z</atom:updated>
            <content:encoded><![CDATA[<p>We often hear (at every bloody interview) about the SOLID Principles. It’s regarded by some as the major driving force of good software. But why do so many engineers get (at the very least) 1/5 of the principles wrong at a fairly consistent rate?</p><h3>What’s the D with SOLID</h3><p>SOLID stands for:</p><ul><li>Single Responsibility</li><li>Open/Closed Principle</li><li>Lisckov Substitution Principle</li><li>Interface Segregation</li><li>Dependency Inversion</li></ul><p>If I had a coin for every instance an engineer has told me that the last “D” in SOLID stands for Dependency Injection, I’d have 20 coins (I’m young, sue me).</p><h3>By any other name…</h3><p>Enter the other name for Dependency Inversion…Inversion Of Control.</p><p>I lie here a bit. Rather than a synonymic term, Inversion of Control is to Dependency Inversion, what the ocean is to a sea. A bit of history, <a href="https://martinfowler.com/articles/injection.html">Martin Fowler popularized the term in his blog</a> around 2004, along with outlining the <strong>Dependency Injection PATTERN</strong>. He ‘concretised’ the IoC principle by making it tangible to a real use case — the management of dependencies.</p><p>Re-enter <em>Dependency Inversion</em>. This became a semi-concrete term for inverting control of dependencies. Since Dependency Management is where the IoC principle is (arguably) the most useful and tangible, the name has become popularized into a synonym for IoC (I suspect to complete the acronym ‘SOLID’, which I actually appreciate tbh. The word ‘SOLII’ sounds a bit flimsy imo).</p><h3>Yet another explanation of IoC</h3><p>The net is ripe with much much much better explanations and definitions of IoC. Here is yet another one:</p><blockquote><em>Inversion of Control outlines where ownership of execution should live within the design of a system. It advises that implementation details be isolated to the implementor and hidden from the driver, with the implementor accepting a command to do something from a driver, rather than exact instructions detailing how to do it.</em></blockquote><p>Basically, to quote Jedi Master Fowler, its the “hollywood principle”. “Don’t call us, we’ll call you”.</p><p>Where the term “Dependency Inversion” shines at a software implementation level, the term “Inversion of Control” shines at the “integration between software” level. I’ve personally found the most use (not that other implementations are not useful) in integrations between multiple systems, particularly where these systems are owned by different teams. The principle can help direct questions where there might be 2 good answers.</p><p><em>Originally published at </em><a href="https://urishiraval.github.io/2024/08/18/inversion-of-control/"><em>https://urishiraval.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=585dee4943d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>