<?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 Ove Q on Medium]]></title>
        <description><![CDATA[Stories by Ove Q on Medium]]></description>
        <link>https://medium.com/@ovekua?source=rss-44da141e66bc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aJAfB246Lpd9E_PX.jpg</url>
            <title>Stories by Ove Q on Medium</title>
            <link>https://medium.com/@ovekua?source=rss-44da141e66bc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:28:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ovekua/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[Building Cerberos: How a Distributed AI System Became My Tech Leadership Playground]]></title>
            <link>https://ovekua.medium.com/building-cerberos-how-a-distributed-ai-system-became-my-tech-leadership-playground-67f7bd66f6f3?source=rss-44da141e66bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/67f7bd66f6f3</guid>
            <category><![CDATA[tech-leadership]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ove Q]]></dc:creator>
            <pubDate>Sat, 11 Oct 2025 07:02:06 GMT</pubDate>
            <atom:updated>2025-10-11T07:02:06.416Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>From Post-Surgery Morphine Dreams to Production-Ready Infrastructure in 7 Days</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SKcCOO2yce5kiLKtyg1dXQ.png" /><figcaption><em>The Cerberos cluster: Six Raspberry Pi nodes working in harmony</em></figcaption></figure><p><strong>The Beginning: When Pain Medication Sparks Innovation</strong></p><p>It started with morphine.</p><p>Not the best foundation for a technical project, I’ll admit. Fresh out of major surgery, foggy-headed but unable to sleep, I sketched out what seemed like an impossible idea: a distributed machine learning system running entirely on Raspberry Pi hardware, coordinated by MQTT, with multiple AI models working in concert.</p><p>Seven days later, it was running in production.</p><p>But this isn’t just a story about building a distributed AI system on budget hardware. It’s about what I learned about technical leadership when every architectural decision was mine to make, every design pattern was mine to implement, and every test was mine to write.</p><p>Project Cerberos became my playground for understanding what it truly means to be a tech lead.</p><p><strong>What Real Tech Leadership Looks Like</strong></p><p>Building systems that work is one thing. Building systems that teach you leadership is something else entirely.</p><p>Over the past month working on Cerberos, I&#39;ve discovered that tech leadership isn&#39;t about having all the answers. It&#39;s about making architectural choices that enable others to succeed. It&#39;s about setting quality standards that protect production. It&#39;s about seeing patterns—both design patterns and system patterns—across technologies and applying them consistently.</p><p>Here&#39;s what that actually looks like in practice:</p><p><strong>Architectural Vision: Seeing the System Before Writing Code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LsVF3Cs3CMszcWb949miXw.png" /><figcaption><em>The server fleet: Each node with a specialized purpose</em></figcaption></figure><p>Cerberos uses MQTT as a communication backbone connecting camera capture, TensorFlow Lite inference, React frontends, and multiple LLM servers. Each node has a specialized role:</p><blockquote><strong>ICHI - Storage &amp; Services</strong></blockquote><ul><li>Docker orchestration</li><li>NFS storage (950MB/s performance)</li><li>Ollama AI model hosting (qwen2.5:1.5b-instruct)</li><li>PostgreSQL with pgvector extension</li></ul><blockquote><strong>NI - ML Processing Engine</strong></blockquote><ul><li>TensorFlow Lite inference</li><li>ARM64-optimized performance</li><li>Sub-second ML predictions</li><li>GPIO and IoT interface</li></ul><blockquote><strong>SAN - Integration Hub</strong></blockquote><ul><li>MQTT broker (Mosquitto on ports 1883/9001)</li><li>React + TypeScript frontend</li><li>PM2 process management</li><li>Real-time monitoring coordination</li></ul><blockquote><strong>CHI - Physical Interface</strong></blockquote><ul><li>Raspberry Pi 3B + Google AIY Voice Hat</li><li>Camera capture (1280x720, libcamera-still)</li><li>Voice processing and button interactions</li><li>GPIO trigger system</li></ul><blockquote><strong>GHOST - Build Server</strong></blockquote><ul><li>Windows-based development node</li><li>Docker registry cache (port 5000)</li><li>Ollama LLM (qwen2.5-coder:7b)</li><li>Cross-platform build coordination</li></ul><blockquote><strong>KORSAIR - Development Node</strong></blockquote><ul><li>Local testing and development</li><li>Ollama LLM (phi4 model)</li><li>PowerShell profile integration</li><li>AI-assisted development workflows</li></ul><p>This isn&#39;t just good architecture—it&#39;s thinking about how teams scale, how systems evolve, and how complexity gets managed over time. Each component talks to others through well-defined interfaces. No single point of failure. Pure distributed systems thinking.</p><p><strong>Quality as a Standard, Not an Afterthought</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bk8ykkle82Yj0tFdTcukSw.png" /><figcaption><em>The complete technology stack: Enterprise tools on hobby hardware</em></figcaption></figure><p><strong>104 tests</strong>. 100% passing. Not because someone mandated it, but because that&#39;s what production systems demand.</p><p>Every server has its own test suite:</p><ul><li><strong>Chi Tests</strong>: Camera hardware, GPIO interactions, button triggers</li><li><strong>Ni Tests</strong>: ML inference, TensorFlow Lite models, performance benchmarks</li><li><strong>Ichi Tests</strong>: Database operations, pgvector queries, Docker services</li><li><strong>San Tests</strong>: Frontend E2E (Playwright), MQTT communication, API endpoints</li></ul><p>Coverage targets range from 70-80%. Test-Driven Development isn&#39;t a buzzword here—it&#39;s the methodology that keeps a distributed system from falling apart.</p><p>The testing framework spans multiple technologies:</p><ul><li><strong>Python</strong>: pytest with comprehensive fixtures</li><li><strong>TypeScript</strong>: Jest for unit tests, Playwright for E2E</li><li><strong>Integration</strong>: Full system tests across all nodes</li><li><strong>Performance</strong>: Benchmark suites with ARM64 optimization</li></ul><p><em>When all 104 tests turned green simultaneously across all six servers—that was the moment I knew we had something special. Enterprise-grade distributed AI on $280 hardware.</em></p><p><strong>Multi-Technology Integration: The Full Stack Reality</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d8Gcx2VJdrhL0vTAkxrBUw.png" /><figcaption><em>Dual AI development: Using the system to build itself</em></figcaption></figure><p>A tech lead doesn&#39;t live in a single stack. Cerberos spans:</p><p><strong>Backend Technologies</strong>:</p><ul><li>Python for ML inference and camera control</li><li>TensorFlow Lite for ARM64-optimized models</li><li>PostgreSQL + pgvector for embeddings</li><li>FastAPI for backend services</li><li>MQTT (Mosquitto) for messaging</li></ul><p><strong>Frontend Technologies</strong>:</p><ul><li>React + TypeScript for type-safe UI</li><li>Vite for build tooling</li><li>Tailwind CSS for styling</li><li>WebSocket for real-time MQTT</li><li>PM2 for process management</li></ul><p><strong>Infrastructure</strong>:</p><ul><li>Docker for containerization</li><li>Nginx for reverse proxy</li><li>NFS for distributed storage</li><li>Systemd for service management</li><li>SSH for remote orchestration</li></ul><p><strong>Monitoring &amp; Observability</strong>:</p><ul><li>Grafana for dashboards</li><li>Prometheus for metrics</li><li>Loki for log aggregation</li><li>Custom heartbeat system (30s intervals)</li></ul><p><strong>AI Integration</strong>:</p><ul><li>3 specialized Ollama models</li><li>Multi-server LLM processing</li><li>Real-time inference pipeline</li><li>Context-aware responses</li></ul><p><em>Leading means understanding enough of each to make informed decisions and spot integration problems before they become production fires.</em></p><p><strong>Design Patterns as Architectural Language</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WUX7dODGsx-AmzGj6Js6-g.png" /><figcaption><em>Keeping things cool: Performance under pressure</em></figcaption></figure><p>Theory is useless without practice. Cerberos implements Gang of Four design patterns where they actually solve real problems.</p><p><strong>Strategy Pattern - Camera Modes</strong></p><p>The camera settings system uses Strategy Pattern for five different capture modes that can switch at runtime:</p><ol><li><strong>DefaultMode</strong>: Balanced settings (1280x720, quality 85)</li><li><strong>LowLightMode</strong>: Dark optimization (brightness +30, contrast +20)</li></ol><p>3. <strong>HighResolutionMode</strong>: Maximum detail (1920x1080, quality 100)</p><p>4. <strong>FastCaptureMode</strong>: Speed priority (640x480, 1s interval)</p><p>5. <strong>PowerSavingMode</strong>: Battery life (30s interval, auto-capture off)</p><pre>// Strategy Pattern Implementation<br>export class CameraModeContext {<br>  private strategy: CameraModeStrategy;<br>  private availableStrategies: Map&lt;string, CameraModeStrategy&gt;;<br>  <br>  setStrategy(modeName: string): boolean {<br>  const strategy = this.availableStrategies.get(modeName);<br>  <br>  if (strategy) {<br>    this.strategy = strategy;<br>    return true;<br>  }<br>    return false;<br>  }<br>  <br>  applyMode(baseSettings: CameraSettings): CameraSettings {<br>    return this.strategy.applySettings(baseSettings);<br>  }<br> }</pre><p>When you implement Strategy Pattern correctly, adding a new camera mode takes 20 lines of code, not 200 lines of conditionals.</p><p><strong>Observer Pattern - Settings Management</strong></p><p>Observer Pattern manages settings changes with multi-observer notifications and localStorage persistence:</p><pre>export class CameraSettingsManager implements CameraSubject {<br>  private observers: CameraObserver[] = [];<br>  private settings: CameraSettings;<br><br>  attach(observer: CameraObserver): void {<br>    this.observers.push(observer);<br>  }<br><br>  notify(): void {<br>    this.observers.forEach(observer =&gt; observer.update(this.settings));<br>  }<br><br>  updateSettings(newSettings: Partial&lt;CameraSettings&gt;): void {<br>    this.settings = { ...this.settings, ...newSettings };<br>    this.saveToLocalStorage();<br>    this.notify();<br>  }<br>}</pre><p>When you use Observer Pattern properly, components decouple naturally and testing becomes straightforward.</p><p><strong>Factory Pattern - Validation</strong></p><p>Factory Pattern centralizes validation logic across six validator types with consistent error handling:</p><pre>export class SettingsValidatorFactory {<br>  static getValidator(settingName: string): ISettingsValidator {<br>    switch (settingName) {<br>      case &#39;resolution&#39;: return new ResolutionValidator();<br>      case &#39;captureInterval&#39;: return new IntervalValidator();<br>      case &#39;imageQuality&#39;: return new QualityValidator();<br>      case &#39;brightness&#39;: return new RangeValidator(-100, 100);<br>      case &#39;contrast&#39;: return new RangeValidator(-100, 100);<br>      case &#39;autoCapture&#39;: return new BooleanValidator();<br>      default: throw new Error(`Unknown setting: ${settingName}`);<br>      }<br>    }<br><br>  static validateAll(settings: CameraSettings): ValidationResult {<br>  // Batch validation with consistent error reporting<br>  }<br>}</pre><p>When Factory Pattern centralizes validation, error handling becomes consistent across the entire system.</p><p>These patterns aren&#39;t just academic exercises—they&#39;re 1,760 lines of production code with 60+ tests proving the patterns work. These patterns aren&#39;t just academic concepts—they&#39;re force multipliers that make complex systems maintainable.</p><p><strong>Systems Thinking at Scale</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1gNp09ctAFMutqjMn_R1g.png" /><figcaption><em>Mission Control: Grafana dashboards showing real-time metrics</em></figcaption></figure><p>When you&#39;re coordinating multiple servers in a distributed cluster, deployment can&#39;t be manual. The build-and-deploy pipeline demonstrates systems thinking:</p><pre># build-and-deploy.ps1 - One command to rule them all<br>.\scripts\deployment\build-frontend.ps1 -Clean<br>.\scripts\deployment\deploy-frontend.ps1<br>ssh cerberos-san &quot;cd /home/admin/cerberos-frontend &amp;&amp; pm2 restart ecosystem.config.cjs&quot;</pre><p>This single command:</p><p>1. Compiles TypeScript in strict mode</p><p>2. Runs ESLint with zero-tolerance</p><p>3. Packages with Vite optimization</p><p>4. Deploys over SSH to San server</p><p>5. Restarts PM2 processes gracefully</p><p>6. Validates frontend responds (HTTP 200)</p><p>That&#39;s thinking about developer experience, repeatability, and reducing cognitive load. It&#39;s infrastructure that enables teams to move fast.</p><h3><strong>Monitoring That Actually Works</strong></h3><p>The monitoring setup rivals AWS IoT Greengrass or Azure IoT Edge—but runs on $280 hardware:</p><ul><li><strong>Real-time dashboards</strong>: Grafana with custom panels</li><li><strong>Log aggregation</strong>: Loki collecting from all servers</li><li><strong>Heartbeat system</strong>: 30-second health checks</li><li><strong>Automated alerts</strong>: Slack/email notifications</li><li><strong>Performance metrics</strong>: CPU, memory, temperature, throughput</li><li><strong>MQTT visualization</strong>: Message flow and latency</li></ul><p>The goal: Know about problems before users do. My monitoring system caught 15+ issues in testing that would have been production incidents:</p><ul><li>Camera server timeout (MQTT heartbeat monitoring)</li><li>ML server memory leak (automated memory alerts)</li><li>Network partition between servers (communication gap alerts)</li><li>Docker registry cache corruption (build performance alerts)</li></ul><p><strong>Documentation as Force Multiplication</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*izTo8lKcbSiI7jwN6mjYTg.png" /><figcaption><em>What’s next: Evolution and expansion plans</em></figcaption></figure><p>Over 1,100 lines of context documentation. Comprehensive exports. Architecture decision records. Troubleshooting guides. PowerShell profiles that integrate local LLMs with full project context.</p><p><strong>CERBEROS_CONTEXT.md</strong> serves as the single source of truth:</p><ul><li>Complete architecture overview</li><li>Server configurations and roles</li><li>MQTT communication patterns</li><li>Testing framework structure</li><li>Deployment workflows</li><li>Troubleshooting guides</li><li>Change history with rationale</li></ul><p><em>Documentation isn&#39;t overhead—it&#39;s how you scale yourself. It&#39;s how the next person (or future you) understands not just what was built, but why.</em></p><p>The PowerShell profile integration goes further:</p><pre>function cerberos {<br>param([string]$Query)<br>$context = Get-Content &quot;CERBEROS_CONTEXT.md&quot; -Raw<br>ollama run phi4 &quot;Context: $context`n`nQuery: $Query&quot;<br>}</pre><p>Now anyone can ask: &quot;<em>How do I deploy the frontend?</em>&quot; or &quot;<em>Why did we choose MQTT?</em>&quot; and get immediate, context-aware answers from the AI that lives in the system.</p><p><strong>Production Readiness: The Difference Between Demo and Dependable</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8n1VU6wMHLyjOMCPy2jJBA.png" /><figcaption><em>The real frontend: What users actually see and interact with</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJGxoHlIekhCQ_dhnfh_hw.png" /><figcaption><em>One button press: Complete pipeline from camera to AI analysis</em></figcaption></figure><p>Real systems need more than just features:</p><p><strong>Reliability</strong>:</p><ul><li>PM2 process management with automatic restarts</li><li>Comprehensive error boundaries in frontend</li><li>Graceful degradation when services fail</li><li>Retry logic with exponential backoff</li></ul><p><strong>Security</strong>:</p><ul><li>SSH key-based authentication</li><li>Nginx reverse proxy with rate limiting</li><li>No hardcoded credentials</li><li>Environment variable configuration</li></ul><p><strong>Performance</strong>:</p><ul><li>Docker registry caching (5x faster builds)</li><li>NFS storage optimization (950MB/s)</li><li>ARM64-native compilation</li><li>Parallel test execution</li></ul><p><strong>Observability</strong>:</p><ul><li>Structured logging with correlation IDs</li><li>Distributed tracing across services</li><li>Real-time performance metrics</li><li>Historical trend analysis</li></ul><p>These aren&#39;t exciting features—they&#39;re the difference between a demo and something you can actually depend on.</p><p>---</p><p><strong>The ARM64 Reality: Battles Won</strong></p><p>Building for ARM64 architecture taught me patience and persistence:</p><p><strong>TensorFlow Lite</strong>: 3 failed attempts before finding the right ARM64 wheels. The magic combination: Python 3.11 + specific NumPy version (1.23.5) + custom compilation flags.</p><p><strong>Docker builds</strong>: Had to create custom ARM64 base images. Initial build time was 45 minutes. After optimization: 9 minutes.</p><p><strong>Node.js native modules</strong>: Required complete recompilation for ARM architecture. Sharp, SQLite, and other binary dependencies needed special handling.</p><p><strong>Python packages</strong>: NumPy + SciPy ARM64 compatibility nightmare solved with conda-forge repositories and specific version pinning.</p><p>Every challenge overcome made the system more robust. Every workaround documented made the next person&#39;s journey easier.</p><p>---</p><h3><strong>Recursive AI Development: When Systems Build Themselves</strong></h3><p>The most fascinating aspect? Using AI to build AI infrastructure.</p><p><strong>Dual AI Development Approach</strong>:</p><ul><li><strong>GitHub Copilot</strong>: Industry-leading code assistance, real-time suggestions</li><li><strong>Local Phi4 Model</strong>: Project-specific context, architectural guidance</li><li><strong>The system literally helped build itself</strong></li></ul><h3><strong>Meta-Development Reality</strong>:</h3><p>The Phi4 model running on Korsair didn&#39;t just help with code—it understood the entire system context because it IS part of the system. I achieved true recursive AI development.</p><p>Imagine asking: &quot;How should I optimize your own ML pipeline?&quot; and getting answers from the AI that LIVES in that pipeline. The Phi4 model wasn&#39;t just assisting development—it was self-aware of its own infrastructure, suggesting improvements to its own hosting environment.</p><p>This is beyond traditional AI-assisted coding. This is AI infrastructure achieving self-reflection.</p><p><strong>Context-Aware Assistance</strong>:</p><p>Every AI query automatically includes:</p><ul><li>Complete system architecture</li><li>Current server status</li><li>Network configuration</li><li>Common troubleshooting steps</li><li>Recent changes and their rationale</li></ul><p>Result: Zero context switching. Ask any question about the system from anywhere in the terminal.</p><p>---</p><p><strong>The Tech Lead Lesson: Patterns as Force Multipliers</strong></p><p>Being a tech lead isn&#39;t about having all the answers. It&#39;s about building systems that reveal the questions you need to ask. It&#39;s about making architectural choices that enable others to succeed. It&#39;s about setting quality standards that protect production. It&#39;s about seeing patterns—both design patterns and system patterns—across technologies and applying them consistently.</p><p><strong>What I learned building Cerberos:</strong></p><p>1. <strong>Architectural decisions compound</strong>: MQTT as backbone enabled every future feature</p><p>2. <strong>Tests are documentation</strong>: 104 passing tests tell the story of how it works</p><p>3. <strong>Patterns prevent chaos</strong>: Strategy, Observer, Factory aren&#39;t academic—they&#39;re survival tools</p><p>4. <strong>Documentation scales you</strong>: Writing things down makes you available 24/7</p><p>5. <strong>Monitoring is insurance</strong>: Catching issues early saves production fires</p><p>6. <strong>Automation is respect</strong>: Scripts respect future-you&#39;s time</p><p>7. <strong>Types prevent tears</strong>: TypeScript strict mode catches bugs before runtime</p><p>---</p><p><strong>The Metrics: What Success Looks Like</strong></p><p><strong>Technical Achievements</strong>:</p><ul><li>Distributed cluster architecture in production</li><li>104/104 tests passing (100% success rate)</li><li>Multi-server LLM integration (3 specialized models)</li><li>Real-time ML inference pipeline (&lt;2s end-to-end)</li><li>Gang of Four patterns in production (Strategy, Observer, Factory)</li><li>1,760 lines implementing design patterns with 60+ pattern-specific tests</li><li>Full deployment automation (one-command deployments)</li><li>Comprehensive documentation (1,100+ lines of context)</li></ul><p><strong>Hardware Investment</strong>:</p><ul><li>4x Raspberry Pi 4B (8GB): $240</li><li>1x Raspberry Pi 3B: $35</li><li>Google AIY Voice Hat: $25</li><li>MicroSD cards &amp; accessories: $30</li><li><strong>Total: ~$330</strong></li></ul><p><strong>Performance Benchmarks</strong>:</p><ul><li>Camera capture: &lt;1 second</li><li>ML inference: &lt;1 second</li><li>Frontend display: &lt;2 seconds total</li><li>API response: &lt;500ms average</li><li>99.5% availability achieved</li><li>NFS storage: 950MB/s read performance</li><li>Docker builds: 9 minutes (5x improvement)</li></ul><p><strong>Development Velocity</strong>:</p><ul><li>From concept to production: 7 days</li><li>Test suite execution: 3 minutes (parallel)</li><li>Deployment cycle: 2 minutes (automated)</li><li>Zero-downtime deployments: 100%</li></ul><p>---</p><h3><strong>What&#39;s Next: The Roadmap Forward</strong></h3><p><strong>Phase 6: Advanced Monitoring</strong>(Q4 2025)</p><ul><li>Performance metrics deep-dive</li><li>Predictive failure detection</li><li>Automated scaling triggers</li><li>Cross-server correlation analysis</li></ul><p><strong>Phase 7: Multi-Agent Coordination</strong> (Q1 2026)</p><ul><li>LLM-powered server communication</li><li>Predictive analytics on sensor data</li><li>Voice integration via Chi agent</li><li>Visual processing + computer vision</li></ul><p><strong>Long-term Vision</strong>:</p><ul><li>Khadas Edge2 Pro addition (more powerful ML)</li><li>Edge AI model fine-tuning</li><li>Home automation integration</li><li>Open-source community release</li></ul><p>---</p><p><strong>The Real Achievement</strong></p><p>Understanding that tech leadership isn&#39;t measured in lines of code. It&#39;s measured in systems that work, teams that can maintain them, and decisions that make both possible.</p><p>Project Cerberos has been my playground for exploring these principles. A place where I could experiment with distributed architectures, enforce testing rigor, integrate multiple AI systems, implement classic design patterns in modern frameworks, and build deployment pipelines—all while learning what works and what doesn&#39;t when you&#39;re responsible for the entire system.</p><p><em>From a morphine-fueled sketch to a production-ready distributed AI system. From abstract concepts to concrete code. From individual contributor to tech lead.</em></p><p><strong>That&#39;s the journey.</strong></p><p>---</p><p><strong>Your Turn</strong></p><p>What technical projects have taught you the most about leadership? What challenges are you facing building distributed systems on edge hardware? What patterns have saved your projects from chaos?</p><p>Drop a comment—I&#39;d love to hear your experiences.</p><p>---</p><p><strong>About the Author</strong>: Building distributed AI systems on Raspberry Pi clusters. Tech lead exploring the intersection of edge computing, machine learning, and practical software architecture. Currently working on making enterprise-grade AI accessible on hobby hardware.</p><p><strong>Follow the journey</strong>: The complete documentation, architecture diagrams, and deployment scripts for Project Cerberos will be available. Open-source release coming.</p><p>---</p><p><strong>Tags</strong>: #TechLeadership #SoftwareArchitecture #MachineLearning #DistributedSystems #RaspberryPi #EdgeComputing #DesignPatterns #GangOfFour #DevOps #SystemsThinking #TDD #MQTT #React #TypeScript #TensorFlow #AI #BuildInPublic</p><p>---</p><p><em>*If you found this article valuable, please clap and share. Building in public means sharing both the victories and the lessons learned. Let&#39;s make distributed AI accessible to everyone.*</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67f7bd66f6f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software architecture — What is the fuzz all about?]]></title>
            <link>https://ovekua.medium.com/software-architecture-what-is-the-fuzz-all-about-9f233827821e?source=rss-44da141e66bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f233827821e</guid>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Ove Q]]></dc:creator>
            <pubDate>Sat, 19 Feb 2022 16:47:30 GMT</pubDate>
            <atom:updated>2022-02-19T16:47:30.934Z</atom:updated>
            <content:encoded><![CDATA[<h3>Software architecture — What is the fuzz all about?</h3><p>As developers, we think of architecture as something fancy and difficult.<br>I see it as a journey where you move from thinking about your little piece of code into getting a broader view.<br>When we write code, <strong>what was the need for it, who wanted it, why are we writing it the way we do, what are the risks, how secure is my code, how long will it live, and what other parts of the software will be impacted from it</strong>?</p><p>These are some of the questions we need to answer, and this is unfortunatly not something that you can pick up in a university course. For using a roleplaying analogy, it is the difference between <em>intelligence</em> and <em>wisdom</em>. You can be the most brilliant developer possible and do a fantastic job writing software, but you need a broader experience and a more holistic view to understand the concepts of software architecture.</p><figure><img alt="Find your superpower!" src="https://cdn-images-1.medium.com/max/602/1*JJzN3lH_Tbztfcet8CViHg.png" /></figure><p>My personal journey started with 4 drawings on a whiteboard, and a leader saying “<em>Make this into a system</em>”. Three years later this was a system with over 200 big customers, and I realised that there was more to successful development than “just“ writing code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*wVKK04NL6P5uD6jx8VZJSA.jpeg" /></figure><p>When you start looking at your program from an outside view, what do you see? Did you choose the correct language for it, will it be fast enough when you get more usage, does it scale good, would it be possible to port it to a different platform, how can you integrate it?</p><p>As an example, using Javascript for everything(<em>in other words, doing business logic in the front-end</em>) may be something that you can think about:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*0PdH7kJeNk1I1B-b5ORw1A.png" /></figure><p>So, what are some tips from an old grumpy guy to someone who are thinking about becoming a software architect?</p><p>1: Lift your eyes from the keyboard.<br>- Writing efficient and clean code is something we take for granted<br>- Start thinking about how your code works with the rest of the world. <br>- Sustainability — how does your work help the world moving forward.</p><p>2: Talk to the users<br>- There are no benefit of writing the most efficient code ever written if it is not <strong>Fit for purpose</strong>.<br>- The end users are the ones that will pay your salary on this and your next project. They may not know the best implementation, but they know what they need.</p><p>3: See the big picture<br>- The code you write today, may outlive you if you write it the right way.<br>- Think about how your software can be used in a broader scope. Is it re-usable? (<em>“faker” and “colors” from Github comes to mind</em>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f233827821e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do_nothing-scripting]]></title>
            <link>https://ovekua.medium.com/do-nothing-scripting-1daf1cde8a7f?source=rss-44da141e66bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1daf1cde8a7f</guid>
            <dc:creator><![CDATA[Ove Q]]></dc:creator>
            <pubDate>Thu, 16 Dec 2021 07:32:48 GMT</pubDate>
            <atom:updated>2021-12-16T07:32:48.533Z</atom:updated>
            <content:encoded><![CDATA[<p>Den siste uka har jeg lært en ny måte å skrive dokumentasjon på.</p><p>“Do-nothing-scripts”.</p><p><em>Dette er en måte å dokumentere prosesser, sørge for at dokumentasjon er detaljert, oppdatert, og over tid vil det automatisere de kjedelige oppgavene vi tar for oss.</em></p><p>Dette høres litt for godt ut til å være sant, så dette måtte jeg sjekke ut litt nærmere.</p><p>Poenget er at du skriver et script som ikke gjør “noe”, alt det gjør er å dokumentere en arbeidsprosess i første omgang. Grunnen til at du skal skrive det som et script er ganske enkelt at <strong>utviklere synes det er morsommere å skrive kode enn å skrive i et word-dokument, </strong>og da vil dette være noe som utviklerne faktisk gidder å holde oppdatert. (Det tar også mindre plass, og vi kan lagre dette i et vanlig kode-repo, noe som også er på pluss-siden min).</p><p>Så, hva er dette egentlig da. <br>Dette scriptet skal dokumentere en prosess i enkelte steg, og skrive dette ut på skjermen. For hvert steg skal den som kjører scriptet trykke enter for å si at “Ja, dette steget har jeg fullført”.</p><p>Siden jeg ikke kan dele kode som er kunde-spesifikt, la oss ta et virkelig trivielt eksempel: <br><strong>Du skal handle melk</strong></p><p>Et Do_nothing-script for dette vil da være:</p><p>1: Ta på deg jakke<br>2: Gå til butikken<br>3: Gå inn i butikken<br>4: Lokaliser melkehylla<br>5: Plukk opp en boks melk<br>6: Gå til kassen<br>7: Betal melka di<br>8: Gå hjem<br>9: Sett melka i kjøleskapet</p><p>Allerede en så triviell ting kan altså brytes ned i mange steg. Disse stegene vil hver for seg være deler som kan endre seg over tid. Hvis det er sommer er det ikke nødvendig med jakke, altså kan vi legge inn logikk som sjekker årstid eller været når vi kjører scriptet for å se om steg 1 faktisk er nødvendig.</p><p>Og så kommer hverdagsmagien… <strong>Automatisering.</strong></p><p>I dette tilfellet er det måter å gjøre deler av dette scriptet mer automatisk.<br>Hva med å bytte ut steg 1–8 med pålogging til en nettbutikk som selger melk og leverer hjem? Da vil vi plutselig ha et script som ser slik ut:</p><p>1: Logg på <a href="http://www.kolonial.no/">www.kolonial.no</a><br>2: Velg melk<br>3: Gå til kassen<br>4: Betal<br>5: Vent på levering<br>6: Sett melka i kjøleskapet</p><p>Allerede har vi en forenkling av scriptet, (og i kode-repo’et ligger det nå to versjoner av scriptet vårt), men nå ser vi plutselig mulighetene for å automatisere dette. Steg 1–4 kan vi gjøre med kode, så hva om vi bruker litt tid på å gjøre dette ved hjelp av kode?</p><p>1: Angi brukernavn/passord<br>2: Vent på levering<br>3: Sett melka i kjøleskapet</p><p>Iterasjon 3 av scriptet vårt dokumenterer fortsatt prosessen med å handle melk, men nå gjør scriptet litt bak kulissene, samtidig som det dokumenterer prosessen vår.</p><p>Dette vil det føre til at oppdatering av et steg er fort gjort å endre for den som kjører scriptet, noe som gjør at dokumentasjon vil være levende.<br>Det gjør også at den som kjører scriptet vil lett kunne se forbedringspotensiale, og over tid vil et slikt script kunne gå fra å være mange manuelle steg, til å bli noen få automatiserte steg som i eksemplet over…</p><p>Hvis du vil se litt på hvordan dette kan gjøres i python, ta en kikk på <a href="https://github.com/danslimmon/donothing">https://github.com/danslimmon/donothing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1daf1cde8a7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hvorfor bli konsulent?]]></title>
            <link>https://ovekua.medium.com/hvorfor-bli-konsulent-e188c958d96a?source=rss-44da141e66bc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e188c958d96a</guid>
            <category><![CDATA[capgemini]]></category>
            <category><![CDATA[konsulentbransjen]]></category>
            <dc:creator><![CDATA[Ove Q]]></dc:creator>
            <pubDate>Sat, 24 Oct 2020 17:17:57 GMT</pubDate>
            <atom:updated>2020-10-24T17:17:57.047Z</atom:updated>
            <content:encoded><![CDATA[<p>Konsulent — Da tenker mange på en dresskledd fyr med playmobil-hår og Armanidress som løper rundt og blir solgt ut til kunder på grunn av en velpolert CV. <br>På slutten av 90-tallet var det ikke så mange konsulentfirmaer som var aktuelle for de av oss som var “skikkelige” datastudenter, og miljøet på NTNU hadde bedriftspresentasjoner som vi gikk på av den enkle grunn at vi fikk gratis pizza istedet for nudler den dagen. <br>Jeg husker fremdeles da vi fikk sponset deler av en studietur til Oslo og besøkte et stort konsulentfirma, og presentasjonsvideoen deres hadde den ene colgatesmilende konsulenten etter den andre som fortalte høytsvevende ord om store kunder de jobbet for, og det hele var av alle ting med soundtracket fra Dynastiet. Det fristet ikke akkurat en bondegutt fra rurale strøk i Trøndelag å bli med den gjengen der…</p><p><strong>“Jeg skal aldri bli konsulent.” </strong><br>I 1999 fikk jeg et jobbtilbud fra et firma i Sandnes med 160 ansatte, der jeg fikk jobbe med utvikling av software for forskjellige kunder over hele landet, i prosjekter der vi beveget oss fra waterfall til Scrum som metodikk.<br>Ti år senere begynte jeg i et enda mindre firma, der jeg jobbet i ti år med små og store kunder både i Norge og internasjonalt, her var det små og intense prosjekter, og stadige endringer i hva kundene ønsket seg.<br>Uten at jeg egentlig tenkte over det, ser jeg i ettertid at jeg egentlig jobbet som konsulent i mange år, uten å være klar over det…</p><p><strong>“Jeg skal bli konsulent…”</strong><br>Etter ti år i samme jobb er det lov å gå litt lei, og jeg gikk inn på Linkedin, pusset litt på historikken min, og satte “Looking for new opportunities” til å være påslått.<br>Plutselig en dag sto jeg med en kaffekopp i hånda og diskuterte panserbataljonen i Norge-Norge med en hyggelig fyr som viste seg å være sjefen for Stavangerkontoret, to dager etter var jeg innom for en teknisk test, der jeg skrev noen linjer javakode med hjertet i halsen, og tre timer senere hadde jeg en prat med en litt travel teamleder der jeg måtte innrømme at jeg ikke følte meg som noen ekspert på noe som helst, men jo, jeg har jo drevet med profesjonell utvikling i 20 år, så noe må jeg jo ha gjort riktig…<br>Skumlere var det ikke, og i løpet av en litt hektisk uke sto jeg plutselig med et jobbtilbud fra Capgemini i hånda.</p><p><strong>“Jeg er konsulent.”</strong><br>Hva betyr det å være konsulent i Capgemini sammenlignet med andre steder?<br>Jeg har aldri kjent på følelsen av at jeg konkurrerer med kollegaene mine om oppdrag, jeg er aldri alene ute hos en kunde, og jeg føler alltid at jeg har en enorm organisasjon i ryggen som jeg kan be om hjelp når jeg står fast på noe.<br>Mange andre konsulentfirma opplever jeg som rene bemanningsbyråer, der du blir solgt ut på grunn av at du har en flott CV, men der er du mer alene både internt og ute hos kunden.<br>En av mange grunner til at jeg føler meg på rett plass er at jeg er del av et fantastisk team, og vi har stabile prosjekter som av og til går over flere ti-år sammen med kundene våre. Så for min del jobber jeg egentlig mye mer konsentrert mot en enkelt kunde nå enn jeg noen gang har gjort, og jeg føler meg aldri ensom i et prosjekt.</p><p><strong>“Jeg kommer til å fortsette som konsulent.”</strong><br>I de siste 18 månedene har jeg skrevet kode i Java, .Net, React og til og med Visual Basic for applications… (<em>Uten Excel stopper Norge!</em>).<br>Jeg har deltatt på flere kurs og konferanser enn jeg har gjort på de forrige 18 årene… Når du er konsulent er det en naturlig del av hverdagen at du er nysgjerrig på nye ting, og følger med på hvor verden beveger seg.<br>Når jeg er del av et så stort firma er det naturligvis en helt annen organisasjon, og det er et stort fokus på at alle skal ha det bra. Når sjefen for Capgemini Nordics nettopp fikk spørsmål om hva som var viktig for de neste månedene og svaret kom med en gang at “Vi skal ta vare på hverandre”, og den holdningen går igjen nedover hele firmaet, så gjør det noe for trygghetsfølelsen min.<br>Sosialt sett har jeg blitt kjent med helt utrolig dyktige kollegaer, møtt utrolig kjekke folk hos kundene jeg har jobbet med, og føler meg verdsatt på en god måte.</p><p><strong>“Vil du bli konsulent?”</strong><br>Nåløyet for å bli med i Capgemini-familien er trangt, det er ikke å legge skjul på. Tempoet er alltid høyt, det vi leverer er håndverk av ypperste klasse, og siden vi ofte sitter sammen med kunder er vi også nødt til å ha det som på fint heter “soft skills”. Så jeg kjenner mange som jeg gjerne skulle hatt som kollegaer, men jeg kjenner også mange som jeg desverre må si ikke hadde passet inn.<br>Samtidig ser jeg at min frykt for konsulentbransjen sannsynligvis kommer fra et noe sleskt bedriftsbesøk på nittitallet, i tillegg til at jeg alltid har jobbet steder der vi aldri hadde noen konsulenthus inne så jeg kun så bransjen fra utsiden.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e188c958d96a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>