<?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 Jason Touleyrou on Medium]]></title>
        <description><![CDATA[Stories by Jason Touleyrou on Medium]]></description>
        <link>https://medium.com/@jtouley?source=rss-4a233f684bab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1mi2cfFrZFREjwW1.jpg</url>
            <title>Stories by Jason Touleyrou on Medium</title>
            <link>https://medium.com/@jtouley?source=rss-4a233f684bab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 15:00:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jtouley/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[The Operating Manual: Leading with Standards, Not Ego]]></title>
            <link>https://medium.com/@jtouley/the-operating-manual-leading-with-standards-not-ego-8a5bee8ed97e?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a5bee8ed97e</guid>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Wed, 09 Apr 2025 01:48:12 GMT</pubDate>
            <atom:updated>2025-04-09T01:48:12.782Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A no-nonsense blueprint for how I lead, what I expect from leaders, and why clarity always beats control.</em></p><p>In previous posts, I’ve shared the mindsets that shape my approach to data leadership — from challenging legacy norms in <a href="https://medium.com/@jtouley/how-who-moved-my-cheese-shaped-my-approach-to-data-leadership-b692af9ec175"><em>Who Moved My Cheese Shaped My Approach to Data Leadership</em></a> to driving sustainable technical strategies in <a href="https://medium.com/@jtouley/building-future-ready-data-architectures-the-power-of-the-done-once-done-right-mindset-in-data-407bf6799c9b"><em>The Power of the Done Once, Done Right Mindset in Data</em></a>.</p><p>But leadership isn’t just about what you believe — it’s about how you operate. This document is my attempt to codify that. It’s the way I hold myself accountable and the expectations I set for others who carry the title of “leader.”</p><p><strong>The Operating Manual: Leading with Standards, Not Ego</strong></p><p><em>I’m not here to be liked.</em></p><p><em>I’m here to do my job — and I expect others to do the same.</em></p><p>This document lays out how I lead, how I communicate, and what I expect from others who hold the title of “leader.” If you’re working with me, here’s what you should know:</p><p><strong>01. I Lead with Clarity</strong></p><p>I don’t traffic in vague priorities, feel-good half-answers, or strategies built on sand.</p><p>If I ask hard questions, it’s not to embarrass you — it’s to uncover risk, prevent swirl, and protect the work.</p><p>I don’t believe in setting traps. I believe in shining light on assumptions.</p><p><strong>02. Feedback Is a Gift — And a Requirement</strong></p><p>If I challenge your plan, it’s because I expect better — and believe you’re capable of delivering it.</p><p>I’m not here to coddle. I’m here to grow leaders.</p><p>That means:</p><p>• If your logic doesn’t hold up, I’ll say so.</p><p>• If you’re avoiding responsibility, I’ll call it out.</p><p>• If your plan is solid, I’ll get out of your way and back you fully.</p><p><strong>03. I Don’t Confuse Autonomy With Avoidance</strong></p><p>If you ask for more room to lead, show me you’re ready by:</p><p>• Taking ownership of the full problem — not just a slice of it.</p><p>• Being transparent about what you don’t know.</p><p>• Asking for feedback before failure, not after.</p><p>If you want space, earn it. I’ll gladly step back — when you step up.</p><p><strong>04. Bring the TL;DR</strong></p><p>Long-winded documentation that doesn’t distill the problem is a red flag.</p><p>I value clear, thoughtful summaries that show you’ve done the thinking.</p><p>If you can’t explain your logic in 1–3 sentences, it’s likely not sound yet.</p><p>Communicate to convey, not to justify.</p><p><strong>05. I Don’t Expect Perfection — Just Ownership</strong></p><p>You can be wrong. You can stumble.</p><p>What you can’t do is hide. Own your mistakes. Own your gaps. Own the outcomes.</p><p>I’ll never penalize someone for being wrong.</p><p>But I will challenge anyone who refuses to take responsibility.</p><p><strong>06. I Will Always Default to Action</strong></p><p>If you don’t bring a clear plan or a willingness to adjust, I will move forward without you.</p><p>This isn’t impatience — it’s protection of momentum.</p><p>I’ll never steamroll ideas, but I also won’t let indecision or vague strategy hold the team hostage.</p><p><strong>07. You Don’t Have to Like My Style — Just Be Better Than It</strong></p><p>If you don’t like how direct I am, that’s fine. Beat me with better thinking.</p><p>Show me a clearer path. Deliver results that speak for themselves.</p><p>I don’t care about being right — I care about getting it right.</p><p>If you can outthink me, please do.</p><p><strong>08. Leadership Is Earned Daily</strong></p><p>Titles don’t protect you from accountability.</p><p>If I know the stack better than you, and I’m thinking further ahead than you, that’s not dominance — it’s a wake-up call.</p><p>Step into the responsibility, or step aside.</p><p>The team deserves leadership that thinks, acts, and owns at a higher level.</p><p><strong>Final Word</strong></p><p>This isn’t about tone. This is about trust.</p><p>This isn’t about control. This is about care.</p><p>This isn’t about ego. This is about standards.</p><p>I will never apologize for holding the line.</p><p>If you’re ready to meet that line — or rise above it — we’re going to do incredible things together.</p><p><strong>If this resonates — or challenges you — I’d love to hear your thoughts.</strong></p><p>Leadership isn’t static, and I’m always refining how I show up.</p><p>Drop a comment or reach out directly. Let’s build better teams, together.</p><p>Let me know if you’d like a banner image suggestion or want a matching post for LinkedIn.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a5bee8ed97e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Mastering Strategic Speed Coding: How to Code Like a Grandmaster with AI ]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@jtouley/mastering-strategic-speed-coding-how-to-code-like-a-grandmaster-with-ai-3491a39443e3?source=rss-4a233f684bab------2"><img src="https://cdn-images-1.medium.com/max/1024/0*EizqryDtPQRpKatC.png" width="1024"></a></p><p class="medium-feed-link"><a href="https://medium.com/@jtouley/mastering-strategic-speed-coding-how-to-code-like-a-grandmaster-with-ai-3491a39443e3?source=rss-4a233f684bab------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@jtouley/mastering-strategic-speed-coding-how-to-code-like-a-grandmaster-with-ai-3491a39443e3?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/3491a39443e3</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Thu, 20 Mar 2025 00:00:03 GMT</pubDate>
            <atom:updated>2025-12-04T13:46:22.433Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[AI Didn’t Make Me Worse — It Made Me Think Faster]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@jtouley/ai-didnt-make-me-worse-it-made-me-think-faster-dbeebdf024fc?source=rss-4a233f684bab------2"><img src="https://cdn-images-1.medium.com/max/1024/1*iIHUGPgz-e3_77C7NQLNSg.png" width="1024"></a></p><p class="medium-feed-snippet">Microsoft says AI is making engineers dumber. My experience says otherwise. AI isn&#x2019;t a crutch&#x200A;&#x2014;&#x200A;it&#x2019;s a force multiplier that lets me&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@jtouley/ai-didnt-make-me-worse-it-made-me-think-faster-dbeebdf024fc?source=rss-4a233f684bab------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@jtouley/ai-didnt-make-me-worse-it-made-me-think-faster-dbeebdf024fc?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbeebdf024fc</guid>
            <category><![CDATA[critical-thinking]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Sun, 16 Mar 2025 00:21:33 GMT</pubDate>
            <atom:updated>2025-03-21T02:09:26.696Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</cc:license>
        </item>
        <item>
            <title><![CDATA[How I Use AI as a Recursive Thought Partner (And Why You Should Too)]]></title>
            <link>https://medium.com/@jtouley/how-i-use-ai-as-a-recursive-thought-partner-and-why-you-should-too-26027b0106da?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/26027b0106da</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Sat, 01 Mar 2025 02:03:59 GMT</pubDate>
            <atom:updated>2025-03-01T02:03:59.951Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qAWCRxK3tGVZuro_YO7G4g.png" /></figure><p>Most people treat AI like a <strong>calculator for thoughts</strong> — plug in a question, get an answer, move on. But what if you could <strong>train AI to think with you, not just for you</strong>? What if AI could act as a <strong>recursive thought amplifier</strong>, refining and expanding your ideas rather than just regurgitating pre-processed knowledge?</p><p>That’s exactly how I use AI.</p><p>Instead of taking one model’s response as the final word, I <strong>triangulate across multiple AI systems</strong>, feeding responses back into other models like GPT, Claude, DeepSeek, Mistral, and Perplexity. I treat these models as a <strong>collaborative thought engine</strong>, refining concepts through iteration and synthesis.</p><p>My friends think this approach is <strong>novel</strong> — that I’m using AI in a way that most people don’t even consider. Maybe they’re right. Maybe more people should be thinking about AI <strong>not as a tool for answers, but as a process for thinking itself</strong>.</p><p><strong>The Problem: How Most People Use AI (And Why It’s Limiting)</strong></p><p>Most AI interactions fall into one of two categories:</p><p>1. <strong>Quick Answers</strong> — A user asks a question, gets a response, and moves on.</p><p>2. <strong>Long-Form Assistance</strong> — AI helps draft an article, summarize research, or refine writing.</p><p>Both are useful, but they miss the bigger opportunity: <strong>AI as a recursive thinking tool</strong>.</p><p>The problem with the one-and-done approach is that it assumes AI has the right answer the first time. But AI models aren’t infallible. Each has biases, gaps, and different strengths. <strong>Relying on a single model means limiting yourself to one perspective, one dataset, one way of thinking.</strong></p><p>The reality? <strong>AI is most valuable when it’s interrogated, challenged, and refined.</strong></p><p><strong>The Process: AI as a Recursive Thought Partner</strong></p><p>Here’s how I do it:</p><p>1. <strong>Initial Prompt &amp; Response</strong> — I start a conversation with GPT (or another model), exploring an idea or problem.</p><p>2. <strong>Divergent Feedback</strong> — I take that response and feed it into other models like Claude, DeepSeek, Perplexity, and Mistral.</p><p>3. <strong>Synthesis &amp; Iteration</strong> — I compare responses, looking for <strong>new angles, contradictions, or deeper insights</strong>.</p><p>4. <strong>Refinement Loop</strong> — I feed the best ideas back into GPT (or another model), iterating until I hit a point where insights start to converge.</p><p>This process isn’t just about getting better answers — it’s about <strong>sharpening my own thinking</strong>.</p><p><strong>The Benefits: Why This Works</strong></p><p><strong>1. You Get Multiple AI Perspectives, Not Just One</strong></p><p>Each AI model has its own <strong>training data, biases, and strengths</strong>. Claude leans more toward contextual understanding, DeepSeek is stronger in research synthesis, and Perplexity excels in surfacing fresh information.</p><p>By feeding responses across these models, I get a <strong>wider spectrum of insights</strong> — just like consulting multiple experts rather than relying on a single opinion.</p><p><strong>Example:</strong></p><p>I was recently working through the idea of <strong>how coding will evolve in an AI-driven world</strong>. I started with GPT, which argued that <strong>knowing coding fundamentals (rather than deep expertise) will be the most valuable skill in the future AI space</strong>.</p><p>I then fed that response into Claude and Perplexity, which challenged the premise:</p><p>• Claude suggested that <strong>human coders will shift towards “meta-coding”</strong>, focusing on how AI models structure and optimize code.</p><p>• Perplexity provided <strong>recent papers and expert discussions</strong>, highlighting how <strong>low-code/no-code adoption</strong> is already reshaping software development.</p><p>Bringing these insights back to GPT, I synthesized a <strong>more nuanced perspective</strong>:</p><p>✅ Knowing coding fundamentals is essential.</p><p>✅ AI won’t replace coders, but <strong>will change what coding looks like</strong>.</p><p>✅ The real value lies in understanding <strong>AI-augmented development workflows</strong>, not just syntax.</p><p>A single model wouldn’t have gotten me there. The <strong>recursive feedback loop</strong> did.</p><p><strong>2. You Sharpen Your Own Critical Thinking</strong></p><p>AI is a mirror — it reflects back the way you ask questions. By forcing models to <strong>challenge and refine ideas</strong>, you <strong>develop stronger arguments, identify weak points, and uncover overlooked insights</strong>.</p><p><strong>Example:</strong></p><p>I recently discussed my <strong>leadership philosophy</strong> here. I started by outlining my belief in:</p><p>1. <strong>Dissent as a powerful tool</strong> — Encouraging pushback and critical thinking.</p><p>2. <strong>Disagree and commit</strong> — Ensuring alignment once a decision is made.</p><p>After feeding these ideas into multiple models, I realized something:</p><p>• While I embrace dissent, <strong>I sometimes frame friction as necessary rather than optional</strong>.</p><p>• Mistral pushed me to consider: <strong>Can collaboration be just as effective without friction?</strong></p><p>That led me to rethink how I approach certain leadership discussions — ensuring I’m not just fostering <strong>healthy debate</strong>, but also recognizing <strong>when consensus-driven progress is the better path</strong>.</p><p>This wasn’t AI giving me a single answer. It was <strong>AI helping me interrogate my own assumptions</strong>.</p><p><strong>3. You Build a Dynamic, AI-Powered Think Tank</strong></p><p>Most people use AI passively. I use it like a <strong>think tank</strong> — a recursive system that continuously evolves ideas.</p><p>By structuring AI feedback loops this way, you can:</p><p>✅ Generate and test new hypotheses.</p><p>✅ Surface hidden insights.</p><p>✅ Explore counterarguments.</p><p>✅ Push your thinking beyond first-order logic.</p><p><strong>Challenges &amp; Optimizations: Where This Approach Struggles</strong></p><p>This method isn’t perfect. Some challenges I’ve run into:</p><p>• <strong>Time Investment</strong> — It takes longer than a simple AI query. But the depth of insight is worth it.</p><p>• <strong>Signal vs. Noise</strong> — Some models over-index on filler content. Filtering out weak responses is key.</p><p>• <strong>Contradictions</strong> — Sometimes different models completely disagree. That’s <strong>not a bad thing</strong> — it forces you to <strong>think critically rather than just accept one answer</strong>. Don’t be afraid to call the model out!</p><p>Ways to optimize:</p><p>• Use AI models <strong>strategically</strong> (e.g., Perplexity for research, Claude for reasoning, GPT for synthesis).</p><p>• Focus on <strong>refining prompts</strong> to get better responses.</p><p>• Recognize when to stop iterating (not every idea needs endless refinement).</p><p><strong>The Bigger Implication: AI as a Thinking Partner, Not Just a Tool</strong></p><p>Most AI discussions focus on <strong>productivity</strong> — how to get things done faster. But AI’s real power is in <strong>thought amplification</strong> — helping you think at a higher level than you could alone.</p><p>This approach isn’t just about AI. It’s about <strong>reframing how we interact with knowledge itself</strong>:</p><p>✅ <strong>AI isn’t an answer machine; it’s an idea generator.</strong></p><p>✅ <strong>The best insights come from synthesis, not single outputs.</strong></p><p>✅ <strong>The future belongs to those who can integrate multiple perspectives into a coherent strategy.</strong></p><p>This recursive AI workflow has changed the way I think. Maybe it could do the same for you.</p><p><strong>What’s Next?</strong></p><p>If this resonates with you, try it yourself:</p><p>1. Start with a question.</p><p>2. Run it through multiple AI models.</p><p>3. Compare, refine, and iterate.</p><p>4. See where it leads you.</p><p>And if you’ve used AI in a similar way — or have other methods for AI-assisted critical thinking — let’s talk.</p><p>I’m always looking for <strong>better ways to push the boundaries of thought.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26027b0106da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Event-Driven Data Engineering: Rethinking Medallion Architecture for Modern Systems]]></title>
            <link>https://medium.com/@jtouley/event-driven-data-engineering-rethinking-medallion-architecture-for-modern-systems-2a3171046bb4?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a3171046bb4</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-modeling]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Mon, 17 Feb 2025 01:20:54 GMT</pubDate>
            <atom:updated>2025-02-17T01:22:47.588Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Problem with Premature Optimization</h3><p>In data engineering, there&#39;s a persistent temptation to optimize too early. We see this particularly in two areas:<br>1. Enforcing schemas at ingestion<br>2. Implementing Change Data Capture (CDC) logic before understanding business needs</p><p>While these practices might seem to promote data quality and efficiency, they often create more problems than they solve. Let me explain why.</p><h3>The Cost of Early Decisions</h3><p>Consider a typical scenario: Your team uses Fivetran or a similar tool to sync data from various sources. The conventional wisdom suggests implementing CDC logic immediately to minimize storage and ensure data consistency. However, this approach has hidden costs:</p><p>1. <strong>Loss of Historical Context</strong>: When you immediately merge or delete records, you lose valuable historical information. This becomes particularly painful when:<br> - Business requirements change<br> - You need to debug data quality issues<br> - Compliance requires historical audit trails</p><p>2. <strong>Inflexible Business Logic</strong>: Early schema enforcement means:<br> - Changes in source systems require pipeline modifications<br> - Multiple consuming systems must conform to a single schema<br> - Business rules become tightly coupled with ingestion logic</p><p>3. <strong>Hidden Compute Costs:</strong> While storage is relatively cheap, compute resources for constant transformations are expensive:<br> - Full table scans for view refreshes<br> - Repeated transformations for each consumer<br> - Resource-intensive CDC operations</p><h3>A Better Way: Event-Driven Medallion Architecture</h3><p>Instead of front-loading transformations, let&#39;s consider a more flexible approach that aligns with event-driven principles:</p><h4>1. Bronze Layer (Raw Event Capture)</h4><p>- <strong>Purpose</strong>: Rapid, immutable event ingestion<br>- <strong>Retention</strong>: 30-day hot storage<br>- <strong>Key Principle</strong>: No transformations, just capture</p><pre># Example Bronze Layer Ingestion<br>def ingest_raw_event(event):<br>    return {<br>        &quot;received_at&quot;: current_timestamp(),<br>        &quot;payload&quot;: event,<br>        &quot;_ingestion_date&quot;: current_date()<br></pre><h4>2. Raw Retention Layer (Historical Archive)</h4><p>- <strong>Purpose</strong>: Complete historical record<br>- <strong>Storage Strategy</strong>:<br> - Hot Storage: 5-7 years (cost-effective storage tier)<br> - Cold Storage: Older data archived<br>- <strong>Access Pattern</strong>: Infrequent, mainly for:<br> - Auditing<br> - Historical analysis<br> - Reprocessing</p><h4>3. Silver Layer (Business Logic)</h4><p>- <strong>Purpose</strong>: Apply transformations and business rules<br>- <strong>Retention</strong>: 3-5 years hot storage<br>- <strong>Key Features</strong>:<br> - Schema enforcement<br> - CDC implementation<br> - Business rule application<br>- <strong>Storage</strong>: Iceberg/Parquet for:<br> - ACID transactions<br> - Schema evolution<br> - Incremental processing</p><h4>4. Gold Layer (Consumption-Ready)</h4><p>- <strong>Purpose</strong>: Optimized for specific use cases<br>- <strong>Design Principles</strong>:<br> - Small, normalized tables<br> - Partitioned for query performance<br> - Aggregated for specific needs</p><h3>Real-World Cost Analysis</h3><p>Let’s break down the economics with a realistic example:</p><pre>Daily Raw Data: 50GB<br>Bronze Layer (30 days): ~1.5TB<br>Raw Retention:<br> - Hot Storage (7 years): ~127TB<br> - Cold Storage (older): Pay for retrieval<br>Silver Layer (5 years): ~91TB</pre><h3>Storage vs. Compute Costs</h3><p>- Storage (AWS S3 Standard):<br> - ~$2,300/month for hot storage<br> - ~$400/month for cold storage<br>- Compute (Data Processing):<br> - Full table scan: $50-100 per run<br> - Incremental processing: $5-10 per run</p><p>The cost difference between storage and compute makes it clear: optimizing for storage at the expense of compute is often false economy.</p><h3>Implementation Strategy</h3><h4>1. Event Capture</h4><pre># Using Iceberg for Bronze Layer<br>def store_raw_event(event, table):<br>    table.append({<br>        &quot;event_id&quot;: generate_uuid(),<br>        &quot;received_at&quot;: current_timestamp(),<br>        &quot;payload&quot;: json.dumps(event),<br>        &quot;partition_date&quot;: current_date()<br>    })<br></pre><h4>2. Historical Archival</h4><pre># Automated archival policy<br>def archive_raw_data(source_table, archive_table):<br>    cutoff_date = current_date() - timedelta(days=365*5)<br>    <br>    source_table.snapshot() \<br>        .filter(f&quot;partition_date &lt; &#39;{cutoff_date}&#39;&quot;) \<br>        .copy_to(archive_table)<br></pre><h4>3. Business Logic Application</h4><pre># Silver layer transformation<br>def apply_business_rules(raw_events, business_rules):<br>    return (<br>        spark.read.table(raw_events)<br>        .transform(lambda df: apply_rules(df, business_rules))<br>        .write<br>        .option(&quot;merge.on&quot;, &quot;event_id&quot;)<br>        .mode(&quot;merge&quot;)<br>        .saveAsTable(&quot;silver_layer&quot;)<br>    )<br></pre><h3>Benefits of This Approach</h3><p>1. <strong>Flexibility</strong>:<br> - Independent evolution of ingestion and transformation<br> - Multiple consumers with different needs<br> - Easy historical reprocessing</p><p>2. <strong>Cost Efficiency</strong>:<br> - Reduced compute overhead<br> - Optimized storage costs<br> - Efficient incremental processing</p><p>3. <strong>Data Quality</strong>:<br> - Complete historical record<br> - Clear lineage<br> - Robust audit capability</p><h3>Common Objections and Responses</h3><h4>&quot;Storage costs will be too high&quot;</h4><p>Response: Modern storage is cheap compared to compute. A full historical archive of 200TB costs less than regular full table scans.</p><h4>&quot;We need real-time data consistency&quot;</h4><p>Response: Real-time needs can be met in Gold layer views while maintaining historical accuracy in lower layers.</p><h4>&quot;This seems more complex&quot;</h4><p>Response: The complexity is manageable and offset by:<br>- Reduced maintenance<br>- Greater flexibility<br>- Better debugging capability</p><h3>Getting Started</h3><p>1. <strong>Assess Current State</strong>:<br> - Map data flows<br> - Identify transformation points<br> - Calculate current costs</p><p>2. <strong>Plan Migration</strong>:<br> - Start with new data sources<br> - Gradually migrate existing pipelines<br> - Monitor cost impacts</p><p>3. <strong>Implement Monitoring</strong>:<br> - Track storage growth<br> - Measure compute usage<br> - Monitor data freshness</p><h3>Conclusion</h3><p>The key to successful data engineering in an event-driven world is not to optimize prematurely. By separating concerns and leveraging modern storage technologies, we can build systems that are both cost-effective and flexible.</p><p>Remember:<br>- Storage is cheaper than compute<br>- Historical data has value<br>- Flexibility enables innovation</p><p>The medallion architecture, when properly implemented with these principles in mind, provides a robust foundation for modern data systems.</p><p>---</p><p><em>For a deeper dive into implementation details or to discuss specific use cases, feel free to reach out.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a3171046bb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built an AI-Powered Code Quality Guardian for GitHub (And Blocked My Own PR)]]></title>
            <link>https://medium.com/@jtouley/building-a-github-code-quality-analyzer-with-openai-github-actions-9a457aea5a99?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a457aea5a99</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Sun, 16 Feb 2025 02:16:27 GMT</pubDate>
            <atom:updated>2025-02-16T02:55:18.928Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Automating DRY/SOLID checks using OpenAI and GitHub Actions — lessons from a data engineering manager’s side quest</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XukPYN6XZnG-bEkDHNFy5g.jpeg" /></figure><h3>Why Code Quality Tools Fail Data Teams</h3><p>Data engineering pipelines are the <strong>silent debt collectors</strong> of tech organizations. While everyone celebrates shipped dashboards or ML models, poorly structured Spark jobs and repetitive Airflow DAGs quietly compound maintenance costs. Traditional linters catch syntax errors, but they won’t tell you:</p><ul><li><em>“Your 12 near-identical CSV parsers violate DRY”</em></li><li><em>“This 500-line function breaks Single Responsibility Principle”</em></li></ul><p><strong>Why DRY and SOLID Matter (Especially for Data Engineering)</strong></p><p>• <strong>DRY</strong>: Data pipelines often have similar transformations repeated across multiple ETL/ELT jobs. Centralizing them in well-tested modules reduces duplication and the chance of “fixing the same bug five times.”</p><p>• <strong>SOLID</strong>: Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion. While originally aimed at OOP, these principles translate well to data workflows (e.g., building modular operators in Airflow, keeping transformations and source configurations separate, etc.). Adhering to them results in pipelines that are easier to maintain, extend, and monitor.</p><h3><strong>Project Overview</strong></h3><p>1. <strong>Fetch Repository Files</strong></p><p>• The Action clones your repo and finds all .py files (recursively).</p><p>• For data engineering, you might later adapt it to parse YAML or SQL for specialized checks.</p><p><strong>File Hunter</strong></p><ul><li><em>Python Script</em>: Recursively finds .py files (future: SQL/YAML)</li><li><em>Filter</em>: Excludes __init__.py, venv/, etc.</li></ul><pre>def find_py_files(repo_path: str) -&gt; List[str]:<br>    return [<br>        f for f in Path(repo_path).rglob(&quot;*.py&quot;)<br>        if &quot;venv&quot; not in str(f) and &quot;__init__.py&quot; != f.name<br>    ]</pre><p>2. <strong>Send Code to OpenAI</strong></p><p>• We prompt the AI with a chunk of code and a short directive to evaluate DRY/SOLID adherence.</p><p>• The AI responds with a short, structured summary and a score.</p><p>3. <strong>Aggregate &amp; Output</strong></p><p>• The Action then aggregates these scores into a JSON or prints them directly in the CI logs.</p><p>• Optionally, it can <strong>post a PR comment</strong> summarizing the analysis, so developers see immediate feedback in the conversation thread.</p><h4><strong>Implementation Highlights</strong></h4><p>• <strong>Language &amp; Dependencies</strong>: Python (for GitHub API interactions, plus requests and openai).</p><p>• <strong>Workflow</strong>:</p><p>1. GitHub Action triggers on pull requests.</p><p>2. A custom script gathers .py files, decodes their content, and calls ai_client.py.</p><p>3. The AI’s feedback is compiled into a single JSON/Markdown output.</p><p>4. Optionally, a second script (post_comment.py) posts that output as a PR comment.</p><p>Below is an abbreviated snippet showing how we post a comment (assuming the analysis results are in a variable called analysis_feedback):</p><pre>- name: Post PR Comment with Analysis Feedback<br>  if: github.event_name == &#39;pull_request&#39;<br>  env:<br>    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}<br>    GITHUB_REPOSITORY: ${{ github.repository }}<br>    GITHUB_REF: ${{ github.ref }}<br>  run: |<br>    source venv/bin/activate<br>    python post_comment.py</pre><p>Inside post_comment.py, we do a POST request to <a href="https://api.github.com/repos/%7Bowner%7D/%7Brepo%7D/issues/%7Bpr_number%7D/comments">https://api.github.com/repos/{owner}/{repo}/issues/{pr_number}/comments</a> with our summarized analysis.</p><h4><strong>The Hilarious PR Block</strong></h4><p>Here’s the kicker: right before merging my final PR, the GitHub Action blocked itself because it was missing the OPENAI_API_KEY secret. That secret wasn’t set properly in the repository’s settings, causing the Action to fail. Because of the repo’s branch protection rules, a failing check meant the PR was locked out.</p><p><strong>Lesson Learned</strong>: If your action depends on external secrets (like an API key), make sure you either:</p><p>• Set the secret in your GitHub repo’s settings (Settings → Secrets → Actions).</p><p>• Skip the code quality step for forked PRs or missing keys to avoid meltdown.</p><p><strong>Outcome</strong>: Once the secret was configured, the Action worked like a charm. It was also a great reminder to <strong>plan for missing secrets</strong> in your CI/CD workflows, especially for open-source or fork-based contributions.</p><h4>Why This Matters for Data Engineering</h4><p>• <strong>Team Education</strong>: Instead of telling engineers abstractly to “write cleaner pipelines,” each PR now gets a comment explaining how repetitive or how un-SOLID a given piece of code is. It becomes an ongoing teachable moment.</p><p>• <strong>Configurability</strong>: You can tweak the prompt or scoring to be more or less strict, especially for data pipeline concerns (e.g., repeated table schemas, unmodular transformations).</p><h4><strong>Future Directions</strong></h4><p>1. Add support for PySpark or SQL checks.</p><p>2. Tag big code blocks with custom guidelines (“Check for repeated column transformations”).</p><p>3. Integrate with metadata tools like dbt or Dagster to gather pipeline lineage and measure clarity.</p><h4>Customization Ideas</h4><p><strong>Airflow DAG Checks</strong>:</p><blockquote>Prompt: “Does this DAG have &gt;5 tasks without task groups?” <br>AI Response: “Violation: Consider grouping ‘s3_to_redshift’ steps into a TaskGroup”</blockquote><p><strong>dbt Model Critiques</strong>:</p><blockquote>Prompt: “Is this model doing too much transformation pre-staging?” <br>AI Feedback: “CTE ‘user_orders’ handles aggregation and null-checks split into two models”</blockquote><p><strong>Conclusion &amp; Next Steps</strong></p><p>Building this GitHub Code Quality Analyzer was a blast and proved that AI-based code analysis is both feasible and fun. For data engineers, it’s a straightforward way to keep DRY and SOLID front-and-center, even when juggling dozens of pipelines.</p><p><strong>What’s next?</strong></p><p>• Polishing the PR comment feature and adding better error handling.</p><p>• Possibly extending beyond Python to catch repeated Airflow DAG patterns or incompatible schema references in SQL.</p><p>• Collecting metrics over time — like how DRY scores evolve month to month — could offer great insights into code health.</p><p>You can find the entire project here:</p><p><a href="https://github.com/jtouley/github-code-quality">GitHub Code Quality Analyzer</a></p><p>If you’re tired of being the ‘DRY police’ on PR reviews, give it a try and star the repo! Got ideas for improvement? Open an issue — I’d love to see where this can go.</p><p>Thanks for reading, and happy coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a457aea5a99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Refining Data Architectures: A Case for Advanced Pipelining in Healthcare]]></title>
            <link>https://medium.com/@jtouley/refining-data-architectures-a-case-for-advanced-pipelining-in-healthcare-324261db8464?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/324261db8464</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-modeling]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Sat, 05 Oct 2024 17:17:40 GMT</pubDate>
            <atom:updated>2024-10-05T17:35:29.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*55itiCIhGVJvmVq-UgBpJA.jpeg" /></figure><p>In my recent article, I introduced the &quot;Done Once, Done Right&quot; approach to building data architectures that are robust, flexible, and future-proof. The principle behind this approach is not just about reducing technical debt—it’s about ensuring our data pipelines are as resilient and forward-thinking as the industries they serve. Today, I want to address some concerns raised about the practicality of these methods and clarify why these approaches, especially in the context of HL7 data handling, are not only feasible but necessary.</p><h3>The Need for Raw Data Preservation and Incremental Processing</h3><p>The handling of HL7 files in healthcare is a perfect example of why traditional data processing methods fall short. HL7 files, which are complex and deeply nested, often require nuanced parsing that traditional databases and ETL processes struggle to manage efficiently. The standard approach—ingesting these files directly into relational databases or processing them through heavyweight ETL tools—often leads to rigid pipelines that can&#39;t easily adapt to changes in data structure or business requirements.</p><h3>Proposed Methodology:</h3><ol><li><strong>Initial Data Landing:</strong> Raw HL7 files are first landed in an S3 bucket, untouched, and with a clear retention policy. This ensures that the original data remains available for future use or backfilling, providing a crucial safety net for data integrity.</li><li><strong>Conversion to Iceberg/Parquet:</strong> These files are then processed into Iceberg or Parquet formats, creating just two columns: a timestamp and a payload column that captures the raw data of each segment. This step dramatically simplifies the initial data capture while retaining the full detail of the original files.</li><li><strong>Intermediate and Analytical Layers:</strong> Subsequent processing layers extract necessary details—like patient IDs or timestamps—into more structured formats while still allowing for the bulk of the data to be stored in a semi-processed state. This multi-layered approach supports both deep analytical queries and the ability to reprocess data as needed without complete pipeline rewrites.</li></ol><h3>Core Principles Revisited</h3><p>The &quot;Done Once, Done Right&quot; philosophy is about building data systems that are scalable, flexible, and capable of evolving with technological advancements and business needs. It is grounded in:</p><ul><li><strong>Preserving Raw Data:</strong> Storing data in its original form ensures that it can be reprocessed and reanalyzed as needed without loss of fidelity or context.</li><li><strong>Incremental Processing:</strong> Applying transformations in stages allows for more granular control over data quality and schema, facilitating easier modifications and enhancements.</li><li><strong>Enhanced Observability:</strong> Implementing thorough monitoring and logging at each pipeline stage ensures data integrity and system reliability.</li></ul><h3>Extending to Various Data Types</h3><p>While initially demonstrated with HL7 files, this architecture seamlessly adapts to other data formats, such as JSON, XML, and even unstructured data. Here’s how:</p><ol><li><strong>Modular Design:</strong></li></ol><p><strong>Adaptability:</strong> The structured layering of data processing—raw, intermediate, and analytical—can be tailored to different data structures, allowing for specific transformations pertinent to each data type.</p><p><em>Example: For JSON data prevalent in web applications, similar principles apply where raw JSON is initially stored and incrementally parsed, extracting key-value pairs into more structured formats as needed.</em></p><p>2. <strong>Use of Modern Data Formats (Iceberg/Parquet):</strong></p><p><strong>Performance and Scalability:</strong> These formats are not only optimized for query performance but also support complex nested data structures, making them ideal for a variety of data sources.</p><p><em>Example: E-commerce transaction logs in JSON format can be efficiently managed and queried using Parquet, facilitating fast access to customer behavior insights.</em></p><p>3. <strong>Schema Flexibility:</strong></p><p><strong>Evolving Needs:</strong> Tools like Iceberg allow for schema evolution without downtime, enabling pipelines to adapt to changes in data sources or business requirements seamlessly.</p><p><em>Example: In financial services, as transaction schemas evolve, the system can adjust without impacting existing data analytics processes.</em></p><p>4. <strong>Universal Data Quality and Governance:</strong></p><p>Consistency and Compliance: Regardless of the data type, maintaining high standards of data quality and adhering to governance requirements ensure that the information is reliable and usable.</p><p><em>Example: Regulatory requirements in financial reporting can be rigorously enforced across data types ensuring consistency and compliance.</em></p><h3>Addressing Criticism: Universal Applicability</h3><p>Critics might argue that the approach seems overly complex for simpler data needs. However, in an era of exponential data growth and increasing regulatory scrutiny, a robust framework is not just a luxury—it&#39;s a necessity. The ability to adapt quickly and efficiently without reengineering the entire system every time business needs or technologies change is a competitive advantage.</p><h3>Conclusion</h3><p>The &quot;Done Once, Done Right&quot; methodology is designed to build data pipelines that stand the test of time, capable of adapting as quickly as the fields they support. By embracing these principles, organizations can ensure that their data systems serve current needs and are ready to evolve with the next generation of technological advancements and business challenges. This approach is not just about solving today’s problems—it&#39;s about preemptively addressing tomorrow&#39;s challenges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=324261db8464" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Future-Ready Data Architectures: The Power of the "Done Once, Done Right" Mindset in Data…]]></title>
            <link>https://medium.com/@jtouley/building-future-ready-data-architectures-the-power-of-the-done-once-done-right-mindset-in-data-407bf6799c9b?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/407bf6799c9b</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Tue, 01 Oct 2024 23:12:22 GMT</pubDate>
            <atom:updated>2024-10-05T17:32:32.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UV20Lyikv_nv_R7O3InmsA.jpeg" /></figure><h3>Building Future-Ready Data Architectures: The Power of the &quot;Done Once, Done Right&quot; Mindset in Data Engineering</h3><p>As data engineering rapidly evolves, we’re confronted with a familiar tension: deliver quickly or deliver correctly? In our rush to meet deadlines, the &quot;quick fix&quot; is often prioritized, but this mindset is inherently shortsighted. We must shift toward a &quot;done once, done right&quot; mentality—a principle that focuses on building data architectures robust enough to not only serve today’s needs but also scale for tomorrow’s innovations like machine learning (ML), artificial intelligence (AI), and real-time streaming through Kappa architectures.</p><h3>What Does &quot;Done Once, Done Right&quot; Mean?</h3><p>At its core, &quot;done once, done right&quot; embodies a disciplined approach to data engineering. It requires thoughtful upfront planning, adherence to best practices, and a commitment to future-proofing our solutions. This mindset does not reject speed outright; rather, it focuses on minimizing long-term inefficiencies and technical debt by investing time and effort in designing systems that are scalable, reliable, and flexible from day one.</p><p>In an era of exponential data growth, healthcare organizations cannot afford to revisit their architecture every time a new challenge arises. By adopting this mindset, we ensure that our solutions evolve as needs shift, avoiding the costly cycle of rework that can cripple data teams in critical industries.</p><h3>The Importance of Shifting from Reporting to Innovation</h3><p>Traditionally, data engineering in industries like healthcare has focused heavily on building for reporting and business intelligence. However, the landscape is shifting. Now, the focus is on enabling advanced analytics and predictive insights through ML and AI, where the quality and structure of data pipelines are foundational. It’s not just about historical reports anymore; it’s about using real-time data to drive immediate, life-saving decisions.</p><p>In this context, a &quot;done once, done right&quot; approach doesn’t just impact efficiency—it impacts outcomes. For example, the ability to stream real-time patient data and feed it into ML algorithms can enhance early detection systems, potentially saving lives by predicting complications before they escalate. This is the future we should be building toward.</p><h3>The Core Pillars of &quot;Done Once, Done Right&quot;</h3><p>To apply this mindset in practice, let’s focus on the following principles:</p><h3>1. Quality Over Speed</h3><p>In healthcare, the integrity of data can affect treatment outcomes. When working with systems like Epic and integrating with Snowflake using tools like Fivetran, we must ensure that every step—from extraction to transformation to load—is carefully calibrated. Rushing to meet short-term deadlines may deliver reports faster, but at what cost? Ensuring accuracy upfront reduces the risk of erroneous data entering predictive models or clinical dashboards.</p><h3>2. Comprehensive Planning with Future Architectures in Mind</h3><p>When architecting our data flows, particularly from legacy systems like Epic into Snowflake, we need to think beyond immediate reporting needs. The shift toward real-time architectures like Kappa must begin with foundational planning. Start by understanding which parts of your data pipeline need to be real-time and which don’t. Build with modularity in mind so that adding real-time elements later on doesn’t require re-engineering the entire system.</p><h3>3. Building for ML and AI from Day One</h3><p>For data engineering teams, it’s crucial to understand that AI and ML aren&#39;t just buzzwords—they are powerful tools that transform raw data into actionable insights. Building data models and pipelines that can efficiently feed into ML workflows should be part of the initial design. This means incorporating robust data cleansing, enrichment, and feature engineering processes within the pipeline, rather than bolting them on afterward.</p><p>For instance, ensuring that healthcare data adheres to strict data governance standards (e.g., HIPAA) while being flexible enough to allow experimentation in ML models is a balancing act that should be addressed from the start.</p><h3>4. Documentation and Governance as Key Enablers</h3><p>Documentation is often an afterthought, but in &quot;done once, done right,&quot; it becomes a pillar. Comprehensive documentation ensures that future team members or stakeholders can easily understand, replicate, or extend the work. In healthcare data engineering, where regulatory compliance is strict, having clear data lineage and audit trails is non-negotiable. Governance also plays a significant role in this. By creating robust policies for data management, we ensure that all parts of the pipeline are secure, reliable, and compliant—without sacrificing agility.</p><h3>5. Prioritize Reusability and Automation</h3><p>Reusability and automation are your allies in &quot;done once, done right.&quot; Building reusable components—whether it’s code for data ingestion or pre-built transformation logic—ensures that we don’t reinvent the wheel every time a new data source or model is introduced. Automating the deployment of these components, along with automated testing and monitoring, ensures consistency and reliability across the pipeline.</p><p>For example, real-time error-handling mechanisms or automated data quality checks can save time and ensure that your pipeline’s integrity is maintained without constant manual intervention. Moreover, as we move toward architectures that support AI and ML, automating model retraining and deployment will be critical.</p><h3>6. Reducing Technical Debt: Invest Now, Save Later</h3><p>Every time a quick fix is applied to an engineering problem, technical debt accumulates. While this debt may seem manageable in the short term, it eventually slows down the entire system, making it harder to innovate. Teams end up spending more time on maintenance than on building value. In the &quot;done once, done right&quot; approach, we choose to invest time now—whether it’s through thorough testing, code optimization, or infrastructure scalability—so that we can save ourselves from a long-term backlog of issues.</p><h3>Building Toward the Future with &quot;Done Once, Done Right&quot;</h3><p>As we look to the future of data engineering, particularly in healthcare, the shift from reactive to proactive data systems is clear. We no longer just gather data to report what happened. We now predict what’s coming. Whether it’s through ML models that forecast patient outcomes or real-time systems that monitor ICU metrics, the infrastructure we build today will determine how well we can harness tomorrow’s technologies.</p><p>If we commit to a &quot;done once, done right&quot; approach—prioritizing long-term quality over immediate speed—we will not only improve our data systems but also create meaningful, impactful change in the healthcare outcomes of the patients we serve. The data we engineer could be the difference between reactive and preventative care.</p><p>Let’s build with that in mind!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=407bf6799c9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Journey of Building TabOrganizerLight: A Humbling Experience]]></title>
            <link>https://medium.com/@jtouley/the-journey-of-building-taborganizerlight-a-humbling-experience-3470a4b57dca?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/3470a4b57dca</guid>
            <category><![CDATA[satire]]></category>
            <category><![CDATA[mobile-apps]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Mon, 20 May 2024 16:23:43 GMT</pubDate>
            <atom:updated>2024-05-20T16:23:43.601Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8-aU0I1lpaapePFBO2hhkw.png" /></figure><p>Recently, I embarked on a project to develop an Android app named TabOrganizerLight. The goal was simple: create an app that could list open tabs from the Chrome browser on an Android device. <a href="https://www.linkedin.com/feed/update/urn:li:ugcPost:7197303989057536000?commentUrn=urn%3Ali%3Acomment%3A%28ugcPost%3A7197303989057536000%2C7197310720227581953%29&amp;replyUrn=urn%3Ali%3Acomment%3A%28ugcPost%3A7197303989057536000%2C7197327525176389632%29&amp;dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287197310720227581953%2Curn%3Ali%3AugcPost%3A7197303989057536000%29&amp;dashReplyUrn=urn%3Ali%3Afsd_comment%3A%287197327525176389632%2Curn%3Ali%3AugcPost%3A7197303989057536000%29">Inspired by a comment on LinkedIn from Ryan H.</a>, which Itook as a personal challenged to find a solution for managing tabs on android. However, the journey was far from smooth, leading to a valuable learning experience.</p><h3>The Initial Plan</h3><p>The concept was straightforward. The app would have a button that, when pressed, would display the URLs of all currently open tabs in Chrome. To achieve this, I needed to:</p><ol><li>Request the necessary permissions to read Chrome’s bookmarks and history.</li><li>Query the content provider for Chrome’s open tabs.</li><li>Display the results in a simple UI.</li></ol><h3>Development Process</h3><p><strong>Setting Up the Project:</strong> I created a new Android project in Android Studio and set up the basic UI with a button and a TextView.</p><pre>&lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    android:layout_width=&quot;match_parent&quot;<br>    android:layout_height=&quot;match_parent&quot;<br>    android:orientation=&quot;vertical&quot;<br>    android:padding=&quot;16dp&quot;&gt;<br><br>    &lt;Button<br>        android:id=&quot;@+id/button&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:text=&quot;Get Open Tabs&quot; /&gt;<br><br>    &lt;TextView<br>        android:id=&quot;@+id/textView&quot;<br>        android:layout_width=&quot;wrap_content&quot;<br>        android:layout_height=&quot;wrap_content&quot;<br>        android:layout_marginTop=&quot;16dp&quot;<br>        android:text=&quot;Open tabs will appear here&quot; /&gt;<br>&lt;/LinearLayout&gt;</pre><p><strong>Implementing Functionality:</strong> I wrote the code to handle button clicks, request permissions, and query Chrome’s content provider.</p><pre>package com.example.taborganizerlight<br><br>import android.Manifest<br>import android.app.Activity<br>import android.content.pm.PackageManager<br>import android.net.Uri<br>import android.os.Bundle<br>import android.provider.Browser<br>import android.widget.Button<br>import android.widget.TextView<br>import androidx.appcompat.app.AppCompatActivity<br>import androidx.core.app.ActivityCompat<br>import androidx.core.content.ContextCompat<br><br>class MainActivity : AppCompatActivity() {<br><br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br>        setContentView(R.layout.activity_main)<br><br>        val button = findViewById&lt;Button&gt;(R.id.button)<br>        val textView = findViewById&lt;TextView&gt;(R.id.textView)<br><br>        button.setOnClickListener {<br>            if (ContextCompat.checkSelfPermission(this, &quot;com.android.chrome.permission.READ_HISTORY_BOOKMARKS&quot;) != PackageManager.PERMISSION_GRANTED) {<br>                ActivityCompat.requestPermissions(this, arrayOf(&quot;com.android.chrome.permission.READ_HISTORY_BOOKMARKS&quot;), 1)<br>            } else {<br>                textView.text = getOpenTabUrls().joinToString(&quot;\n&quot;)<br>            }<br>        }<br>    }<br><br>    private fun getOpenTabUrls(): List&lt;String&gt; {<br>        val urls = mutableListOf&lt;String&gt;()<br>        val projection = arrayOf(&quot;url&quot;)<br>        val cursor = contentResolver.query(<br>            Uri.parse(&quot;content://com.android.chrome.browser/bookmarks&quot;),<br>            projection,<br>            &quot;bookmark = 0&quot;,<br>            null,<br>            null<br>        )<br><br>        cursor?.use {<br>            while (it.moveToNext()) {<br>                val url = it.getString(it.getColumnIndex(&quot;url&quot;))<br>                urls.add(url)<br>            }<br>        }<br><br>        return urls<br>    }<br><br>    override fun onRequestPermissionsResult(requestCode: Int, permissions: Array&lt;out String&gt;, grantResults: IntArray) {<br>        super.onRequestPermissionsResult(requestCode, permissions, grantResults)<br>        if (requestCode == 1 &amp;&amp; grantResults.isNotEmpty() &amp;&amp; grantResults[0] == PackageManager.PERMISSION_GRANTED) {<br>            val textView = findViewById&lt;TextView&gt;(R.id.textView)<br>            textView.text = getOpenTabUrls().joinToString(&quot;\n&quot;)<br>        }<br>    }<br>}</pre><h3>Challenges Faced</h3><p>Despite the seemingly straightforward plan, I encountered significant hurdles:</p><p><strong>Permission Issues:</strong> Android’s permission system blocked the app from accessing the required Chrome data, even after requesting the necessary permissions. This was evident from the logcat output, which repeatedly indicated permission denial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3VNBxJ2sl5MjCkOah9cTMg.png" /><figcaption>Logs showing permission failure.</figcaption></figure><p><strong>Emulator Limitations:</strong> Even though the app was correctly requesting and handling permissions, the emulator environment didn’t fully emulate the necessary permissions to access Chrome’s internal content.</p><h3>Humbling Realization</h3><p>After extensive troubleshooting, I realized that Google’s policies prevent third-party apps from accessing Chrome’s bookmarks and history data for privacy and security reasons. This was a humbling moment, recognizing the limitations imposed by the Android ecosystem.</p><p><em>Maybe I’ll finally switch to iOS…</em></p><h3>Reflections and Learnings</h3><p><strong>Understanding Ecosystem Restrictions:</strong> It’s crucial to be aware of platform restrictions and policies that might affect app functionality. Android development requires knowledge of Maven and jvm frameworks.</p><p><strong>Value of Troubleshooting: </strong>The troubleshooting process, though frustrating, was invaluable. It reinforced the importance of reading log outputs and understanding permission handling in Android. <em>Sidenote: I think I spent more time troubleshooting my “build.gradle.kts” than Idid writing the necessary code… No, I know I definitely did…</em></p><p><strong>Community and Feedback:</strong> The inspiration for this project came from community feedback, showcasing the importance of engaging with peers and being open to challenges.</p><h3>Next Steps</h3><p>Though the app can’t achieve its initial goal, the code and learnings are valuable. I’ve uploaded the project to GitHub <a href="https://github.com/jtouley/TabOrganizerLight">here</a>. The repository includes the implementation, README, and logs detailing the permission issues.</p><h3>Conclusion</h3><p>This project was a blend of ambition and reality, highlighting the complexities of mobile app development and the importance of understanding platform limitations. Sharing this journey, both the successes and failures, can provide insights and learnings for others in the developer community.</p><p>Overall, it’s disappointing that Google makes this so difficult to do. I don’t want to have to rely on their login and federation to do something I can easily do on desktop on my phone.</p><h3>Call to Action</h3><p>If you have any suggestions or insights on how to overcome such challenges or want to share your experiences with similar projects, feel free to connect on LinkedIn or comment below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3470a4b57dca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How ‘Who Moved My Cheese?’ Shaped My Approach to Data Leadership]]></title>
            <link>https://medium.com/@jtouley/how-who-moved-my-cheese-shaped-my-approach-to-data-leadership-b692af9ec175?source=rss-4a233f684bab------2</link>
            <guid isPermaLink="false">https://medium.com/p/b692af9ec175</guid>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Jason Touleyrou]]></dc:creator>
            <pubDate>Fri, 10 May 2024 17:37:30 GMT</pubDate>
            <atom:updated>2024-05-10T18:01:22.964Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WpdcaHqjpU0zN1SvusBw3g.jpeg" /></figure><h3>In the maze of corporate change and innovation, finding your way can often feel like an endless pursuit of elusive cheese. This is a metaphor brought to life in Dr. Spencer Johnson’s famed book, “Who Moved My Cheese?” — a book that profoundly influenced my approach to leading data teams and fostering agile, innovative cultures within organizations.</h3><h3>The Discovery:</h3><p>A peer introduced me to ‘Who Moved My Cheese?’ and suggested that I embodied the ‘Sniff’ persona — a character who anticipates change and acts swiftly. Intrigued, I delved into the book, and its themes of adaptability, proactive approach, and embracing uncertainty have since become a cornerstone of my professional philosophy, influencing how I navigate the ever-changing landscape of data leadership.</p><h3>The Team Dynamics:</h3><p>Our team’s process-driven and data-centric culture aligned perfectly with the book’s themes of adaptability and proactive approach to change. As an ENTP or ENTJ personality type according to the Myers-Briggs framework, I brought a natural inclination towards strategic thinking and adaptability to our team dynamics. This self-awareness enabled us to optimize our collaboration, capitalize on our diverse strengths, and excel in situations requiring agility and forward thinking.</p><h3>Operationalizing the Lessons:</h3><p>The lessons from “Who Moved My Cheese?” were particularly relevant as I navigated roles that required the adoption of new technologies, the pitching of projects to clients, and, most critically, the shift from a data-informed to a data-driven culture. This transition often involved overhauling legacy systems — a scenario where the proactive, anticipatory nature of a ‘Sniff’ was crucial.</p><p>As ‘Sniff’, I’ve learned to never wait passively for directions but instead to build solutions proactively and collaborate extensively to refine these innovations. This approach is not without its challenges; change management involves navigating the reluctance of ‘Hems’ and ‘Haws’ — those who resist change due to fear or discomfort.</p><h3>The Value of Feedback and Proactive Service:</h3><p>In data-driven environments, embracing feedback, openness, and proactive engagement is vital. My strategy with stakeholders involves not just meeting their expressed needs but anticipating potential areas of impact — offering them not what they asked for but what they truly need. This can mean distinguishing between reversible and irreversible decisions, a critical skill in efficient decision-making.</p><h3>The Need for Diverse Roles:</h3><p>Every effective data organization needs a mix of ‘Sniffs’, ‘Scurries’, ‘Hems’, and ‘Haws’. The challenge lies in nurturing ‘Haws’ into ‘Scurries’ or even ‘Sniffs’ — transforming cautious deliberation into proactive action. Quality of feedback plays a pivotal role here; simply dismissing changes without constructive engagement does not contribute to growth or innovation.</p><h3>Conclusion:</h3><p>The journey of instilling a dynamic, responsive data culture is complex and fraught with challenges. However, the principles from “Who Moved My Cheese?” provide a valuable framework for navigating this landscape. By fostering a team that not only adapts to change but anticipates and drives it, we can harness the true power of data to inform confident and impactful decisions.</p><p>“Who Moved My Cheese?” isn’t just about anticipating change; it’s about thriving in the midst of it, and this is the ethos I bring to every team I lead. As we continue to evolve in our data-driven endeavors, the lessons from this simple yet profound book remain more relevant than ever.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b692af9ec175" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>