<?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 Breeana Bellflower on Medium]]></title>
        <description><![CDATA[Stories by Breeana Bellflower on Medium]]></description>
        <link>https://medium.com/@breeanabellflower?source=rss-fbbeed60eb8d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ADGTDYc5PeiSAqr6yveAew.jpeg</url>
            <title>Stories by Breeana Bellflower on Medium</title>
            <link>https://medium.com/@breeanabellflower?source=rss-fbbeed60eb8d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:44:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@breeanabellflower/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[How I Recreated Jev’s System-1 Thinking]]></title>
            <link>https://medium.com/@breeanabellflower/how-i-recreated-jevs-system-1-thinking-fb994590a85b?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb994590a85b</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 17:06:53 GMT</pubDate>
            <atom:updated>2026-09-22T23:30:02.567Z</atom:updated>
            <content:encoded><![CDATA[<h3>Intuition for LLMs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XRnRJ9vrmbGGRGb3Y2YfMg@2x.jpeg" /></figure><p>The first time I saw Jev, I knew it was a huge deal. I could imagine using it throughout my agent systems, and I wanted to build something like it.</p><p>What caught my attention was the idea of giving agents something like intuition. In the same way you just implicitly know what to look for when solving a problem, an agent should be able to find what it needs without having to think through it deeply. I am excited by the ability to instantly and intelligently recognize what’s relevant and use that judgment to decide where to spend more time.</p><p>I started imagining a layer between agents and their tools, including interactions through ACP and MCP. It could help an agent to filter search results, look for bugs, and so much more. I intend to use the work that follows to continue researching how intuition can be used in practice, especially how it can guide an agent through a task.</p><p>So I built my own proof of concept.</p><p>All I had to work from were public API docs, articles, and YouTube demos, but I had a strong feeling I knew what I was looking at. Jev seemed to be taking advantage of attention in a way that I could recreate with an open language model, so I made the bet.</p><p>It paid off. I reproduced the core System 1 behavior described for Jev, and I’ll be posting the LoRA weights for people to try.</p><p>I’m in Hawaii right now. I started this on the flight here by messaging an agent and asking it to begin building the idea on my machine at home. It is too exciting a topic to wait til I’m back to start talking about it. So, I’ll share the method, and how others could take it further.</p><blockquote>System-1 thinking is, in essence, the instant gut feeling response of an intelligent mind. System-2, by contrast, is the slower, deliberate process of reasoning that requires conscious attention and effort.</blockquote><h3>Designing System-1 Thinking</h3><p>I immediately suspected a transformer architecture when I saw Jev. Its text understanding looked familiar. I wondered what changing an existing language model’s training and answer readout could achieve.</p><p>LLMs are trained to predict the next token in a sequence. The model reads current context, assigns probabilities to possible next tokens, and samples a token from that distribution. Sampling in that way in a well-trained LLM can lead to good, valid sequences, like sentences or code functions.</p><p>A single pass generates a single token; so to get paragraphs you need to feed its own output back into itself as input over and over again until it writes a stop token. But that process, especially while using chain of thought for reasoning, is much closer to System-2 thinking. System-1 thinking is only particularly useful if you can get strong answers near-instantly.</p><p>After reviewing research on topics related to LLM training and alternative methods, I became more confident in the approach. I used what I found to build a repeatable pipeline that trains an LLM to act as a classifier through its existing token output space. Instead of generating a written response, I read the relative probabilities of tokens representing the allowed answers to the question. Training teaches the model to assign probability to the appropriate answers for each state and question. Horizon 3.7B was my first working model, and I built a dataset to train it on Jev-like questions.</p><p>To start, I evaluated the OpenAPI spec that Jev hosts. You supply free-form text as incoming context (they call it State), and a well-defined set of questions about it. Each question asks for a yes-or-no judgment, a choice among options you provide, or a score against criteria you define. You get back probabilities and decisions that your code can use directly.</p><p>I found that I could take advantage of next-token prediction with the right training. The model can easily learn that some labels you inject into the input question are output labels to choose from. If a question says “0: Inspect the document”, the model learns to use 0 for that option in that specific question.</p><p><strong>An example is shown below in response to a yes-or-no question.</strong></p><p>Suppose the probabilities for the next token looked like this:</p><blockquote>“yes”: 12%</blockquote><blockquote>“no”: 3%</blockquote><blockquote>Everything else: 85%</blockquote><p>Since the question we’re asking expects “yes” or “no”, you can ignore everything else. So, if you then normalize that pair to add up to 100%, you get 80% for “yes” and 20% for “no.”</p><p><strong>What if you want to choose between many options?</strong></p><p>The same approach works for multiple choice. As I supply the choices to the model, I map each choice to a specific token, i.e. 0, 1, 2, and so on. The question explains what that label means: “0 for Inspect the Document, 1 for Continue Searching, 2 for Ask for Clarification…”. Before rescaling over the allowed labels, we might get:</p><blockquote>0: “Inspect the Document”: 45%</blockquote><blockquote>1: “Continue Searching”: 30%</blockquote><blockquote>2: “Ask for clarification”: 10%</blockquote><blockquote>Everything else: 15%</blockquote><p>The distribution is then filtered to the valid options and then normalized. From that group, you find what label the model assigns highest probabilities to, assign confidence, and more.</p><p>Scoring uses the same approach, but the options represent ordered levels, such as “low,” “medium,” and “high.” I mapped those levels to numeric positions and calculated a probability-weighted score.</p><p>For both choices and scores, confidence is defined based on the label group’s normalized probabilities. An equal split gives 0% confidence; all probability on one answer gives 100%. Simply rescale the leading probability between those endpoints.</p><p>Confidence describes how strongly the model favors one answer, not how often it will be correct. Our yes-or-no output simply returns the yes probability, without a separate confidence field.</p><blockquote>The training against this model takes place with LoRA. This is a technique that leaves the model’s original parameters alone but learns small adjustments to those layers to make it behave differently.</blockquote><p>Think of those adjustments as offsets we can apply to the model to steer it toward this new behavior. Using LoRA here means you can still use the original model for next token prediction, but at any time you can add the the LoRA offsets to the weights to get System-1 values for that model.</p><p>Finally, one last cool thing I was able to demonstrate was the ability to ask multiple questions about the same state without the answering of those questions influencing each other the way they would if you were to ask an LLM several questions in a row.</p><h3>Performance</h3><p>Processing the input tokens initially, aka prefill, still takes the same amount of time. But once that completes, you can answer any number of questions and get answers lightning-fast. Label projection and softmax give us the answers all at once.</p><p>What encouraged me was getting short-request timings in the same broad range as the Jev demos I’d found online. I have a 16 GB RTX 3080 Laptop GPU; not the fastest thing out there by a long shot. But it still managed to intake a context of nearly 3900 tokens in one second, then answer 64 System-1 questions about that context in another second.</p><p>That is to say, I was able to answer questions at just under 16 ms per question after prefill!</p><p>Speed is one thing, but how good is it at its job? Held-out accuracy on one of my classification tasks topped 90% for this proof of concept, while most topped 80%. I still believe there is substantial room for improvement in my training dataset, too.</p><blockquote>The practical uses for System-1 thinking are nearly unlimited, but having it attached to a useful System-2-capable LLM unlocks something even cooler. If designed correctly, you can have a standard agent workload with your LLM and switch on System-1 thinking to get structured answers about the active context very quickly; I can see a path to making it near-instant.</blockquote><h3>Taking it further</h3><h4>Training</h4><p>My model is a proof of concept. I built System-1 to prove something to myself, but someone with more time to develop a higher-quality dataset and a larger GPU budget could use the pipeline to train their own version on a much larger open-weight LLM. I’ll be taking this idea as far as I can with my resources, too, don’t worry. I am GPU constrained, so that will very likely continue to be small models. I have a feeling that can go pretty far, though.</p><p>Data quality is somewhere I plan to put serious effort in future iterations. I’ll likely find a group of open source datasets with high quality labels to bootstrap before generating datasets of my own. I will also be investigating reinforcement learning methods to take this further.</p><h4>Implementation</h4><p>I can see so many use cases for System-1 thinking that I will be pursuing in upcoming work.</p><ul><li>Searching a collection of documents and filtering them down according to relevance.</li><li>Code standards enforcement yes/no questions detecting slop, incoherency, or other vagueness that we all encounter with AI coding.</li><li>Memory retrieval and quick memory upsert coercion.</li><li>MCP and other tool use context reduction.</li><li>More accurate tool and rule discovery.</li><li>ACP (harness) integration related to the above.</li></ul><p>When I post the LoRA weights, I hope other people will try their own ideas too. I’m excited to continue this research and see what others build with better data and larger models.</p><h3>Some Disclaimers</h3><p>All the work above was completed with publicly available data, documentation, and research. All training was performed with open source datasets, and when I post the LoRA weights I will share attribution.</p><p>I do not claim to have figured out what Jev is doing under the hood, but what I built is an exceptionally similar proof of concept that reproduces the core behaviors Jev demonstrates: a shared state, independent questions, and structured answers without generating explanatory text. You don’t have to know how Jev works internally to build a useful version of the behavior it demonstrates.</p><p>The model I trained with, K2, is smart for a small and open source model, but not just going on the benchmarks they provide I think it’s safe to say that K2 is not as smart as Jev. To get something at that level, I think you’d a model whose innate intelligence is much higher (and is therefore likely much larger).</p><p>I believe it is easily possible to rearrange the architecture to use transformers more efficiently, to reduce the overall size of the model and avoid wasted space. But the benefit of having system-1 thinking derived from the same model as your system-2 thinking seems super helpful.</p><p>Hey, I’m Bree. I spend much of my time as a principal engineer at work designing and pushing the frontier of practical AI use in software development. At home, when I’m not chilling with my wife and baby, I’m doing research on AI and machine learning. If you made it here, thanks for reading! The stuff I write about brings me a great deal of joy, and I’m glad I could share it with you. Stay tuned for my next works; I have a lot in store for System-1 thinking and more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb994590a85b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Built the Tool That Finally Killed Our Financial Spreadsheets]]></title>
            <link>https://medium.com/@breeanabellflower/why-i-built-the-tool-that-finally-killed-our-financial-spreadsheets-09bcaea84c92?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/09bcaea84c92</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[personal-finance]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Sun, 01 Mar 2026 21:58:54 GMT</pubDate>
            <atom:updated>2026-03-01T22:16:29.502Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T_BzfClStYgduSkjNM5bqw.png" /><figcaption>Directly compare your plan versus what you’re currently doing and versus the minimum-only approach</figcaption></figure><p>For years, my wife and I have had this ritual. Every few months we would get together and spend hours collecting out financial data, peering over the the numbers, and stitching together results from half a dozen different excel sheet calculators. All this just trying to visualize whether we were broadly on track for our financial goals. We’ve always loved dialing in the scenarios, but it felt like a second job in data entry. Needless to say, none of this was easy to do unless we were sat in front an our laptop.</p><p><strong>Still, something had to give. I realized that if I wanted a tool that worked for us, I was going to have to build it myself.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zOB-zWys-bvR_DF3m9sIqA.png" /><figcaption>Plan Management made simple</figcaption></figure><p>When our kid was born a couple of years ago, everything shifted. Time has a way of vanishing. These days, when we finally get our little moments of peace, the last thing we want to do is open a computer and think about finances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0aZO3lHbyLA-p5MntXG8Ig.png" /><figcaption>Simulating what a new plan looks like compared with your current plan</figcaption></figure><p>In this app you can put together all your financial data once and maintain it in bulk over time. Easily compare your current plan with something new, against minimums, and so much more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1qDKmE7m2neQgLpBerOwsQ.png" /><figcaption>See where your money is going</figcaption></figure><p>And in addition to all that, you can see (and download) the calendar showing you how much you’ll pay on what day. This level of visibility makes it so much easier to plan big purchases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50BSCPxMzIRTM0sFMWwaFA.png" /><figcaption>An interactive, downloadable calendar</figcaption></figure><p>You can sign up at <a href="https://www.path-to-payoff.com/">https://www.path-to-payoff.com/</a> and start adding your accounts today. It has already helped me and my wife figure out our best path, and I hope it will help you too. It’s free now, and always.</p><p>— — —</p><p>Hello, I’m Breeana Bellflower. Most folks call me Bree. By day, I lead engineering teams; by night, I’m navigating the same financial milestones as you. I created Path to Payoff to replace my own stack of fragile Excel sheets with something robust, visual, and fast. I’m a firm believer that better data leads to better decisions, and I’m excited to share the tool that finally made our family’s financial goals feel inevitable rather than impossible. Thanks for reading. It helps me gain traction if you engage with any of those little buttons!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=09bcaea84c92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It’s incremental until it isn’t]]></title>
            <link>https://medium.com/@breeanabellflower/its-incremental-until-it-isn-t-463baff7ac57?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/463baff7ac57</guid>
            <category><![CDATA[future-of-work]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[research]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Wed, 20 Aug 2025 12:53:22 GMT</pubDate>
            <atom:updated>2025-08-20T12:53:22.056Z</atom:updated>
            <content:encoded><![CDATA[<h4>A commentary on the state of artificial intelligence</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*exqAj2TqWq2dYbt4tFOnUQ.png" /></figure><p>AI is hitting a wall — right? Or was it putting every single job at risk this year? There’s a lot of noise right now and I’m writing this in part to sort through that noise for myself, but also to share what I believe to be true as an engineer with plenty of hands-on experience with the technology that’s available today.</p><h3>Two Sides</h3><p>It’s easy to point to the AI hype in tech (or in business, generally) and call out the garbage. And, let’s be clear, there is a whole lot of it. The biggest names in tech are slapping “AI” on products not even remotely related to it; people with no experience writing code are posting about getting their minds blown by the latest iteration on the Snake game; AI companies are consistently claiming to have the world’s greatest model every other month because they landed the highest score in one benchmark or another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QH4_4-tPVTDiJ6BnPR4vHA.png" /><figcaption><em>A new, vibe coder shares his latest version of snake</em></figcaption></figure><p>AI skeptics are rightfully pointing to these issues and saying that AI isn’t a magic bullet—in fact it’s downright unreliable at times. I’ve seen an effort to write these folks off as simply coping with the reality of what’s to come. I won’t say that there isn’t an element of that in some skeptical arguments, but we should call AI hype out for what it is.</p><p>Meanwhile, on the other side of the argument people are excited. Some are defending AI labs, others are singing praises, and others still are talking about a very different future. The glass is half full and nobody can convince them otherwise. The issues with current systems (hallucinations, missing the point, etc.) are evidence that the technology is still young, not that it is fundamentally flawed.</p><p>There is a sense that things are moving quickly, and accelerating all the time, and it’s exhilarating to ride that wave and to catch glimpses of what many believe to be the future. I personally relate on that level — it is exciting.</p><p>The schism between these two groups really seems to be where they base their views. Broadly there are skeptics projecting outward and saying AI will never be good enough to do all the things it’s promised to do based on where we are <em>right now</em>, and AI optimists talking about how important the technology is based on <em>where we will be</em> in the near future.</p><h3>Current State of AI</h3><p>I’ll go over all the use cases that I see and use day to day as an engineer in a software company, since this is what I know. I’d love to hear your CANs and CAN’Ts too.</p><h4>CAN:</h4><ul><li>Perform the development of around 80% of code for MVPs, boilerplate, well-documented software integrations, and simple functions. The easier the work is, or the better the documentation, the closer to 100%.</li><li>Create the foundation for most unit tests (given that the purposes of your functions are well documented).</li><li>Consume transcripts of conversations between product and engineering and write detailed, I’d say 90% accurate requirements documents (You should still have somebody review the documents to catch that 10%).</li><li>Review large bundles of code and documents to find the needle in the haystack that you’re looking for (bugs, specific features, etc).</li><li>Automate away everything done repeatedly in CLI.</li><li>Help you sift through the almost all of the noise in your email inbox.</li><li>Summarize long conversations and other long documents you don’t need to know everything about.</li><li>Write the skeleton of most of your documentation (let’s say 80%).</li><li>Teach you almost anything in combination with good documentation (you should reference source materials to make sure you aren’t learning something false).</li><li>Perform some decent math, make beautiful graphs, and otherwise help explore data using tools.</li></ul><p>In general, you can rely on AI to get you most of the way through the most tedious parts of information work. You can’t let it do the work for you, but you can use it to speed yourself up. I regularly have multiple threads of work running parallel which I hand off to AI once I get to something I know it can do.</p><h4>CAN’T:</h4><ul><li>Completely automate development.</li><li>Completely automate requirements preparation.</li><li>Completely automate documentation.</li><li>Perform full QA testing.</li><li>Do anything visual.</li><li>Be relied on without additional effort.</li><li>Reason at a high level about real-world, large-scale codebases in a meaningful way.</li><li>Develop full high-complexity features end-to-end.</li></ul><p>And finally, worth highlighting on its own:</p><h4>The Wall</h4><blockquote>Today’s AI cannot do anything meaningful that isn’t well represented in its training distribution. If it has not learned how to do something in the past, it will not be able to help you.</blockquote><p>This last point is “the wall”. New programming languages and libraries without adequate documentation are the bane of AI tools. So, too, are areas which are rarely discussed online; hardware description languages, GPU-enabled machine learning, and so on.</p><p>For some time, AI will continue to get better and better at what it knows; it’ll become more reliable, more helpful, hallucinate less, write higher quality text and code. It will also continue to disappoint everyone overly focused on the hype because it can’t learn on the fly (not really). It can’t handle symbolic logic at the level that we can. If history is any guide, walls don’t last forever.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*DnvzFOpmNEJpY6s_5cOAeg@2x.jpeg" /><figcaption>The Search for the Breakthrough</figcaption></figure><h3>The Coming Breakthrough(s)</h3><p>I’ve said for some time now that if all LLM model development stopped today we’d still see advancements for years to come. Architects and engineers will learn new ways to orchestrate AI systems as agents, and to feed more and more useful context and memory to them.</p><p>But, as you may have gathered from the hundreds of billions of dollars and unparalleled attention being poured into it, LLM development isn’t stopping. The folks at these massive AI labs know about “the wall” that I mentioned before. They know how limited their systems are, and you can tell as much because they aren’t developing their own technology by sitting back and letting AI do it for them. They’re spending a ton on human intelligence in order to break through that barrier.</p><p>An example of one of the approaches I’ve seen making waves recently is in <a href="https://arxiv.org/abs/2506.21734">hierarchical reasoning models</a> which aim to give AI the complex reasoning skills it currently struggles with. People are going to make a pretty big deal of them in the coming months. Who knows, maybe that’s the breakthrough, but maybe it isn’t. No matter what the breakthrough is in the end, I believe these labs are going to find it, because smart and driven people are being given the time and resources to do so.</p><p>After all, so far we have seen the fruits of basically a single architecture made larger and given more training. There is so much room to explore. Can anybody be confident that no amount of experimentation will make it possible for these systems to learn new skills? Is it impossible that they will become smart enough to improve on themselves?</p><p>I’m not an investor, I’m not a member of an AI lab or some make-it-big open source AI software group. I have no real incentive to be dishonest or feed into the hype. What I have done is I have spent well over a thousand hours using and developing against both closed- and open-source AI systems in the last few years. I’ve seen all the highlights and lowlights you might imagine. They’re deeply integrated in my life, and they will be for the foreseeable future.</p><p>I can’t emphasize enough that the world as we know it is going to change dramatically in the coming decade. I’m confident about that. It’s going to be exciting once they break through that wall, but it’s also going to be very difficult to get from where we are to the post-labor Star Trek-style world of the future. I sympathize with those who are worried about the future, because I am too.</p><p>With that said, I am an AI Optimist and Accelerationist, because I expect this technology (or something very similar to it) to be disruptive in the best way possible. There are opportunities to finally start to address the cruel disparities of modern civilization, and to act in the interest of all humankind. That’s where my head is at.</p><p>Thanks for reading.</p><p><em>Disclaimer: Images were generated by AI, text was not.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=463baff7ac57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leadership in a Fast-Paced Workplace]]></title>
            <link>https://medium.com/@breeanabellflower/leadership-in-a-fast-paced-workplace-804b37b8eb28?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/804b37b8eb28</guid>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[leadership-development]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Wed, 29 May 2024 13:02:34 GMT</pubDate>
            <atom:updated>2024-05-29T13:02:34.982Z</atom:updated>
            <content:encoded><![CDATA[<h4>Reframing Problems and Maximizing Impact in a Dynamic World</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MH_OuoT4P_dDyTeM776ivg.png" /></figure><p>This month’s story is dedicated to leadership. While I often write stories about AI and technology in the context of professional software engineering, I also frequently think about and study how to lead an outstanding team. It’s a topic that holds great significance for me in my role as the Director of Engineering at OneRail.</p><p>In this story, I’ll cover two broad topics that have captured my interest, challenged me, and helped me grow.</p><ul><li>Solving Organization-wide &amp; Team-wide Problems: An exploration of process and change management</li><li>Trust Your Team: What it takes to stop trying to be the hero and let your team shine</li></ul><p>I’d love to hear your experience as well. Connect with me on <a href="https://www.linkedin.com/in/breeana-bellflower/">LinkedIn</a> or leave comments below.</p><h3>Solving Organization-wide &amp; Team-wide Problems</h3><h4>Reframing Problems: Define, Refine, Resolve</h4><p>Organizational and team-wide problems often appear as a big, confusing, frustration-inducing mess with misleading appearances. Untangling it all is hard work, and you’ll almost certainly never discover the root causes without reframing the problem.</p><p>Let me give a hypothetical scenario:</p><blockquote>Initial Problem: “This team is not productive”</blockquote><p>On its own, this problem isn’t actionable. Sure, you could take an extreme approach and go about replacing your whole team, or you could invest in training programs, or work on improving engagement. But, in doing so, you attempt to treat symptoms of the problem rather than the underlying causes.</p><p>Instead, you can start collecting data and talking with your team to measure and understand your team’s performance. Suppose in this scenario, to your surprise, you find that they appear to be pretty highly motivated, and the team members work quickly once they get going. When you dig in a bit more, you find instead that there are issues around poor communication and inefficient processes that regularly block team members.</p><blockquote><strong>Define the problem</strong>: “This team is struggling with poor communication and inefficient processes”</blockquote><p>Analyzing this newly defined set of problems, the outline is certainly clearer — but it still isn’t very actionable. So you work with your team to get even more clarity. Communication, they reveal, breaks down at times because it’s unclear who owns what. And you find that processes were originally designed on the fly to accommodate the immediate needs of your organization but were never streamlined after that.</p><blockquote>Refine the problem: “This team is struggling to determine who owns what, and are held back by legacy processes that were not intentionally designed.”</blockquote><p>Given this refined problem, you believe that you can implement solutions to help improve your team’s overall productivity. Can you go deeper? Probably. If you feel that the root cause goes deeper, you can just keep on refining until you hit a core set of issues that can be directly solved. However, there is something to be said about giving your team the opportunity to dig in themselves.</p><p>Where you can excel as a leader is in framing and presenting these issues to your team, and asking them to resolve the problem in a way that makes their lives easier.</p><blockquote>Resolve the problem: Your team takes up the task to resolve the core issues. They clarify roles and responsibilities, and redefine processes to meet your business’s current needs. In doing so, they take meaningful action to resolve the initial problem.</blockquote><p>Remember to prioritize from the very start — find the top N problems that are giving you and your team the most pain and put all of your effort into solving them.</p><h4>Action over Inaction</h4><p>Solutions to your team’s or organization’s problems are unlikely to be perfect. In my experience, you can either let yourself fall into analysis paralysis hoping to find the ideal solution, or you can take decisive action with the intent to learn from failures and make improvements along the way. This doesn’t mean making rash decisions; it means balancing analysis and action. You can follow the 1–3–1 method when considering solutions:</p><ul><li><strong>Define one goal</strong>: <em>Pick one problem to solve.</em></li><li><strong>Develop 3 strategies</strong>: <em>Each is an approach to meet your goal. You define 3 to get you thinking beyond the first, naive approach.</em></li><li><strong>Select one strategy</strong>: <em>Pick one and implement it.</em></li></ul><blockquote>“Would you like me to give you a formula for success? It’s quite simple, really: Double your rate of failure. You are thinking of failure as the enemy of success. But it isn’t at all. You can be discouraged by failure or you can learn from it, so go ahead and make mistakes. Make all you can. Because remember that’s where you will find success.”</blockquote><blockquote>- Thomas J. Watson, IBM</blockquote><h4>Process Change Management</h4><p>The occasional small change is easy enough to manage — but how do you manage tens of small changes that all relate to each other? How do you prioritize, communicate, and implement a large-scale solution to a large-scale problem? I have faced this exact scenario many times and, in my experience, it’s always a challenge.</p><p>As a rule, one must never move forward with major changes before consulting (and agreeing on an approach) with the core team who will experience the changes in practice. Collaboration is key for two reasons:</p><p>1. Everyone on your team possesses valuable insights that might impact process change outcomes.</p><p>2. As a leader, nothing you try to change will stick unless your team really believes in what they’re doing. Process changes are tested often, so you want the team to understand the intent and purpose behind our process changes. Success starts with belief.</p><p>Once you have an approach that makes sense for your team, you need to keep in mind that there is a limit to how much change people can digest at any one time. Furthermore, changes that are unaccommodating to transitional pain can be disruptive to your team’s output.</p><p>One cannot fundamentally change the way everything is done at once, even if everything fundamentally needs to change. So, prioritize process changes based on their expected impact and change only as much as can be digested at any given time.</p><p>Managing process changes requires a balance of strategic prioritization, clear communication, and collaborative decision-making. By framing the problems facing your team or organization and then giving ownership over the planning and execution stages to your team, you can harness valuable insights and build a sense of ownership and belief in the changes.</p><h3>Trust Your Team</h3><h4>Don’t let your ego dictate your time; be multi-threaded</h4><p>At the start of my leadership career, I tried to solve as many problems as I could by myself, thinking it would benefit the organization. I tried to be the hero. This approach, however, is a surefire way to burn out. Trying to do everything alone exhausts you, making it impossible to perform effectively where you’re truly needed — where your talents are best utilized. Ultimately, you’re harming both yourself and your career. Not only that, but you are also taking away opportunities to grow and learn from your team members.</p><p>When I viewed myself as the organization’s hero, my performance became a bottleneck as I could only tackle one task at a time — like a single-threaded processor. By learning to collaborate with my team to address problems systematically, we became collectively multi-threaded and capable of tackling multiple tasks simultaneously.</p><p>So why did I tend toward heroism? I have heard a few different reasons for this, but for my part it feels good to fix things. It feels satisfying to be thanked. But to be a good leader, one needs to learn to put aside ego and start to trust that the team is capable and that they want to solve the same problems you do. That’s exactly how I’ve evolved over the last couple of years.</p><h4>Delegate Authority, Not Just Tasks</h4><p>As a leader, you will encounter many, many problems in need of a solution. As we’ve discussed, you alone are not going to be able to solve everything at once. So what should you focus on?</p><p>You should prioritize empowering your team to solve problems independently and collaboratively. Delegation, something often mentioned in leadership literature, isn’t just about offloading work; it’s about trusting your team with the authority to make decisions. When your team members have the power to make meaningful contributions, they feel more engaged and motivated. That helps everyone.</p><p>As long as your team knows what is expected of them, they can chart a course to success. Measurable goals are also the tools you need to start recognizing and celebrating successes or maintaining accountability.</p><h4>Be Available, Be Approachable, Be an Example</h4><p>Demonstrate the behaviors and attitudes you want to see in your team. Put simply, nobody wants to be told what to do by somebody who isn’t willing to put in the same level of effort or more.</p><p>Above all, your team should know that you are available for support when needed. By listening to their concerns and taking action to support them, you can build a relationship based on mutual trust and appreciation. I personally believe that trust is the most important attribute for a leader to have because so much of your skillset depends on your team’s willingness to take action.”</p><h3>Conclusion</h3><p>Needless to say, this story is based on my experience and my perspective. I have a lifetime of learning ahead of me. My aim as a leader has always been to set out and communicate a vision of where I want our team to be, and strategically move toward that vision one day at a time.</p><p>Which leaders inspire you, and what books have you learned a lot from? I look forward to hearing from you.</p><p><em>Disclaimer: AI was used to generate the banner image for this story</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=804b37b8eb28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I began writing custom AI Agents to write software for me]]></title>
            <link>https://medium.com/@breeanabellflower/a-journey-begins-writing-custom-ai-agents-0a9e500310a5?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a9e500310a5</guid>
            <category><![CDATA[agent-based-modeling]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Thu, 25 Apr 2024 15:07:01 GMT</pubDate>
            <atom:updated>2024-04-25T15:07:01.948Z</atom:updated>
            <content:encoded><![CDATA[<h3>A journey begins: writing custom AI Agents</h3><h4>The tech world is alight with ambitions to solve this problem — and I’m not one to pass on that kind of competition.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZ_b1FrFwZ35DRT4_rPlyQ.png" /><figcaption>Building AI Agents</figcaption></figure><p>Throughout March and April I challenged myself to dive in to the world of Agentic AI. Ultimately I decided to build, from scratch, all the components I’d need to successfully create a system along the lines of Devin. Why? That’s because I tried out several open-source projects that claimed to operate at that level with very little luck. As a lifelong code junkie with a dream I figured that if anyone could do it, I could — (being self-assured isn’t a bad thing)! So, here is the tale of my foray into the world of Agents.</p><p>During development, I will use GPT 3.5 as my primary Large Language Model (LLM) to cut on costs. After optimizing against 3.5 I expect GPT 4 and Claude 3 Opus will perform even better.</p><p>This is part 1 of my journey to create AI Agents, more to come in the future.</p><h3>Why create an agentic platform for software development?</h3><p>There are a few reasons I’m interested in this work personally. Some of it comes down to curiosity and competitiveness— this is a challenge that the modern world is trying to solve, and nobody has claimed victory just yet. But beyond that, there are just a ton of software development problems that I want to solve that I haven’t had time to jump into on my own. These problems really range from trying to solve problems facing the world to trying to get a system in place to help me mod games quickly.</p><h3>OpenDevin and ChatDev — The New and the Old</h3><p>As much as I hoped I would, I was unable to gain access to Devin itself in preview. That said, the open-source community was quick to get to work on myriad alternatives. While the ones I have researched and the ones I have tried out didn’t hit the mark for me, they did help inform the ways in which agentic systems are handling engineering problems.</p><h4>OpenDevin</h4><p>This project is containerized, well-structured, and well-documented for as quickly as the community spun it up. I personally had a lot of trouble setting it up for use though, since the Linux version of docker desktop did not have the settings required to allow websocket to pass through docker. The initial error messages were unclear, along the lines of “Failed to start controller” — so I had to spin up a local copy and run each piece individually with the debugger.</p><p>It took several hours, but eventually I got it working. Unfortunately, the test prompt I had set up for it involved spinning up a Node.js project — something that OpenDevin did not have the tooling for at the time. It seems pretty tied to Python. I do look forward to trying some more projects with OpenDevin, and to its credit you could see OpenDevin making solid attempts at installing dependencies on its own; it just lacked privileges.</p><h4>ChatDev</h4><p>This project predates Devin by quite a bit of time, and it utilizes a multi-agent approach to development by spinning up an artificial company with CTO, Project Manager, Engineer, QA, and Documentation roles.</p><p>Using the same prompt I fed OpenDevin, I watched as the miniature AI company interpreted my requirements, developed work for it, tested it, and documented it. While using GPT 3.5 as the LLM behind it, results were pretty dramatically varied and rarely worked on completion. GPT 4 performed relatively well, but seemed to spin up both Python and Node.js versions of my project. Neither version produced results that worked out of the box without additional edits.</p><p>Claude 3, the LLM with the most advanced programming capabilities at the time of writing, was not supported at the time, so I hacked the source code to utilize LiteLLM instead of OpenAI’s API directly. By doing so, I became possibly the only person to ever see how ChatDev performed when given the beefy capabilities that Claude has to offer. I tried several iterations, and Claude 3 consistently built software that <em>nearly</em> worked, with code that was far better organized and generally higher quality — but results that did not work out of the box nonetheless.</p><h3>Creating a Custom Multi-Agent Software Engineering Solution</h3><p>To build an agent, first you must be able to identify all the steps you take, even subconsciously, to complete your work. Breaking down your work to its core steps is an interesting process, to be honest, but it’s not difficult!</p><p>With regards to programming, after you receive your initial requirements a standard operating procedure might start with writing code, then checking to see that it builds correctly, then determining test scenarios to write for your code, then writing unit tests to validate those scenarios. That’s the process I’m using below!</p><p>I want be clear that I’m going to refer to agents in a couple of ways. For the most part I’ll refer to agents as software designed to handle a specific task on its own — programming, testing, etc. The product development solution that combines all these agents to create deliverables <em>could</em> itself be considered an agent, but I’d prefer to refer to that larger system as a “platform” — specifically an “agentic platform”.</p><h3>The Programming Module</h3><p>Initially, all I wanted was a software-generation agent. After doing some initial research, I landed on one especially interesting paper that brought GPT 3.5 up to a HumanEval score of 95.1 — <a href="https://arxiv.org/html/2402.16906v1">LDB: A Large Language Model Debugger via Verifying Runtime Execution Step by Step</a>.</p><p>And so, I began writing my very own agents following the principles outlined by the paper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEjsPZmOlObcTNYcHJ5skQ.png" /><figcaption>Diagram of the Logic Behind The Programming Module</figcaption></figure><p>The diagram above summarizes the workflow to go from initial prompt to functionally tested code — it captures a multi-agent iterative approach to developing standalone units of code that we can encapsulate as a single “Programming Module”. More on that later.</p><p>The column to the left of the LLM block represents all the steps taken to implement a <em>programming agent</em>. This agent is solely responsible for generating functions and classes, and it does so by interpreting initial requests into code to be extracted, written to a file, built, executed, and improved upon.</p><p>The column to the right of the LLM block represents all the steps taken to implement a <em>testing agent</em>. This agent handles the development of test scenarios and unit tests, test execution, and failed-test feedback to bring back to the programming agent.</p><p>Taking a close look at the steps taken here, development closely mirrors the process a human engineer might take to develop one unit of code in a silo.</p><h4>How well does it work?</h4><p>In practical testing, I have found that as long as initial requirements are well-defined, this system is highly effective at generating units of code with no build errors that meet your criteria — even with GPT 3.5.</p><blockquote>With an untuned LLM, the format that responses come back in is not guaranteed! For every step that you implement expecting to extract some data in a known format, you should have logic checking that the data comes back as expected. Retry logic is imperative to getting your agents to work.</blockquote><p>With that said, between iterations on the full workflow and retries at each step, you will use tens of thousands of tokens for just one request. If you are using GPT 3.5, that amounts to just a few cents.</p><p>Now, it isn’t perfect. There will be some requests that just fail to complete if you have retry limits, and iteration limits. As I optimize the prompt, I’ve brought success rates up to a level where almost every request succeeds in just a few iterations. Where it struggles most is with <em>testing</em>.</p><h4>Testing Woes (or LLMs really don’t know how to unit test)</h4><p>Where my programming module fails most is in generating unit tests that run without errors, handling failing tests, and handling tests that require class instances to be initialized before testing.</p><p>In fact, the testing agent fails to iterate to a successful suite of tests a whole 30% of the time. That’s despite the fact that I’ve gone to great lengths to improve its odds at success — having it focus on writing scenarios first, then individual unit tests one at a time for example. Even GPT 4 isn’t great at this.</p><h3>Up Next</h3><p>As mentioned at the top of this article, this is just part one of what I expect will be a series of articles on this subject. I have struggled against LLMs for hours on end to get the programming module performing well, and I expect that struggle to continue into the far future. From where I’m standing, I can either spend my days wishing GPT 5 would arrive, or I can put in the work to develop something beautiful that doesn’t need a ton of intelligence from the LLM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NyDhd30QtAKZjnIi_9pGng.png" /><figcaption>High Level Overview Of Modules</figcaption></figure><h4>Possibly considering Test-Driven Development</h4><p>One thing that I’m considering at the moment is whether to invert the relationship between the arogramming agent and the testing agent — start with test scenarios and unit tests and a basic function stub, then write code to make the tests pass. Test-Driven Development. That is the “correct” way to develop new functions, but I have some concerns about the way that the LLM would handle TDD. For example, without knowing the parameters ahead of time, each individual test may test assuming different parameters. Something I’d like to explore nonetheless.</p><h4>Retrieval Augmented Generation (RAG) Enhancements</h4><p>I have a project in the works intended to make RAG more effective, especially as projects get larger. Something that will be essential to making an independent product development platform work is the ability to utilize a working knowledge of a full repository.</p><p>I expect that the agents within the platform will need to utilize long-term about the project, the company, the goals, the structure of the repositories to be worked in, and so on paired with and short-term memory about the current task for example.</p><h4>User Interface Agent</h4><p>To be able to research, explore, visualize, install, and do all the other things an agentic platform may need to do in order to complete its work, an agentic platform will need access to all the tools any human developer would have. A brower, a CLI, an IDE, and plenty of 3rd party software will all be handy, but we need a way to automate the navigation of such an interface.</p><h4>The Planning Agent</h4><p>Writing individual functions is not, on its own, all that useful, so the programming module needs a companion. A third agent which I’m referring to as the planning agent.</p><p>Ask yourself — how many functions do you need to write for your average feature? How many files do you interact with? How many libraries and functions do you import? These are things that LLMs on their own struggle with. An agent that can plan out what functions and classes you’ll need, where they should be, and how imports should look is the domain of a planner agent.</p><h4>The Stakeholder Management Agent</h4><p>Nobody wants to spend a ton of time ironing out fine-grained requirements. A product development platform should include a user-friendly chat interface that can be used to receive initial requests, then refine them before handing the requests over to a planning agent. That’s where the stakeholder management agent comes in.</p><p>Good luck to everyone working on these problems — I’d love to hear from you about your experiences. What’s going right? What’s going wrong? What are your favorite open source projects?</p><p>Hope to see you next time!</p><p><em>Disclaimer: Banner image was generated using AI</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a9e500310a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started With Software Engineering in Today’s World]]></title>
            <link>https://medium.com/@breeanabellflower/getting-started-with-software-engineering-in-todays-world-2fca223f35b3?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fca223f35b3</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 23:54:00 GMT</pubDate>
            <atom:updated>2024-03-06T04:47:01.976Z</atom:updated>
            <content:encoded><![CDATA[<h4>What to know when AI knows everything</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DGvaCmHlUCN407sfpvqNiQ@2x.jpeg" /></figure><p>One of the sentiments I get from folks who are just starting their software engineering journeys is uncertainty about the future of this field. That is only made more uncertain as public figures advocate against learning programming.</p><p>In 2023, a <a href="https://cengage.widen.net/s/nvd6ghd8vl/final-cg-employability-survey-report-july2023">Cengage survey</a> found that nearly half of all new graduates feel that they could be replaced by AI. A <a href="https://www.pewresearch.org/social-trends/2023/07/26/workers-views-on-the-risk-of-ai-to-their-jobs/">Pew Research Center survey</a> in the same year explains that professional, scientific, and technical services have a have high level of exposure to AI (risk of replacement), with up to 52% of such jobs being considered at risk.</p><p>So, what’s the truth? Where is this industry headed and how can you play your part?</p><h3>AI’s Impact on engineering is not as negative as you think it is</h3><p>On the surface, the outlook isn’t good for newcomers. However those jobs will not be outright lost to AI. Instead, positions that are bound for replacement will very likely transform into jobs intended to manage and supervise AI.</p><blockquote>AI systems can perform with high levels of productivity, but not in a silo. They still need supervision and management.</blockquote><p>There are a few reasons for this.</p><ol><li>Engineers possess a strong capacity for understanding the business and its problems.</li><li>Engineers can validate whether the work that the AI produces meets expectations systematically.</li><li>Engineers can identify adjustments that need to be made to AI-produced work, and can make them.</li></ol><p>I discuss this topic more in depth in my article: <a href="https://medium.com/@breeanabellflower/using-llms-to-become-an-incredible-engineer-cb3da392b1ff">Using LLMs to Become an Incredible Engineer</a></p><h3>What skills should you know?</h3><p>As usual this depends greatly on both your industry and your title. In general here are the technologies I would recommend learning, divided into categories.</p><h4>General Knowledge</h4><ul><li>Engineering is a problem-solving profession, so to be successful in this field I highly recommend that you are the type of person to enjoy problem solving and puzzles. You should likely be the type to constantly be seeking out new challenges</li><li>Learn Functional Programming in any language</li><li>Learn Object Oriented Programming in any language</li><li>Develop code testing skills</li><li>Practice everything found in Data Structures and Algorithms books and courses</li><li>Know Computer Architecture Basics: Functionality of and metrics for CPU, RAM, GPU and so on</li><li>Deeply understand version Control with Git and practice with every project</li><li>Study Systems Architecture and Design Patterns: microservices, event-driven, dependency graphs, scale-out, load balancing, and so on</li><li>Develop your soft skills early and often: presentation skills, teamwork, technical writing for technical and non-technical audiences</li><li>Understand and respect data privacy</li><li>Understand the purpose of and the implementation of logging</li></ul><h4>Back-End / Server-Side for Web or Saas</h4><ul><li>Programming languages such as C#, Node.js, Python, or Java are currently popular. Pick the one you like most, and know that you will probably learn another language or two (or more) in the future</li><li>Database management with SQL &amp; NoSQL databases. Knowing one of each goes a long way. Understand how to query data, manage data, index data, and more</li><li>API Design</li><li>Server management with cloud providers</li><li>Performance optimization with complexity analysis</li><li>Scalability and extensibility principles</li><li>Authentication and data security</li></ul><h4>Front-End / Client-Side for Web</h4><ul><li>HTML/CSS/JS. Know that when you learn these technologies a lot has changed in the last couple of decades, so query for more recent answers to questions as you learn</li><li>Frameworks like React or Angular are good to know. Learn them at a separate time as you learn raw JS</li><li>Responsive design and UX principles</li><li>Web performance optimization</li><li>Extensibility principles</li><li>Accessibility</li></ul><h4>Front-End / Client-Side for Mobile</h4><ul><li>Native mobile app development (Swift &amp; Kotlin)</li><li>Cross-platform app development (React Native, Flutter)</li><li>Mobile UX/UI Design Principles</li><li>Accessibility</li><li>Performance optimization</li></ul><h4>Data Science</h4><ul><li>Baseline knowledge about statistics, probability, and linear algebra</li><li>Baseline knowledge about machine learning algorithms such as Linear Regression, Logistic Regression, Decision Trees, Random Forests, K-Means</li><li>Python with a solid understanding of libraries such as NumPy, Pandas, Sci-Kit Learn, and Matplotlib</li><li>PyTorch or Tensorflow</li><li>Big Data Pipelines</li></ul><h4>DevOps / Cloud Computing</h4><ul><li>Pick a cloud provider and really deep dive – they all provide similar services</li><li>Infrastructure as code</li><li>CI/CD with Jenkins, GitHub Actions, and so on</li><li>Containerization with Docker</li></ul><h3>Advice to the next generation of engineers</h3><p>I hope that you will decide which subsets of skills you want to develop and pursue them. One thing you’ll notice is how little programming shows up in those lists above.</p><blockquote>What you’ll notice is the prevalence of design patterns and algorithms and other high-level items. These are the skills that really define an engineer.</blockquote><p>To start the life of an engineer is to start a life-long journey of skill development and self-learning. It’s about understanding the big picture, the concepts, so that when problems arise you will know what it takes to craft a new solution in response.</p><p>I wish you the best in your journey!</p><p><em>Disclaimer: Banner image was generated by AI</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fca223f35b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crafting Bug-Resistant Software]]></title>
            <link>https://medium.com/@breeanabellflower/crafting-bug-resistant-software-73a03298b22c?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/73a03298b22c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Mon, 19 Feb 2024 15:40:44 GMT</pubDate>
            <atom:updated>2024-03-08T15:52:40.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Mn4iAKvo2BuE2R41jedUg.png" /></figure><p>Bugs are among the biggest and most frustrating hurdles to meeting deadlines, often preventing you and your team from delivering high-quality features that customers will love from the moment they ship.</p><p>A <a href="https://www.businesswire.com/news/home/20210216005484/en/Rollbar-Research-Shows-That-Traditional-Error-Monitoring-Is-Missing-the-Mark">recent survey by Rollbar</a> indicates that over a third of the workforce spends between 25%-50% of their working hours resolving bugs. Nearly half of engineers report this as their primary challenge. I have seen that same problem in almost every team that I’ve worked with.</p><p>So let’s analyze the situation. Where do these bugs come from, and how can they be avoided? In this article, I will be defining the principles I use in writing code that is bug-resistant by design.</p><h3>Where do bugs come from?</h3><p>Your code editor often prevents a subset of possible bugs by identifying syntax errors, but it falls short in identifying logical and integration errors. Code that looks error-free and runs smoothly can still perform incorrect actions at runtime.</p><p>As a result, identifying and preventing bugs during development is something of an art. That’s part of the reason that engineering has such a large learning curve. Engineers the world over develop their own techniques to master that art through years of real-world experience.</p><h3>What makes code Bug-Resistant</h3><p>There are countless books that teach best practices and techniques for software development (and it is worth taking the time to understand the wisdom left by software experts) but at the core of most systems are pretty straightforward principles.</p><p>Taking the time to understand these principles and practice them in your day-to-date is the best way to increase your code quality.</p><h4>Code Clarity</h4><p>Ensure that your work is clear and simple to follow.</p><ol><li><strong><em>Define functions and classes that have a single responsibility</em></strong> — this makes your life a hell of a lot easier, and that’s because it’s easier to visualize the happy path and edge cases when you understand what a unit of work should be doing.</li><li><strong><em>Define variables with easy-to-read names that describe what type of data is being held</em></strong> — this provides a kind of automatic low-level documentation for your work and helps to reason about data flowing through your work.</li><li><strong><em>Be a never-nester </em></strong>— Short-circuiting logic with validations is always easier to read and debug than nested conditions. <a href="https://en.m.wikibooks.org/wiki/Computer_Programming/Coding_Style/Minimize_nesting">Wiki</a></li></ol><h4>Error Handling</h4><p>You must understand the ways in which your work can fail. The existence and format of input and response data is never guaranteed in software.</p><ol><li><strong><em>Validate the existence of inputs and variable attributes.</em></strong></li><li><strong><em>Assume that asynchronous and third-party calls can fail.</em></strong></li></ol><h4>Comprehensive Unit Testing</h4><p>Never trust your work without qualitatively proving that the work handles the happy path, edge cases, and errors the way you expect it to with test cases.</p><ol><li><strong><em>Walk through the code to identify every “if” statement </em></strong>— every “if” statement represents a branch of logic that should be tested.</li><li><strong><em>Walk through the code to identify every place where errors could be thrown</em></strong> — every caught error should handled gracefully.</li><li><strong><em>Provide undefined and malformed inputs</em></strong>— bad inputs should be handled gracefully.</li></ol><h4>End to End Testing</h4><p>Checking that your work integrates as expected with the rest of your environment is important.</p><ol><li><strong><em>Integrated testing within the context you expect your work to be used.</em></strong></li><li><strong><em>Performance testing with large payloads or edge case conditions</em></strong> — for example you might receive a filter asking for 100,000 items; what does your code do in that case?</li></ol><h4>Intentional Documentation</h4><p>Documentation without good reason is just noise, so give thought to this process.</p><ol><li><strong><em>Explain what each unit of work is supposed to do when it is not clear from context</em></strong> — this requires you to identify where variable names, class names, namespaces, and so on are unable to provide sufficient context. Sometimes this includes “why” you did what you did.</li><li><strong><em>Document the purpose each function, method, and class</em></strong></li></ol><h4>Type Safety</h4><p>Ensure that your work has well-defined and well-understood inputs and outputs.</p><ol><li><strong><em>Define types in languages that are not strongly typed.</em></strong></li><li><strong><em>Enforce types through validation.</em></strong></li></ol><h3>Fostering bug-resistant culture</h3><p>By practicing the development of bug-resistant code, you will very quickly develop the skills needed to identify risky code during pair programming and code review, and even during development on top of existing features.</p><p>Bring up your concerns as they arise through peer mentorship! The stronger your team gets at identifying risky code, the more you will be able to rely on your team to catch anything you miss.</p><h3>Why should you care?</h3><p>By carefully following the principles above, you will dramatically reduce your risk of introducing bugs to production. That means job security, peace of mind, and more time spend working in exciting new challenges.</p><p>Code review, pair programming, quality assurance, and any other steps your team might have implemented to safeguard code are not guaranteed to spot new bugs as they arise. Only <strong><em>YOU</em></strong> can prevent production fires.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p0OwdkqEE2hsuJpn1s4QBg@2x.jpeg" /></figure><p><em>Disclaimer: AI was utilized to generate images for this article</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73a03298b22c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using LLMs to Become an Incredible Engineer]]></title>
            <link>https://medium.com/@breeanabellflower/using-llms-to-become-an-incredible-engineer-cb3da392b1ff?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb3da392b1ff</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Wed, 24 Jan 2024 16:01:38 GMT</pubDate>
            <atom:updated>2024-01-24T16:01:38.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WV3RxiNQzX1TiEdlEk4i6A.png" /><figcaption>Becoming an incredible engineer</figcaption></figure><p>With all the hype around Large Language Models (LLMs) like ChatGPT, it can be pretty uncomfortable wondering about what the future looks like for software engineering. In fact, my closest friend, even as a professional data scientist, was reluctant to even try making use of LLMs until just a couple of weeks ago when I finally convinced him to give it a shot. In a matter of hours his whole perspective shifted.</p><p>I am here to implore you as I did with my friend to take advantage of the tools that are coming out, rather than turn away out of reluctance. Those who use them will ultimately outpace those who don’t. Your biggest competition is not ChatGPT — it’s engineers who are getting very good at working with these AI models.</p><p>After all, the largest models out today are exceptionally capable programmers, but they lack the ability to reason, to understand the full context of large-scale systems, and to infer the impact that new code might have on those systems. This culminates in the ability to write clean, typically effective code that may or may not work for your problem.</p><p>You know better than them.</p><p>With all the information you know about your product, your industry, your space, you can direct what amounts to a team of AI developers with narrow vision to create spectacular work.</p><p>I’m going to give you a walk through of some of the many ways you can use LLMs to become incredible.</p><p>Here’s a breakdown of the sections below:</p><ul><li><strong>Scaffolding<br></strong>&gt; Using requirements to build a foundation for your implementation</li><li><strong>Testing<br></strong>&gt; Using function definitions or pseudocode to determine what scenarios need to be tested, and even scaffolding tests</li><li><strong>Feedback<br></strong>&gt; Instant answers to (sometimes silly) questions with no fear</li><li><strong>Ideation<br></strong>&gt; Sometimes you just need a sounding board, sometimes you need a new perspective</li><li><strong>Learning</strong><br>&gt; LLMs are like libraries if they could talk to you</li></ul><h3>Scaffolding</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y23fyJUrl5T_YIv5caMdwg.png" /><figcaption>Scaffolding</figcaption></figure><p>First on our list is something that fundamentally changes the way we develop software: Scaffolding with LLMs. Think of it as building a solid scaffold for your code to grow around, sort of like setting up the bones before adding the muscle.</p><p>The example I’m going to provide here demonstrates the kind of work that you can direct GPT to do. With that said, this isn’t a real-world example — the whole problem space is pretty well defined in one document, so the impact that you can have as a human isn’t easily highlighted here. But I encourage you to extrapolate to work you might see at your company.</p><p>Imagine you are given a product requirements document (PRD):</p><blockquote>The document for a new Inventory Management System (IMS) details an interface for querying inventory status. It focuses on allowing users to check item availability through item IDs, providing real-time stock status, including available quantities and restocking information.</blockquote><blockquote>The system will also handle invalid queries and retry for restocking items. Emphasis is placed on performance, reliability, security, and scalability, aiming for fast response times, high uptime, secure data handling, and the capacity for numerous queries.</blockquote><blockquote>Integration is planned with existing databases, excluding third-party systems or mobile app development. The acceptance criteria ensure accurate stock information and stable system performance, with future plans for predictive analytics and a customer interface.</blockquote><p>You are the engineer who receives that PRD. To create a scaffold for how that feature should start, you can use a few different approaches. One of them is pasting that PRD to your AI model with some straightforward instructions:</p><blockquote>Can you write the typescript for this PRD with OOP in mind? Our inventory items have an id string, quantity integer, and restocking boolean.<br>&lt;paste PRD here&gt;</blockquote><p>Here’s the response:</p><pre>class InventoryItem {<br>    id: string;<br>    quantity: number;<br>    restocking: boolean;<br><br>    constructor(id: string, quantity: number, restocking: boolean) {<br>        this.id = id;<br>        this.quantity = quantity;<br>        this.restocking = restocking;<br>    }<br><br>    isInStock(): boolean {<br>        return this.quantity &gt; 0;<br>    }<br><br>    isRestocking(): boolean {<br>        return this.restocking;<br>    }<br>}<br><br>class InventoryManager {<br>    private items: Map&lt;string, InventoryItem&gt;;<br><br>    constructor() {<br>        this.items = new Map();<br>    }<br><br>    addItem(item: InventoryItem): void {<br>        this.items.set(item.id, item);<br>    }<br><br>    queryItem(id: string): string {<br>        if (!this.items.has(id)) {<br>            throw new Error(&quot;Invalid item ID&quot;);<br>        }<br><br>        const item = this.items.get(id);<br>        if (item.isInStock()) {<br>            return `Item in stock. Quantity: ${item.quantity}`;<br>        } else if (item.isRestocking()) {<br>            return &quot;Item out of stock, but restocking.&quot;;<br>        } else {<br>            return &quot;Item out of stock.&quot;;<br>        }<br>    }<br>}<br><br>class RestockingRetryHandler {<br>    private readonly maxRetries: number = 3;<br>    private readonly retryInterval: number; // in milliseconds<br><br>    constructor(retryInterval: number = 5000) {<br>        this.retryInterval = retryInterval;<br>    }<br><br>    async retryQuery(inventoryManager: InventoryManager, itemId: string): Promise&lt;string&gt; {<br>        for (let i = 0; i &lt; this.maxRetries; i++) {<br>            try {<br>                return inventoryManager.queryItem(itemId);<br>            } catch (error) {<br>                if (i &lt; this.maxRetries - 1) {<br>                    await new Promise(resolve =&gt; setTimeout(resolve, this.retryInterval));<br>                }<br>            }<br>        }<br>        throw new Error(&quot;Max retries reached&quot;);<br>    }<br>}<br><br>interface DatabaseIntegration {<br>    fetchData(): Map&lt;string, InventoryItem&gt;;<br>}<br><br>interface StockManagementSystemIntegration {<br>    updateStock(itemID: string, quantity: number): void;<br>}<br><br>const inventoryManager = new InventoryManager();<br>const restockingHandler = new RestockingRetryHandler();<br><br>// Example: Adding items to the inventory<br>inventoryManager.addItem(new InventoryItem(&quot;123&quot;, 10, false));<br>inventoryManager.addItem(new InventoryItem(&quot;456&quot;, 0, true));<br><br>// Example: Querying an item<br>try {<br>    const response = restockingHandler.retryQuery(inventoryManager, &quot;123&quot;);<br>    console.log(response);<br>} catch (error) {<br>    console.error(error.message);<br>}</pre><p><em>Initial scaffolding for this feature</em></p><p>Not bad — it’s well-structured and already takes care of most of the heavy-lifting.</p><p>From there you could start to rework the pieces of this code that might already have implementations. For example, you might recognize as the engineer on the project that the data layer is already defined elsewhere, and so you need to fill in the details within InventoryManager so that the IMS calls the existing API.</p><p>You could do this manually, but why not ask your model to fill in the blanks for you?</p><blockquote>I already have a data access API defined in a class called PlatformDatabaseManager. It has a singleton instance that manages connections and it has functions add(itemType, id), get(itemType, id), getAll(itemType, query), update(itemType, id, data), and delete(itemType, id) — can you rework InventoryManager to utilize this interface, including more methods to fully make use of the PlatformDatabaseManager against inventory tables? itemType here is always “InventoryItem”</blockquote><blockquote>&lt;InventoryManager Code&gt;</blockquote><pre>class InventoryManager {<br>    private databaseManager: PlatformDatabaseManager;<br>    private readonly itemType: string = &quot;InventoryItem&quot;;<br><br>    constructor() {<br>        // Assuming PlatformDatabaseManager has a getInstance method for the singleton<br>        this.databaseManager = PlatformDatabaseManager.getInstance();<br>    }<br><br>    async addItem(item: InventoryItem): Promise&lt;void&gt; {<br>        await this.databaseManager.add(this.itemType, item.id, item);<br>    }<br><br>    async queryItem(id: string): Promise&lt;string&gt; {<br>        try {<br>            const item = await this.databaseManager.get(this.itemType, id);<br>            if (!item) {<br>                return &quot;Invalid item ID&quot;;<br>            }<br><br>            if (item.isInStock()) {<br>                return `Item in stock. Quantity: ${item.quantity}`;<br>            } else if (item.isRestocking()) {<br>                return &quot;Item out of stock, but restocking.&quot;;<br>            } else {<br>                return &quot;Item out of stock.&quot;;<br>            }<br>        } catch (error) {<br>            // Handle or rethrow the error as per your error handling strategy<br>            throw error;<br>        }<br>    }<br><br>    async updateItem(id: string, data: any): Promise&lt;void&gt; {<br>        await this.databaseManager.update(this.itemType, id, data);<br>    }<br><br>    async deleteItem(id: string): Promise&lt;void&gt; {<br>        await this.databaseManager.delete(this.itemType, id);<br>    }<br><br>    async getAllItems(query: any): Promise&lt;InventoryItem[]&gt; {<br>        return await this.databaseManager.getAll(this.itemType, query);<br>    }<br>}</pre><p><em>InventoryManager gets refined</em></p><p>And as an engineer you will probably notice that most of these other functions don’t have error handling implemented or thought out. You can either iterate once more with your model or just manually fill in the rest.</p><blockquote>And that’s the key — you know what your code needs to do. You can review the work done by these models and determine if it meets the technical requirements as they are understood by you.</blockquote><p>This is the exact type of workflow that GitHub Copilot offers. If you take a look at <a href="https://github.blog/2022-09-07-research-quantifying-github-copilots-impact-on-developer-productivity-and-happiness/">this research</a> performed to measure the effectiveness of that program, following this workflow not only improved happiness and job satisfaction, it also cut development time at least in half.</p><h3>Testing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ysmfhb4Pjnd82G-tv_bW7A.png" /><figcaption>Testing your code</figcaption></figure><p>Now, let’s consider what comes after building a solid structure: Quality Assurance, commonly known as Testing. This is a crucial step to ensuring the integrity of what we’ve built. Let’s examine how LLMs can streamline this typically laborious process.</p><p>Figuring out what scenarios to test can be tedious at best, and challenging at worst. Getting your LLMs to write complete tests is hit-or-miss, but getting it to define what scenarios you should cover is pretty effective. Try this:</p><blockquote>&lt;Paste your function or method here&gt;<br>What scenarios and edge cases would there be in &lt;Function or Method Name&gt;? Can you write it out in “it “ format as a single line per scenario and edge case?</blockquote><p>A matter of seconds go by and you’ll have a well-defined series of tests that you write out to cover the different scenarios and edge-cases you might encounter.</p><p>Keep in mind that well-formatted code goes a long way to simplifying the number of scenarios to test in each function, and the effectiveness of the following method.</p><p>I asked it this question about queryItem in InventoryManager and it generated the following:</p><ul><li>it(&quot;should return &#39;Item in stock. Quantity: X&#39; when a valid item ID is provided and the item is in stock&quot;)</li><li>it(&quot;should return &#39;Item out of stock, but restocking.&#39; when a valid item ID is provided and the item is out of stock but restocking&quot;)</li><li>it(&quot;should return &#39;Item out of stock.&#39; when a valid item ID is provided and the item is completely out of stock&quot;)</li><li>it(&quot;should throw an error for an invalid item ID&quot;)</li><li>it(&quot;should return &#39;Invalid item ID&#39; for an item ID that was previously valid but now corresponds to a deleted item&quot;)</li><li>it(&quot;should throw an error when the item ID is empty&quot;)</li><li>it(&quot;should throw an error when the item ID is null&quot;)</li><li>it(&quot;should throw an error when the item ID is undefined&quot;)</li><li>it(&quot;should handle or throw an error for item IDs containing special characters&quot;)</li><li>it(&quot;should handle or throw an error when there&#39;s a problem with the database connection&quot;)</li><li>it(&quot;should handle or throw an error when the database response is delayed or times out&quot;)</li><li>it(&quot;should handle concurrent queries for the same item ID correctly&quot;)</li><li>it(&quot;should handle or throw an error when the item data format in the database does not match the expected format&quot;)</li></ul><p>You can take it a step further to perform code scaffolding in much the same was as with the PRD but for your scenarios doing something like:</p><blockquote>Can you write out the test for &lt;scenario&gt; in this &lt;function&gt;?</blockquote><p>In practice, I would recommend scaffolding tests one-by-one, or at most two-by-two, because these models tend to simplify or take shortcuts to save on response size. But in short order you’ll have a full-fledged series of tests with hardly any errors that you can expand on. And if you feel that some scenarios are missed, you can ask about the model as well.</p><blockquote>By this point, you have a decently tested, almost-completely scaffolded code change in place. All you have to do is validate, iterate, and send it out for review. The machine has not completed all of the work for you; it has only completed the work that you could do in your sleep — without spending 8 hours.</blockquote><h3>Feedback</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oo8mcV3hl8FFLK1ogJ5UQQ.png" /><figcaption>Getting feedback from your friendly AI</figcaption></figure><p>Having delved into the realm of testing, it’s time to turn our attention to an essential, albeit sometimes challenging, aspect of development: Feedback. Let’s explore how LLMs can be instrumental in refining and enhancing the quality of our code.</p><p>When you have finished iterating, refining, and otherwise completing your work on this code change, you can ask the LLM to review and validate your code against best practices.</p><blockquote>Did you forget to introduce error handling?</blockquote><blockquote>Did you forget to validate the input parameters to some function?</blockquote><blockquote>Is your code well-organized and well-formatted?</blockquote><blockquote>Is your code well-documented?</blockquote><p>These and many more questions can be handled with ease by your LLM, and it can help act as your initial review prior to asking other team members to check your code.</p><blockquote>LLMs have seen it all before — they have read the books on design patterns, they have read the websites and blogs about software development, and they have read tens of millions of lines of code. Having a reviewer like that can’t hurt.</blockquote><p>At my company, OneRail, I worked with our EVP of Data Science, David Daeschler, to implement an automated code review system which answers all of the questions above and more as soon as any code change is made inside a pull request.</p><p>As a result, most of the pull requests I review these days have an initial commit, followed by a follow-up commit that addresses some of the concerns outlined by our LLM. This saves time, it helps authors feel more confident in the quality of their work, and it frees up our human engineers to focus on the work at a higher level.</p><p>There’s another benefit here. AI models won’t judge you for not understanding something, and they don’t mind explaining as many times as you need and in as many ways as you need. Human experts are amazing, especially the patient ones, but when you don’t want to risk interrupting them or prodding them with too many questions, LLMs are there for you.</p><h3>Ideation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZe80255D0Y9bKyA3toC5w.png" /><figcaption>Collaboration and ideation</figcaption></figure><p>Sometimes the tasks you work on go outside of your comfort zone, and maybe they don’t come with clear requirements. Sometimes you’re neck-deep in high-level architecture, and you need to make choices that you’re not perfectly comfortable with without a second opinion.</p><p>In these situations, I always recommend talking with an expert on your team, but sometimes those experts aren’t around and sometimes you <em>are</em> the expert on your team. This is the perfect time to bounce ideas off of the LLM.</p><p>You might be surprised at the level of versatility these AI models have. I’ll give one example and hope that it inspires you to give it a shot yourself.</p><blockquote>Question:</blockquote><blockquote>I have a pretty monolithic service that handles video streaming and live chat, and I need to be able to support rapid long-term growth as well as random spikes that happen throughout the day in the next few months. What can I do to practically accomplish this?</blockquote><blockquote>Response:</blockquote><blockquote>To support rapid long-term growth and handle random spikes in a video streaming and live chat service, transitioning from a monolithic architecture to a more scalable approach, such as microservices, is advisable. Here’s a brief overview of practical steps and an appropriate architecture:</blockquote><blockquote>1. **Microservices Architecture:** Break down the monolithic service into smaller, independently scalable microservices. For instance, separate services for video streaming, chat, user authentication, and content management. This allows each service to scale independently based on demand.</blockquote><blockquote>2. **Load Balancing:** Implement load balancers to distribute traffic evenly across servers, preventing any single server from becoming a bottleneck.</blockquote><blockquote>3. **Elastic Scalability:** Use cloud services (like AWS, Azure, or GCP) that offer auto-scaling capabilities. This ensures your system can automatically scale up during traffic spikes and scale down during low-usage periods, optimizing cost and performance.</blockquote><blockquote>4. **Content Delivery Network (CDN):** Utilize a CDN for video streaming. CDNs can cache content closer to users, reducing latency and server load.</blockquote><blockquote>5. **Caching:** Implement caching strategies for frequently accessed data, such as user profiles or popular videos, to reduce database load.</blockquote><blockquote>6. **Asynchronous Communication:** For the chat system, use asynchronous communication (like message queues) to handle spikes in chat messages without overloading the processing servers.</blockquote><blockquote>7. **Database Scalability:** Consider database sharding or using a NoSQL database for better handling of large, unstructured data and to ensure database scalability.</blockquote><blockquote>8. **Monitoring and Alerting:** Implement robust monitoring and alerting tools to detect and respond to issues in real-time.</blockquote><blockquote>9. **Optimize Video Streaming:** Use adaptive bitrate streaming to adjust video quality based on user’s internet speed, optimizing the balance between quality and performance.</blockquote><blockquote>10. **Robust Testing and Deployment:** Regularly test the system’s performance under load. Employ CI/CD pipelines for smooth deployment of updates without downtime.</blockquote><blockquote>In summary, migrating to a microservices architecture supported by cloud-based elastic scalability, load balancing, effective caching, and asynchronous communication can help manage both long-term growth and unpredictable spikes in your video streaming and live chat service. This approach requires careful planning and possibly significant refactoring of the existing monolithic system, but it offers flexibility, scalability, and more efficient resource utilization in the long run.</blockquote><p>To give you an idea of how effective this process can be at speeding up design work, I once listened to a pitch for a feature that a third-party was trying to sell me on. They claimed to have spent a half-year on designing the architecture they were presenting.</p><p>Out of curiosity, later that day I posed the same problem to our LLM and asked it to design an architecture that could solve it. To my surprise, it provided very nearly the same solution.</p><p>Clearly this isn’t going to solve all of your problems, but if you don’t know where to start, you’re not aware that asynchronous communication can help handle traffic spikes, or you don’t know that load balancing is essential to these types of services, then this could be the exact conversation you need to start you down the rabbit-hole toward a solid execution plan.</p><h3>Learning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g6fIX-Jt25dNoqTPMvIf8g.png" /><figcaption>Learning from AI Teachers</figcaption></figure><p>It’s somewhat obvious that LLMs are an excellent tool for learning, but I encourage you to change the way you think about learning to best utilize this key feature of AI tools.</p><p>Engineering, more than many fields, requires you to learn and understand a vast number of topics and technologies and patterns — and just when you think you’ve got it nailed down something new arrives and shakes it up. Creation is an evolving art, and we must evolve with it.</p><p>For this section, I don’t have a great example to demonstrate how powerful this tool can be because you need to experience this yourself for it to sink in. The next time you run across something you don’t understand at work or on your personal projects you will be tempted to use the methods you’ve grown accustomed to in order to learn it.</p><p>Don’t Google it, don’t reference your books, and don’t reference API documentation. Instead, go to your AI model. OpenAI’s GPT 4 is excellent for problems related to technology that’s newer than a year or two because of its ability to search the internet for the latest information on a topic, but if you’re asking about something older or something more general than a specific technology, other LLMs with too.</p><blockquote>Ask your question — providing any details it might need to know, then read what it has to say and think about it. Then, ask it a follow-up question. Ask it a few. Ask it to explain some of the points that it brought up, or to refine its answer. Converse, and explore.</blockquote><p>Take the few extra minutes it’ll take to get used to how this type of conversation goes and pretty soon you’ll get exactly the information you’re looking for faster from LLMs than from any other reference.</p><p>Sometimes it doesn’t quite get you where you need to go, but sometimes it changes the way you’re thinking about a problem pretty fundamentally. I’m not saying that googling, API documentation, and other traditional sources of knowledge are out — this exercise is just about showing you a new way of thinking about learning.</p><p>As a part of my daily workflow, I have my LLM open at all times in case I have a quick question for it, and the way it has transformed my productivity is unbelievable.</p><h3>Conclusion</h3><p>From giving us a leg up with scaffolding to being a mentor, it’s clear that LLMs like ChatGPT are more than just fancy tools, and more than just hype — they’re partners in our professional journey.</p><p>It’s time we embrace this tech, not just to keep up but to stay ahead of the curve. The real competition is not these AI models; it’s about who can use them most effectively. This isn’t just another tech fad; it’s the future of software development.</p><p>Keep in mind that you’re going to want to talk with your company about their policy on using these models. Depending on the service, you may have to be careful about what information you provide to LLMs. With that in mind, experiment, tweak, and see what these tools can really do. It’s one thing to read about it, but the real learning happens when you’re in the trenches.</p><p>Remember, it’s not just about coding faster or smarter — it’s about pushing the boundaries of what we can build and create. We’re stepping into an era where our creativity is not limited by the time it takes to get ideas onto paper. Your ideas and your command over projects combined with AI’s capabilities can lead to some seriously amazing work.</p><p>Now it’s your turn to apply these insights. Combine your expertise with AI’s efficiency and set new benchmarks in innovation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb3da392b1ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Post-Labor Representative AI Governance: Techno-Democracy]]></title>
            <link>https://medium.com/@breeanabellflower/post-labor-representative-ai-governance-techno-democracy-2f3641b4e953?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f3641b4e953</guid>
            <category><![CDATA[opinion]]></category>
            <category><![CDATA[ai-revolution]]></category>
            <category><![CDATA[discussion]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Wed, 27 Dec 2023 23:35:06 GMT</pubDate>
            <atom:updated>2024-01-28T17:04:28.014Z</atom:updated>
            <content:encoded><![CDATA[<h3>Post-Labor AI Governance: Techno-Democracy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrLS2g7TuoIC1QHEvVBJKg.png" /><figcaption>2048, Election Day</figcaption></figure><p>The year is 2048. A notification pops up on the peripheral of your vision. As your eyes flick toward it, it expands as a red-white-and-blue banner to say: “It’s time to vote!” You have a few minutes now, so why not?</p><p>You flick your wrist lightly and the notification expands and opens a minimalistic web-page: election.gov. It’s old-school, but that’s what you expect from a government page. A counter increments every few seconds to represent the number of votes that have been cast so far.</p><p>You scroll down a bit and click to open up the black-and-white form when the page goes blurry and you hear your AI assistant tell you “One sec, I’m submitting your authentication now”. Moments later, a green light blinks a few times and the page comes into focus. “There, now that that’s taken care of, would you like me to fill in your answers?”</p><p>“Sure, thanks!” you reply. You don’t doubt your assistant knows your political positions — after all it seems to know everything about you. The form fills up, and you take a moment to look over the answers it provided for you.</p><blockquote><strong>Give your thoughts on the following legislative matters.</strong></blockquote><blockquote><strong><em>Universal Basic Income</em></strong><em>: I feel like I’m not able to make ends meet since prices started to rise last year.<br></em><strong><em>Data Privacy</em></strong><em>: I feel worried that people can find out too much about me and my family.<br></em><strong><em>Mandatory Education</em></strong><em>: I’m happy with the level of education, but I think it could be better tailored to my children’s interests.<br></em><strong><em>Transportation</em></strong><em>: I don’t have much to say about transportation. I haven’t seen many issues.<br>…</em></blockquote><p>These and many more text inputs are filled out similarly. It looks to be pretty close to what you’d say so you make just a few adjustments and send it off. The browser navigates to straightforward “thank you” page, explaining that your votes will be anonymized and compiled with other votes to reconstitute and retrain the S.E.N.A.T.E. once voting closes.</p><p>The next day, aggregated election results are being discussed by media outlets.</p><p><em>“… that’s right, and something that stands out to me is the clarity voters have around what they want to see for the future of environmental policy…”</em></p><p><em>“… and despite all predictions, data privacy appears to be taking a back-burner in the minds of voters…”</em></p><p><em>“… the Architects say that reconstitution should come to a close within the week after they implemented several improvements to parallel processing…”</em></p><h3>The Role and Reality of Government in Society</h3><p>Under social contract theory, a significant concept in political philosophy, we engage in an unspoken agreement with the government: we agree to follow rules and laws, and in return, we receive a government that maintains order and safeguards our basic rights. This idea isn’t just about having a set of rules to live by; it’s about creating a society that’s stable and fair, where conflicts get sorted out without descending into chaos.</p><p>Let’s dig in a bit with regard to the government’s role in this deal. It’s not just about enforcing laws; it’s also a service provider, offering things we all need but can’t easily get on our own, like roads, schools, and national defense. And in a democracy, the government is supposed to be driven by our collective voice, making decisions that reflect what we want.</p><p>In contemporary politics, there’s a growing concern that modern governments are increasingly swayed by the interests of large corporations, often at the expense of the general public. This trend is coupled with a heightened focus on partisan politics, where representatives of the people seem more invested in vilifying the opposition, appealing to harmful rhetoric, and staying in power than in addressing the needs of their constituents.</p><p>The divisive political climate often overshadows the original intent of governance, leading to policies that favor corporate lobbyists and special interest groups. This shift in focus raises questions about the commitment of modern governments to the ideals of the social contract, where the primary goal should be to serve and protect the interests of all citizens equally.</p><p>The result is a government that is often too slow to act on anything, not to mention its sluggish response to rapidly evolving events that are approaching faster than we anticipate.</p><h3>The AI Revolution</h3><p>The AI revolution, with its potential to transform the labor market, raises truly profound questions about the future structure of our economy and society. In a scenario where intellectual labor becomes automated, efficient, and inexpensive due to AI, the traditional human workforce will face significant displacement. This will drastically alter the economic landscape: businesses, driven by the pursuit of efficiency and profit, might find little incentive to employ human workers when AI provides a more cost-effective alternative.</p><p>This transition to a post-labor economy could lead to a substantial segment of the population finding themselves without traditional employment, resulting in decreased purchasing power and, consequently, reduced consumer demand. Such economic changes would have a ripple effect impacting everything from individual livelihoods to the broader economic stability.</p><p>In an AI-driven future, the likelihood of traditional political systems failing to adequately support a largely underemployed population is high. This concern is rooted in observations around existing political structures that often struggle to effectively address the needs of the underemployed, hindered by partisanship, poor representation, and a general slowness in adapting to economic and societal shifts.</p><p>Given these realities, the idea of transitioning to AI as a representative form of government becomes particularly compelling. AI, with its advanced data processing capabilities and potential for unbiased decision-making, could offer a more responsive and effective governance model. In this scenario, AI could analyze complex societal data in real time, identifying and addressing the needs of all citizens, including the underemployed, with precision and fairness.</p><p>This approach promises a government free from traditional political biases and unencumbered by the slow pace of human-led bureaucratic processes. An AI-led government could dynamically adapt policies to the rapidly changing economic landscape, ensuring that the welfare of all citizens is maintained. In short, AI governance could transcend the traditional pitfalls of partisan politics, focusing solely on data-driven solutions that serve the collective good.</p><h3>Representative AI Governance: A Model for Techno-Democracy</h3><p>No election should amount to a popularity contest, and certainly should not be about which team wins. But in practice, that is how our modern political system works.</p><p>Imagine a democracy where AI takes the political stage, not as advisors, but as decision-makers. In this governance model, the traditional concept of elected human representatives is replaced by a fleet of specialized AI agents. Each agent is an expert in a different political domain, drawing its directives from a unique, ever-evolving constitution that is crafted by the people through ballots which capture their collective opinions and values on a wide range of issues.</p><p>These AI representatives don’t operate in silos; they engage in a debate with each other and come to compromise not on the grounds of what makes them look good, but rather on the grounds of what makes the best impact. Data and algorithms clash and collaborate to forge policies. Their resources? A vast ocean of real-time data — from economic trends and job markets to environmental shifts and demographic changes — ensuring that every policy is grounded in current realities.</p><p>They do not have the final say, however. AI representatives propose solutions, but the power still rests with the people. After a round of policymaking is complete, those policies are subjected to a public referendum where citizens can veto decisions they don’t agree with. Only those policies that pass this final democratic test become law. Think about the way propositions work in California for a similar example. This system isn’t just about efficiency; it’s about maintaining a democratic heartbeat in the age of AI, blending the precision of technology with the irreplaceable value of human judgment and choice.</p><p>Finally, given the immense computational power of machines, it seems pertinent to address the fact that votes are binary yes/no questions give little insight into your thoughts and concerns. Even systems such as ranked-choice and runoff voting fail to provide leadership with enough context to represent the needs of the people. That’s why we see sample polling taking place all the time. We think of votes as yes/no decisions, but that’s only because we can’t practically read and interpret the votes of hundreds of thousands of voters to decide what is best for us. So, one of the important elements of this system is the ability to discuss your thoughts on the issues so that machines who really can read every opinion have a chance to interpret the underlying problems.</p><p>Less than a week after you sent your ballot, a national announcement streams on election.gov. Newly generated avatars for each member of the reconstituted S.E.N.A.T.E. take turns speaking. They each summarize what the election revealed about the public’s opinions and their intended actions.</p><p>The Representative Agent of Environmental Policy takes the virtual stage and says:</p><p><em>“… Thank you all for reinforcing the importance of environmental policy with your votes, a message I’ve clearly received and am dedicated to action. Rising sea levels and the increase in frequency of natural disasters is of grave concern to us and clearly to all of you. This year marks the start of a new era, as we’ll invest more in tidal and geothermal energy than ever before, driven by recent technological breakthroughs. In collaboration with experts, we’ll balance our energy needs with the health of our planet. Together, we’re embarking on a transformative journey towards a sustainable future…”</em></p><p>After several minutes the Representative of Human Economics takes the stage:</p><p><em>“… This year’s economic transformations have posed significant challenges, and we’re actively addressing your concerns about quality of life and survival. We’re exploring strategies to rejuvenate the economy without broad impact, recognizing Universal Basic Income as a vital tool in this period more than ever. Our plan is to fund these investments in our citizens through targeted commercial and industrial taxation. Together, we’re committed to navigating these changes for a more resilient and equitable economy…”</em></p><h3>The Risk of Governing Bias in a Post-Labor Society</h3><p>We won’t transition to Techno-Democracy based on speed, responsiveness, or any other single value that computers possess. The central need for a transition is about bias.</p><p>In a scenario where business interests drive high unemployment, ask this question: who bears the responsibility for ensuring a high quality of life, or even basic survival, for the populace?</p><p>Indeed, when a substantial portion of a nation’s citizens are jobless and tax revenue primarily comes from businesses, politicians will not be inclined to enact policies that pressure these businesses to contribute towards solutions like Universal Basic Income. You don’t bite the hand that feeds you.</p><p>In turn, social welfare programs such as subsidized housing, mental health services, universal healthcare, and free high-quality education for all ages will not be well maintained. Beyond these basic right, in an era where data is a valuable asset, the implementation of robust data privacy laws are likely to be blocked by politicians with ties to large tech corporations.</p><p>This is in contrast to the fact that these needs are paramount in such a society. An impartial senate that is guided exclusively by data and driven by a mandate shaped by the express needs of the people is more inclined to implement policies that serve the broader public interest rather than catering to the agendas of influential individuals.</p><h3>Let’s Start the Conversation</h3><p>We stand at the beginning of an era of change that will move faster than any before it as exponential growth promises to bring the technological singularity to us sooner than we can possibly fully prepare for, and every facet of society stands to face the impact of the coming era.</p><p>So let’s get ahead of it and start the conversation now. In a world where both physical and intellectual work is capable of being automated in a way that surpasses human ability, we need to be able to rely on our representatives to protect the quality of life of our people. And can we? A journey through the complex landscape of modern politics, marred by partisanship and corporate influence, leaves much to be concerned about as we enter the AI Revolution.</p><p>The transition I am suggesting is not without its challenges. As we embrace AI governance, we must remain vigilant to ensure that the technology serves the people and not the other way around. The risks of bias, ethical dilemmas, and the potential for misuse of power are real whether our leaders are human or not and must be addressed with robust checks and balances. Certainly the ideas I’m suggesting are not fully baked either. But as we grow nearer to an unknown future, I encourage experts in all fields to make that future clearer for all of us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f3641b4e953" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Of course “AI will be able to do everything”  —  but what will we do with that power?]]></title>
            <link>https://medium.com/@breeanabellflower/of-course-ai-will-be-able-to-do-everything-but-what-will-we-do-with-that-power-d769cd9cb19b?source=rss-fbbeed60eb8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d769cd9cb19b</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Breeana Bellflower]]></dc:creator>
            <pubDate>Sat, 04 Nov 2023 16:36:50 GMT</pubDate>
            <atom:updated>2024-02-26T00:17:35.909Z</atom:updated>
            <content:encoded><![CDATA[<h2>Of course “AI will be able to do everything” — but what will we do with that power?</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DWp5rFuBrn_GK6hTEd_iDg.png" /><figcaption>Humanity &amp; Machines join forces</figcaption></figure><p>Elon Musk is making headlines for saying that AI will put an end to work. In my mind there has never been any room for reasonable doubt that we will end up there.</p><p>My brother and I used to fight about this when we were young; it was never a question of <em>whether</em> AI would be able to replace us in the workplace, but instead a question of when and what we should do with that power once it arrives.</p><p>For anyone who doubts that AI will ever have the same capacity for intelligence that we do, the reality is straightforward on this matter. Our minds and the actions we take are all the result of a neural network with billions of parameters — and mimicking nature with technology is what humanity does best.</p><p>For the sake of argument, let’s take a look at the future. I want you to imagine these two scenarios set in a world where AI is advanced enough that it could feasibly do anything we humans can do:</p><h3><strong>Scenario 1: AI Work Augmentation</strong></h3><p>You continue to work 40–50 hours a week at work on things you don’t always love, but AI tends to handle the boring, tedious, or otherwise undesired parts of the job. In fact there are some entire jobs that are so undesired that they are no longer held by humanity at all. The time you spend at work is more meaningful than it is today, but work-life balance remains as it is today. When you get home, you spend what little (probably tired) time you have left on hobbies, family, and friends. In this scenario, you have bills to pay and groceries to buy, retirement and education to pay for; ultimately the time you spend at work is implicitly incentivized by the need to survive.</p><h3><strong>Scenario 2: AI Work Replacement</strong></h3><p>AI workers replace humanity in almost every facet of work, and diligently set themselves on solving humanity’s problems. No matter how advanced AI becomes, humans are ambitious problem-solvers by nature, so you still work. But you work only when you want, and as many hours as you want every week to make progress on something you’re passionate about. Maybe it’s 20, 30, or even 40 hours — but maybe it’s 5 or 10. The rest of your time is spent making memories with family and friends, exploring your creative side, traveling, and so on. In this scenario, machines are deployed to eliminate scarcity, hunger, and so on over time — so less and less of your efforts are spent on survival, and more are spent on experiencing life.</p><p>These are the scenarios I used to argue about as a young teen. In my life, I am lucky to genuinely love working and the challenges it provides, yet if I could be sure that my family is provided for with the replacement scenario, I’d do that every time. Why would I choose not to spend time with my wife? My future children? My closest friends? Why not spend my time tinkering with then-old tech and creating new things, and learning about the wonders of the world. It seems more like fantasy than reality, but so did your smartphone not too long ago.</p><p>There are some who believe that truly advanced, singularity-level AI technology should be just another tool in the shed. Something to augment our existing way of life. I believe as I have since my youth that it is *the* tool to fundamentally shift the nature of work and life so that we can work smarter, not harder, and live for the things that truly matter.</p><p>What do you think?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d769cd9cb19b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>