<?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 Dave Trollope on Medium]]></title>
        <description><![CDATA[Stories by Dave Trollope on Medium]]></description>
        <link>https://medium.com/@davetrollope?source=rss-a7a861396c02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vM-WO_OLZbXuEYWeoOqELQ@2x.jpeg</url>
            <title>Stories by Dave Trollope on Medium</title>
            <link>https://medium.com/@davetrollope?source=rss-a7a861396c02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:09:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davetrollope/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[My (Positive) Journey with AI Coding Assistants Junie, and AWS Q!]]></title>
            <link>https://davetrollope.medium.com/my-positive-journey-with-ai-coding-assistants-junie-and-aws-q-28901235b3b4?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/28901235b3b4</guid>
            <category><![CDATA[jetbrains]]></category>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[aws-q]]></category>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 03:33:01 GMT</pubDate>
            <atom:updated>2025-07-19T14:28:44.409Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Positive Journey with AI Coding Assistants Junie, and AWS Q!</h3><p>After hearing about the vibe coding trend and dabbling in RAG technologies over the past couple of years, I had to give it a go. It was overwhelming trying to choose what tool to focus on.</p><p>I tried Zed which was cool, but for me quickly fell apart in my experiments (using local models and other things) — its probably not Zed’s fault, I was learning. Its probably a tool I will return to at some point.</p><p>I tried ChatGPT’s integrations which allow you to interact with open editor tabs and terminals, and its impressive, but not vibe coding.</p><p>Then, I learned about Junie, JetBrains foray in to agentic coding assistants. Unlike the original AI Assistant, they learned to include a basic support level in the All Product Pack, which as a long time JetBrains user have. I couldn’t resist trying it.</p><h4>Project 1: A custom Jira board</h4><p>Given that my goal was to experience the true “vibe coding experience”, I decided to challenge it with a new app. I thought this would quickly fall apart as an idea, but I tried anyway. And was shocked.</p><p>First some background: I use jira regularly across multiple code bases for different micro services and a monolithic app — a typical enterprise pattern. My team creates Jira issues on multiple team managed boards and its hard to track. Jira doesn’t allow boards to cross team managed projects, and only company managed projects allow multiple boards. I get why Atlassian made these decisions, but it works against usability.</p><p>I challenged Junie, in PyCharm, to create an app that shows an agile board in jira crossing multiple projects. Expecting this to fail miserably, I was shocked when I was presented with a usable app that allowed me to select projects, set the Jira API key and view a board crossing projects. It just worked!</p><p>There were some clear improvements I wanted.</p><p>Project 1 Step 2</p><p>I wanted columns (which were pulled from each project workflow) to be ordered generally in the todo/backlog/in progress/merged or deployed/done states. I guided Junie to order the columns this way, and again I was shocked. It just worked. (Later I had to guide it to be case insensitive, but that was much later after other iterations)</p><p>Project 1 Step 3:</p><p>I then ventured to solve one of my most annoying aspects of team managed projects, the accumulation of issues in the done column — routinely solved with a fixed default filter. I simply asked Junie to add a filter to the column allowing me to filter issues by the number of days.</p><p>Again, I was shocked. It added a text input and button that, just worked. My dream jira was coming to life in just a matter of a few Junie requests.</p><p>Of course, it is very limited in many ways, e.g. opening issues in the browser, but it solves major issues in day to day use of enterprise projects crossing jira projects. This was clearly a viable path.</p><p>Project 1 Step 4:</p><p>The initial implementation had a single page with projects and the columns for the board. This wasn’t ideal. So again I set out to challenge Junie expecting it to fail. I asked it to move the project list to the menu bar as a menu. Again, it just worked. Remember, to this point I haven’t written a line of code, and have a working app, solving real problems.</p><p>I didn’t mention that, along the way it was updating the README of the project with relevant information, which I almost certainly wouldn’t have done if I was building it myself — #embarrassed.</p><p>At this point, I decided my “POC” succeeded, and decided to try it on one of my personal projects, a Flutter app that runs on iOS and Android. After all, its one thing to create an app anew, but another to work with an existing code base.</p><h3>Project 2: Desktop support of a Flutter app</h3><p>One of the benefits of Flutter is the cross platform, single code base solution it provides. My app Whose Turn To… runs on iOS and Android, and I always thought it would be good to have a desktop version too — but I never got around to it. So I challenged Junie to make it work on macOS, again expecting it to fail miserably. Yes, I am a sceptic when it comes to new technology.</p><p>This is where the limits of AI revealed itself, but also overcame them.</p><p>Junie observed that I was using a package Native Shared Preferences (a derivative of the standard Shared Preferences package to allow migrating from pre-flutter based apps). Junie went ahead and converted all the calls to Native Shared Preferences to Shared Preferences and fixed the initialization code to run the app on the desktop. Both WOW, and NO!</p><p>I had a working desktop app, but the changes would have fundamentally broken the existing iOS/Android app.</p><p>Project 2 Step 2:</p><p>I told Junie to use Native Shared Preferences on iOS and Android and Shared Preferences on macOS to resolve the issue.</p><p>Expecting it to litter platform specific checks throughout the code I reviewed the result. Again, shocked, because it created a platform abstraction that all the code used. This is what I would have done.</p><p>And did I mention, it now works on 3 platforms instead of 2?</p><p>I have not released this update, yet, spending time proving out the tech first. No-one has actually asked for a desktop version…</p><p><strong>At this point, I am convinced by the value of Junie. Junie, as a coding assistant has a very large opportunity to distrupt how we build solutions to business problems.</strong></p><h3>Project 1 Step 5: Miscellaneous changes &amp; Plan Limits</h3><p>I return to my Jira replacement project, and start to iterate, adding a dockerfile, renaming it to “GlobalBoard” — I know not very inspirational.</p><p>As I iterated I ran in to my first major obstacle. The subscription plan limit. I hit the limits of the credits included in the All Products Package and my progress was halted. It was 11 days before my monthly plan would be renewed. Until then, n0 use of Junie. If this was a business critical problem, I would have upgraded, but even that is limited to 4x the credits with no ability to use more.</p><p><strong>I don’t understand how, in 2025, as an industry we continue to build new products on fixed capacity flat fee plans.</strong> Didn’t we learn from the cloud providers that pay as you go wins? ChatGPT learned this lesson with a pay as go plan that is limited by your budget — why can’t others follow?</p><p>I focus on other business priorities and experiments for 11 days, including Amazon Q Developer (previously known as CodeWhisperer) — an alternative coding assistant — one sponsored by my employer.</p><p>The PyCharm plugin for Amazon Q crashed my IDE multiple times over several days. #unusable. #uninstalled.</p><p>Project 1 Step 6:</p><p>My Junie credits became available again so I iterated a couple more times to make the app more usable. I was continuing my path of building an app without writing a single line of code. #joy.</p><p>I quickly approached my credit limit again. Wondering what to do, I started a new path:</p><h3>Project 3: Cross repo code analysis</h3><p>Reluctantly, I returned to VSCode and try Amazon Q on a couple of proprietary company projects, creating a VSCode workspace including two separate repos, asking it to explain the code paths across the 2 code bases for a specific functionality. It did well, shockingly well. On each side of the code bases it highlighted details about how the interaction occurred, including specific methods used to connect to the microservice from the monolithic app. Had I not known many of the details, it would have been eye opening. Having said that, the structure of the explanation wasn’t the cleanest and how I would explain an end to end code path.</p><p>Amazon Q Developer uses Claude Sonnet 3.7 at the time of writing. And VSCode didn’t crash.</p><h3>Project 1 Step 6: Back to the Jira project…</h3><p>I decided to try Amazon Q Developer, under VSCode on the Jira project. Curious if Amazon Q and Junie would come up with conflicting solutions, I tried solving the case insensitivity problem of columns. Amazon Q (and thus Claude Sonnet 3.7) made the relevant changes with ease.</p><p>On my second change, Amazon Q/Claude Sonnet 3.7 did introduce a syntax error to the code base that broke loading issues. After reporting that it was broken, it got fixed. One of the classic challenges of AI chatbots — “they sometimes provide the wrong answer”. I persevered with Q and successfully made several improvements.</p><p>One of which was to add a user filter list in a drop down.</p><p>This is where both Q and Junie got stuck. Reloading the page with users selected resulted in a duplicate user list. This should be easy to rectify. But neither Q or Junie could come up with a working solution. It was eventually resolved by asking Q to use a simpler checkbox list and moving it to the menu bar. A lot of iterations were spent trying to cajole both assistants in to a working solution, even peeking at the code (no vibing at that point).</p><p>At one point, the user filtering worked for all the columns except the completed column. Trying to fix that in Q resulted in another syntax error (resolved by asking for it to be fixed).</p><p>With the user filtering simplified, the app was back to a working solution, still having never written a single line of code. Original objective maintained, even if I was forced to peek.</p><p>Project 1 Step 7: Adding due dates to the Jira board</p><p>The models really struggled on this. They struggled on adding support for displaying due dates on linked issues. Linked Issues introduce a second level of indirection in the data and the models could never successfully update the app to display the dates correctly. Most of the time, the solutions simply said “No due date”, but in one iteration actually displayed the wrong dates.</p><p>After many iterations, I resorted to looking at the generated code, and asking Q to add logging for the linked issues data. It became clear that it was trying to rely on data in the Jira API that was limited because linked issues don’t return the full data. After realizing this, I guided Q to use the global issue list based on the linked issue ID instead and finally the due date for linked issues was displayed. This problem was definitely a case where I could have debugged and written the code myself faster, but by holding true to this experiment I proved it is still possible to build an app without writing code, but it is clear, being able to read and understand code is critical for these more advanced problems.</p><h3>AWS Q Plan Limits</h3><p>Curious at the plan limits, I investigated the details of the subscription for Q — a per user flat fee, with a per lines of code fee over the included “4000 lines of submitted code”. We pay for what we use. #love-it</p><h3>General Reflections</h3><p>I reflect on a) since using Amazon Q, the readme hasn’t been updated b) Claude Sonnet 3.7 works, but may introduce more iterations than Junie — but is not limited by the current plan.</p><p>Here are a couple of screenshots of “GlobalBoard” as it stands today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*_HJ5YtIIwerC_FJY3x1sCQ@2x.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*lOnT_WZxF9DRjgApdzvZrg@2x.jpeg" /></figure><p>It’s development will continue with Q, simply because I can trust I can make changes (and pay for it if needed) when I want to, despite its limitations (not the Junie really appears significantly better). I look forward to when Q is able to adopt Claude 4.</p><p>I also consider reviving my personal AWS account for my mobile apps to use Q, but I can’t bring myself to using VSCode on them since Flutter is well supported in AndroidStudio (another JetBrains based IDE, governed by Google)</p><h3>Conclusions</h3><ol><li>Junie is a better AI assistant than Amazon Q/Claude Sonnet 3.7, but its fixed plans are a major limitation, though its only slightly above. How important are README updates anyway???? (#contraversial)</li><li>Amazon Q Developer is only usable on VSCode, so JetBrains preferred users will struggle to adopt it</li><li>There are other, more expensive coding assistants. I can not justify the investment exploring those at this time. #valueformoney</li><li>Both Q and Junie similarly reached their complexity limit (with user filtering and linked issues).<br>You will reach a point where it is necessary to read and understand code. If you aren’t a software engineer, keep one in your lifelines.</li><li>AWS Q asks for confirmation of potentially dangerous shell commands (making directories, moving files) which can get tiresome and delay completion of the active task. If you walk away, your session may also expire and when you reauthenticate, the progress is half complete.</li><li>The Jira facade is now in daily use, and not a single line of code has been written by people (though we did read some of the code to guide AI)</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28901235b3b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I found the holy grail in cross platform mobile development]]></title>
            <link>https://davetrollope.medium.com/i-found-the-holy-grail-in-cross-platform-mobile-development-915500c1c4ca?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/915500c1c4ca</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[kotlin-multiplatform]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 02:37:09 GMT</pubDate>
            <atom:updated>2024-03-05T12:45:38.606Z</atom:updated>
            <content:encoded><![CDATA[<p>And it’s <a href="https://flutter.dev/">Flutter</a>. Here is my journey.</p><p>In 2017 I decided to write an app “Whose Turn To Pay?” to keep track of breakfast/lunches between work colleagues, friends etc.</p><p>I built the app on framework RubyMotion because it was cross platform. And allowed me to keep working with Ruby, a language my professional career was leading me away from.</p><p>I released the iOS app and quickly acquired a number of users, so I moved on to developing an Android version. RubyMotion fell flat on this endeavor. I was unable to use get the app very far without considering new Java bindings for APIs I wanted. Not something that I consider a cross platform solution, from a users perspective.</p><p>So, in 2o20 during my downtime over Christmas I looked to Kotlin as a modern language and KMM (Kotlin Mulitplatform Mobile) offered a lot of potential for creating a single cross platform app. I started building the Android version and published it in (?). At this point, KMM was still in alpha/beta mode.</p><p>I started investigating the iOS solution and was again faced with needing to write code in platform specific languages (swift), and stalled. One of the big reasons I stalled (besides needing to write in swift) was the amount of time spent fighting software updates. It seemed like every time I tried to make progress, I spent more time updating Android Studio to the latest beta release, gradle packages and KMM versions, getting basic samples to work than I did working on the app logic.</p><p>In 2022 KMM came out of beta status and in 2023 was renamed to <a href="https://kotlinlang.org/docs/multiplatform.html">KMP</a> (Kotlin MultiPlatform) to be more generic, but I still had to write iOS specific code.</p><p>I turned to KMP Compose which appeared to be potentially developing in to the true cross platform solution which would avoid writing platform specific code, but again I had to rewrite my Android app in a new framework, and it is not currently considered stable. My motivation was lost after several rounds of software updates and examples that fell short, probably because of its beta status.</p><p>Enter Christmas 2023. A new opportunity to look around and play while off work. After a little research, mostly covering ground already trodden, I decided to give <strong>Flutter</strong> a try. It had Rust bindings which is something I learned in 2023, so I had a path of familiarity.</p><p>Firstly, I was able to get the examples working in both iOS and Android during this time, so I turned with fresh optimism to recreating my app as a POC. Within a week, I had basic pages (the About/Info page) working on both platforms. I was using dart exclusively but as a language it was easy to adopt, especially with my AI co-pilot in CodeGPT.</p><p>Within 2 weeks, it was very clear that with flutter, I could achieve what I had been striving to for several years. As I write this, just 2 months later, I have released an iOS version of my app as an update and am prepping the Android release. Every time I look for a cross platform solution to apps, Flutter is to me a clear winner.</p><p>Ironically, I never decided to write any Rust code, so my dart skills are improving!</p><p>Along the way, I was also amazed by the ability to hot reload after code changes instead of having to go through the complete install of the new code, and it works the same way on both platforms. In itself, this is a game changer allowing me to focus on the app logic and iterate very quickly. Amazing!</p><p>All frameworks have their pros and cons and Flutter is no exception.</p><p>I would like to extend my app to the Apple Watch and it’s not supported. Docs say it’s theoretically possible with custom code, but we will have to save that for another adventure.</p><p>Compared to GUI builders that come standard in Android Studio and XCode which allow graphical design of the UI, flutter seemed a little behind. I do miss the Android Studio UI builder, but not enough to give up true cross platform development.</p><p>Flutter is the holy grail I’ve been looking for and if you are looking for a cross platform solution, I would highly recommend you take a look at it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=915500c1c4ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Good intentions don’t necessarily lead to co-worker trust, a simple exercise.]]></title>
            <link>https://davetrollope.medium.com/good-intentions-dont-necessarily-lead-to-co-worker-trust-a-simple-exercise-8e0f994829c?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e0f994829c</guid>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Fri, 04 Nov 2022 23:37:15 GMT</pubDate>
            <atom:updated>2022-11-04T23:37:15.999Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many dynamics in the workplace and being a part of a highly performing team is very rewarding. Are you in a highly performing team?</p><p>If your gut reaction to that question is no, even though you want to believe it is true because your team have good intentions in everything they say and do, one possible reason for that feeling is that you don’t really trust your co-workers.</p><p>You can test this yourself by self reflecting for 1 day or even just a morning.</p><p>Over the next day, spend 1 minute after each co-worker interaction or meeting and consider what they said they would do, and what you said you would do.</p><p>Now ask yourself, do you believe those things will happen? And in the stated timeframes, if stated?</p><p>While we often, with good intentions blurt out “I can do that for you today”, when it doesn’t happen and the person you told that has to ask you the next day if it got done, you instilled one more instance where that co-worker may not trust you the next time you say you will do something. Likewise when your co-workers don’t do it and you have to ask.</p><p>Next, count up the number of instances in a day or that happens and how often you believe those commitments will happen.</p><p>This simple exercise will tell you a lot about yourself and your co-workers.</p><p>If you find the majority of interactions lead to the answer “I don’t believe that will really happen” you can start to address it. Over time, these majorities build in to a general distrust. Don’t let that happen!</p><p>One way of addressing it in yourself is, before committing to something/blurting out your good intentions, take a breath and consider your calendar and planned work today. Can you really do it today? Quickly adjust your own thinking and provide a more realistic answer.</p><p>If your co-workers are the ones committing to things you don’t believe, you can hold them accountable by asking clarifying questions, E.G. “I know you have a lot of meetings today, is doing that today realistic?” It might sound like you are challenging them, but you are offering the opportunity to avoid trust destroying actions.</p><p>Applying this exercise periodically helps you and your team be better and improve over time. Naturally, many factors affect trust within a team, and this just one tool in your tool belt.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e0f994829c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remember, production data is always dirty]]></title>
            <link>https://davetrollope.medium.com/remember-production-data-is-always-dirty-b43eb59b6653?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/b43eb59b6653</guid>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Fri, 01 Jul 2022 03:43:26 GMT</pubDate>
            <atom:updated>2022-07-01T14:51:23.846Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve recently been going through the process of upgrading some django 1.x services to the latest django LTS (3.2)</p><p>In doing so, I’ve faced the normal upgrade woes of standard patterns in the upgrade process and that is ok. But every service has a unique issue during the upgrade process. Here is one very insidious issue because production data is never clean. Luckily, our test environment replicated the issue and we found it before hitting production.</p><p>We have JSONField’s in our django models, and in one service they store lists of data (custom color sets in this case). We weren’t ready to convert to the official django 3 JSON field in the model, continuing with the tried and tested library that supported prior versions.</p><p>During the upgrade, we made code changes to our serializer to account for the known issues relating to the upgrade, changing our custom fields to use a child attribute and ListField instead of relying on implicit handling.</p><pre>class ChartColorField(serializers.ListField):<br>    child = CharField()</pre><p>(instead of inheriting directly from CharField):</p><pre>class ChartColorField(serializers.CharField):</pre><p>See <a href="https://stackoverflow.com/questions/44366748/django-rest-framework-serialize-a-list-of-strings">https://stackoverflow.com/questions/44366748/django-rest-framework-serialize-a-list-of-strings</a></p><p>All the tests passed. Great! On to our real test environment.</p><p>Then, things blew up. OMG why? The backend was returning strings instead of JSON objects and our frontend was not expecting a string (why would you?).</p><p>At first I thought we needed to fix our serialization of this object, but it turns out we were actually persisting a string of a python list. Curiously, we use the JSONField in numerous places, and have never witnessed an object persisted as a string.</p><p>Our actual solution to the problem? Migrate the data persisted in the database to be a real JSON object instead of a python list encoded as a string.</p><p>As it turns out, the JSONField is auto-converting to a string and not leveraging the jsonb field in the database — we went ahead and switched to the official django3 field to enable better handling because it was a seemless change.</p><p>In summary, we were vulnerable to bugs because our persisted data in our test environment and production didn’t match our automated tests.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b43eb59b6653" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Office based software engineering is dead.]]></title>
            <link>https://davetrollope.medium.com/office-based-software-engineering-is-dead-d3e53240ca77?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3e53240ca77</guid>
            <category><![CDATA[remote]]></category>
            <category><![CDATA[covid]]></category>
            <category><![CDATA[pandemic]]></category>
            <category><![CDATA[return-to-work]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Mon, 28 Jun 2021 13:41:46 GMT</pubDate>
            <atom:updated>2021-07-01T13:49:46.020Z</atom:updated>
            <content:encoded><![CDATA[<p>Office based software engineering is dead.</p><p>The COVID pandemic of 2020 has, I believe, permanently affected how the industry creates software. Before the pandemic, offices with hundreds of software engineers came together to build software and systems. The virtual office was always a dream of some, and in some industries like telecoms became a stronger pattern as the industry went through the telecom boom and bust cycle of the early 2000’s ( https://en.wikipedia.org/wiki/Telecoms_crash )</p><p>Why do I think this is a permanent change? Using my current company as an example, we’ve seen through the pandemic people make dramatic life choices, moving cities to be closer to family for example reducing the number of staff close to the office. Of course, the company was supportive because the job was getting done and using an office was not an option.</p><p>As offices slowly reopen, and with many companies promoting a reduced return to the office in the fall, for example 2 days a week, logistically I think this will largely be weak in creating change. I commute 35 miles using express trains to get to my company’s office and recently started returning to the office 2 days a week.</p><p>I have since stopped because my immediate team who can travel to the office has been reduced, and those who are able to use the office choose different days to use the office, if they choose to use it at all and it’s not worth my time traveling 2 hours a day to see a subset (if any) of the people I need to see on a daily basis.</p><p>We will always support the remote team who decide to move away, and the logistics of voluntary office usage yield little likelihood that a consistent pattern of office usage will return. Discussions of mandatory office days or social events don’t affect those who have moved away.</p><p>I believe these same discussions and learnings are happening across the industry and this is why I believe the long term effect is that office based software engineering is essentially dead.</p><p>Companies need to also consider the unexpected shifts that will inevitably result. For example, a small business may be budgeting employee costs based the market cost of of the city they are operating in but as people move away their expectations may change. If an employee moves to a higher cost area, will they expect compensation to eventually match their local market average? Will retaining those employees put a strain on budgets? The same is also true when hiring new positions. A broader search likely requires the positions to have a larger budget to be filled.</p><p>On the flip side however, the impact is already hitting high cost regions because people are moving to lower cost areas now they don’t need to be tied to the office which leads to a reduction in taxes and housing prices. See the following excerpt from https://www.latimes.com/california/story/2021-03-04/california-exodus-san-francisco-migration</p><p>‘“There is a trend in most urban areas, but it’s most pronounced in San Francisco,” said Evan White, executive director of the California Policy Lab at UC Berkeley.</p><p>Part of this flight from San Francisco, White said, may be the result of large tech companies shifting their offices to remote work for the foreseeable future. That kind of freedom may have led employees to move to more affordable counties, he said.’</p><p>Also, will productivity slow or employee mental health be affected from longer days due to communication between employees crossing multiple time zones?</p><p>The long term effects of an increase remote workers are yet to be seen and fully understood but the signs are there which indicate a rebalancing of expectations and finances across employees, companies and cities or states.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3e53240ca77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Light-O-Rama Pixel Power Consumption]]></title>
            <link>https://davetrollope.medium.com/light-o-rama-pixel-power-consumption-ccc34ec02a99?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccc34ec02a99</guid>
            <category><![CDATA[pixel]]></category>
            <category><![CDATA[christmas-lights]]></category>
            <category><![CDATA[lightorama]]></category>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Wed, 20 Jan 2021 03:42:52 GMT</pubDate>
            <atom:updated>2021-01-20T03:42:52.698Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Light-O-Rama Pixel Power Consumption</strong></p><p>This past season I’ve had trouble with some of my light controllers and directors power consumption so I decided to measure the power usage. The results were not what I expected. I hope this info makes it clearer for others.</p><p>Firstly, the test setup: A Pixie16 with 4 12v pixel strings attached, 2 CCR-II ribbons (with extensions) and 2 square pixel strings.</p><p>Everything in this report is purchased from the Light-O-Rama (LOR) website.</p><p>I tested with one string of each type on individually and then with both strings on for each type at 100%, 50% and 20% intensities and a <a href="https://en.wikipedia.org/wiki/Kill_A_Watt#:~:text=The%20Kill%20A%20Watt%20(a,used%20by%20an%20entire%20household.">Kill-A-Watt</a> meter.</p><p>When no lights were on, the Pixie 16 was using 11 watts.</p><p>Here are the results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*6xbbXcHPTJ7Yc-ibUiCY6w.png" /><figcaption>Power consumption of Pixie16 with 2 ribbons and 2 square pixel strings (50 count each)</figcaption></figure><p>I’ve heard in various forums that the reported wattage for pixel strings are often quoted at 20% intensity, and LOR reported the <a href="http://store.lightorama.com/12vblsqpi50c.html">pixel strings</a> as 15 Watts which matches +/-1 the 20% measurement of a single square pixel string (50 count).</p><p>I’ve also asked in various forums about the power consumption of LOR ribbons because they don’t document it on the store. I received conflicting information about the number of emitters vs LEDs etc and no conclusive report on consumption. My measurements show they do use more power than a pixel string but only by 10–20% depending on the intensity.</p><p>I was also surprised to see that the ribbon power consumption was higher when the extensions were removed. I did not expect this — I knew extensions result in less power reaching the string but did not expect it to result in overall lower power consumption.</p><p>Hope this helps some one navigate the power consumption landscape of LOR pixels.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccc34ec02a99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Engineers need sales skills too, a personal story]]></title>
            <link>https://davetrollope.medium.com/engineers-need-sales-skills-too-a-personal-story-e336adce70e8?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/e336adce70e8</guid>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Sun, 13 Oct 2019 21:26:46 GMT</pubDate>
            <atom:updated>2019-10-13T21:26:46.972Z</atom:updated>
            <content:encoded><![CDATA[<p>Engineers need sales skills too, a personal story</p><p>As I grew up I learned to code at home on personal projects, starting with BASIC on a Commodore 64. By the time I reached university I had switched to C programming. Over the years I created lots of code on a variety of projects, helped others struggling with the basics of programming and setting myself up for a great career as a software engineer.</p><p>As I started my career back in the mid-90’s, I began working with a lot of smart engineers and I had the drive to create solutions to problems at work using my personal time. It wasn’t uncommon; many others had side projects and prototypes that moved the company and tech stack forward. I was encouraged by this and saw solutions that others did not see and created prototypes which mostly worked and could be built on and turned in to production code. I could save us (the company) a lot of extra time and they satisfied my personal drive and interests too.</p><p>I quickly started to get feedback that my communication style was abrupt and harsh. Within my first year of working I had alienated people around me. It was a tough learning. Why didn’t people appreciate the great code I was writing, the solutions I was able to create and the time I was saving the company? Why didn’t people like it when I reviewed their code?</p><p>I was very direct in my communication style. Asking questions like “Why didn’t you implement it using ….?”, and making bold statements like “It would be so much faster if you wrote it like this.”</p><p>Over the years (and after lots of constructive feedback) I learned that it’s not enough to be a great engineer who writes great code and fixes problems. I realized that I wasn’t being as effective as I could be because others didn’t want to spend their time with me. I wasn’t part of the team. At first I didn’t care because I knew that my solutions would speak for themselves and win out. This thinking itself was the arrogance I had.</p><p>I remember one day when I had yet another solution to a problem and was going to share it because I was excited. To be honest I don’t even remember now what it was, but I do remember thinking, “Instead of sharing this engineer to engineer, perhaps I’ll try being a salesman” I ridiculed myself and foresaw the amount of time I was going to waste “selling my wares”, but thought it had to be worth trying a different approach. If I were going to sell this idea to others instead of deliver it, I was going to need to use softer language.</p><p>It was, to use an analogy like I was a chef that had just created the lightest, fluffiest pancake in the world and I had to convince others to try it. In thinking that way I realized it’s not important to share all of why it’s good, and in doing so, I stopped making such direct statements and started saying “let’s try a small bite and see how it tastes”. I spent a lot of time trying things with people and talking about just one aspect of the problem. In some ways it drove me crazy because it took 2 — 3 times longer than I thought it should to solve the problem, but after it was adopted I looked back and realized the support I had gained along the way instead of who I had alienated.</p><p>I’m not going to pretend I did everything right from that day forward but I continued to practice “being a salesman” of my ideas instead of “delivering solutions”. Sometimes time didn’t permit that, but as I look back, every time time I delivered a solution and hurried, I met resistance. Every time I pretended to be a salesman, my ideas were more easily accepted. Some didn’t work and were crazy ideas, but I soon learned where there were flaws in my thinking and very often the end result was quite different than what I started with because of the conversations that followed.</p><p>I encourage every engineer who has that extra drive to “create” out of hours to learn to be a salesman at the same time. It will make you a stronger team member, broaden your awareness of where you might fall short in your thinking even when you don’t know it and be an even better engineer.</p><p>I went on to become an engineering manager and as my wife calls me, “A geek with social skills”. That is something I treasure, because it is a true reflection of what I learned. Today I am a Senior Software Engineer at a small startup (KnowledgeHound) continuing to “create” and work in a team that values each other’s contributions and individuality while having a team first attitude.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e336adce70e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why consumption drives your event driven design]]></title>
            <link>https://davetrollope.medium.com/why-consumption-drives-your-event-driven-design-32e41c5bd348?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/32e41c5bd348</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[queue]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[pub-sub]]></category>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Thu, 23 Aug 2018 16:55:45 GMT</pubDate>
            <atom:updated>2018-08-31T02:16:20.163Z</atom:updated>
            <content:encoded><![CDATA[<p>As we design new features across a services/microservice architecture we often leap to reusing existing queues and topics within the system we are adding the new feature to. Often we overlook the underlying semantics of the data being sent or received by the new feature which can dramatically change the way the system works by affecting the way existing messages are processed. In this article I’m going to layout some principles that will help you design your event driven data flows and thus when you should or should not share queues or topics.</p><p>These principles can be applied irrespective of your tech stack. Some queues and topic based systems have features which can help isolate data flows and you need to decide based on the principles described whether they are applicable.</p><h3>Order of Processing</h3><p>Let’s say you have three messages that your service is going to send and a service exists that is going to process the messages:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*JEvH2lTEE66UPOWxvVgUFA.png" /></figure><p>Its very natural to think of things this way and to write services to send such events in a single stream of messages but these 3 messages alone have very different underlying semantics.</p><p>Only message 1 and 3 are related, and clearly you want message 3 to be processed after message 1.</p><p>When the consuming service has a single worker it is easy to assume these messages will be processed in order. Depending on your tech stack, this may not be true. What happens if message 1 fails to be processed (E.G. throws an exception)?</p><p>The conclusion therefore is that these messages (1 and 3) must exist on a non load balanced (single thread of execution) consumer where order is enforced. In understanding this conclusion, we just stated how the consumer needs to be implemented.</p><h3>Relationship to other messages and timeliness</h3><p>In this example, message 2 is unrelated to message 1 and 3. No big deal, a single consumer can process all three messages. In a small system this is true. If you consider the time each event takes to process, you might change your mind. Let’s assume each event takes the following time to process:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*87SJeNfTNmGIW0UcAPDrXQ.png" /></figure><p>If all three messages are processed in order by a single consumer, it takes 11 minutes and 1 second to process all the messages and thus update resource x.</p><p>Perhaps that is acceptable in the system, but many would argue that its not accetable for an update on resource x to be held back by lengthy processing on resource y. Imagine if there was a UI showing the state of resource X? The user experience would be “a slow system”.</p><p>What if message 2 was placed in a separate stream and processed independently ?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*htVrGuOK806orh3ZmXcl-A.png" /></figure><p>Now the create and update operations finish in 1 minute and 1 second and message 2 is processed in 10 minute, thus total time for all messages is 10 minutes, but new actions (e.g. subsequent updates on resource x) can occur after just 1 minute and 1 second. The user experiences a much more responsive system.</p><p>These examples demonstrate how the event semantics and the behavior of the consumer dictate the overall system design and performance, and subsequently the design of the service sending the message.</p><h3>Common Pitfall: Leaping to Load Balanced Workers</h3><p>Lets step back to our original simple solution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*JEvH2lTEE66UPOWxvVgUFA.png" /></figure><p>When teams decide to improve system performance its very easy to leap to load balanced stream processing (assuming round robin assignment to workers):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*N8Xz5ZsEz0TIOHLA3DeNbw.png" /></figure><p>With two workers the ordering looks correct, but if you add a third worker for even more speed (we like speed right?) you end up with worker 3 concurrently processing message 3 which will yield unpredictable results because it could fail due to message 1 not yet being processed and thus the resource isn’t actually created.</p><p>Unfortunately a lot of systems appear “to work” but often for the wrong reasons. When the system starts to exhibit unusual errors or behaviors, its likely due to misunderstanding the event semantics and how they are assigned to consumer workers.</p><h3>Multiple Consumers (with overlapping interest)</h3><p>One of the great benefits to a services/micro-service architecture is the ability to segregate logic and consume a data stream independently. Its very common to identify a data stream that is applicable to only one service and based on the semantics as described above to assume a new queue or topic is the right approach.</p><p>A common technique for minimizing the number of queues (or topics) in your system (keeping operational complexity low) is to accept that a service consumes messages that it has no interest in.</p><p>If all the messages on a data stream are approximately equal in processing time, and the ordering requirements are similar there is little reason to separate them. The processing time involved in dequeuing and examining a message and discarding it is trivial compared the potential operation complexity involved. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*nLddtd4A4aUYl5cZIoi30Q.png" /></figure><p>In this example, both services will process all three messages in 1 minute and 1 second, and having one datastream to process is simpler.</p><p>The urge to separate data streams can be strong, but compromizes like this are well worth it.</p><p>The downside is all services processing the data stream must agree how to identify the message type and discard messages gracefully that are intended for other consumers.</p><h3>Syncronous vs Asynchronous Event Processing</h3><p>In the above examples where event processing takes a long time, it makes sense to use events in an asynchronous model. However, its easy to leap to reusing an asynchronous model because thats what is already used. If your new events are destined for a single consumer and have very short processing times, a synchronous event is likely to be faster and overall simpler.</p><p>For example, in the above examples, if message 1 and 3 both only take 100ms, the complexity is greatly reduced if the sender uses a synchronous event, E.G. a REST call.</p><p>Synchronous events can also side step delays introduced by events on a queue that have longer processing times. Why enqueue an event that only one consumer is going to process if it takes only 100ms and is likely to be queued behind another event that takes 1 second? In that situation, a synchronous implementation is probably better. Don’t be afraid to mix synchronous and asynchronous processing in a system — just be sure to understand the event semantics/processing behavior when deciding how to implement its processing.</p><h3>Understand your tech stack</h3><p>Understanding the need for multiple unique streams of data and how your tech stack can handle them requires a deeper understanding of the features offered, and how they can be applied to your needs. As application developers, we often don’t know the features offered by queuing or event systems. This is both a growth opportunity and a constraint. When you are trying to get a project done, you may need to create a suboptimal solution E.G. creating multiple queues until you can truly learn how features of your tech stack can solve the problem — but in doing so you likely increase the operational complexity of the system.</p><p>Common systems like Kafka and SQS provide filtering and routing features that enable a single data stream to be identified and managed independantly and simplifying the management of ordered datastreams — but these are more advanced feature which require time invested to understand, test and deploy.</p><h3>Conclusion</h3><p>As you scale your systems and do more work concurrently or add new features with new event flows its important to understand how the consuming services will process the events in relation to other events, both functionally and in processing time.</p><p>As you understand the semantics of events through the system its very tempting to try and use the same pattern for a new set of events to minimize growing the overall system complexity — but this can ultimately backfire and create more complexity as you try to deal with the unexpected side effects.</p><p>Wether your tech stack is Java, Python, Ruby, C, RabbitMQ, ZeroMQ, SQS, Celery, etc. understanding these principles will help you find the right solution for your stack and system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32e41c5bd348" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Iteration in chunks (<Django 2.0)]]></title>
            <link>https://davetrollope.medium.com/iteration-in-chunks-django-2-0-743b3b4e2a57?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/743b3b4e2a57</guid>
            <category><![CDATA[iterators]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Tue, 24 Jul 2018 02:18:40 GMT</pubDate>
            <atom:updated>2018-07-24T02:18:40.620Z</atom:updated>
            <content:encoded><![CDATA[<p>I recently was trying out some performance improvements and wanted Django’s iterator() to load objects it was iterating over in chunks or blocks. I had to believe something already existed for this.</p><p>I got excited when I read the docs Django iterator() accepts a chunk_size parameter, awesome! Damn, only in Django 2.0 and of course we aren’t there yet. So I temporarily created my own and share it here in case its useful to anyone else as a starting point.</p><pre>class QuerySetChunkIterator(object):<br>    def __init__(self, queryset, chunk_size=500):<br>        self.queryset = queryset<br>        self.chunk_size = chunk_size<br>        self.current = 0<br>        self.total = self.queryset.count()<br>        if not self.total:<br>            return</pre><pre>        self.end = min(self.chunk_size, self.total)<br>        self.chunks = list(self.queryset.all( [self.current:self.end])</pre><pre>    def __iter__(self):<br>        return self</pre><pre>    def __next__(self):<br>        if not self.total:<br>            raise StopIteration<br>        if self.current &gt;= self.total:<br>            raise StopIteration</pre><pre>        if self.current &gt;= self.end:<br>            # Get a new slice<br>            self.end = min(self.end + self.chunk_size, self.total)<br>            self.chunks = list(self.queryset.all()[self.current:self.end])</pre><pre>    item = self.chunks[self.current % self.chunk_size]<br>        self.current += 1<br>        return item</pre><p>We never productionized this, so take it with a grain of salt and feel free to copy/modify as needed. Feedback welcome too — I’m still maturing with Python and Django 🏄</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=743b3b4e2a57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Double Generator Jeopardy]]></title>
            <link>https://davetrollope.medium.com/double-generator-jeopardy-9ff066afb5de?source=rss-a7a861396c02------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ff066afb5de</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[generator]]></category>
            <dc:creator><![CDATA[Dave Trollope]]></dc:creator>
            <pubDate>Sun, 22 Jul 2018 03:23:44 GMT</pubDate>
            <atom:updated>2018-07-22T03:23:44.069Z</atom:updated>
            <content:encoded><![CDATA[<p>I was recently debugging a problem that heavily used Python Generators and ran in to an unexpected (but perfectly logical) behaviour that others might fall foul of. But first, for those unfamiliar with generators in Python, here is some background that explains why they are very cool.</p><h3>Generators</h3><p>A Python generator is cross between a lambda and an iterator. It allows you to specify the code to be executed on each item in an iterable without creating an entire list of the items to be iterated over. E.G.</p><blockquote>(Pdb) generator=(i*2 for i in range(5))<br>(Pdb) for g in generator: print(g)<br>0<br>2<br>4<br>6<br>8</blockquote><p>Pretty uninspiring until you think about there is never a list holding 5 items in memory. The generator is an iterable lambda that is executed as the iterable is iterated. That means the print(g) only occurs on each iteration with a single item in memory. This is super efficient for large data sets where you can’t hold the entire data set in memory. For a more detailed and probably better explanation, see <a href="https://docs.python.org/3/howto/functional.html#generators">https://docs.python.org/3/howto/functional.html#generators</a></p><p>Now, where it gets really fun is when you use multiple generators chained together….</p><h3>Double/Nested Generators</h3><p>Consider the following code:</p><blockquote>(Pdb) generator1=(i*2 for i in range(5))<br>(Pdb) generator2=(i*4 for i in generator1)<br>(Pdb) for g in generator2: print(g)<br>0<br>8<br>16<br>24<br>32</blockquote><p>This is very efficient because only one item is held in memory for each generator at any one time and only 5 values are processed because each generator executes its lambda when it is needed — I.E. the for loop is actually the invocation of each iteration in both generators. Complex iteration deferred until actually needed. Very cool.</p><p>Now this is the point at which it should be explained that generators act like iterators — I.E. you can’t rewind them. You iterate through the iterable, and you are done. So what happens if you repeat that for loop:</p><blockquote>(Pdb) for g in generator2: print(g)<br>(Pdb)</blockquote><p>Nothing, because the generators have already been exhausted. Makes sense right? However, when debugging its easy to redefine a generator with the intent of rerunning an iteration. Imagine:</p><blockquote>(Pdb) generator1=(i*2 for i in range(5))<br>(Pdb) generator2=(i*4 for i in generator1)<br>(Pdb) for g in generator2: print(g)<br>0<br>8<br>16<br>24<br>32<br>(Pdb) generator2=(i+1 for i in generator1)<br>(Pdb) for g in generator2: print(g)<br>(Pdb)</blockquote><p>It would be easy to expect that you now get 1,3,5,7,9 but you don’t. Why?</p><p>Even though you redefined generator2, generator1 was already exhausted. Therefore, even though you invoke generator2, there is nothing to do.</p><p>Chaining/nesting generators can be super powerful — but be careful you don’t reuse an intermediate generator — you likely won’t get the expected results and this could lead to unexpected bugs that go unnoticed for a long time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ff066afb5de" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>