<?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 Harry Hathorn on Medium]]></title>
        <description><![CDATA[Stories by Harry Hathorn on Medium]]></description>
        <link>https://medium.com/@hbhhathorn?source=rss-532020f6937e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*6UZ_oy6bgxO2aOAN70SBLg.png</url>
            <title>Stories by Harry Hathorn on Medium</title>
            <link>https://medium.com/@hbhhathorn?source=rss-532020f6937e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:38:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hbhhathorn/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[Programming and AI fatigue]]></title>
            <link>https://medium.com/aimonks/programming-and-ai-fatigue-df6c668d62e0?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/df6c668d62e0</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Mon, 19 Jan 2026 09:30:34 GMT</pubDate>
            <atom:updated>2026-01-19T14:24:08.499Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXPfjuFpKMA9qcVkpuqLcw.png" /></figure><p>I have been working as a software developer for the last 10 years, and I always enjoyed my job. I love computers, and it’s been my hobby as much as a profession. However, all the changes happening in the software world have been wearing me down.</p><p>I remember driving to my first job feeling like I had superpowers, because I knew how to code.</p><p>Over the last few months, I’ve been obsessed with learning and improving my tools and skills. It’s replaced other recreation/hobbies, and I’ve developed a huge appetite for learning and everything related to code. A lot of that was a response to “starting to feel dumb” due to overusing AI. I want to learn new tools and languages, without using AI. I wanted to read docs written by humans, and thought about how cool it would be to index things like stack overflow answers with really nice ux/ui, with better indexing than google (which slops out AI answers as top results now), to quickly answer my programming questions.</p><p>This fuel has unfortunately started to burn low now, where I’m exhausted from overworking, I’m too tired to sit behind my keyboard (and here I am typing). But it’s caused me to introspect a bit deeper, “Why learn to code when smarter people have already written it, why code when AI turns code into clay, is my ego threatened by the democratization of this skill, etc.”.</p><p>I remember before 2022, AI was a buzzword, that CEO’s liked to say “We need AI in our product”, and the devs were like “It’s just linear regression”, and thought, It’s not a magic bullet.</p><p>When GPT was released, I was genuinely shocked and amazed. How did they solve it, “it actually remembers the conversation and has intelligence.”. Turns out just re-reads your whole chat history every single message, kind of dumb… but amazing none the less. By copy pasting from GPT, I built a browser plugin that records network while you mimic user journeys, that allows you to modify recorded API requests as test assertions, and push them up as test suites to Postman. I was using it for many questions/answers. It’s more convenient and less judgmental than asking a human.</p><p>Before vibe coding was coined, I was experimenting with Windsurf and VSCode plugins for agentic coding. I was quickly converted to Claude Code CLI. Beyond using it to code and manage files, I’ve built AI automation into systems which create outputs that would be impossible to write with code. It’s the magical natural-language box you can plug into. And I’ve been swept up into the ideas around spec driven engineering, and orchestrating swarms of autonomous agents in loops, to plan, build, and test software.</p><p>My feed is so full of AI news, I have it coming out of my ears. I’m tired.</p><p>Right now, I feel like none of those things are the “frontier of engineering”; I feel like the frontier of engineering is to build any tools/systems you or other people care about. By building I mean the best quality, pragmatic, optimal and performant code. To write code much better than mode-seeking language models are trained on (it predicts from the most frequently occurring code, which is not good code), with a deep domain knowledge into your problem statement, much deeper than a “large language model” has generally. Sadly, vibe coding has the profound potential to make us dumber. I’m worried that new technologies can have harmful results, like doom scrolling for example, or like not being able to write out a message without using AI.</p><p>What does 10 years of vibe coding look like? You would rather prompt an LLM to update one config because you’re too confused to change 5 characters of code yourself, your default is to type out a sentence, and forgot the keystrokes to search through files.</p><p>The memes are sadly true. Ask GPT: “What should I say now?” We’re glued to our phones, and have an AI assistant that can help us with any problem, “My tummy is upset, what should I eat?” We lose the ability to think for ourselves, and knowledge retention goes down. We stop exercising our neural muscles.</p><p>I also understand that we are missing the point if we only think about using AI in a single terminal to output code one prompt at a time. It can be automated, orchestrated, and iterated. It’s a bit scary. But also has amazing potential.</p><p>In my opinion, the best and most exciting use of AI is to expertly craft a system that handles prompts, tools, loops, context, structured inputs and outputs. We essentially have a function that can process natural language in ways that were never possible before. This should be programmed in a performant way, with relatively few lines of code, and the utmost care. To orchestrate an LLM that outputs structured data, and enable a meaningful workflow that wouldn’t otherwise be possible, is the best. You are orchestrating AI with code, not merely using it to output code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df6c668d62e0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aimonks/programming-and-ai-fatigue-df6c668d62e0">Programming and AI fatigue</a> was originally published in <a href="https://medium.com/aimonks">𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Phoenix Project: Unpacking Valuable Lessons Learned (Part 1)]]></title>
            <link>https://medium.com/swlh/the-phoenix-project-unpacking-valuable-lessons-learned-part-1-685c1362978f?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/685c1362978f</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[lean]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Fri, 14 Feb 2025 11:48:27 GMT</pubDate>
            <atom:updated>2025-02-14T14:12:15.136Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4x4vYbCpgTw8sBMNTsQwmw.jpeg" /></figure><p>In the Phoenix project, protagonist Bill faces the insurmountable task of delivering a late project in a highly toxic, siloed environment where the technical dept soars miles over the roof. Sounds familiar?</p><p>Along the way, he learns valuable lessons from his mentor Erik, an aged and wise ex-floor manager of a car parts manufacturing plant.</p><p>I will summarize some key concepts learned with examples from the book. Namely: <strong><em>“The Theory of Constraints”, </em></strong>“<strong><em>WIP”,</em></strong> <strong><em>“The Three Ways” </em></strong>and,<strong><em> “The Four Types of Work”</em></strong>. These concepts have become pillars of DevOps today, and applying them in your organization can save you a lot of pain, and deliver top results. There are more important concepts I would like to jump into in another article.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDcfU0eKSC9JBFGpm6Uuvg.jpeg" /></figure><h3><strong><em>The Theory of Constraints</em></strong></h3><blockquote>“Eliyahu M. Goldratt, who created the Theory of Constraints, showed us how any improvements made anywhere besides the bottleneck are an illusion. Astonishing, but true! Any improvement made after the bottleneck is useless, because it will always remain starved, waiting for work from the bottleneck. And any improvements made before the bottleneck merely results in more inventory piling up at the bottleneck.” — Erik</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JYOD7gbckABafJ8xIT2HjA.png" /></figure><p>One of the most valuable takeaways from this book is the theory of constraints. If you’re doing work without understanding this, the sensation of “I’ve been living under a rock” might begin to dawn here. But, be encouraged, this will help you know what work to prioritize.</p><p>The theory was laid out in Goldratt’s novel, <em>The Goal</em>, and later refined through various fields like the automotive industry, where Toyota applied similar principles in lean manufacturing practices. It’s since been widely adopted in the Software industry.</p><p>In Erik’s car manufacturing plant the heat treat oven was their constraint, or bottleneck. Any inventory that was released to the heat treat oven would pile up. Anything that came afterwards would be starved and waiting. Thus any improvements made to the process that do not improve your bottleneck are wasted effort.</p><p>So many things could be improved at any given time, but if we wildly improve processes, we are most likely wasting effort. Start by identifying your bottleneck, then exploit it and improve it. Align all other activities to your bottleneck, elevate concerns if the bottleneck isn’t improving, and finally, rinse and repeat. These are called the <em>“The Five Focusing Steps”.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NWVbtyN9pXDaFZq_zFR2Aw.jpeg" /></figure><h3>Work in Process (WIP)</h3><p>The silent killer</p><blockquote>“For decades at this plant, there were piles of inventory everywhere… In hindsight, we now know that WIP is one of the root causes for chronic due-date problems, quality issues, and expediters having to rejuggle priorities every day.</blockquote><blockquote>In the 1980s, this plant was the beneficiary of three incredible scientifically-grounded management movements..: the Theory of Constraints, Lean production…, and Total Quality Management… they all agree on one thing: WIP is the silent killer. Therefore, one of the most critical mechanisms in the management of any plant is job and materials release. Without it, you can’t control WIP.” — Erik</blockquote><p>The same also applies to Sofware:</p><blockquote>“until code is in production, no value is actually being generated, because it’s merely WIP stuck in the system.” — Gene Kim</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLjkWLqqW0pL_zEt7uIXfQ.png" /></figure><p>Taking stock of work in process is crucial in IT operations, thus the use of Kanban boards is highly beneficial. It gives teams a view of exactly what’s being worked on. In the Phoenix Project Bill’s team created written notes of all the work, sticking them to the wall in kanban style. In my experience, a build-up of unreleased code becomes too much to juggle and has negative chaotic effects. For quality and stability, it is much better to have smaller releases, released more often to minimize WIP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lqbSR5HxewG34U1TEVrirA.jpeg" /></figure><h3>The Three Ways</h3><blockquote>“The First Way helps us understand how to create fast flow of work as it moves from Development into IT Operations, because that’s what’s between the business and the customer. The Second Way shows us how to shorten and amplify feedback loops, so we can fix quality at the source and avoid rework. And the Third Way shows us how to create a culture that simultaneously fosters experimentation, learning from failure, and understanding that repetition and practice are the prerequisites to mastery. — Erik</blockquote><h4>The First Way: The Principle of Flow</h4><p>The rushed deadline and deployment of “The Phoenix Project” is a business-sinking failure. Bill begins to see how the lack of collaboration between siloed departments was a lead cause of this. By visualizing the flow of work, and getting everyone to see bottlenecks and how and where their contribution affects the whole flow, he begins to see a reduction in lead time which helps the business release more features faster. Breaking down silos and fostering better communication leads to smoother workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JM-LBJbXVU2rvcyXJQJs9w.png" /><figcaption><em>Continuous Integration and Continuous Deployment Process</em></figcaption></figure><p>Above is a continuous integration and deployment process resulting from this kind of thinking, i.e. analysing the flow of work, and optimising efficiency to reduce WIP. For example, your organization realises that manual UI testing is causing delays. Eventually, effort is made to automate a lot of that testing.</p><h4>The Second Way: The Principle of Feedback</h4><p>This principle stresses the importance of detecting problems early. To do this you need to have frequent feedback. If a process is not working and causing delays, this should be figured out quickly and novel approaches should be taken. This allows teams to fail fast and innovate.</p><p>Sticking with the above example “Manual testing is taking too long”, It would be important to get the feedback quickly and figure out ways to improve it like automation.</p><h4>The Third Way: The Principle of Continual Learning and Experimentation</h4><p>Erik encourages Bill to embrace failure, emphasizing the importance of learning from what doesn’t work, experimenting, and continuously improving.</p><p>In the book, Bill’s team quickly adopted a Kanban board for scheduling releases. At first, the process felt great, teams were finally following a change management process. However, just one week in, nothing was flowing through the board. Implementing the board alone wasn’t good enough; unplanned work was causing bottlenecks. They improved their process by protecting key resources, particularly by protecting Brent, a critical dependency in the company. They stopped allowing people to reach out to Brent directly, allowing him to focus on critical work. Later, they worked on documenting Brent’s knowledge and training others to reduce their reliance on him as a “key person dependency.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LW4VWN2YFwKcU3H8XnDdlw.jpeg" /></figure><h3><strong><em>The Four Types of Work</em></strong></h3><blockquote>“You’ve done a good job exploiting the constraint on several fronts. You’ve reduced reliance on Brent for unplanned work and outages. You’ve even started to figure out how to exploit Brent better for the three other types of work: business and IT projects and changes. Remember, unplanned work kills your ability to do planned work, so you must always do whatever it takes to eradicate it. Murphy does exist, so you’ll always have unplanned work, but it must be handled efficiently. You’ve still got a long way to go.” — Eric</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJgPt5CZ_2lHdad0FepnHQ.png" /></figure><p>Wait, isn’t all “Work” work? Well, no. There are different kinds of work and, a proper understanding of them will help your organization navigate. Different kinds of work require different execution, if we just run in headways, we’re in for a heap of trouble.</p><h4>The First Type of Work: Business Projects</h4><p>This is the most important kind of project your company is billing. It comes down from the CEO’s desk, keeps the lights on, delivers the most value for the company, and unfortunately, very often overshadows any other kind of work that will keep you working overtime if not properly managed. Bill’s team worked on the Phoenix Project, developing and releasing a new product for customers, a high-stakes initiative that impacted the company’s bottom line.</p><h4>The Second Type of Work: Internal Projects</h4><p>Bill’s team worked on upgrading their internal infrastructure, including improving the deployment pipeline to ensure faster and more reliable releases.</p><p>These are activities necessary to keep your organization running smoothly. It could include documentation, training, or the kind of improvements.</p><h4>The Third Type of Work: Changes</h4><p>Bill’s team faced scope creep when new features and requirements were continuously added to the Phoenix Project, extending timelines and impacting the initial delivery.</p><p>Changes can fall into internal or business projects, but they affect delivery.</p><h4>The Fourth Type of Work: Unplanned work</h4><p>Bill’s team had to deal with urgent, unplanned work when a critical system outage occurred, forcing them to drop everything and resolve the issue to prevent further damage to the company’s operations.</p><p>This is the nightmare work that everyone dreads, it’s that 5 pm<em> “we have an emergency”</em> work, that keeps you up all night. This is the most harmful work, as it disrupts all other work. You could also call it firefighting. It must be handled carefully and all stakeholders must become aware of the consequences. We should keep some capacity for this work, like a reserved budget for unknown expenses that could arise.</p><p>Knowing these different kinds of work and being equipped to react to them promptly, helps you prioritize, plan, and allocate resources and ultimately improve the efficiency of your DevOps practices.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=685c1362978f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-phoenix-project-unpacking-valuable-lessons-learned-part-1-685c1362978f">The Phoenix Project: Unpacking Valuable Lessons Learned (Part 1)</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What does “AI Agents Will Replace All Software” actually look like?]]></title>
            <link>https://medium.com/aimonks/what-does-ai-agents-will-replace-all-software-actually-look-like-02bd390f8994?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/02bd390f8994</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 12:19:05 GMT</pubDate>
            <atom:updated>2025-01-31T13:15:14.262Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qu65FFpBjBZ73TucHiQ3NQ.jpeg" /></figure><p>I’ve seen some unease with the radical changes we are facing, and in trying to make sense of it all, join me in making a blurry picture clear. What exactly is an AI Agent even? Hopefully, this can shed some light as we learn about it together.</p><p>Back in the 1960s, a database would be programmed directly to do things like searching. In the 1970s the relational database was born and brought SQL and layered approaches to programming. In the 1980s we got the internet and engineers said “How can we build connected applications?”. Each shift has brought drastic changes to how we build software. Today we have cloud computing, web APIs, DevOps, open source collaboration, global reach and the SaaS business model.</p><p>Now in coming, the next major shift, the elephant in the room, AI.</p><p>Let&#39;s look at a traditional software application approach, here’s a simple example of one typical approach to a SaaS product:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kECvXZ7vPIxsrrbrmQ_DpA.png" /><figcaption>Todays SaaS product</figcaption></figure><blockquote>“The approach we are taking acknowledged that traditional business or SaaS applications may fundamentally change in the agent era. These applications are essentially CRUD (create, read, update and delete) databases with business logic. But in future, this logic will migrate to AI agents,” — Microsoft CEO, Satya Nadella</blockquote><p>So what does “AI Agents Will Replace All Software” look like, and “What is an agent” even?</p><p>In brief, an AI agent is a virtual user, capable of interacting and gathering the context needed to perform advanced tasks, beyond simple text responses.</p><p>Here’s a simple example of an AI Agent completely replacing what has traditionally been a back-end service job, where all the application business logic resides:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*reUfTDC3eXjwjcpox-sUEA.png" /><figcaption>AI-driven product</figcaption></figure><blockquote>“Every business in the future, just like they have an email address, a website, and a social media presence today, is going to have an AI agent that their customers can talk to in the future.” — Meta CEO, Zuckerburg</blockquote><p>Now you can say, <em>“Hey, I want a page for the top X participants in Y last year, where all users can download an Excel report of the monthly Z.”,</em></p><p>This can be done with an AI coding assistant, such as Cline Visual Studio Plugin and Windsurf IDE. It can write code, create files, run terminal commands, and fully automate deployment. However, the experience is way too clunky for a regular user. It needs to become a user-friendly experience, while the Agent gathers information and deploys code in the background.</p><p>One great step forward is Anthropic’s MCP protocol released, in November 2024. Described as “A protocol for seamless integration between LLM applications and external data sources”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0idVyjC5UZHDV0p6zl3Fhg.png" /><figcaption>Claude MCP Protocol, see that it can do github commits on the right</figcaption></figure><p>This protocol allows you to build functionality into the Claude agent, the protocol is open source and you can write functions that the agent can use to do anything, like search the web, write and read from your company&#39;s Database, send an email, or generate a PDF. Using these MCP tools, and simple prompts, Claude Sonet becomes a developer that can build your Software.</p><p>OpenAI provides an Assistant feature that allows hooks into your functions, enabling the AI to perform advanced tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*VzOrrkOC2mwaZfwLnSOzHA.png" /><figcaption>Open Ai’s Assistant Overview</figcaption></figure><p>The interaction is essentially a context of information shared with the AI LMS, such as a thread of back-and-forth messages, a System Instruction, for example, “You should gather information about the user&#39;s food preferences and generate healthy diet plans”, and some actions that the Agent can carry out when ready.</p><p>Perhaps there is only a short way to go before we see the complete dominance of AI agents used for all kinds of business needs in mass. Eventually, these all-in-one AI agents will arrive on the market, undoubtedly owned by the biggest tech companies.</p><p>Today, AI solutions have their limitations and achieving more requires custom code to meet business needs, it’s an exciting time to build better solutions and novel approaches to using AI.</p><p>We’re not seeing a complete replacement but rather an integration. We may need to write a custom function the AI assistant hooks into to perform a business-specific goal. Essentially a smart virtual user embedded into various parts of our applications:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2-Ab6NzlGFD-s8qtDrE1Tw.png" /><figcaption>Over simplified AI Agent integrated Software</figcaption></figure><p>I like this hybrid approach because not all applications make sense to have a chat-style user response, business logic could gather the correct information and construct the prompt for a user, and the user may not even know they are interacting with an LLM. We live in a world where AI can create business apps that interact with the AI itself, it has a domino effect. AI writes the code that interacts with AI and so forth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02bd390f8994" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aimonks/what-does-ai-agents-will-replace-all-software-actually-look-like-02bd390f8994">What does “AI Agents Will Replace All Software” actually look like?</a> was originally published in <a href="https://medium.com/aimonks">𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Common Code Reuse Mistakes to Avoid]]></title>
            <link>https://hbhhathorn.medium.com/common-code-reuse-mistakes-to-avoid-9e9607a88e95?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e9607a88e95</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Fri, 24 Jan 2025 08:47:00 GMT</pubDate>
            <atom:updated>2025-01-24T08:47:00.272Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWrr9_uv7q_Ecy8MVRpAWw.jpeg" /></figure><p>One of the first things I learned about when I started coding was how good it is to reuse code, and not have the same lines copied and pasted all over the place. But needless to say, it’s not always good.</p><p>Before I get to common mistakes, namely repurposing code in confusing ways, let’s first look at two examples of good reuse.</p><p>Extracting code into a reusable utility function is one of the easiest ways:</p><pre><br>static string StripHtml(this string input); // removes HTML syntax<br>static string PrintJson(this string input); // Prints human readable Json</pre><p>With object-oriented programming reusing an abstract base with derived types is also great:</p><pre>public abstract class Instrument {<br>    public ScaleType ScaleType { get; init; }<br>    public int LowestFrequencyHz { get; init; }<br>    public int HighestFrequencyHz { get; init; }<br>    public abstract void Play();<br>}<br><br>public class Sitar : Instrument<br>{<br>    public Sitar()<br>    {<br>        ScaleType = ScaleType.Raga;<br>        LowestFrequencyHz = 200;<br>        HighestFrequencyHz = 2000;<br>    }<br>    public override void Play()<br>    {<br>        RaiseEvent(🎼🎵🎶)<br>    }<br>}</pre><p>So these are two simple ways to effectively and cleanly reuse code, what are the bad ways?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*8-aSXPKdlQJ8G5_iZ_FDLA.gif" /></figure><p>Humans like to find odd and whacky ways to reuse things. Think 1-minute craft life hacks. It&#39;s convenient and efficient. But here in lies our common reuse mistake:</p><h3>Using something for a purpose that it was not originally intended for.</h3><p>Examples would be to reuse a similar DTO to serve two different things.</p><pre>public record UserDto(string Email, <br>string FirstName, <br>string LastName, <br>AdminType AdminType);<br><br>public UserDto LoadProfile(string userName);<br><br>public UserDto LoadAdminProfile(string userName);</pre><p>UserDto is conveniently reused for both LoadProfile and LoadAdminProfile, but only the LoadAdminProfile requires the AdminType field. This can quickly spin out of control when requirements change. This breaks, among others, the essence of the SOLID <strong>Interface Segregation Principle</strong>. Namely, we shouldn’t force things to have things they don’t need.</p><p>This becomes much worse when we start thinking about reusing functions, objects, and structures for new purposes they weren’t originally designed for. Think spaghetti code.</p><p>Typical planning would look like:</p><blockquote><strong>PM:</strong> We have a new requirement. Vendors can now also be Partners and need additional profile info. Can we reuse the “Related Vendor” feature to save that?</blockquote><blockquote><strong>Dev:</strong> Yeah sure, it will be easy. We can just make the foreign key nullable, and reuse those fields.</blockquote><blockquote><strong>PM:</strong> Excellent! So no big changes?</blockquote><blockquote><strong>Dev:</strong> Yeah, it will be easy. We’ll just add some additional business logic for that.</blockquote><p>Here the Related Vendor has fields and endpoints that look similar to the new requirement but also has a foreign key to a related Vendor. Instead of building a new table, they reuse the same APIs to save the new profile information and make the foreign key nullable.</p><p>It‘s a time-efficient way with minimal dev effort, or so it seems. There will be big trouble when either of these requirements changes. The code becomes very confusing and difficult to maintain in the long run.</p><p>Here’s the poorly designed code, with the <em>“we already had RelatedVendor so let&#39;s reuse it”</em> mindset.</p><pre>public class Vendor<br>{<br>    public int Id { get; set; }<br>    public string Name { get; set; }<br>    <br>    // Can be either Related Vendor or Partner<br>    public RelatedVendor RelatedVendor { get; set; }  <br>}<br><br>public class RelatedVendor<br>{<br>    public int Id { get; set; }<br>    // stores related or partner information<br>    public string RelatedInformation { get; set; }<br>    // Nullable to allow for Partners<br>    public int? RelatedVendorId { get; set; }  <br>    public Vendor RelatedVendor { get; set; }  <br>}</pre><p>So how can we avoid getting into this mess?</p><h3>Make better design decisions</h3><p>You’ll thank me later, but if you are in this boat, which I think is natural: <strong>learn better design approaches!</strong></p><p>Go to the drawing board and think <em>“What is a Related Vendor, what is a Partner, what is a Vendor?”</em>. Each is distinct and should be properly thought out and designed for:</p><pre>public abstract class Vendor<br>{<br>    public Guid Id { get; private set; }<br>    public string Name { get; private set; }<br>}<br><br>public class RelatableVendor : Vendor<br>{<br>    public RelatedVendor RelatedVendor { get; private set; }<br>}<br><br>public class PartnerVendor : Vendor<br>{<br>    public string PartnerInformation { get; private set; }<br>}</pre><p>Unfortunately, creating spaghetti comes naturally… perhaps humanity originated in Italy… but then why aren’t people more friendly…</p><p>Alas, there is a way! Start by learning the old accepted and loved design patterns. Domain-driven design is a great place to start. Observe the rules, like creating well-thought-out aggregates with no external navigation properties. This creates a clean separation of concern in your code.</p><p>This was a worthwhile lesson to learn. Coming from a heavy relation database background, with the joys of C# and Entity Framework, I could navigate my entire database schema in a single function. Removing external navigation gave Single Responsibility to my repositories. In the end, my code is modular, cleaner, easier to read and easier to maintain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e9607a88e95" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generative AI: A catalyst for change or historical amnesia (Software Engineering)]]></title>
            <link>https://hbhhathorn.medium.com/generative-ai-a-catalyst-for-change-or-historical-amnesia-software-engineering-bc528f9b74ee?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc528f9b74ee</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Fri, 16 Feb 2024 10:26:38 GMT</pubDate>
            <atom:updated>2024-02-16T10:38:33.224Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nHaRNFpO14-LncYJ1gAtTg.jpeg" /></figure><p>Let’s focus on how AI is changing how we do software engineering.</p><p>Google, StackOverflow, and annoying your seniors are fond memories of any aged engineer. But what about the youngins of today? Have we succumbed to the laziness-induced ChatGPT spoon-feed? Have we forgotten how to properly search Google, namely:</p><blockquote><a href="https://www.google.com/search?q=Microsoft.ML.ModelBuilder.AutoMLService.Experiments.MultiClassificationExperiment.%3CExecuteAsync%3Ed__14.MoveNext()+in+%2F_%2Fsrc%2FMicrosoft.ML.ModelBuilder.AutoMLService%2FExperiments%2FMultiClassificationExperiment.cs%3Aline+140&amp;oq=Microsoft.ML.ModelBuilder.AutoMLService.Experiments.MultiClassificationExperiment.%3CExecuteAsync%3Ed__14.MoveNext()+in+%2F_%2Fsrc%2FMicrosoft.ML.ModelBuilder.AutoMLService%2FExperiments%2FMultiClassificationExperiment.cs%3Aline+140&amp;gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRg7MgYIAhAuGEDSAQcxNjlqMGo5qAIAsAIA&amp;sourceid=chrome&amp;ie=UTF-8">https://www.google.com/search?q=Microsoft.ML.ModelBuilder.AutoMLService.Experiments.MultiClassificationExperiment.%3CExecuteAsync%3Ed__14.MoveNext()+in+%2F_%2Fsrc%2FMicrosoft.ML.ModelBuilder.AutoMLService%2FExperiments%2FMultiClassificationExperiment.cs%3Aline+140&amp;oq=Microsoft.ML.ModelBuilder.AutoMLService.Experiments.MultiClassificationExperiment.%3CExecuteAsync%3Ed__14.MoveNext()+in+%2F_%2Fsrc%2FMicrosoft.ML.ModelBuilder.AutoMLService%2FExperiments%2FMultiClassificationExperiment.cs%3Aline+140&amp;gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRg7MgYIAhAuGEDSAQcxNjlqMGo5qAIAsAIA&amp;sourceid=chrome&amp;ie=UTF-8</a></blockquote><p>Notice the genuinely helpful results I get from Google. There is an art to it, and I&#39;m worried that young engineers might not learn it.</p><p>With that said, Chat GPT is an excellent tool for software engineers. It can efficiently perform a variety of tasks which eliminates toil from your work day. You can ask your “dumb” questions without being downvoted. It opened up new avenues and shattered what I thought was possible.</p><p>But back to the point.</p><p>A blog written by an expert, explaining a concept will almost always be better than what Chat GPT spews out. If you just took an extra 2 minutes to google you could have found that blog and learned something more valuable.</p><p>So my word to you, especially young engineers is to do your due diligence. Research the questions you’re asking beyond the quick answers. Use Chat GPT but also create a StackOverflow account. Ask your questions, get downvoted, get into arguments in the comments, and search for others facing the same problems. Lo and behold you could ask a peer for help, read documentation or search Github issues. You might learn something.</p><p>Here’s the thing:</p><h4>If you are doing the wrong thing, which you probably are, Chat GPT will just help you to do the wrong thing better.</h4><p>It will use your prompt to generate an answer without using the proper interpretation.</p><p>For example, <a href="https://chat.openai.com/share/2fb10608-2915-497a-933b-89da367ef4f4"><strong>Enlarge Dog Bowl Hole</strong></a></p><blockquote><strong>Me: </strong>The hole in my concrete I use for a dog bowl is not big enough, please can you help me to improve this</blockquote><blockquote><strong>ChatGPT: </strong>Certainly! If the hole in your concrete for the dog bowl is not big enough, you can follow these steps to improve it:</blockquote><blockquote>Materials Needed:</blockquote><blockquote>Appropriate safety gear (gloves, safety glasses)<br>Concrete drill bit (appropriate size for the desired hole)….</blockquote><p>This is a terrible answer, It would have been badly downvoted if answered on <a href="https://pets.stackexchange.com/"><strong>pets.stackexchange.com</strong></a> for example. Anyone could tell you <em>“Get a bowl.”</em></p><p>Now what about code? There are plenty of times we are doing the wrong thing, here’s an example:</p><p><a href="https://chat.openai.com/share/690efe9e-b23d-48ee-94e4-40414145eae2"><strong>EF Renaming Table Issue</strong></a></p><blockquote><strong>Me: </strong>EF I have generated migrations and it is dropping my table instead of renaming it</blockquote><blockquote><strong>ChatGPT: </strong>… Disable automatic migrations by setting AutomaticMigrationsEnabled to false in the Configuration…Ensure that you are explicitly using the RenameTable method in your migration to rename the table instead of relying on automatic renaming</blockquote><p>I wouldn’t approve that pull request and I don’t think your team will be too happy either. I googled the same problem with the same phrase <em>“EF I have generated migrations and it is dropping my table instead of renaming it” </em>and after reading a few different answers from humans I much prefer the answers I get.</p><p>Here’s an excellent blog by an expert Mitchel Sellers:</p><p><a href="https://mitchelsellers.com/blog/article/renaming-tables-safely-in-entity-framework-core">Renaming Tables Safely in Entity Framework Core</a></p><blockquote>One method to get around this is to temporarily utilize Data Annotations to guide Entity Framework with what you would like to do; then, after creating a proper migration, you can rename the objects properly and create a blank migration to finalize the change…</blockquote><p>Here’s a trustworthy stack overflow answer, upvoted by many, full of comments and information</p><p><a href="https://stackoverflow.com/a/49802766/7619230">Rename a foreign key in Entity Framework Core without dropping data</a></p><blockquote>(1) Before renaming the entity, “rename” the table and the PK column by using either ToTable and HasColumnName fluent API or data annotations. Also do the same for FK columns referencing the entit</blockquote><blockquote>(2) Add new migration. It will correctly rename the table, PK column, FK columns and the associated constraints</blockquote><blockquote>(3) Remove the annotations / fluent configuration and do the actual class/property rename:</blockquote><p>So is generative AI the paradigm shift we’ve all been waiting for or is it a distraction which stops us from getting the right answers? Are we becoming lazy and learning bad habits by relying on an easy way? It shattered the dome of possibility, it’s here to stay, and it’s a great help, but how do we use it? Do we use it safely?</p><p>I would like to do more research, gather more data and write another article which compares chat GPT answers to things I find on Google.</p><p>Happy coding 🤓</p><pre>// Get your answer safely<br>string question = &quot;Is a burger a sandwich?&quot;;<br>string answer = string.Empty;<br><br>if (TryGoogle(question, out answer) ||<br>    TryStackOverflow(question, out answer) ||<br>    TryDocumentation(question, out answer) ||<br>    TryReadCode(question, out answer) ||<br>    TryChatGpt(question, out answer) ||<br>    TryTalkToYourSenior(question, out answer))<br>{<br>    // You got an answer<br>}<br>else<br>{<br>    // Go get some sleep and come back tomorrow.<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc528f9b74ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Exploring the Art of Software ️]]></title>
            <link>https://hbhhathorn.medium.com/software-like-painting-3e1c1b6e1616?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e1c1b6e1616</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Fri, 01 Sep 2023 14:23:52 GMT</pubDate>
            <atom:updated>2023-09-01T17:14:58.535Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZ2rMtHhuBbspQP8DsFIyw.png" /></figure><p>An analogy I would like to “paint” today is software can be a lot like painting. These similarities have proven to be more painful than it sounds. Perhaps you will relate.</p><p>I don&#39;t know about you, but I never quite know what I’m going to get when I start painting and I never quite know when I’m done. It’s more or less a creative and sporadic explosion. The end result may be beautiful but the process is chaotic.</p><p>Of course, this doesn’t sound ideal when you apply the same methods to software development. What’s worse with software, it’s not only an individual but a team of “artists”. The end result is often like a painting with multiple different brush strokes in different directions and colours. Perhaps you have a beautiful and working application but it’s not easily maintainable. That is “beautiful” but read-only code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*yLl7QFT8PO8W8-Gh0rGKuw.png" /></figure><p>I don’t know a developer who doesn’t want to go back and improve the code they wrote a week ago. “I’ll refactor this later” is one of the biggest myths we tell ourselves.</p><p>There’s nothing I love more than clean architecture with a properly structured domain. But often we end up with a kind of hybrid and not all parts of a large application are coded the same. Let’s not even get started on the promotion of micro-services in “any language you choose”, it’s not just a painting it’s a gallery.</p><p>A level up as a software engineer is to be methodical with the code you write and not end up with a vastly diverse code base. It needs to be well-ordered and structured.</p><p>If I could have one superpower, it would be to create a hyperbolic time chamber, slow down time and come back to work the next day with a completely polished and perfect code base. Maybe it’s the perfectionist in me?</p><p>That’s why starting from scratch is the dream! If you’re lucky enough to be starting a new project, follow my advice: implement a clean, well-structured design pattern. You’ll thank me later!</p><p>I would strongly recommend clean architecture and DDD. Do double, triple, or even quadruple the amount of research before taking the first quick-start article you find. PLEASE. Better yet, learn from experience. We’re all learning daily.</p><p>If you could start a project from scratch today, how would you build it?</p><p>Perhaps the best painting style for software is something clean, like precisionism or minimalism, and not so much impressionism or expressionism.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_nawnC-SZCTtnBTApBUTQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e1c1b6e1616" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integration Tests - Postman vs C#]]></title>
            <link>https://medium.com/swlh/integration-tests-postman-vs-c-5891f3e6197f?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/5891f3e6197f</guid>
            <category><![CDATA[integration-testing]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Fri, 26 May 2023 09:24:11 GMT</pubDate>
            <atom:updated>2023-05-26T09:43:14.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*V1DXNDWJmjx2UK8j21c5dA.png" /></figure><p>So, should we use friendly user GUI test interfaces for non-coding people or should we write happy code?</p><p>Well, that’s entirely up to you, but let’s see why.</p><p>C Hashtag is powerful for writing integration tests for your web APIs. It’s source-controllable and automagical. Whereas, something like Postman or other GUI-based integration test tools may be a smidge less confuscating. However, that too comes with its drawbacks.</p><p>Let’s examine:</p><pre>using NUnit.Framework;<br>using System.Net.Http;<br>using System.Threading.Tasks;<br><br>[TestFixture]<br>public class WebApiTests<br>{<br>    private HttpClient _httpClient;<br><br>    [SetUp]<br>    public void Setup()<br>    {<br>        _httpClient = new HttpClient();<br>        // Set the base address of your sandbox API instance<br>        _httpClient.BaseAddress = new Uri(&quot;https://sandbox.example.com/&quot;);<br>    }<br><br>    [Test]<br>    public async Task GetProduct_ReturnsProduct()<br>    {<br>        // Arrange<br>        var productId = 1;<br>        var requestUrl = $&quot;/api/products/{productId}&quot;;<br><br>        // Act<br>        var response = await _httpClient.GetAsync(requestUrl);<br>        var product = await response.Content.ReadAsAsync&lt;Product&gt;();<br><br>        // Assert<br>        Assert.AreEqual(System.Net.HttpStatusCode.OK, response.StatusCode);<br>        Assert.AreEqual(productId, product.Id);<br>    }<br>}</pre><p>Hmm, beautiful codes 😊</p><p>Here is an example of a C Hashtag integration test that makes a network request to a live API and makes sure that it’s working. Now, let’s say we run the same tests on all the DELETE methods of our production API.</p><p>Herein lies a problem: one needs to be cautious about the potential side effects of the requests you make. Perhaps you would develop a sandbox API instance — one that starts up, reseeds data, and shuts down.</p><p>Well, using GUI for integration tests doesn’t necessarily mitigate that problem. One could argue that it’s much easier to integrate something along these lines by using C hashtag.</p><p>Let&#39;s look at some pros and cons of Postman and C# tests.</p><p>Postman:</p><ul><li>It provides a user-friendly interface for creating and executing API requests. It offers features like request building, response validation, environment variables, and test scripting.</li><li>It allows non-developers or QA testers to create and execute tests easily, without requiring programming skills.</li><li>It is well-suited for manual testing, exploratory testing, and ad hoc API testing.</li><li>It provides a graphical interface that allows you to view and interact with the API responses more intuitively.</li></ul><p>C# Tests:</p><ul><li>It gives you programmatic control over the test logic and allows you to automate the testing process.</li><li>It can be version-controlled, integrated into a continuous integration/continuous deployment (CI/CD) pipeline, and executed as part of an automated test suite.</li><li>It can be written with more complex logic and assertions, making them suitable for comprehensive testing scenarios.</li><li>It can be combined with other types of tests, such as unit tests, to create a comprehensive testing strategy.</li></ul><p>That being said a combination of both approaches can be beneficial. One of the biggest draw points toward writing C# integration tests is that all changes are traceable in source control, vs manually maintaining Postman requests. C# is much easier to have up and running in CI/CD and provides much more control and unlimited possibilities.</p><p>This discussion, however, brings me to another question that I think is very interesting:</p><p>Should a business develop custom software or rely on other SAAS platforms? See this hilarious Mailchimp ad: <a href="https://www.youtube.com/watch?v=GqiCzLrKkCo">https://www.youtube.com/watch?v=GqiCzLrKkCo</a> #TrueStory</p><p>SAAS is often appealing to someone without programming skills. On the other hand, someone who writes codes also knows what a pain building a custom implementation would be. There is always going to be a battle between cost and customization. Also, it’s never going to be a blanket yes or no. It depends on your business needs and goals. Something will always be an obvious yes though- we aren’t going to code our own “Excel” or “Slack”. Hell, why don’t businesses just write their own operating systems for their employees?</p><p>If hyperbolic time chambers were real, perhaps we would have a lot fewer monthly subscriptions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5891f3e6197f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/integration-tests-postman-vs-c-5891f3e6197f">Integration Tests - Postman vs C#</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGpt will replace jobs soon- Software Development jobs soon will be deprecated (for mindless…]]></title>
            <link>https://medium.com/aimonks/chatgpt-will-replace-jobs-soon-software-development-jobs-soon-will-be-deprecated-for-mindless-275532e6da17?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/275532e6da17</guid>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Mon, 08 May 2023 12:48:24 GMT</pubDate>
            <atom:updated>2023-05-10T18:28:55.204Z</atom:updated>
            <content:encoded><![CDATA[<h3>ChatGpt will replace jobs soon- Software Development jobs soon will be deprecated (for mindless, boring, and repetitive programming jobs)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7q3A_-bNrJyuaMqoTGjcwg.jpeg" /><figcaption>Picture worth a 1000 words</figcaption></figure><p>Is anyone else being spammed with clickbait titles like this?</p><p>I have countless headlines like this put in my face. It’s just clickbait that’s trying to prey on people’s anxiety.</p><p>The above image is a “very productive company” according to all the clickbait circulating around the internet. Without a person behind the keyboard (i.e. PEBKAC), a humanless development team is going to SUCK.</p><p>I have made this little acronym SUCK to describe the limitations of AI in software development.</p><p><strong>SUCK</strong>: <strong>S</strong>ubpar <strong>U</strong>nderstanding &amp; <strong>C</strong>reative <strong>K</strong>nowledge gap</p><p><strong>S</strong>ubpar <strong>U</strong>nderstanding — AI/Automation tools have limited understanding and problems understanding the full context of complex problems.</p><p><strong>C</strong>reative <strong>K</strong>nowledge gap — AI lacks imagination, intuition, and innovative thinking.</p><p>Chatgpt is a helpful tool to quickly type out code for ideas that I have. I just see it as a faster way of typing.</p><p>However, typing words is never going to be a problem with programming. It’s the creativity and problem-solving aspects that matter. How many times have you worked on a problem that took days but with only a few lines of code? If it were just the lines of code that would be easy to type in 10 minutes.</p><p>Places that AI language models SUCK:</p><ol><li>Lack of deep understanding of concepts and problem-solving skills that can only be gained through practice and study.</li><li>AI can’t replace the creativity and critical thinking that are required to solve complex problems in programming.</li></ol><p>So, while ChatGPT can be a useful tool for programming, it’s important to continue learning and practicing the craft of programming to improve your skills. Machines can not replicate problem-solving, creativity, and critical thinking, at least not in the near future.</p><p>It’s important to keep in mind that relying solely on a language model may not always result in the most efficient or optimal code. It’s still important to have a solid understanding of programming concepts and to write clean and maintainable code.</p><p>By solid understanding I mean SOLID- single responsibility principle, open-closed principle, Liskov substitution principle, interface seg…. okay you get it.</p><p>Places that AI technology does NOT catastrophically and completely SUCK:</p><ol><li>Automate certain repetitive and low-level tasks, such as writing boilerplate code.</li></ol><p>I don’t think anyone has a problem with losing a mindless and repetitive job. We were always trying to replace those in the first place. See this chapter on eliminating toil in the Google SRE handbook for more reading:<br><a href="https://sre.google/workbook/eliminating-toil/">https://sre.google/workbook/eliminating-toil/</a></p><p>Moreover, AI technology is still in its infancy, and there are many areas where humans continue to outperform machines, such as in developing complex software architectures, designing intuitive user interfaces, and understanding the broader context in which software operates.</p><p>So while AI and automation can certainly change the nature of programming jobs, it is unlikely that they will make them completely irrelevant anytime soon. Instead, they may simply shift the focus of programmers towards higher-level tasks that require more creativity and strategic thinking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=275532e6da17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aimonks/chatgpt-will-replace-jobs-soon-software-development-jobs-soon-will-be-deprecated-for-mindless-275532e6da17">ChatGpt will replace jobs soon- Software Development jobs soon will be deprecated (for mindless…</a> was originally published in <a href="https://medium.com/aimonks">𝐀𝐈 𝐦𝐨𝐧𝐤𝐬.𝐢𝐨</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deploy ASP.NET 6.0 Core Web API to AWS Lambda Easily]]></title>
            <link>https://hbhhathorn.medium.com/how-to-deploy-asp-net-6-0-core-web-api-to-aws-lambda-easily-87fcfd8782a?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/87fcfd8782a</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[dotnet-core]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Fri, 18 Nov 2022 09:08:38 GMT</pubDate>
            <atom:updated>2022-11-18T10:29:17.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*ZOiAEwCy6_n7bnsGSlr7_A.png" /></figure><p>These steps are needed to deploy a new ASP.NET 6.0 Web API using controllers to AWS Lambda. In .Net 6 the startup.cs file has been unified with the program.cs file. If you are still using a startup.cs file you’ll need to follow slightly different steps (leave a comment if you need me to write a tut for that).</p><p>For new projects without a startup.cs take the following steps:</p><ol><li>Install <a href="https://www.nuget.org/packages/Amazon.Lambda.AspNetCoreServer.Hosting/">Amazon.Lambda.AspNetCoreServer.Hosting</a> Nuget Package</li></ol><pre>NuGet\Install-Package Amazon.Lambda.AspNetCoreServer.Hosting -Version 1.3.1</pre><p>2. Add the following line before builder.Build() in your program.cs</p><p>builder.Services.AddAWSLambdaHosting(LambdaEventSource.HttpApi);</p><pre>var builder = WebApplication.CreateBuilder(args);<br><br>// Add services to the container.<br><br>builder.Services.AddControllers();<br><br>builder.Services.AddAWSLambdaHosting(LambdaEventSource.HttpApi);<br><br>var app = builder.Build();<br><br>// Configure the HTTP request pipeline.<br><br>app.UseHttpsRedirection();<br><br>app.UseAuthorization();<br><br>app.MapControllers();<br><br>app.Run();</pre><p>3. Create .Net 6 Lambda</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*83-Kpzdv8Kkfw9difKqjiw.png" /></figure><p>4. Change the Handler to your project&#39;s name, in my case “DeployAspNetToLambda”. It will look for the DLL as the entry point that the build creates in the next step. e.g. DeployAspNetToLambda.dll:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*nh2J9tA149FiQDQ1zjnw1A.png" /></figure><p>5. Publish your ASP.NET Core 6.0 Web API to get the build files:</p><pre>dotnet publish -c Release --self-contained false -r linux-x64 -o publish</pre><p>6. Zip up the contents of your published files and upload the ZIP file to your lambda:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*AxQgqATd_cvcgIJ0q0c23w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*pXPZzdTZxnHTkYRv-F010g.png" /></figure><p>(These are manual steps but it will be easy to add them to a CI pipeline once you understand what you’re doing, you’ll use the AWS CLI to do the publish in the case of CI)</p><p>7. Now you will need to add an API Gateway proxy to trigger your lambda, go tp API Gateways and create an HTTP proxy.</p><p>Choose “Lambda” integration and add your lambda’s ARN</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*cm3Yn5mzr7nBvbgry7efag.png" /></figure><p>Click Next and type /{proxy+} for the resource path, now you can create it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*E_YDoZYci-_h1E238u9rIA.png" /></figure><p>And voilà 👌, you’ll now be able to make web requests to your API 💫💫</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*Wor21EpFKdXgp7gQ1Umd8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*ksv7vAGP8q0xrN6L22OuPA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87fcfd8782a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevOps for Dummies — Part 2]]></title>
            <link>https://medium.com/swlh/devops-for-dummies-part-2-f87d45157638?source=rss-532020f6937e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f87d45157638</guid>
            <category><![CDATA[sre]]></category>
            <category><![CDATA[lean]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[communication]]></category>
            <dc:creator><![CDATA[Harry Hathorn]]></dc:creator>
            <pubDate>Mon, 14 Nov 2022 19:04:30 GMT</pubDate>
            <atom:updated>2022-11-14T19:48:14.485Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*agG_pzOeYsfnesjD7znIwg.jpeg" /></figure><h3>DevOps for Dummies — Part 2</h3><p>Happy are the “Dummies” because they always have space to learn. They’re the best learners and they don’t assume they know everything.</p><p>That’s what DevOps is all about: challenging our assumptions about the way we operate and develop tech. It’s not only for developers or operators but even for synchronizing every member of an organization. It involves re-iterating, learning, and changing through communication.</p><p>In this article I’d like to glean from the gold nuggets shared here:<br><a href="https://www.youtube.com/watch?v=SrmLySIUvpQ">Andrew Clay Shafer — What is DevOps and why should you care?</a></p><p>It was recommended to me and I’d like to return the favour to you.</p><p>DevOps piggybacked on modern cloud computing (mid to late 2000s).</p><p>At high noon, innovators determined this helpful acronym to describe DevOps:</p><h4>CALMS</h4><p>We always need to learn and change but these guiding principles stay the same.</p><p><strong>C<br>ulture <br></strong>Dr. Westrum developed the following topology of organizational culture. The right-hand column shows the elements needed to improve a company&#39;s culture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WhJ9IvNkRleAaFCqKN83pg.png" /><figcaption>Westrum organizational culture</figcaption></figure><p>Sadly, many of us have worked in environments where failure is scapegoated instead of learned from, messengers are “shot” and work is isolated with little or no coordination. We should always seek to improve our organization&#39;s culture.</p><p><strong>A<br>utomation</strong></p><p>Automate everything !!! 🤖💥🥺 Really? No. Architecture is also important. What you automate is important. You wouldn’t want to automate clunky architecture just for the sake of automating.</p><p>Automation should lend itself to eliminating toil and reaching objectives. These principles are found in Google&#39;s implementation of DevOps called Site Reliability Engineering (<strong>SRE</strong>).</p><p>Here’s a link to Google’s SRE book <a href="https://sre.google/sre-book/table-of-contents/">https://sre.google/sre-book/table-of-contents/</a></p><p>Some important chapters to read are:</p><p><a href="https://sre.google/sre-book/eliminating-toil/">Eliminating Toil</a><br>Toil is defined as work that’s manual, repetitive, automatable (a machine could do it), and tactical like moving a million files from one place to another. Those tasks need to be eliminated.</p><p><a href="https://sre.google/sre-book/embracing-risk/">Embracing Risk</a><br>The attempt to reach maximum stability can have high costs and hinder the development of new features and products. Something ‘good enough’ will often outperform something that attempts to reach maximum accuracy. Many times humans can’t even distinguish such a difference in accuracy.</p><p><strong>L<br>ean</strong> is a production method in manufacturing. It started in the automotive industry and is all about continuously improving delivery. It encompasses these principles: continuously improving in culture, automation, metrics, and sharing.</p><p><strong>M<br>etrics</strong> and monitoring underpin DevOps. Monitoring needs to be built into your tech on every level. How else will you know if it’s working and reaching objectives? As shown by Google in the SRE book with their <strong>Service Reliability Hierarchy:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*zHGqtto5Gwr6zqP2c2og_w.jpeg" /><figcaption><strong>Service Reliability Hierarchy </strong><a href="https://sre.google/sre-book/part-III-practices/">https://sre.google/sre-book/part-III-practices/</a></figcaption></figure><p><strong>S<br>haring</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YoNO12_7VVgl3mm0DdE3MQ.jpeg" /><figcaption>Wall of confusion</figcaption></figure><p>DevOps is about removing the ‘wall of confusion’ between isolated people and communities in an organization. Typically it’s about removing the ‘wall of confusion’ between developers, operators, and business people. It’s about bringing an organization into a global community of practice. If each person only cares about doing their job, there will be many gaps. It’s about bridging those relationships and eliminating our assumptions through communication. Bringing each skill-set into the same community of purpose to deliver.</p><p>Software brings all the elements of CALMS together. It allows people to learn and change their behavior to improve and deliver continuously. It’s not software for software&#39;s sake, but it&#39;s for the people that use it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f87d45157638" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/devops-for-dummies-part-2-f87d45157638">DevOps for Dummies — Part 2</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>