<?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 Reflections &amp; Ideas - Desmond Loh on Medium]]></title>
        <description><![CDATA[Stories by Reflections &amp; Ideas - Desmond Loh on Medium]]></description>
        <link>https://medium.com/@desmond2112?source=rss-41f926f594a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vnlk6xDjJMkZfrbXZX8FuQ.jpeg</url>
            <title>Stories by Reflections &amp;amp; Ideas - Desmond Loh on Medium</title>
            <link>https://medium.com/@desmond2112?source=rss-41f926f594a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:03:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@desmond2112/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[Three Years of Forward Deployed Engineers (FDE)]]></title>
            <link>https://medium.com/@desmond2112/three-years-of-forward-deployed-engineers-fde-7bc47b44752f?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bc47b44752f</guid>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Sat, 22 Aug 2026 06:17:55 GMT</pubDate>
            <atom:updated>2026-08-22T06:17:55.450Z</atom:updated>
            <content:encoded><![CDATA[<h4>What Worked, What We Missed, and What’s Next</h4><p>Picture a software engineer glancing over at an analyst’s screen at 4:00 PM. She’s manually cross-checking the same three internal dashboards, and she’s doing so every single day for the past two years.</p><p>Nobody filed a ticket for this. Nobody drafted a business case. The engineer just noticed the bottleneck, grabbed a coffee, sat down next to her, and by the end of the week had shipped an automation tool that eliminated the grind entirely.</p><p>That is an FDE at work. And no, we didn’t start embedding them into teams because FDE is the latest AI-era buzzword. We are about three years into our FDE practice, and this wasn’t our first attempt to bridge the ops-tech gap and improve digital delivery. We had tried attaching business analysts and seconding engineering talents into business units. Those models had their uses but were never designed to solve the deeply entrenched or last-mile problems that get deprioritised, misunderstood by product teams or buried beyond reach of leadership’s radar.</p><p>As it turns out, having engineers directly in the trenches is one of the most effective ways to build and scale practical AI capabilities. They don’t just write code but also work side-by-side with business teams to redesign workflows for maximum impact and build trust boundaries into the AI solutions. That explains why the industry is suddenly seeing a resurgence of this role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*yystX_6KTz3zFfBW-y38qw.png" /><figcaption><em>TLDR (Generated with the aid of Claude)</em></figcaption></figure><h4>The “Textbook” Version</h4><p>The concept traces back to Palantir’s Forward Deployed Engineers, later reorganised into what they called “Deltas”. These are engineers who leave their product organisations, sit with their customers, and build software shoulder-to-shoulder with the people who’ll use it. This reduces the relaying of requirements back to the product team that is several layers away from seeing the actual problem. The premise is straightforward — the closer the engineer is to the pain, the faster and more accurately they can fix it. It’s relatively easy to describe but running it in practice gets tricky once you factor in enterprise architecture and governance standards, pre-existing product roadmaps, and established organisational structures and priorities.</p><h4>Three Things That Made The FDE Practice Work For Us</h4><p>We are now saving north of 10,000 hours a year, and the compounding returns have been a pleasant surprise. Beyond the metrics, our engineers have gained a deep, nuanced understanding of the operational context that used to take years to acquire. Another very valuable outcome gained that is not tracked on a dashboard: it is the shift in trust between ops and tech, which fundamentally changes how digital capabilities are conceived, prioritised, and built. Looking back, these three key factors made our FDE practice work:</p><ol><li><strong>Direct context over relayed specs.</strong> FDEs sit in the team meetings, access real data, and see operational friction firsthand. It is the difference between watching someone navigating a clunky interface in real time versus reading a sanitised requirement or ticket three weeks later. That proximity enables rapid, continuous iteration and validation, rather than a one-time build based on assumptions and static specifications.</li><li><strong>Platforms as engineering multipliers.</strong> An FDE can be only as effective and fast as the tools in their hands. Over the years, we have built (and acquired) low-code workflow tools, an internal developer platform that facilitates scaffolding of production-quality apps quickly, and an AI agent builder platform. You sacrifice customisations and flexibility in tech choices and features, but when solving some of the operational challenges, shipping a working solution today beats building a custom masterpiece eighteen months from now.</li><li><strong>Supervision and guidance anchored in tech.</strong> FDEs are co-located and spend most of their time with the business teams, but their supervision stays tethered to the engineering organisation. That structural choice keeps their work mentored and solutions aligned with enterprise standards, and thus preventing them from quietly drifting into shadow IT.</li></ol><h4>What Our Review Showed Us And What We Are Doing About It</h4><p>We recently gathered the management team, past and present FDEs to review how we did and what we could do to further improve. This is important as we have seen initial successes, and we think there’s a lot more mileage to go as we scale this operating model further in the AI era.</p><p><strong>From thin support structures to virtual FDE Pods<br></strong><em>What’s Not Working:</em> FDEs often felt like they were on an island. Technical mentorship was inconsistent, handovers lacked clarity, and spending most of their week away from central tech made them feel unsupported.</p><p><em>What We Will Try:</em> Every FDE now sits within a virtual, non-full-time FDE Pod consisting of a Manager, a Tech Lead, and potentially an Engineer. It doesn’t require an org-chart rewrite, but it’s a clear answer to “who owns my career development, my technical guidance, and additional engineering support” while I’m out in the field.</p><p><strong>From isolated wins to systematic cross-pollination of solutions and ideas<br></strong><em>What’s Not Working:</em> FDEs solving similar problems in different business units might not know about each other’s work, leading to duplicated efforts and missed opportunities to fix deeper, systematic issues. On top of that, because we were always head-down solving current day challenges, no one was stepping back to discuss how the FDE practice itself was performing as an overall system.</p><p><em>What We Will Try:</em> We have established a dedicated FDE Learning Day every year so that solutions and ideas cross-pollinate across business and tech units. In addition, we are also running quarterly huddles to bring the FDEs, product teams and management together to focus on the meta-level; reviewing the entire system rather than focusing on what any one FDE shipped.</p><p><strong>From app sprawl and burnout to sustainable delivery<br></strong><em>What’s Not Working:</em> Every full-time FDE meant a backfill gap on a product team, and every quick-win solution became an asset someone had to maintain. The FDE practice was starting to become a sustainability bottleneck.</p><p><em>What We Will Try:</em> We are taking a two-pronged approach:<br>1. <strong>Lean in more to feature development on existing flagship products. </strong>Instead of thinking about creating standalone mini-apps and automation tools first, we want our FDEs to prioritise developing features directly on existing flagship products, where sensible. There will be trade-offs such as slightly longer time-to-market but should lead to better overall outcomes. We think this is achievable only with the right level of support of the larger engineering ecosystem and FDE Pods.</p><p><strong>2. Create an alternate Scoped FDE model.</strong> The full-time, 1 to 1.5 years model (now called the Embedded FDE) remains our go-to when business units have complex and ambiguous issues to tackle and require quite extensive discovery and articulation of problem spaces. Instead of an open-ended embed, a Scoped FDE works on a well-defined problem space in a tighter 3 — 6 months cycle. They skip most of the discovery and prioritisation phase because the problem is already known, and can be more focused on execution and iteration. The discipline of working and iterating closely with users doesn’t change, but the shorter, bounded cycles means we can plan staff movements and backfill product teams more predictably. It’s about matching the model to the problem instead of defaulting to the more intensive option every time.</p><p>This isn’t the first time we have adjusted our structures and processes to tighten ops-tech integration, and it certainly won’t be the last. Special thanks to the leaders and users from the business units as they put in the extra effort and time to facilitate our FDEs despite their heavy operational workload. I’m also deeply grateful to our FDEs, product teams, and leadership. Their willingness to experiment, grit in pushing through (hard) changes, and relentless drive to make things better (and provide constructive feedback) are what make this entire practice work!</p><p>Until the next post.</p><p><em>If you are building an FDE practice or navigating similar delivery challenges, I would love to connect and compare notes.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bc47b44752f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tinkering with Abstraction & Thinking about the “AI & Automation Factory”]]></title>
            <link>https://medium.com/@desmond2112/tinkering-with-abstraction-thinking-about-the-ai-automation-factory-dddf0d570a4e?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dddf0d570a4e</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[future-of-work]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 12:45:17 GMT</pubDate>
            <atom:updated>2025-11-24T12:45:17.033Z</atom:updated>
            <content:encoded><![CDATA[<h4>Stop Checking the Moving Averages (Again). Get Notified through n8n &amp; Telegram</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6gQIabq3RyO7-lrOfIiFrg.png" /><figcaption>Image Generated by OpenAI’s ChatGPT</figcaption></figure><h4>Rethinking Agility, Development Velocity &amp; Maintainability</h4><p>In a previous post (<a href="https://medium.com/@desmond2112/stop-checking-the-moving-averages-get-notified-through-go-aws-lambda-telegram-abb31c4c3bcb">Stop Checking the Moving Averages; Get Notified through Go, AWS Lambda &amp; Telegram!</a>), I documented the journey of automating stock market notifications using Go, AWS Lambda, and Telegram. It was a fun week of learning and building, using various cloud technologies to solve a tangible problem.</p><p>However, reflecting on that exercise, a thought lingered: Could I have built this faster? Could I maintain it more easily? And, more importantly, could I extrapolate the learning to be more agile and scale solutions across my organisation?</p><h4>Rebuilding the Notification System with n8n</h4><p>To set the context, my original solution addressed a simple but recurring pain point: manually checking technical analysis indicators (50-day and 200-day simple moving averages) across multiple stock tickers was tedious and error-prone. I built a serverless architecture that would fetch stock data twice daily and push notifications to a Telegram group, eliminating the need for manual checks.</p><p>The architecture worked, the learning was invaluable, and the solution was live. Yet, a question emerged: What if I needed to extend the solution to draw data from other places or add more indicators? Am I able to replicate this solution without requiring the need to understand Lambda, EventBridge, IAM policies, and the nuances of cloud infrastructure?</p><p><strong>Enter n8n: AI Automation Platform + Abstraction through Orchestration<br></strong>This is where <a href="https://n8n.io/">n8n</a> comes in — an open-source, low-code AI workflow automation platform designed to orchestrate tasks across multiple services and data sources. At its core, n8n allows technical teams to build sophisticated automation workflows visually, using pre-built connectors (Nodes) for hundreds of services (from databases and APIs to AI models and communication tools like Telegram), and extensible using JavaScript/Python code.</p><p><strong>Why n8n, specifically?<br></strong>First, it’s really popular and has a vibrant open-source community. This means extensive documentation, active forums, and regular feature releases that address real-world use cases.</p><p>Second, it’s available for self-hosting. In my workplace, we operate in an on-premise environment and n8n’s self-hosting capability is crucial. My teams are experimenting with it, and so I took the chance to tinker with it too, and went ahead to rebuild my notification system using n8n.</p><h4>Simplifying Development, But at What Cost?</h4><p>The rebuilt workflow is simple, with just 2 custom code nodes (I’m probably just not proficient enough and pre-built nodes could have done the job) and the rest being pre-built nodes that mostly required configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*stBQu-SNwocSv-dS1iNzeg.png" /><figcaption>Revamped Workflow of n8n-based Notification Service (of Stock Technical Indicators) {Desmond Loh}</figcaption></figure><p>At first glance, this looks like a no-code dream. Drag, drop, connect, and orchestrate. Yet an important reality check remains.</p><p><strong>The Hidden Complexity: Programming Knowledge Still Required<br></strong>While n8n dramatically reduced the “infrastructure and engineering” burden, it did not eliminate the need for fundamental programming knowledge. To build the workflow effectively, one would still need to understand loops and arrays, JSON structures, expressions and conditionals, and basic JavaScript/Python for custom logic.</p><p>The reality is that n8n sits at an interesting intersection. It heavily abstracts infrastructure and service integrations, but it can’t hide the core concepts of programming. That’s not necessarily a bad thing, because removing it would sacrifice the flexibility needed to develop more generalised solutions, which plagued 4GLs and older low-code/no-code (LCNC) tools.</p><p><strong>Trade-offs: Agility/Velocity/Maintainability vs. Optimisation<br></strong>Building the workflow was way faster (hours instead of days) than the original Go + AWS Lambda approach. I reckon it’s also going to be much easier for me to add new features and maintain the overall solution. But these benefits come with trade-offs.</p><p><strong>Advantages of the n8n approach</strong></p><ol><li>Reduced maintenance burden: The prompt-based AI Agent node handles data formatting and filtering in natural language. I don’t maintain explicit business logic; I describe intent.</li><li>Faster iteration: Changing workflows visually and deploying them is quicker than writing, testing, and deploying code.</li><li>Lower cognitive load: The platform handles orchestration, error handling, and retry logic out of the box. I focus on workflow, not plumbing.</li><li>Maintainability: Visual workflows are easier to understand and review compared to code. In addition, I have way less plumbing and infrastructure to worry about now.</li></ol><p><strong>Disadvantages</strong></p><ol><li>Energy and computing efficiency: An AI Agent node processing data in natural language is computationally less efficient than a hand-optimised code block. Each inference carries significant overhead in terms of computation time and energy utilisation.</li><li>Vendor lock-in (even if open-source): Deep platform-specific knowledge accumulates, making migrations costly.</li></ol><h4>Extrapolating the Experiment: Building an AI &amp; Automation Factory</h4><p>This exercise, though modest in scope, got me thinking beyond the immediate problem.</p><p><strong>Industrialising AI &amp; Automation<br></strong>Like a manufacturing factory that swiftly produces quality goods at scale, we should consider creating a similar setup that enables us to quickly develop and deploy maintainable AI and Automation solutions that solve business challenges.</p><p>An AI &amp; Automation Factory would be a capability built to rapidly deliver solutions that boost productivity, reduce manual errors, unlock new possibilities once out of reach, and accelerate time-to-value for business initiatives.</p><p>It’s more challenging in an on-premise environment without the modern luxuries of Cloud Service Providers and SaaS platforms. But, it’s not impossible. I believe we need four enabling ingredients.</p><p><strong>#1: Cloud-Native Infrastructure<br></strong>This is the foundational layer. Cloud-native infrastructure abstracts underlying hardware complexity and provides self-service compute, storage, and networking capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*VyV377CCene6a-1NouaTuQ.png" /><figcaption>Image Generated by Google’s Nano Banana Pro</figcaption></figure><p>In an on-premise setting, this means GPU provisioning and management for AI/ML workloads, data centre design with cooling, redundancy, and power management, virtualisation and container orchestration (think Kubernetes) to multiplex resources across workloads, Identity and Access Management (IAM) for secure, policy-driven access, observability stack (logging, metrics, tracing) for operational insight, and many more. I would also throw in provisioning of LLMs and OpenAI-compatible APIs.</p><p>This is manpower, time, and budget-intensive. It’s something that requires years of discipline and technical know-how to build.</p><p><strong>#2: Composable Data Architecture<br></strong>AI and Automation are only as good as the data they can access. But making data accessible, governed, and accurate is hard.</p><p>I believe this requires three organisational shifts:</p><ol><li>Treating data as products: Every team that creates or owns data should think of it as a product. What value does it offer? Who are the consumers? How do we ensure quality and timeliness? This mindset shift from “data as a byproduct ” to “data is a product” is critical.</li><li>Adopting API-first development mindset and approach: Data access must be programmatic and standards based e.g. <a href="https://www.openapis.org/">OpenAPI</a>. This decouples data producers from consumers and enables composable, flexible and real-time access patterns.</li><li>Governed data gateways: A governed gateway layer ensures that data access is logged, policies are enforced, and sensitive information is protected. This might take the form of a layer above a data mesh or a centralised data platform, to ensure consistent, secured, and efficient access to data.</li></ol><p><strong>#3: Platforms for Flexible Abstractions<br></strong>This is where n8n and similar platforms fit within the broader strategy. Traditionally, there are two approaches to building digital solutions.</p><p>The conventional path: Full-blown product development with microservices (Java, Go, Rust, etc), React frontends, databases, and APIs. This approach is powerful but painfully slow. Requirements are gathered, architectures designed, code written, tested, deployed. The typical timeline stretches from months to years.</p><p>The low-code/no-code path: Platforms like Power Platform, Airtable can deliver solutions quickly. Rapid prototyping and MVP validation are strengths. However, they often hit a flexibility ceiling. Complex business logic, custom integrations, working beyond the vendor’s ecosystem or performance requirements push beyond their boundaries.</p><p>Newer platforms like n8n occupy a compelling middle ground. They provide high-level abstraction through pre-built nodes and visual orchestration, offer powerful capabilities with AI integration, allow flexibility by code for advanced logic, and ease day-2 operations with clear visual workflows that teams can quickly understand and modify. Such an approach enables higher velocity of solution delivery, while maintaining reasonable flexibility and maintainability.</p><p><strong>#4: Skilled Workforce<br></strong>n8n is described, somewhat accurately, as tools for “flexible AI workflow automation for technical teams”. This creates a capacity ceiling if only software engineers can effectively use these platforms.</p><p>Breaking through this ceiling requires uplifting the broader workforce and “recruiting” more Citizen Developers/Power Users. These are professionals (analysts, consultants, operators) who understand business problems deeply but lack formal software engineering training. They need to be upskilled with fundamental programming concepts (such as loops, arrays, functions, error handling, debugging), current AI development paradigms (such as prompting, agents, understanding model capabilities and limitations), and a dash of courage (with a coding assistant) to write some JavaScript/Python.</p><p>I believe the next 10x in productivity gain will come from scaling the pool of capable builders.</p><h4>Reflecting on the Replatforming Exercise</h4><p>Aside from the speed in replatforming the original notification system to n8n, I felt a sense of relief from the reduced infrastructure overhead. The workflow is now largely visual and day-2 operations are way more straightforward. I am also assured of future extensibility, as I can add custom logic through code, prompt a LLM, or assemble an agentic sub-systems to take care of the task.</p><p>This got me thinking about work, and how we can democratise digitalisation more broadly, especially accelerating and industrialising AI and Automation solutions in the organisation. We have spent the last decade building some of the ingredients necessary for an AI &amp; Automation Factory, and these factors are converging for us to take the next step.</p><p>There is definitely still a place for the conventional product development and simpler LCNC tools, and it would not be wise to abandon them. But it’s useful to recognise that for the right problems, a third path could exist for us to iterate more quickly and create more value.</p><p>Until the next post (in 2026)!</p><p><em>I’m curious to hear your thoughts about AI and Automation. Have you explored n8n or similar platforms? What have been your experiences with the low-code/no-code transition? I’d love to hear your reflections in the comments or connect on this journey toward building smarter factories.</em></p><p><em>Some parts of this post were written with the aid of AI.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dddf0d570a4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reflections on Business Agility & Digital Transformation]]></title>
            <link>https://medium.com/@desmond2112/reflections-on-business-agility-digital-transformation-5bd62b30c3ef?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bd62b30c3ef</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 13:04:43 GMT</pubDate>
            <atom:updated>2025-06-29T13:04:43.754Z</atom:updated>
            <content:encoded><![CDATA[<h4>Thoughts on Sooner Safer Happier: Anti-patterns and Patterns for Business Agility by Jonathan Smart, Myles Ogilvie, Simon Rohrer, and Zsolt Berend</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/0*9hZpXmCYPEMrc3YG.png" /><figcaption>Better Value Sooner Safer Happier (BVSSH) {<a href="https://www.soonersaferhappier.com/">Sooner Safer Happier Official Website</a>}</figcaption></figure><p>In today’s corporate landscape, “Digital Transformation” and “Agile” have become ubiquitous buzzwords. Yet, I’m sure many of us share a familiar experience — grand programmes launched with workplace-wide enthusiasm, only to see that initial hype fade into disillusionment. Promises of reduced costs crumble, timelines stretch indefinitely, and the only visible outcomes are frantic activities and widespread busyness.</p><p>Recently, I was recommended to <em>Sooner Safer Happier: Anti-patterns and Patterns for Business Agility</em>. It was an insightful read, and I’m documenting some of my takeaways and reflections from the book.</p><blockquote>Agile, Lean, and DevOps are not the goal. An organization can score highly on such tests without producing better business outcomes. <strong>The wrong thing can be produced more quickly.</strong></blockquote><h4>Aligning on the Goals, Not Just the Activities/Practices</h4><p>It’s a common trap: teams are bustling, projects are underway, but are we actually moving the needle in the right direction? The key to true impact lies in <strong>aligning on outcomes</strong>, not just the activities or practices we perform.</p><ol><li><strong>Focus on Outcomes</strong>: Instead of prescribing specific methodologies, the emphasis should be on getting the desired outcomes of <strong>Better </strong>(quality),<strong> Value </strong>(from OKR)<strong>, Sooner (</strong>time to value &amp; learning)<strong>, Safer (</strong>continuous compliance)<strong>, Happier </strong>(well-being of customers, colleagues, environment).</li><li><strong>Build the Right Thing.</strong> Avoid the “headless chicken syndrome” where teams are doing busy work but disconnected from the overall company strategy. <br>- Shift from projects to products with long-lived teams focused on long-lived value streams, aligned to the needs of the users.<br>- <strong>Anchor the primary identity of the team to the value stream and users’ needs</strong> over job role function/specialization.<br>- Frame the work as “nested outcome hypotheses” and experimentations.</li></ol><blockquote>Agile in IT only is a local optimization. Everything should be in scope.</blockquote><h4>Navigating Change: Pace, People, and Purpose</h4><p>Transforming an organization isn’t just about implementing new tools or processes; it’s about understanding human behavior and the dynamics of adoption. By managing the pace of change, engaging people effectively, and ensuring leadership alignment, we can move beyond superficial shifts to achieve lasting impact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwtatI18ZcM8EhpjS9V9yg.png" /><figcaption>Overlay of the Diffusion of Innovation Model &amp; Innovation S-curve {ChatGPT generated}</figcaption></figure><ol><li><strong>Achieve Big through Small</strong>. Change isn’t a flip of a switch; it’s a journey best traveled in thoughtful, deliberate steps. Change should be implemented through small, iterative steps that allow for faster learning and quicker benefits.<br>- <strong>People have limited velocity to unlearn and relearn.</strong> <br>- Statistically, people adopt change following an S-curve (which approximates the cumulative probability distribution of the diffusion of innovation curve).</li><li><strong>Invite over Inflicting Change.</strong> Forcing change rarely leads to genuine transformation. Encourage voluntary adoption of new methods instead of inflicting change as that could lead to superficial movements without actual behavioral shifts.<br>- Focus on innovators and early adopters first, as fence-sitters and laggards will eventually follow. <br>- People adopt innovations at different rates.<br>- Communications should be tailored, appealing to <strong>scarcity for innovators</strong> and providing <strong>social proof for the majority</strong>.<br><em>- “Resist” and “Convince” should not enter the vocabulary if done right.</em></li><li><strong>Make It or Break It with Leadership Behavior. </strong>Your leadership team is <strong>Team #1</strong> when it comes to transformation. Grassroots enthusiasm cannot sustain change without genuine leadership buy-in and action.<br>- Leaders must foster <strong>psychological safety</strong> and a <strong>blame-free culture</strong> for experimentation and learning from failures<br>- Leaders must adopt intent-based leadership, pushing decision-making down to those with the relevant information with transparency.<br>- Leaders should focus on coaching and supporting their teams<br>- <em>Shift from traditional “reporting lines” mentality to “supporting lines”</em>.</li><li><strong>Build the Thing Right.</strong> Optimize for the sustainably fast flow of safe value.<br>- Emphasize “safer” (could be cybersec or industrial risks) through continuous compliance, achieving both speed and control.<br>- Right size risk mitigation taking context and risk tolerance into account.<br>- Implement verification points before rapid deployment.</li></ol><h4>Improving Continuously</h4><p>In today’s fast-paced world, standing still means falling behind. True success isn’t found in one-off projects or temporary initiatives, but in the relentless pursuit of continuous improvement.</p><blockquote>Impediments are not in the path; impediments ARE the path.</blockquote><ol><li><strong>Pay Continuous Attention to Technical Excellence. </strong>Improving ways of working is a continuous process, not a program with an end date.<br>- Prioritize a percentage of capacity to develop technical excellence and focus on work improvement activities.<br>- Architect and organize for flow.<br>- Allocate more time to pay off technical debt if your environment is largely legacy</li><li><strong>Create a Learning Ecosystem. </strong>A robust learning ecosystem is the bedrock of business agility. It’s how organizations truly adapt, innovate, and thrive in an ever-changing landscape.<br>- Optimize for collaboration and sharing of tacit knowledge.<br>- Dissolve silos and barriers that prevent information and learning from flowing freely across the organization through practices such as Communities of Practice (CoPs) and awards for knowledge sharing.<br>- <strong>Communicate three times more than you think you need</strong>.<br>- Create<strong> nested learning loops</strong> (daily, weekly, monthly, etc.) at individual, team, and organizational levels to ensure continuous knowledge exchange and improvement.</li></ol><p>Overall, “Sooner Safer Happier” provides important lessons, anti-patterns and patterns for moving beyond the buzzwords and into tangible, sustainable change. I will be happy to come back to this post to remind me that true business agility isn’t about ticking boxes or adopting a set of rigid rules. It’s about a fundamental shift in mindset, focusing on clear outcomes, embracing continuous learning, and recognizing that people and leadership are at the heart of any successful transformation.</p><p>What are your experiences with digital transformation and agile initiatives? Have you encountered similar challenges or discovered patterns that truly drive success? Happy to hear your thoughts in the comments below.</p><p>Until the next post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bd62b30c3ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Takeaways from 38th CIO Workshop, Singapore & Japan, 19–24 May 2025]]></title>
            <link>https://medium.com/@desmond2112/takeaways-from-38th-cio-workshop-singapore-japan-19-24-may-2025-2067d516d628?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2067d516d628</guid>
            <category><![CDATA[smart-cities]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Sun, 01 Jun 2025 23:12:46 GMT</pubDate>
            <atom:updated>2025-06-01T23:12:46.041Z</atom:updated>
            <content:encoded><![CDATA[<h4>Agility in Innovation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JvwAVnSixaV7ekzA7-DB4Q.jpeg" /><figcaption>Participants of 38th CIO Workshop at Osaka Castle for Welcome Reception &amp; Dinner { ITMA }</figcaption></figure><p>Attending the 38th CIO Workshop offered a fascinating glimpse into a long-standing tradition of professional development for IT leadership and collaboration. Originating in the USA in 1986 and brought to Singapore by Accenture in partnership with the IT Management Association (ITMA) in 1988, this forum has evolved to become the longest-running annual event where CIOs and tech leaders from the public and private sectors share best practices and discuss prevailing IT management issues.</p><h3>Singapore Segment — From AI Innovation to Enterprise Transformation</h3><p>A series of speakers from diverse backgrounds delivered briefings, panels and interactive sessions to collectively explore the relationships between human, data, and intelligent systems. These included <em>Sougwen Chung</em>, <em>Assoc Prof Nagaendran Kandiah</em> (Grey Matter Solutions), <em>Donald MacDonald</em> (OCBC), <em>Olivier Klein</em> (AWS), <em>Yip Pin Xiu</em> (Singapore Paralympic champion) and <em>Quah Zheng Wei</em> (Accredify). With <em>Amy Huang</em> (NUS-ISS) also guiding participants through an immersive masterclass on Reverse Brainstorming, a lesser-known problem-solving approach.</p><p>Below are some key takeaways from the Singapore segment.</p><ol><li><strong>Move beyond pilots.</strong> Deploying successful AI initiatives must be conceived with production in mind, ensuring end-to-end integration across the organization. It’s also about embedding AI into products.</li><li><strong>Consider personalization to scale AI.</strong> For some domains, such as healthcare, scaling AI could (counter-intuitively) mean making personalized solutions available.</li><li><strong>Leverage on your competitive advantage — data</strong>. As AI tools and models are universally available (and further democratized over time), the true competitive advantage arises when organizations leverage their unique data. The real differentiator lies in proprietary data, not just the tools.</li><li><strong>Use FOMO as a change management ‘approach’</strong>. It is important to secure leadership sponsorship to ensure AI initiatives are successful and made accessible across the enterprise. However, it’s useful to occasionally consider increasing adoption by driving a ‘fear of missing out’ (FOMO) on new tools and projects.</li><li><strong>Be “agile”.</strong> Just being “fast” is insufficient, and it’s more critical to remain agile and nimble to adapt to changes especially in the increasingly volatile and fast-changing environment we operate in.</li><li><strong>Innovate at the “boundaries”.</strong> Innovation often thrives at the “boundary” between established norms and emerging ideas. For startups, it is even more critical to operate and innovate in such niche spaces instead of serving the masses or offering generic services/products.</li></ol><h3>Overseas Segment (Osaka &amp; Kyoto, Japan)— Human-centered AI, Smart Cities &amp; Insights at Expo 2025</h3><p>The overseas segment took us on a five-day study trip to Osaka and Kyoto, cities renowned for blending centuries of tradition with cutting-edge technological innovation, offering us an exclusive chance to engage with key institutions, startups, and government leaders. Three key themes were highlighted to aid our observations and reflections during the study trip.</p><pre>Monozukuri (ものづくり) - &quot;Art of making and craftsmanship&quot;<br><br>Yarikata (やり方) - &quot;Ways of doing and methodologies&quot;<br><br>Kyosei (共生) - &quot;Symbosis and coexistence&quot;</pre><p>The journey commences in Kyoto University with a seminar on human-centered AI with <em>Koji Murata</em> (Director-General, Office of Institutional Advancement and Communication) and <em>Dr Junichi Tsujii</em> (Director, Artificial Intelligence Research Center (AIRC)), and engagements with startups (such as Ocean Eyes, LegalOn Technologies, Veritus.ai).</p><p>In Osaka, the focus shifts to city-wide digital transformation, featuring a dialogue between the CIOs of Osaka City and Singapore on leveraging technology for urban governance, public service improvement, and smart city development, complemented by site visits and presentations on digital tourism and collaborative innovation. The immersive experience culminates with curated visits to the Expo 2025.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rft3JVAQw0ilZpZLWMk1wA.jpeg" /><figcaption>Clockwise from Top-Left: Posing with Life-sized Gundam at the Gundam Pavilion, The Lab @ Knowledge Capital, Summarizing my Track, Kyoto University &amp; the Symbolic Camphor Tree { Desmond Loh &amp; ITMA }</figcaption></figure><p>Below are some reflections from the Overseas segment, based loosely on the themes.</p><h4><strong>Monozukuri (ものづくり): The Art of Making and Craftsmanship</strong></h4><ol><li><strong>Localized LLM development:</strong> A significant focus on developing specialized tools like the “Swallow LLM,” meticulously fine-tuned for the Japanese language, demonstrating a commitment to creating highly relevant and culturally specific AI solutions.</li><li><strong>Techniques to improve low-resource AI models:</strong> Demonstrations of real-world AI applications, such as image processing for medical diagnostics, including cystoscope-based bladder tumor detection. As there is little data to finetune such AI models, they have leveraged transfer learning and use of AI-generated training data to pre-train the AI models. Interestingly, they have also observed successes with using mathematically generated (fractal) images instead of natural data, and hence ingeniously circumventing copyright and IP issues.</li><li><strong>Advanced Robotics for subtle movements:</strong> Exploration of platforms like <a href="https://github.com/isri-aist/RoboManipBaselines"><em>RoboManipBaselines</em></a> points to ongoing efforts in developing robotics capable of more nuanced and intricate movements, pushing the boundaries of mechanical craftsmanship.</li><li><strong>Commitment to quality:</strong> The mindset of the Japanese reminded me to have an unwavering emphasis on achieving “zero defects” in the products we build. This would be faciliated by having robust Site Reliability Engineering (SRE) practices to ensure the highest standards of reliability and performance.</li></ol><h4>Yarikata (やり方): Ways of Doing and Methodologies</h4><ol><li><strong>Real-World AI application strategy:</strong> Similar to the narratives I heard in Singapore, there was a clear shift towards developing AI that solved real-world problems and has mass-market applicability, moving beyond purely academic or experimentations. There was also a heavy emphasis on leveraging Japan’s inherent strengths in smart sensor technology and robotics, to integrate LLMs strategically.</li><li><strong>Evolving skillsets for the workforce:</strong> With AI improving rapidly and competently performing more and more of the routine tasks, there is a necessity for the workforce to rapidly transition from “drafters” to strategic “verifiers”. The call for lifelong upskilling and reskilling has never been louder.</li><li><strong>Attractive physical space to showcase new concepts to engage the public and solicit early feedback:</strong> It was interesting to visit “The Lab” at the Knowledge Captital where concept demonstrators were presented in open areas, inviting public interaction and testing. The public had a natural motivation to visit “The Lab” as it was strategically placed beside coffee joints, retail outlets and co-working spaces in a mall. On a smaller scale, it would be fascinating to explore such as concept in office to improve our ability to engage and get early feedback for our new products and services.</li></ol><h4>Kyosei (共生): Symbiosis and Coexistence</h4><ol><li><strong>Human-Machine harmony in robotics:</strong> A forward-looking vision for next-generation robotics, emphasizing a closer and more symbiotic interaction between humans and machines, fostering a collaborative coexistence rather than mere automation.</li><li><strong>“Digital-first but not digital-only”.</strong> Both the CIOs of Osaka City and Singapore underscored the importance of inclusivity, emphasizing consideration for the underlying culture and people’s readiness when rolling out digital initiatives.</li><li><strong>Strengthening professional networks:</strong> The workshop proved instrumental in fostering strong bonds and genuine camaraderie among participants, forged through shared learning and experiential journeys. This was an opportunity to rekindle old friendships and cultivate new professional relationships, which strengthens my network for future consultations, mutual support, and collaborations.</li></ol><p>Overall, the 38th CIO Workshop delivered an exceptional five-day immersive experience, marked by intensive learning, insights, and the forging of valuable new professional relationships. My sincere gratitude goes to the organizing teams at Accenture and ITMA for their outstanding efforts in orchestrating such a challenging event. Should my schedule align, I eagerly anticipate future editions.</p><p>Until the next post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2067d516d628" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[More Adventures with AI, Software Engineering & Technical Analysis!]]></title>
            <link>https://medium.com/@desmond2112/more-adventures-with-ai-software-engineering-technical-analysis-bf93a25a2852?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf93a25a2852</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Sun, 02 Mar 2025 14:38:29 GMT</pubDate>
            <atom:updated>2025-03-02T14:38:29.115Z</atom:updated>
            <content:encoded><![CDATA[<h4>Improvements to EzStockIndicators</h4><h4>Recap: Getting Notified with Go, Amazon Web Services (AWS) Offerings, and Telegram Services</h4><p>As I was writing this, I was surprised than it’s been more than 2 years since I first posted about <a href="https://medium.com/@desmond2112/stop-checking-the-moving-averages-get-notified-through-go-aws-lambda-telegram-abb31c4c3bcb">EzStockIndicators</a> (<a href="https://t.me/ezsigrp">https://t.me/ezsigrp</a>). TLDR; it’s a Telegram group/bot solution that you could subscribe to and get notified of key technical indicators of major US stock tickers. Back then (and still do), I wanted consolidated data pushed to me rather than have me pull the data from various websites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*fXmL41_dnqnxbef4_CjOEQ.png" /><figcaption>How EzStockIndicators Look Like { <a href="https://www.linkedin.com/in/lohchinchoong/">Desmond Loh</a> }</figcaption></figure><p>Apart from the <a href="https://medium.com/@desmond2112/keep-calm-manage-software-entropy-f3be87b97313">occasional glitches from the data providers</a> that I wrote about previously, the various services that I’ve deployed have been running without a hitch. Quite a testament to the reliability of AWS and Telegram.</p><h4>New Features Developed with Heavy Support from GenAI</h4><p>I’ve always wanted to add some new features and tweaks to the product. After being busy and occupied the first two months of this year, I finally found some time to get acquainted with the codes and added two more technical indicators to the notifications — Relative Strength Index (RSI) and Williams Percentage Range, both indicators offer statistical probabilities of whether a stock or commodity is overbought or oversold.</p><p>Unlike in 2022, I now have many LLMs and AI tools at my disposable too💪🏻💥, and I wanted to document some of the experiences and thoughts as I added the new features to my backend.</p><h4>Reflection #1 — <strong>10x Developer</strong></h4><p>For this exercise, I used only the Gitlab Copilot extension for VS Code and the Edge Copilot. With the free tier of Gitlab Copilot (released since Dec 2024), I was truly able to speed through the generation of code snippets and fix bugs. Almost all the new codes were an autosuggestion or a prompt away and done within the VS Code interface. There is minimal context switching, and no endless Googling and searching through Stack Overflow.</p><p>But it felt more intuitive for me to pop into Edge Copilot when interacting, extracting and parsing some data from a website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O23p5IrLKx31uXBSrd9E4Q.png" /><figcaption>Edge Copilot Used for Data Extraction and Parsing { <a href="https://www.linkedin.com/in/lohchinchoong/">Desmond Loh</a> }</figcaption></figure><p>In addition, Gitlab Copilot also offered me very impressive suggestions that were contextualized to both my source codes and the problem I was working with. As an example, the grey colored code suggestions in the screencap below were able to express common interpretation about RSI after I just typed the “rsi ≥ 70” (where rsi is just a variable name) in a block of code where I had the intention to display “overbought” or “oversold” depending on the RSI value of the stock. Pretty impressive!</p><p>Alas, the suggestions would at times be incorrect and would lead to compilation errors if applied without any adjustments. In this case, Go does not support ternary operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7E3e7oRttorkApUeLITSLA.png" /><figcaption>Impressive Code Suggestion. If only it’s synthetically correct in Go. { <a href="https://www.linkedin.com/in/lohchinchoong/">Desmond Loh</a> }</figcaption></figure><p>Lastly, while the AI tools made me a much more productive software developer, I don’t think it replaces or makes the engineer/architect think, plan and design faster or better. At least, I wasn’t using GenAI to design a better architecture or offer innovative hypotheses to improve the overall solution. I’m not sure how that would be done, but perhaps, something worth investigating in future.</p><h4>Reflection #2–<strong>Data is still the Oil</strong></h4><p>There have been some articles published and advocating for the new slogan — “AI is the new oil”. However, I think data is still the oil, and AI can only go as far as the underlying data that feeds it. This is evident in the Retrieval Augmentation Generation (RAG) technique where data is provided to provide grounding and minimize hallucinations.</p><p>In my case, I tried all the major AI tools (Gemini, DeepSeek, ChatGPT, Perplexity) and none were able to search and retrieve up-to-date financial data. Such data were typically behind paid subscriptions or had websites with dynamic JavaScript content that made it challenging to scrape.</p><p>It’s still more effective and cost-efficient to use good old-fashioned ways of calling APIs and leveraging on well-structured data products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UPN90siedSjZa6Qf1QCfCQ.jpeg" /><figcaption>Data is still the Oil { Photo by <a href="https://unsplash.com/@purzlbaum?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Claudio Schwarz</a> on <a href="https://unsplash.com/photos/a-close-up-of-a-window-with-a-building-in-the-background-fyeOxvYvIyY?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a> }</figcaption></figure><h4>Reflection #3–Baked-in AI<strong> Assistants will Likely Win the Race</strong></h4><p>I didn’t set out to use Gitlab Copilot and Edge Copilot exclusively, but it turned out that way. In retrospect, I didn’t need to use anything else because these tools met two key criteria — (i) they worked well enough for the task thrown at them; and (ii) they were convenient to access as part of the larger platforms (VS Code and Edge browser respectively) that I was working on.</p><p>Microsoft is already executing with haste on making Copilots available with all their products, and I think introducing a free tier for the Gitlab Copilot integration with VS Code will make it very tough for competitors.</p><p>There are many who also believe that Google might be upended by GenAI-powered Chatbots that can find, summarize and produce targeted search results. However, I think it’s actually less natural to go to the Chatbot website, login, and enter a prompt. It would be more intuitive to type the search query/prompt into the address bar of the browser (that’s typically configured to fire a search to Bing or Google) and have a GenAI-summarized response returned together with citations and other search links. The underlying LLM would just have to be good enough and is integrated as part of the larger ecosystem e.g. browser address bar and the search engine.</p><p>As I conclude this post, I would love to hear your feedback and suggestions.</p><p>Until the next post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf93a25a2852" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Takeaways from STACK Conference 2024, Singapore, 6–7 Nov]]></title>
            <link>https://medium.com/@desmond2112/takeaways-from-stack-conference-2024-singapore-6-7-nov-419ff4cea73f?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/419ff4cea73f</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Sat, 09 Nov 2024 09:42:13 GMT</pubDate>
            <atom:updated>2024-11-09T09:42:13.792Z</atom:updated>
            <content:encoded><![CDATA[<h4>Platforms, Cloud &amp; Strengthening the Core</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SMWQK8HGm6wFw0SK.jpg" /><figcaption>STACK Conference 2024 {GovTech/GovInsider}</figcaption></figure><p><a href="https://www.developer.tech.gov.sg/communities/events/conferences/stack-developer-conference-2024/">STACK Conference 2024</a>, Singapore’s largest government-led developers conference organized by the Government Technology Agency of Singapore (GovTech), is back again in a hybrid format this year. As usual, I’m documenting and sharing some of my key takeaways below.</p><p>The event took place from November 6 to 7, 2024, under the refreshing theme of “Supercharge Your Digital Engineering Productivity.” Dr. Janil (Senior Minister of State at the newly rebranded Ministry of Digital Development and Information) was the Guest of Honour. The lineup of speakers included esteemed individuals from <a href="https://www.tech.gov.sg/">GovTech</a> and other government agencies like <a href="https://www.csit.gov.sg/">CSIT</a> and HDB. Distinguished figures such as Gregor Hohpe (author of the Architect Elevator series), Evan You (creator of Vue.js &amp; Vite), Suthen Thomas Paradatheth (CTO of Grab), and Dr. Tok Wee Hyong (Partner Director of Products at Microsoft’s Cloud and AI Organization), were also present to impart their insights and experiences.</p><h4>Solving Scalability &amp; Productivity with Platforms (and Platform Engineering)</h4><ul><li>The conference featured a lot on Platforms, Cloud (essentially a giant foundational Platform), and related subjects like team topologies and architecture. Although platform engineering is not a panacea and is really challenging to get right, a great Platform stands out by offering the ideal mix of complexity abstraction for engineers while still affording them sufficient flexibility to accelerate and build for a diverse range of applications.</li><li>Two illustrations from Gregor’s presentations stood out for me because they encapsulated the concept of Platforms in an easily understandable and communicable way. As a reminder to myself, it’s useful to draw parallels to the physical world when explaining digital concepts that are intangible. In fact, the tech industry often adopts terminology and ideas from various other disciplines.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*hnnsd4ZHSaW9Ky58-vqqpA.png" /><figcaption>Drawing Parallels — Digital Platform vs Automobile Platform {Gregor Hohpe}</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*3V9TVt6MFFbHu02zYyirAQ.png" /><figcaption>Platforms Provide Meaningful Abstractions but Remain Fleixble for Diverse Applications {Gregor Hohpe}</figcaption></figure><ul><li>Platform engineering should be focused on simplifying the process for other engineers to create products (acting as a force multiplier), rather than creating products for them.</li><li>A good abstraction principle is to name things based on their purpose rather than their function (for example, ‘accelerator’ instead of ‘gas pedal’). This approach provides a higher-level vocabulary that shields the user from the complexities of the lower-level details.</li><li>While not strictly on the topic of Platform, a useful lesson from the <a href="https://architectelevator.com/">Architect Elevator</a> on pitching ideas from the “Engine Room” to the “Penthouse” were to (a) acknowledge the context and mental models that bosses (who have been in industry for years) had and (b) explain the tradeoffs.</li><li><strong><em>Reflection</em></strong><em>: </em>Platform engineering is commonly associated to improving the productivity of software developers. However, I thought it made sense to expand the typology to include the support of other types of engineers (cybersecurity, infrastructure &amp; operations, digital workplace, etc), particularly for on-premise configurations with non-cloud-native commercial off-the-shelf (COTS) products that offer limited API provisioning.</li></ul><h4>Building Organizational Culture as a Catalyst for Innovation</h4><ul><li>GitLab six core values include Collaboration, Results for Customers, Efficiency, Diversity, Inclusion &amp; Belonging, Iteration, and Transparency, together forming the acronym (CREDIT). Of note are the values of Results (ultimately, we are not doing tech for tech&#39;s sake, but to achieve a higher purpose or goal), and Iteration.</li><li>Reframe MVP as Minimum Valuable Product instead of Minimum Viable Product.</li><li>GitLab has shared about the intriguing concept of CEO shadowing. While gig work or micro-attachments within an organization are not new, the idea of shadowing a CEO piques my interest about its ROI and how sensitive boardroom conversations are managed.</li><li>User Experience Design is critical in product development as it mitigates risks, ensures user centricity, and identifies key priorities and the right problems to solve.</li><li><strong><em>Reflection</em></strong><em>: </em>In our organization, we cherish values such as innovation, collaboration, engineering excellence, and giving back to the tech ecosystem. Apart from regularly sharing our experiences and knowledge in our <a href="https://medium.com/csit-tech-blog">CSIT tech blog</a>, we might want to explore additional contribution channels 🤔.</li></ul><h4>Strengthening Software Supply Chain Security</h4><ul><li>Vulnerabilities in software dependencies became a hot topic of interest after a more recent spate of incidents such as the SolarWinds supply chain attack, Log4j vulnerabilities, XZ Utils attack. However, management of the security, integrity and provenance of software dependencies in our products is a really complex topic. There are various standards that one could investigate and subscribe to for best practices — Building Security Maturity Model (BSIMM), <a href="https://owasp.org/www-project-samm/">Software Assurance Maturity Model (SAMM)</a> and <a href="http://Supply-chain Levels for Software Artifacts, or SLSA (&quot;salsa&quot;).">Supply-chain Levels for Software Artifacts (SLSA)</a>.</li><li>A couple of interesting reading materials and tools:<br>- <a href="https://www.atlanticcouncil.org/in-depth-research-reports/report/breaking-trust-shades-of-crisis-across-an-insecure-software-supply-chain/">Breaking trust: Shades of crisis across an insecure software supply chain</a><br>- <a href="https://i.blackhat.com/BH-US-23/Presentations/US-23-Long-Reflections-On-Trust.pdf">Reflections on Trust in the Software Supply Chain (Black Hat)</a><br>- <a href="https://cyclonedx.org/">OWASP CycloneDX Software Bill of Materials (SBOM)</a></li></ul><h4>Keeping Tabs on Other SG Digital Offerings</h4><ul><li><a href="https://plumber.gov.sg/">Plumber</a>. Looks like a really useful Appian/Make/MS Power Platform alternative with integration to tools like Telegram, Excel and more importantly, government services like <a href="https://form.gov.sg/">FormSG</a> and <a href="https://postman.gov.sg/">Postman</a>.</li><li>GCC (Government Commercial Cloud) Marketplace. It’s supposed to reduce procurement efforts of local agencies by providing packaged services and tools through a marketplace that will be made available in 2025. Agencies are then able procure such services at a pre-contracted rate without the need for additional efforts negotiation, contracting and evaluation.</li><li><a href="https://www.developer.tech.gov.sg/products/categories/productivity-tools/aisay/overview.html">AISAY</a>. AI-powered document reader that can detect, scan, extract and comprehend a variety of documents (including IDs, invoices/receipts and bank statements), and is suitable for documents up RESTRICTED/SENSITIVE NORMAL.</li><li><a href="https://www.developer.tech.gov.sg/products/categories/platform/govwallet/overview.html">GovWallet</a>. It provides a backend service (for frontends to call) that supports payments (integration with PayNow and NETS), e-credits and vouchers, virtual points, as well as digital check-in.</li></ul><p>That concludes the STACK 2024 Conference in Singapore. Looking forward to more exciting developments in the next edition!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=419ff4cea73f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An LLM Approach to Continuous Learning (Part 2 of 4)]]></title>
            <link>https://medium.com/@desmond2112/an-llm-approach-to-continuous-learning-part-2-of-4-ef91f8bc49ed?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef91f8bc49ed</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Sun, 06 Oct 2024 13:06:12 GMT</pubDate>
            <atom:updated>2024-10-06T13:06:12.828Z</atom:updated>
            <content:encoded><![CDATA[<h4>Capturing the Conferences &amp; Webinars Attended</h4><p>In <a href="https://medium.com/@desmond2112/an-llm-approach-to-continuous-learning-part-1-of-4-173684065608">part 1 of this series,</a> I outlined the work that I wanted to accomplish with this allegedly useful but over-engineered project. To recap, as proof of ongoing education, I wanted to:</p><ol><li><strong>(Completed in Part 1) Log the books read, </strong>by using LLMs with vision capabilities (<a href="https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/">GPT 40-mini</a>) to extract the book title, author and deduce and categorise the book based on pre-defined labels (e.g. Power Skills, Business Acumen, Ways of Working).</li><li><strong>(Focus of Part 2) Log the conferences and webinars attended into Airtable, </strong>by capturing these activities in my calendars. Again, we shall make use of LLM to categorise the conference/webinar with the same predefined labels.</li><li><strong>(Focus of Part 3) ‘Chat’ with the articles read.</strong> Still thinking about this. But ideally, I would like to either play around with Google’s NotebookLM and/or work with techniques beyond RAG e.g. fine-tuning.</li></ol><h4>Making a Small Detour — Re-evaluating the Logging the Books Read with Llama 3.2 with Vision</h4><p>From the last post to this, Llama 3.2 happened. It was interesting because it’s open-source, comes with multimodal capabilities and is supposed to be as capable as leading (and affordable) models such as GPT 40-miniand Claude 3-Haiku.</p><p>Reusing the same 4 book covers, I tried extracting the book title and author using both the Llama 3.2 11B and 90B models. Apart from different category labels assigned for some of the books, both models were able to capture the titles (including subtitle) and authors perfectly well too.</p><h4><strong>Logging the Conferences and Webinars Attended</strong></h4><p>Most (if not all) of my conference/webinar activities are recorded in my Calendars. As such, it makes sense to automate the retrieval of relevant calendar entries when they are inserted into my Calendar, send them through a REST API to process them, before inserting the records into my database of choice, Airtable. For this post, I’ll be describing the process for Office 365, but the architecture should work for most popular email/calendar platforms, which is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*wGKnDgU5OpgZ9tmAUhy0cQ.png" /></figure><p>For retrieving the calendar entries from Office 365, Microsoft’s Power Automate is actually a very natural and simple Process Automation Platform to tap on. I could quite quickly create the workflow to retrieve relevant calendar entries (marked with a Learning tag), and send the metadata (e.g. subject, body, start and end datetime) to my custom REST API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*kGdooFdZVwDMnKgS70EoOA.png" /><figcaption>Workflow in Microsoft’s Power Automate {Desmond Loh}</figcaption></figure><p>For my custom API, I created the following Pydantic model to record my conference/webinar. Apart from suggesting a category of the event, I took on the feedback from my last post (<em>thanks </em><a href="https://medium.com/u/a7a4f8c8d466"><em>Ong Ting Wei</em></a>) to get GPT 40-mini to generate a short synopsis based on the materials it can find on the event’s website which is extracted from the body of the calendar entry.</p><pre># Create a Pydantic model for the LLM to capture the webinar in a structured format<br>class Webinar(BaseModel):<br>    Title: str<br>    Description: str<br>    Category: str<br>    StartDate: str<br>    EndDate: str<br>    Summary: str<br><br># Get the AI to generate the summary<br>completion = client.chat.completions.create(<br>    model=&quot;gpt-4o-mini&quot;,<br>    messages=[<br>      {<br>        &quot;role&quot;: &quot;system&quot;,<br>        &quot;content&quot;: [<br>          {<br>            &quot;type&quot;: &quot;text&quot;,<br>            &quot;text&quot;: &quot;Based on the title of the webinar or conference attended, <br>                     search the URLs provided as part of the context to gather <br>                     information and summarise a synopsis for the event in <br>                     300 words or less. If you are unable to find relevant <br>                     resources, do not guess and just return a response of NIL only.&quot;<br>          },<br>        ]<br>      },<br>      {<br>        &quot;role&quot;: &quot;user&quot;,<br>        &quot;content&quot;: [<br>          {<br>            &quot;type&quot;: &quot;text&quot;,<br>            &quot;text&quot;: f&quot;Title: {subject} and Context: {body}&quot;<br>          }<br>        ]<br>      },<br>    ],<br>    temperature=0.1,<br>    max_tokens=2048,<br>    response_format={<br>      &quot;type&quot;: &quot;text&quot;<br>    }<br>)<br>summary = completion.choices[0].message.content<br><br># Create the conference/webinar record in Airtable with the <br># AI generated summary &amp; category<br>webinar = Webinar(Title=f&quot;{subject}&quot;,<br>                      Description=f&quot;{body}&quot;,<br>                      Category=category,<br>                      StartDate=f&quot;{startdate}&quot;,<br>                      EndDate=f&quot;{enddate}&quot;,<br>                      Summary=summary)<br>record = webinar_table.create(webinar.model_dump())</pre><p>With that, I have a pretty good log of the conferences/webinars I’ve attended, with a pretty nifty summary to look back to when needed. Some of these learning activities are calls with experts, and hence would not have a summary distillable from any website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yDjU-lxlF3QHtWS6_HjRaQ.png" /><figcaption>Final Outcome (with some hidden columns) in Airtable {Desmond Loh}</figcaption></figure><h4>Reflecting on the Exercise</h4><p>Overall, the outcomes were great. The solution is almost free (the negligible costs are from OpenAI, and AWS is free as my serverless APIs run within the free quota), and it’s pretty easy to maintain.</p><p>While GenAI is all the rage these days, it is probably a convoluted approach to use it to retrieve the Calendar entries. In this case, using a Process Automation tool like Power Automate (or IFTTT, Make, Zapier) is a much more elegant and deterministic solution. Bottom line: we have a toolbox, not everything is a nail that needs a hammer 😝.</p><p>As a final comment, I was mucking around with other Cloud providers, but I gravitated back to Amazon Web Services (AWS). AWS just felt more intuitive, and I was much more productive on it. As for Power Automate, while it works, I thought it could do with more polish and reducing some of the quirks in the software.</p><p>Happy to hear your comments and suggestions. Until the next post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef91f8bc49ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An LLM Approach to Continuous Learning (Part 1 of 4)]]></title>
            <link>https://medium.com/@desmond2112/an-llm-approach-to-continuous-learning-part-1-of-4-173684065608?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/173684065608</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Sun, 18 Aug 2024 15:55:09 GMT</pubDate>
            <atom:updated>2024-08-18T15:55:09.586Z</atom:updated>
            <content:encoded><![CDATA[<h4>Starting Simple: Tracking the Books Read</h4><p>The field of generative AI has advanced greatly since I last wrote. It’s only right that I pick this up with a deep dive into new aspects through a 4-part weekend project😊!</p><p>What triggered me recently was the need to submit my units/credits/points as proof of ongoing education for the renewal of a professional certificate. This is a widely used criterion for renewing certifications (and in the workplace). Some common terms are PDUs (Professional Development Units) or CPE (Continuing Professional Education). Since I hadn’t been consciously tracking the books I read, or the conferences and webinars I participated in, it was a real pain to sift through my calendars, browser history and bookshelf to compile what I did over the past 1 to 3 years!</p><p>Therefore, the goal is to streamline the monitoring of all my learning pursuits, ensuring they are readily accessible at the end of 1-to-3-year intervals for an effortless renewal of my certifications (and employment 😝).</p><p>Naturally, in this era, the utilisation of Large Language Models (LLMs) is indispensable and hence their necessary integration into the solution.</p><h4>Thinking Through the Scope of the Project &amp; High-level Plans</h4><p>While the solution and my Medium posts will evolve along the way, it is necessary to define the overall scope of the project and establish high-level plans. Essentially, I aim to tackle the following:</p><ol><li><strong>Logging the books read.</strong> It would be most convenient if I could simply take a photo of the book cover, send it to a Telegram bot, and have the LLM app extract and store the book’s title and author into a database such as Airtable. It would be interesting to test the extend of LLMs with vision capabilities (<a href="https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/">GPT 40-mini</a>) to perform this task. In addition, I would also like the LLM to deduce and categorise the book based on pre-defined labels (e.g. Power Skills, Business Acumen, Ways of Working) according to the certification body’s criteria.</li><li><strong>Logging the conference and webinars attended.</strong> Most, if not all, activities should be recorded in my calendars. There should be a periodic and automated process for sending calendar entries (e.g., from Outlook, Gmail) to the LLM app to determine if it’s a conference/webinar, categorize the event with the same predefined labels, and store them in Airtable.</li><li><strong>‘Chatting’ with the articles read.</strong> For the final requirement, I will manually log the article titles and URLs into Airtable. However, my goal is to be able to interact with all the articles that I’ve previously read (together my personal notes). While this can be achieved with Retrieval Augmented Generation (RAG), it is prone to inaccuracies and hallucinations. It would be interesting to set up a continuous pipeline to finetune the LLM (with the articles and notes) and observe for improvements to accuracy and other potential side effects.</li></ol><h4>Logging the Books Read</h4><p>We begin with a simpler task of the project: logging the books read. The architecture of the solution is depicted below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*Xovg6MwBxPI764rVqsRhFw.png" /><figcaption>Architecture of LLM-based Solution to Log the Books Read {Desmond Loh}</figcaption></figure><p>Having done some <a href="https://medium.com/@desmond2112/stop-checking-the-moving-averages-get-notified-through-go-aws-lambda-telegram-abb31c4c3bcb"><em>prior work on Telegram Bots</em></a>, I will focus on the development of the LLM app for this post, as we take the chance to investigate the use of GPT 40-mini which is a very capable LLM with vision capabilities to replace conventional OCR tools. An open-source alternative would be the popular <a href="https://llava-vl.github.io/">LLaVa</a> model.</p><p>After the usual instantiations of OpenAPI and Airtable, we created a simple Pydantic model and a function for GPT 40-mini to reply in a structured format i.e. JSON format with the required fields that my Airtable is eventually expecting.</p><pre>class Book(BaseModel):<br>    Title: str<br>    Author: str<br>    Category: str<br><br># Use of GPT 40-mini to extract title and author from a photo of a book cover, and deduce a suitable category for the book<br>def extract_info_from_book_photo(image_url):<br>  response = client.beta.chat.completions.parse(<br>    model=&quot;gpt-4o-mini&quot;,<br>    messages=[      <br>      {<br>        &quot;role&quot;: &quot;user&quot;,<br>        &quot;content&quot;: [<br>          {<br>            &quot;type&quot;: &quot;text&quot;,<br>            &quot;text&quot;: &quot;As an expert in structured data extraction, your task is to extract the full title and author of the book. &quot;<br>                    &quot;Before finalizing your response, cross-check your extracted information with amazon.com and goodreads.com to ensure accuracy. &quot;<br>                    &quot;Based on the title of the book and potentially a synopsis and metadata tagging from amazon.com and goodreads.com, &quot;<br>                    &quot;assign the most suitable category from the options &#39;Business Acumen&#39;, &#39;Ways of Working&#39;, and &#39;Power Skills&#39;, for the book. &quot;<br>                    &quot;Finally, format it according to the provided structure.&quot;<br>          },<br>          {<br>            &quot;type&quot;: &quot;image_url&quot;,<br>            &quot;image_url&quot;: {<br>              &quot;url&quot;: image_url,<br>            },<br>          },<br>        ]<br>      },<br>    ],<br>    temperature=0,<br>    max_tokens=256,<br>    response_format=Book<br>  )<br><br>  return response.choices[0].message.parsed</pre><p>We can then call the above function and pass the structured JSON data model to Airtable easily.</p><pre># Assume uploading of photo of book via TG Bot to snipboard<br>image_url = &quot;REPLACE_WITH_SNIPBOARD_URL&quot;<br><br># Extract the relevant info and have it stored as Structured Output in the Book model<br>book = extract_info_from_book_photo(image_url)<br><br># Create the Airtable record from the Book model<br>record = book_table.create(book.model_dump())<br>book_table.update(record[&quot;id&quot;], {&quot;Cover&quot;: [utils.attachment(image_url)]})</pre><p>I further configured my table with an auto-populating “Start Date” field set to the record’s creation date, and an “End Date” field automatically set to 20 days after the “Start Date,” which is just a rough estimate of the time it takes for me to complete a book. With that, I have a pretty good log of the books I’ve read!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6xLy1U4pFnt1MrdTKheYw.png" /><figcaption>Final Outcome in Airtable {Desmond Loh}</figcaption></figure><h4>Reflecting on the Exercise</h4><p>Overall, the outcomes were excellent. In my limited set of test cases, GPT 40-mini successfully identified the text on the book cover and flawlessly extracted the title and author. In addition, I felt that the development process was both enjoyable and intuitive. Shown below are the books I tested, and corresponding results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*jps47-Rlmxcsz0tQbRScaA.png" /><figcaption>Testing the LLM App with Some Books {Desmond Loh}</figcaption></figure><pre># From top-left to bottom-right<br><br>{&quot;Title&quot;:&quot;Always Day One: How the Tech Titans Stay on Top&quot;,<br> &quot;Author&quot;:&quot;Alex Kantrowitz&quot;,<br> &quot;Category&quot;:&quot;Business Acumen&quot;}<br><br>{&quot;Title&quot;:&quot;the art of explanation&quot;,<br> &quot;Author&quot;:&quot;ROS ATKINS&quot;,<br> &quot;Category&quot;:&quot;Power Skills&quot;}<br><br>{&quot;Title&quot;:&quot;Hit Refresh: The Quest to Rediscover Microsoft&#39;s Soul and Imagine a Better Future for Everyone&quot;, <br> &quot;Author&quot;:&quot;Satya Nadella&quot;,<br> &quot;Category&quot;:&quot;Business Acumen&quot;}<br><br>{&quot;Title&quot;:&quot;Inspired: How to Create Products Customers Love&quot;,<br> &quot;Author&quot;:&quot;Marty Cagan&quot;,<br> &quot;Category&quot;:&quot;Business Acumen&quot;}</pre><p>Future work includes finishing up the implementation, such as uploading of the photo via the Telegram bot to a pastebin-like service for images e.g. <a href="https://snipboard.io/">snipboard.io</a>.</p><p>Work is also needed to accurately capture all authors when there are more than one. Furthermore, the prompt could be enhanced by more clearly defining the various category labels, such as “Ways of Working” versus “Power Skills,” to ensure books are tagged correctly.</p><p>As usual, I would love to hear your comments and suggestions. Stay tuned for Part 2 of 4!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=173684065608" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Software Architect, AI Assistant, and an Intern ‘Walks’ into VS Code]]></title>
            <link>https://medium.com/@desmond2112/a-software-architect-ai-assistant-and-an-intern-walks-into-vs-code-df871f6feda8?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/df871f6feda8</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Sun, 03 Mar 2024 15:04:51 GMT</pubDate>
            <atom:updated>2024-03-03T15:04:51.155Z</atom:updated>
            <content:encoded><![CDATA[<h4>Creating a Browser Extension with Lightning Speed</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*b4sb5m7qHu5H3cyv-l037Q.jpeg" /><figcaption>A Software Architect, AI Assistant, and an Intern ‘Walks’ into VS Code {Photo by <a href="https://unsplash.com/@steve_j?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Steve Johnson</a> on <a href="https://unsplash.com/photos/a-computer-circuit-board-with-a-brain-on-it-_0iV9LmPDn0?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a>}</figcaption></figure><p>During a team meeting last week, my team and I explored the concept of developing a browser extension. The proposal sparked a lively and engaging debate. However, thirty minutes into our discussion, we hit a roadblock as we attempted to outline potential timelines and milestones. Our team, lacking prior experience in the realm of browser extension development—a venture outside our usual scope—found ourselves at a loss. We struggled to accurately estimate the time required for building the extension and deciding on the desired features and agreed to reconvene after doing some research.</p><p>So, over the weekend, I decided to try using ONLY an AI Assistant, ChatGPT, to see how far I could go with this.</p><h4>Asking ChatGPT to Generate a Scaffold for My Extension</h4><p>Although I wanted to start simple, I preferred working towards a working and useful extension at the end of the experiment. I went with the outcome of a TypeScript extension that makes it convenient for me to record notes and snippets of web resources into Notion, which I sort of use as a <a href="https://www.amazon.com/Building-Second-Brain-Organize-Potential/dp/1982167386?&amp;_encoding=UTF8&amp;tag=desmond2112-20&amp;linkCode=ur2&amp;linkId=8c921464dbab8ac61a2c09959f518db1&amp;camp=1789&amp;creative=9325">Second Brain</a>. I wanted to start with the following features:</p><ol><li>Adding a selection of text from a webpage to my selected Notion page</li><li>Adding a selected image from a webpage to my selected Notion page</li><li>Adding any custom text to my selected Notion page</li></ol><p>After my initial prompt, I received a pretty comprehensive step-by-step guide to set up my environment, basic codes to set up the whole skeleton of the project, and even notes on compiling, testing and the use of Notion APIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*4bsH52x1GF4ab2MqhbWtow.png" /><figcaption>Scaffolding Instructions from ChatGPT {Desmond Loh}</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*uta4iqsy-vSqnrx-iJFWFQ.png" /><figcaption>More Scaffolding Instructions from ChatGPT {Desmond Loh}</figcaption></figure><h4>“Negotiating” With ChatGPT to Do a Proper Job</h4><p>Like it or not, but AI does iterative development too. ChatGPT decided to leave the implementation details for the function appendTextToNotion to me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*OCZQl0vHpxt3lQ8S7MkR9A.png" /><figcaption>Iterative Development is Also Practiced by AI {Desmond Loh}</figcaption></figure><p>Like an “intern”, ChatGPT also wanted to train me up by leaving me to figure out the following:</p><ol><li>Implementation of the “similar” function to add images from a webpage to Notion (as seen above).</li><li>Other files such as the popup.html, popup.css and popup.js for the UI when I click on the extension.</li><li>The build script to copy the other non-TS files and the dependencies used into the distribution folder.</li></ol><p>Well, I ain’t got time to figure these out😜. I asked my “mentor” for answers with at least another 20+ prompts, for the implementations and troubleshooting tips when things went wrong. While I was at it, why not get ChatGPT to also generate the various icons (of different sizes) needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*nFkseBgXkHx4cV4Jb1Lwyw.png" /><figcaption>AI Assistant as Resident Graphics Designer too :) {Desmond Loh}</figcaption></figure><h4>Launching My Second Brain Extension (for private use)</h4><p>In summary, it took a little over two hours to implement and successfully run a minimally usable extension. Regrettably, I was only able to implement two out of the three features that I initially planned for, and there are many improvements that I could add to the extension.</p><p>For now, these are the preliminary results from the experiment conducted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxmSoxyAnS0nP0rK-CQ9mQ.png" /><figcaption>Successful Registration of the Second Brain Extension {Desmond Loh}</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*HPn-4KrDlr4yHEL2Ku9NfQ.png" /><figcaption>Context Menu for Sending Selected Text to Notion {Desmond Loh}</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*wUpEln4gSA3uPk5f_YdUZg.png" /><figcaption>Ugly but Functional Notes in Notion. Much Room for Improvements. {Desmond Loh}</figcaption></figure><h4>Reflecting on the Experiment</h4><p>It’s actually quite amazing to go from knowing very little about building Chromium extensions to getting a sub-standard but completely working prototype, within a considerably short amount of time!</p><p>I felt like an architect on my 1st prompt, but quickly descended into feeling like an intern as I plough through the generated codes and sought help from ChatGPT along the way. As I grasped the concepts, I became more confident again and started treating ChatGPT as this incredibly skilled, knowledgeable and experienced programmer I have in the team. And here are some thoughts of my working relationship with my co-pilot:</p><ol><li>Scaffolding/Setting-up — I could get started with a working structure within minutes. However, I noticed that the AI would typically use the simplest method and not necessarily the approach that is most scalable and followed the best practices. In this regard, it is similar to how human intelligence picks up a new task, iterates and polishes the solution over time.</li><li>Coding — amazing speed and accuracy but would often have incomplete implementations that would require more prompting to fill the gaps.</li><li>Troubleshooting — literally ChatGPT has memorized Stack Overflow and numerous product documentation. Hands down a superior experience using it for troubleshooting and to get suggestions for alternatives.</li><li>Learning — this is a tangential point, but as I conversed with ChatGPT, I learned along the way and better understood the mechanics and architecture of a Chromium extension. But this learning was heavily compressed as I learned by doing from the get-go, and there is no wasted time and effort mucking around forums and Stack Overflow.</li></ol><p>Circling back to why I started this experiment, I landed on three conclusions:</p><ol><li>I now have a better idea on the effort and complexities needed to make a polished extension.</li><li>Productivity of software engineering teams that embraces and is skilled in using AI Coding Assistants should at least be doubled, especially if there is access to the Internet and capable LLMs like ChatGPT 4.</li><li>And hence, Co-pilot/AI Coding Assistants are the future and must be embraced. As the saying goes, GenAI is not going to replace us (yet). But the people who leverage such tools would!</li></ol><p>Until the next post :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df871f6feda8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi AI Agent Workflow—The End Is Nigh For Devs]]></title>
            <link>https://medium.com/@desmond2112/multi-ai-agent-workflow-the-end-is-nigh-for-devs-a12561296546?source=rss-41f926f594a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a12561296546</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Reflections & Ideas - Desmond Loh]]></dc:creator>
            <pubDate>Sun, 21 Jan 2024 07:56:22 GMT</pubDate>
            <atom:updated>2024-01-21T07:56:22.600Z</atom:updated>
            <content:encoded><![CDATA[<h4>Tinkering with Microsoft’s Autogen Studio</h4><p>You got me. The title of this post is pretty click-baity. But the rest of the post could arguably be one of the best 10 min you have spent on Medium 😝</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6rj6pQc_00SAr2qFQQkzbw.png" /><figcaption>Autogen Framework {<a href="https://microsoft.github.io/autogen/docs/getting-started">Microsoft</a>}</figcaption></figure><p>First, some definitions.</p><ul><li>Microsoft’s <a href="https://microsoft.github.io/autogen/docs/getting-started">Autogen</a> is a framework that enables the development of Large Language Model (LLM) applications using multiple agents that can converse with each other iteratively to solve tasks. The agents are customizable, allow human participation, and can operate in various modes that employ combinations of LLMs, calls to APIs, custom codes.</li><li>There are 4 key concepts in Autogen — Skill, Model, Agent, Workflow.<br><strong>Skill — </strong>I liken this to OpenAI’s Custom GPTs. It allows for a mixture of prompts and code (e.g. accessing APIs) and can be used by Agents to perform tasks more precisely and quickly as human experts have curated the actions needed to perform such a task. An example could be to send a creative quote of the day to a Telegram bot via API. The LLM will perform better in generating the quotes, but the action of sending it via Telegram API might be more effectively done by custom code.<br><strong>Model — </strong>The configuration of any LLM that we want to use. This is useful as we want to use the best fit-for-purpose LLM for the task.<br><strong>Agent — </strong>The actual “bot” that is configured with our choice of Models, Skills and a pre-configured prompt (aka System Prompt) to best perform the specific task(s).<br><strong>Workflow — </strong>An encapsulation of all the Agents needed to work together to complete all the tasks and fulfil the desired goal.</li><li><a href="https://microsoft.github.io/autogen/blog/2023/12/01/AutoGenStudio/">Autogen Studio</a> is an open-source UI layer that sits on top of Autogen to facilitate rapid prototyping of multi-agent solutions. Instead of wrangling with config files and running scripts, we have a nice look interface to configure and chain the Skills, Models, Agents and Workflows!</li></ul><p>After messing around with Autogen Studio over an afternoon, I think devs will still have their jobs (for now). However, I must say it is a promising framework and it can only improve (probably exponentially) with time.</p><p>In this short post, I wanted to cover my process of setting up Autogen Studio and some reflections from my little experiment.</p><h4>Setting up Autogen Studio</h4><ul><li>Install Conda to manage and isolate our environment. The docs seem to suggest that there is a Docker approach, but I saw that after I was deep into using Conda. We really need to do this for security and to keep a sane workspace as Autogen agents are able to download and install packages/dependencies to complete their tasks. I downloaded and used <a href="https://docs.conda.io/projects/miniconda/en/latest/">miniconda </a>as I prefer not having clutter and unused packages.</li><li>Run Anaconda Prompt (Miniconda3) from the Windows start menu.</li><li>Create the environment for our Autogen project by <br>running the following command.</li></ul><pre>conda create -n autogen python=3.1</pre><ul><li>Activate the environment by running the following command.</li></ul><pre>conda activate autogen</pre><ul><li>You should see this when the environment is activated.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*Ias1__ilJbofRYq1eb9HBg.png" /><figcaption>Activated Autogen environment</figcaption></figure><ul><li>In the activated environment, install autogen and it’s dependencies by running the following command.</li></ul><pre>pip install autogenstudio</pre><ul><li>Autogen is able to use any LLM (even locally hosted ones like LLAMA 2 or Mixtral) as we just need to set up API endpoints for Autogen to access. For starters, using OpenAI’s services is probably the most accessible and convenient. Set up your secret key over at <a href="https://platform.openai.com/api-keys">OpenAI</a>.</li><li>We can finally start the Autogen Studio interface! Run the following command.</li></ul><pre>autogenstudio ui --port 8081</pre><ul><li>Load up your browser with the URL — <a href="http://localhost:8081/">http://localhost:8081/</a></li><li>There are some pre-configured Models. However, you will need to provide your secret key and base URL.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2T-ktit1yB314QuZFzwbyw.png" /><figcaption>Setting up the model (OpenAI gpt-4–1106-preview)</figcaption></figure><h4>Experimenting with Autogen Studio</h4><p>Using the Playground feature in Autogen Studio, I did a simple experiment by running the following prompt through a pre-configured Visualization Agent Workflow which uses OpenAI’s GPT-4 and had a custom System Prompt suited for drawing charts and plots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpNU0PgYpM5WutV_Q2j7Yw.png" /><figcaption>Simple task for my experiment</figcaption></figure><p>As there was only one Agent used in the Workflow, the Agent was essentially having an internal conversation with itself, and these “thoughts” are externalized on the interface. The Agent started by detailing the approach to solve the task, drafting some python code and noted the packages/dependencies required to run the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QYiBDBXqHSmVVi3Hii0ZVg.png" /><figcaption>Agent’s “thoughts” on approach to solve the problem</figcaption></figure><p>I was surprised that the Agent attempted to run the code it generated instead of just providing the codes to the user. However, just as the Agent noted that some dependencies are required, it failed in executing the generated code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*556EGT21IPHbRDUMLA853Q.png" /><figcaption>The Agent failed to run the code as dependencies were not installed.</figcaption></figure><p>The Agent further surprised me by downloading and installing the required packages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCrraNA51Dn4EmIpsIsQ6g.png" /><figcaption>The Agent managed to download and install the required dependencies</figcaption></figure><p>Lastly, the Agent executed the code and provided both the requested image , and a copy of the source code that it used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q4B79cbN1ku0poLgz5UKqQ.png" /><figcaption>Mission accomplished!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*CiJ4ZbjadIPV7xaxJyjyqw.png" /><figcaption>Generated result from my simple experiment</figcaption></figure><h3>Reflecting on the exercise and future works</h3><p>Clearly, this simple experiment did not utilize the full capabilities of Autogen, but it was enough for me to have a sense of the kind of problems that this would be useful for and the impact it would have on work/economies.</p><p>Building upon my finance experiment as an example, we could develop a much more complex Workflow that utilizes Autogen more appropriately. This could include adding Skills and Agents to crawl the web for articles on the ticker, making sense of the public sentiments of the company, drafting summarized notes in Notion for future reference, and sending alerts into my previously created <a href="https://medium.com/@desmond2112/supercharge-your-knowledge-base-with-a-natural-language-q-a-platform-a56adc1fd0ba">Telegram bot</a>. These could all be done with mostly configurations and prompts, some lines of code, and $$ to call OpenAI’s services.</p><p>I think Multi Agent Systems will continue to improve and coupled with RAG (<a href="https://medium.com/@desmond2112/supercharge-your-knowledge-base-with-a-natural-language-q-a-platform-a56adc1fd0ba">see another post I wrote about RAG</a>), will be quite a game-changer in the workplace. As LLMs for code continue to improve, the Agents will also become more competent and “promote” from junior to senior devs/tech leads to augment the engineering workforce (and in some cases could replace the less productive junior devs too).</p><p>I’m still the architect at this juncture (I think so😅) as I develop the overall Workflow. But, as shown earlier, Agents are able to develop plans, reason, converse about, and course correct. So, who knows how much longer before the Agents “promote” yet again. What a time to be alive!</p><p>Until the next post!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a12561296546" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>