{"@attributes":{"version":"2.0"},"channel":{"title":"Game B.","link":"https:\/\/mstruwig.com\/","description":"Recent content on Game B.","generator":"Hugo","language":"en-US","lastBuildDate":"Wed, 02 Dec 2026 00:00:00 +0000","item":[{"title":"Rigor mismatch","link":"https:\/\/mstruwig.com\/posts\/rigor-mismatch\/","pubDate":"Wed, 02 Dec 2026 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/rigor-mismatch\/","description":"<p><img src=\"https:\/\/mstruwig.com\/images\/rigor-mismatch\/loose-knot.webp\" alt=\"Four parallel lines cross through a loose knot and run parallel again.\"><\/p>\n<div class=\"bigfirstletter\">\nI think the hardest part of writing code with other people is that some people\ncare more about the quality of the code than others. I think a good name for\nthis is rigor mismatch<span class=\"num\"><\/span>.<span class=\"sidenote-num\">Or,\nas I like to call it, \u201cgiving a shit.\u201d<\/span>\n<\/div>\n<p>Say you need to add a billing rule. You can put it in the checkout, invoicing,\nand refunds code and ship it. A few weeks later, someone changes the rule in two\nplaces and misses the third. Now a customer gets a refund that doesn&rsquo;t match\nwhat they paid.<\/p>"},{"title":"Qwen3-0.6B rolls a d20","link":"https:\/\/mstruwig.com\/posts\/one-token-per-face\/","pubDate":"Tue, 22 Sep 2026 09:20:00 +0200","guid":"https:\/\/mstruwig.com\/posts\/one-token-per-face\/","description":"<div class=\"bigfirstletter\">\nPreviously I used <a href=\"https:\/\/mstruwig.com\/posts\/thoughts-on-jev\/\">Qwen3-0.6B to roll a fair 6-sided die (among other things)<\/a>, by way of the logit trick: a softmax over the logits of one token mapped to each face.\n<\/div>\n<p>Spurred on by this idea, I wanted to push it a little bit further and explore\nwhat happens when we try to roll a single-sided die (d1) through to\na twenty-sided die (d20).<\/p>\n<p>Fortunately, for us, the Qwen tokenizer treats letter A-T as single-tokens, so\nwe don&rsquo;t need to do anything fancy to map each token to a corresponding face\n(but I did check!)<span class=\"num\">.<\/span><span class=\"sidenote-num\">If you don&rsquo;t remember why this is important, I recommend checking out <a href=\"https:\/\/mstruwig.com\/posts\/thoughts-on-jev\/\">my previous post<\/a> about this.<\/span><\/p>"},{"title":"Jev and an LLM try to roll a fair die","link":"https:\/\/mstruwig.com\/posts\/thoughts-on-jev\/","pubDate":"Thu, 17 Sep 2026 22:40:28 +0200","guid":"https:\/\/mstruwig.com\/posts\/thoughts-on-jev\/","description":"<figure><img src=\"https:\/\/mstruwig.com\/images\/thoughts-on-jev\/thoughts-on-jev-title.webp\"\n\t\t\talt=\"intro\" width=\"100%\"><figcaption>\n\t\t\t<p>Generated using ChatGPT Images 2.5.<\/p>\n\t\t<\/figcaption>\n<\/figure>\n\n<script>\nfunction renderProbabilityChart(target, values) {\n document.addEventListener(\"DOMContentLoaded\", function () {\n const dark = window.matchMedia(\"(prefers-color-scheme: dark)\").matches;\n const foreground = dark ? \"#bbbbbb\" : \"#313a3d\";\n const background = dark ? \"#202124\" : \"#ffffff\";\n const grid = dark ? \"#50575a\" : \"#d8dddf\";\n const reference = dark ? \"#8e9699\" : \"#7a8386\";\n const series = [...new Set(values.map(value => value.series).filter(Boolean))];\n const grouped = series.length > 1;\n\n const x = {\n field: \"option\",\n type: \"ordinal\",\n sort: null,\n title: null,\n axis: {labelAngle: 0, tickSize: 0, domain: false}\n };\n const y = {\n field: \"probability\",\n type: \"quantitative\",\n title: null,\n scale: {domain: [0, 1.08]},\n axis: {format: \".0%\", values: [0, 0.5, 1], domain: false}\n };\n const barEncoding = {x: x, y: y};\n const labelEncoding = {\n x: {field: \"option\", type: \"ordinal\", sort: null},\n y: {field: \"probability\", type: \"quantitative\"},\n text: {field: \"probability\", type: \"quantitative\", format: \".0%\"}\n };\n\n if (grouped) {\n barEncoding.xOffset = {field: \"series\"};\n barEncoding.color = {\n field: \"series\",\n type: \"nominal\",\n title: null,\n scale: {range: dark ? [\"#00b1ed\", \"#4fc3a1\"] : [\"#36c9cc\", \"#287a68\"]}\n };\n labelEncoding.xOffset = {field: \"series\"};\n }\n\n vegaEmbed(target, {\n $schema: \"https:\/\/vega.github.io\/schema\/vega-lite\/v6.json\",\n width: \"container\",\n height: 120,\n background: null,\n data: {values: values},\n layer: [\n {\n mark: grouped ? {type: \"bar\"} : {type: \"bar\", color: dark ? \"#00b1ed\" : \"#36c9cc\"},\n encoding: barEncoding\n },\n {\n mark: {type: \"rule\", color: reference, strokeDash: [4, 4]},\n encoding: {y: {datum: 1 \/ 6}}\n },\n {\n mark: {\n type: \"text\",\n dy: -7,\n fill: background,\n stroke: background,\n strokeWidth: 3\n },\n encoding: labelEncoding\n },\n {\n mark: {type: \"text\", dy: -7, fill: foreground},\n encoding: labelEncoding\n },\n {\n data: {values: [{probability: 1 \/ 6, label: \"fair die\"}]},\n mark: {\n type: \"text\",\n align: \"right\",\n baseline: \"bottom\",\n dx: -4,\n dy: -4,\n color: reference,\n fontSize: 11\n },\n encoding: {\n x: {value: \"width\"},\n y: {field: \"probability\", type: \"quantitative\"},\n text: {field: \"label\"}\n }\n }\n ],\n config: {\n axis: {\n labelColor: foreground,\n labelFont: \"sans-serif\",\n labelFontSize: 12,\n gridColor: grid,\n gridOpacity: 0.7,\n tickColor: grid\n },\n legend: {\n labelColor: foreground,\n labelFont: \"sans-serif\",\n labelFontSize: 12,\n orient: \"top\",\n direction: \"horizontal\"\n },\n view: {stroke: null}\n }\n }, {actions: false, renderer: \"svg\"}).catch(console.error);\n });\n}\n<\/script>\n<div class=\"bigfirstletter\">\nThere's been a lot of hype and discussion alongside <a href=\"https:\/\/typesafe.ai\/\">TypeSafe<\/a>'s new model, <a href=\"https:\/\/docs.typesafe.ai\/models\">Jev<\/a>.\n<\/div>\n<p>Jev is <em>interesting<\/em>:<\/p>"},{"title":"An intuition for abstraction","link":"https:\/\/mstruwig.com\/posts\/abstraction\/","pubDate":"Mon, 15 Dec 2025 22:40:28 +0200","guid":"https:\/\/mstruwig.com\/posts\/abstraction\/","description":"<picture class=\"invertable\">\n <img src=\"https:\/\/mstruwig.com\/images\/abstraction\/abstraction.webp\">\n<\/picture>\n<div class=\"bigfirstletter\">\n Building an intuition around abstraction in code can take a little bit of\n practice and experience to learn. Let's make it easier.\n<\/div>\n<p>In South Africa, you need to renew your driver&rsquo;s license card every 5 years.\nThis is a rite of passage &ndash; it involves forms, long queues, confusion, chaos,\nand eventually a new license card.<\/p>\n<p>Here&rsquo;s how it works:<\/p>\n<ul>\n<li>You queue outside of the entrance.<\/li>\n<li>At the front door there&rsquo;s a person (usually a security guard that&rsquo;s been there for years, and learned\nthe pattern) who tells you which form to fill out, and which queue to\nstand in.<\/li>\n<li>While waiting in the queue, you fill out your form.<\/li>\n<li>Once it&rsquo;s your turn, you walk into a room, hand in your form and have your\neyes tested by a machine being handled by an eye test person<span\nclass=\"num\"><\/span>.<span class=\"sidenote-num\">I have no clue what to call\nthis person that handles the eye test machine.<\/span><\/li>\n<li>You then get placed in a different queue by a clerk, hand in your form and your eye exam results to the teller, pay, and leave.<\/li>\n<li>A few weeks later, you get an SMS, and go collect your new driver&rsquo;s license card.<\/li>\n<\/ul>\n<h2 id=\"building-intuition\">Building intuition<\/h2>\n<p>Let&rsquo;s notice a few things:<\/p>"},{"title":"Working with LLMs","link":"https:\/\/mstruwig.com\/posts\/working-with-llms\/","pubDate":"Sat, 08 Feb 2025 22:40:28 +0200","guid":"https:\/\/mstruwig.com\/posts\/working-with-llms\/","description":"<p><img src=\"https:\/\/mstruwig.com\/images\/working-with-llms\/working-with-llms.webp\" alt=\"intro image\"><\/p>\n<div class=\"bigfirstletter\">\nWhen you're an LLM engineer building a product with LLMs in an org with\nother engineers who don't, you get a lot of the following on Slack:\n<\/div>\n<p><strong>User<\/strong>: &ldquo;I tried <code>X<\/code> and it didn&rsquo;t work.&rdquo;<\/p>\n<p><strong>You<\/strong>: *investigates*<\/p>\n<p><strong>You<\/strong>: &ldquo;Nothing looks obviously wrong, it might&rsquo;ve just been bad luck with\nthe completion. Does it happen all the time? What happens if you re-run the\nquery?&rdquo;<\/p>\n<p><strong>User<\/strong>: &ldquo;It worked the second time I tried it.&rdquo;<\/p>"},{"title":"AI Friends","link":"https:\/\/mstruwig.com\/posts\/ai-friends\/","pubDate":"Tue, 24 Dec 2024 22:40:28 +0200","guid":"https:\/\/mstruwig.com\/posts\/ai-friends\/","description":"<p><img src=\"https:\/\/mstruwig.com\/images\/ai-friends\/ai_friends.webp\" alt=\"intro image\"><\/p>\n<div class=\"bigfirstletter\">\nWHILE I write this, everyone is shocked by the death of a teen who was an\nobsessive user of Character.ai (bear in mind -- this post was largely written\nin October, when the news happened, before life got in the way). While details\nare still emerging, I think it's time to put to pen something that's been on my\nmind for a while now regarding the effect AI companions will have.\n<\/div>\n<p>I&rsquo;ve been thinking about the repercussions of generative AI on our social\nfabric for quite some time now. And the stage seems to be set, and the potential\nissues are only now entering the public eye.<\/p>"},{"title":"What makes an A player?","link":"https:\/\/mstruwig.com\/posts\/a-player\/","pubDate":"Fri, 23 Aug 2024 22:40:28 +0200","guid":"https:\/\/mstruwig.com\/posts\/a-player\/","description":"<p><img src=\"https:\/\/mstruwig.com\/images\/a-players\/a-players.webp\" alt=\"intro image\"><\/p>\n<div class=\"bigfirstletter\">AT OpenBB, we've been thinking about the attributes of high quality employees\nover the last few weeks.<\/div> \n<p>Talent density at OpenBB is particularly high<span class=\"num\"><\/span>.<span\nclass=\"sidenote-num\">The highest I&rsquo;ve personally experienced in my professional\ncareer so far, in fact.<\/span>This has largely come down to OpenBB&rsquo;s philosophy\nof hiring slowly and firing fast when it becomes obvious someone isn&rsquo;t a\ngood fit. Because of how OpenBB functions, I generally agree with this approach<span\nclass=\"num\"><\/span>.<span class=\"sidenote-num\">OpenBB gives employees and\nextraordinary amount of flexibility, freedom, and autonomy, but this is paired\nwith high expectations (rightfully so).<\/span> And we&rsquo;re currently rethinking\nwhat &ldquo;good&rdquo; performance looks like.<\/p>"},{"title":"Life update","link":"https:\/\/mstruwig.com\/posts\/life-update\/","pubDate":"Fri, 09 Aug 2024 22:40:28 +0200","guid":"https:\/\/mstruwig.com\/posts\/life-update\/","description":"<figure><img src=\"https:\/\/mstruwig.com\/images\/a-life-update\/quill.webp\"\n\t\t\talt=\"curve\" width=\"100%\">\n<\/figure>\n\n<div class=\"bigfirstletter\">IT'S been a long, long time since I left Praelexis, and a lot has happened since then.\n<p>You can read my goodbye email I wrote <a href=\"https:\/\/mstruwig.com\/posts\/praelexis-goodbye-email\">here<\/a>.<\/p>\n<p>It&rsquo;s been a very busy period in my life, with ups and downs.<\/p>\n<p>I&rsquo;ve wanted to write about some of the things that have happened for a while\nnow. But somehow, as the list of things I&rsquo;ve wanted to write about\ngrew, it somehow became more difficult to start. Kind of like what happens if\nyou try to pour too much cereal at once &ndash; everything just gets clogged up and\nnothing comes out.<\/p>"},{"title":"Goodbye, Praelexis","link":"https:\/\/mstruwig.com\/posts\/praelexis-goodbye-email\/","pubDate":"Fri, 14 Oct 2022 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/praelexis-goodbye-email\/","description":"<p>Today marked my last day at <a href=\"https:\/\/praelexis.com\/\">Praelexis<\/a>, which has been\nmy place of work for just shy of 6 years now. It&rsquo;s been a wonderful journey, but\nit&rsquo;s time for me to move on. Below I&rsquo;ve attached my goodbye email that I sent\nout to the organization on my final day.<\/p>\n<hr>\n<p>Hi there Praelexians,<\/p>\n<p>It&rsquo;s finally time for me to say goodbye.<\/p>\n<p>Writing this email reminded me of one of my favourite panels in Berserk. In this\nscene two of the central characters, Guts and Casca, stare out over the Band of\nthe Hawk&rsquo;s campsite from atop a hill. Casca likens each little flickering\ncampfire to each of the soldiers&rsquo; dreams and ambitions. She comments how all of\nthe soldier&rsquo;s have joined together to throw their own individual, little flames\ninto the biggest bonfire of all, so that they won&rsquo;t go out. Guts refers to this\nas the &ldquo;campfire of dreams&rdquo;.<\/p>"},{"title":"Why your technical documentation sucks","link":"https:\/\/mstruwig.com\/posts\/why-your-documentation-sucks\/","pubDate":"Tue, 16 Aug 2022 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/why-your-documentation-sucks\/","description":"<p><img src=\"https:\/\/mstruwig.com\/images\/why-your-technical-documentation-sucks\/writing.webp\" alt=\"technical documentation\"><\/p>\n<p><em>This article was originally presented as a &ldquo;brown bag talk&rdquo;, an internal series\nof talks at the office where employees meet over lunch to share and discuss\ntechnical topics that interest them. It was also originally published <a href=\"https:\/\/praelexis.com\/9-reasons-your-technical-python-documentation-sucks\/\">as a post\nhere<\/a>,\nbut I&rsquo;ve slightly tweaked it to be a little more, ahem, <strong>opinionated<\/strong><\/em><span\nclass=\"num\"><\/span><span class=\"sidenote-num\">I&rsquo;ll know I&rsquo;ve peaked\nwhen I can say &ldquo;fuck&rdquo; on the company blog.<\/span>. <em>Enjoy!<\/em><\/p>\n<hr>\n<p>In today&rsquo;s post we&rsquo;re going to (briefly) explore one of my favourite topics:\ntechnical documentation<span class=\"num\">.<\/span><span class=\"sidenote-num\">If\nyou&rsquo;ve ever interacted with <em>really<\/em> good documentation, you&rsquo;ll understand\nperfectly the kind of reverence that I have for it.<\/span> More specifically,\nwe&rsquo;re going to look at some reasons why your technical documentation <em>sucks<\/em>.\nAlong the way, we&rsquo;ll also (sort of) touch on how we can make things better. The\npost is a <em>bit<\/em> hyperbolic and tongue-in-cheek, but the lessons aren&rsquo;t \u2014 they\nremain useful whether you&rsquo;re a team of one, or a team of one thousand.<\/p>"},{"title":"Learning D3, Part One: Trial by fire","link":"https:\/\/mstruwig.com\/posts\/d3-by-fire-p1\/","pubDate":"Fri, 31 Dec 2021 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/d3-by-fire-p1\/","description":"<p>I&rsquo;ve been <a href=\"https:\/\/mstruwig.com\/learning\">putting off learning<\/a> D3.js for a while now, primarily\nbecause I&rsquo;ve isolated myself from fun distractions to complete my PhD<span\nclass=\"num\"><\/span><span class=\"sidenote-num\">A story for another day. But\nthere <em>will<\/em> be one.<\/span>. Alas, I&rsquo;ve been on leave for a week, before I start\nfull-time work in 2022. After 3 or 4 days of thesis-induced, delirium-riddled\n&ldquo;rest&rdquo;, I feel slightly renewed. At least enough to where I can face something\nquasi-adjacent to writing or programming, anyway. Not being one to sit idle for\nlong, I&rsquo;ve rolled up my sleeves and slowly started peeling back the layers of D3\nas my motivation has ebbed and flowed.<\/p>"},{"title":"On teaching","link":"https:\/\/mstruwig.com\/posts\/on-teaching\/","pubDate":"Mon, 20 Dec 2021 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/on-teaching\/","description":"<figure><img src=\"https:\/\/mstruwig.com\/images\/on_teaching\/intro.webp\"\n\t\t\talt=\"intro\" width=\"100%\">\n<\/figure>\n\n<p>A month or so ago, I helped teach a three-day introductory Python course to\nclient&rsquo;s employees who were directly involved in, or adjacent to, credit\nmodelling. Of the 8 or so people who attended, everyone was interested in\nlearning Python. What made this a fun course to teach is that almost no one had\nprevious experience with the language, only SAS. It was a challenge for me &ndash;\nteaching 8+ hours per day, three days in a row, is hard work. Anyway, I remember\nlying on the couch after the final day with a handful of takeaways from the\nexperience, which I noted down and have shared here.<\/p>"},{"title":"Adding videos in JupyterBook","link":"https:\/\/mstruwig.com\/posts\/jupyterbook-video\/","pubDate":"Wed, 20 Oct 2021 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/jupyterbook-video\/","description":"<figure><img src=\"https:\/\/mstruwig.com\/images\/jupyterbook_video\/title.webp\"\n\t\t\talt=\"intro\" width=\"100%\">\n<\/figure>\n\n<p>A short post, hopefully to help out future fellow users who want to embed videos\nin their Jupyter Book.<span class=\"num\"><\/span><span class=\"sidenote-num\">Book\n<em>not<\/em> Notebook. These are very different (albeit related) projects. It probably\nwasn&rsquo;t the best idea to use this name, since googling for Jupyter Book only\nreturns irrelevant results.<\/span><\/p>\n<p>For a commercial endeavour, we&rsquo;ve been using the <a href=\"https:\/\/jupyterbook.org\/intro.html\">Jupyter\nBook<\/a> project to compile a bunch of\ninstructional material (in the form Notebooks and Markdown) into an easy-to-publish format\n(static HTML) that is easy to distribute (the internet) and that looks beautiful\n(JupyterBook).<\/p>"},{"title":"Covid Psychosis","link":"https:\/\/mstruwig.com\/posts\/covid-insanity\/","pubDate":"Tue, 07 Sep 2021 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/covid-insanity\/","description":"<figure><img src=\"https:\/\/mstruwig.com\/images\/covid_psychosis\/covid_psychosis_intro.webp\"\n\t\t\talt=\"intro\" width=\"100%\">\n<\/figure>\n\n<p>Not many things have been able to break me from my from PhD-fueled writing hiatus, but\nI&rsquo;ll admit people losing their minds isn&rsquo;t a bad place to start.<\/p>\n<p>This is based this on my observations of friends and coworkers as we all attempt\nto navigate the COVID situation (now that vaccines are available for over-18s in\nSouth Africa). It&rsquo;s also heavily fueled by an excellent <a href=\"https:\/\/www.youtube.com\/watch?v=PqjbvBa3XIQ\">94th episode of the\nDarkhorse Podcast<\/a>, where Bret\nWeinstein articulates something I&rsquo;ve believed for some time now. Right now, the\nworld seems to be suffering from a kind of COVID psychosis, where the so-called\n&ldquo;adults in the room&rdquo; have seemingly lost touch with reality.<\/p>"},{"title":"If\u2014","link":"https:\/\/mstruwig.com\/posts\/if\/","pubDate":"Mon, 17 May 2021 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/if\/","description":"<figure><img src=\"https:\/\/mstruwig.com\/images\/if\/if_picture.webp\"\n\t\t\talt=\"intro\" width=\"60%\">\n<\/figure>\n\n<pre class=\"poem\">\nIf you can keep your head when all about you\n Are losing theirs and blaming it on you;\nIf you can trust yourself when all men doubt you,\n But make allowance for their doubting too:\nIf you can wait and not be tired by waiting,\n Or being lied about, don't deal in lies,\nOr being hated don't give way to hating,\n And yet don't look too good, nor talk too wise;\n\nIf you can dream\u2014and not make dreams your master;\n If you can think\u2014and not make thoughts your aim,\nIf you can meet with Triumph and Disaster\n And treat those two impostors just the same:\nIf you can bear to hear the truth you've spoken\n Twisted by knaves to make a trap for fools,\nOr watch the things you gave your life to, broken,\n And stoop and build 'em up with worn-out tools;\n\nIf you can make one heap of all your winnings\n And risk it on one turn of pitch-and-toss,\nAnd lose, and start again at your beginnings\n \u2060And never breathe a word about your loss:\nIf you can force your heart and nerve and sinew\n To serve your turn long after they are gone,\nAnd so hold on when there is nothing in you\n \u2060Except the Will which says to them: 'Hold on!'\n\nIf you can talk with crowds and keep your virtue,\n Or walk with Kings\u2014nor lose the common touch,\nIf neither foes nor loving friends can hurt you,\n If all men count with you, but none too much:\nIf you can fill the unforgiving minute\n With sixty seconds' worth of distance run,\nYours is the Earth and everything that's in it,\n \u2060And\u2014which is more\u2014you'll be a Man, my son!\n<\/pre>\n<p>&mdash; <a href=\"https:\/\/en.wikipedia.org\/wiki\/Rudyard_Kipling\">Rudyard Kipling<\/a><\/p>"},{"title":"Experimenting with Scrollytelling as Knowledge Share","link":"https:\/\/mstruwig.com\/posts\/scrollytelling\/","pubDate":"Thu, 13 May 2021 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/scrollytelling\/","description":"<figure><img src=\"https:\/\/mstruwig.com\/images\/scrollytelling\/personas.webp\"\n\t\t\talt=\"intro\" width=\"80%\">\n<\/figure>\n\n<p><strong>&ldquo;I&rsquo;m in a hurry, just show me what you&rsquo;ve made!&rdquo;<\/strong> Take a look: <a href=\"https:\/\/mstruwig.com\/other\/experiments\/buyer-persona.html\">The Buyer&rsquo;s Persona, a\nwhirlwhind tour<\/a>.<\/p>\n<hr>\n<p>I&rsquo;ve been meaning to get back to one of my favourite pastimes: exploring\ndifferent ways of telling stories using the web (especially when that story is\ninvolves <em>data<\/em>). Between finishing up my PhD (something I&rsquo;ll write about soon\nenough, I&rsquo;m sure) and building products at work, exploration has been relegated\nto the backseat recently.<\/p>"},{"title":"The tricky thing about selling to businesses","link":"https:\/\/mstruwig.com\/posts\/selling_to_business\/","pubDate":"Thu, 25 Feb 2021 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/selling_to_business\/","description":"<figure><img src=\"https:\/\/mstruwig.com\/images\/selling_is_hard\/selling_intro.webp\"\n\t\t\talt=\"intro\" width=\"100%\">\n<\/figure>\n\n<p>For the past few months, I&rsquo;ve been part of a team that&rsquo;s been tasked with\nbuilding out a product and selling it to businesses. Our primary target market\nis large corporations in the financial sector. This has been a unique challenge\nfor the team &ndash; it&rsquo;s near-impossible validating a product when it needs to be\nsold to a person who holds a managerial or department-head position. This kind\nof customer isn&rsquo;t dime-a-dozen, so if you even\n<em>get<\/em> a meeting, the feedback is often heavily biased to <em>that particular\ncustomer<\/em>. I&rsquo;m learning quickly how tricky this can be.<\/p>"},{"title":"Who needs gradient descent? Getting to grips with Nevergrad.","link":"https:\/\/mstruwig.com\/posts\/nevergrad\/","pubDate":"Sun, 21 Feb 2021 00:00:00 +0000","guid":"https:\/\/mstruwig.com\/posts\/nevergrad\/","description":"<figure><img src=\"https:\/\/mstruwig.com\/images\/nevergrad_intro.webp\"\n\t\t\talt=\"intro\" width=\"90%\">\n<\/figure>\n\n<h2 id=\"introduction\">Introduction<\/h2>\n<p>Nevergrad is an interesting and quite wonderful Python library that I&rsquo;ve grown\nfond of over the last few months. It provides tooling to run numerical\noptimization <em>without<\/em> having to rely on computing the gradient of the function\nyou&rsquo;re optimizing (in stark contrast to the current algorithm <em>du jour<\/em> of\nthe deep learning world, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Gradient_descent\">gradient\ndescent<\/a>). Think\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Evolutionary_algorithm\">evolutionary algorithms<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Particle_swarm_optimization\">particle\nswarm optimization<\/a>\nand so on.<\/p>\n<p>I like a few things about <code>nevergrad<\/code>, and it&rsquo;s since become my go-to tool for ad-hoc\noptimization problems, mostly due to how easy it has been to drop into\nmy code. So, today, I&rsquo;d like to talk about <code>nevergrad<\/code> for a bit.<\/p>"},{"title":"Blisteringly-quick mocking when testing Jupyter Notebooks","link":"https:\/\/mstruwig.com\/posts\/quick-mocking-jupyter-notebook\/","pubDate":"Tue, 01 Sep 2020 09:09:00 +0200","guid":"https:\/\/mstruwig.com\/posts\/quick-mocking-jupyter-notebook\/","description":"<p><img src=\"https:\/\/mstruwig.com\/images\/mining-tools.webp\" alt=\"mining-tool\"><\/p>\n<p>Notebooks are good for two things::<\/p>\n<ol>\n<li>Illustrative examples that provide code within the context of documentation\n(sometimes referred to as Literate Programming)<\/li>\n<li>In-line plots.<\/li>\n<\/ol>\n<p>For everything else, you should be using a &ldquo;proper&rdquo; Python module that has some\ntests &ndash; at least for the important bits.<\/p>\n<p>This was the thesis of Joel Grus&rsquo; hilarious talk <a href=\"https:\/\/www.youtube.com\/watch?v=7jiPeIFXb6U\">&ldquo;I don&rsquo;t like\nnotebooks&rdquo;<\/a>, which I happen to\nlargely agree with. And I think it&rsquo;s excellent advice&hellip;<\/p>"},{"title":"Building a product website in half a day with no web dev knowledge","link":"https:\/\/mstruwig.com\/posts\/rolling-own-website\/","pubDate":"Tue, 18 Aug 2020 09:00:00 +0200","guid":"https:\/\/mstruwig.com\/posts\/rolling-own-website\/","description":"<p><img src=\"https:\/\/mstruwig.com\/images\/vintage-horserace.webp\" alt=\"horse race\"><\/p>\n<p>I had an interesting challenge at work a month or two ago. It went something\nlike this, &ldquo;Michael, while we&rsquo;re waiting for the official website to get\nrebuilt, it would be great if you could build a website for our product as an\nalternative. Spend a day on it, let&rsquo;s see what you can get.&rdquo;<\/p>\n<p>I <em>love<\/em> this kind of task or challenge.<\/p>\n<p>I&rsquo;m going to talk you through the process of how I did exactly that. I\nunfortunately can&rsquo;t <em>show<\/em> the final result (since the product hasn&rsquo;t officially\nlaunched yet &ndash; nor is it guaranteed we&rsquo;ll be using this rapid-fire website),\nbut I&rsquo;ll be giving some general advice and my approach for getting a great-looking\nproduct page up <em>fast<\/em>.<\/p>"},{"title":"Lean Startup summary notes + some closing thoughts","link":"https:\/\/mstruwig.com\/posts\/lean-startup-summary-notes\/","pubDate":"Wed, 03 Jun 2020 09:00:00 +0200","guid":"https:\/\/mstruwig.com\/posts\/lean-startup-summary-notes\/","description":"<p>Over the last few days I finished reading and compiling my notes on <em>The Lean\nStartup<\/em> by Eric Ries. The summary notes are available from the <a href=\"https:\/\/mstruwig.com\/learning\">Learning\npage<\/a>.<\/p>\n<p>I really enjoyed the book. I particularly like the <em>build-measure-learn<\/em>\nfeedback loop, and the concept of small batches. This has the potential to be\ntremendously influential in how I conduct my projects and work. I feel naturally\ndrawn to hypothesis-driven development, and Lean Startup seems to provide a\ndecent framework to execute this idea.<\/p>"},{"title":"A short word about comments in code","link":"https:\/\/mstruwig.com\/posts\/a-short-word-on-comments\/","pubDate":"Tue, 19 May 2020 22:40:28 +0200","guid":"https:\/\/mstruwig.com\/posts\/a-short-word-on-comments\/","description":"<p><img src=\"https:\/\/mstruwig.com\/images\/hieroglyphs.webp\" alt=\"hieroglyphs\"><\/p>\n<blockquote>\n<p>A common fallacy is to assume authors of incomprehensible code will be able\nto express themselves clearly in comments.<\/p>\n<\/blockquote>\n<p>\u2014 Kevlin Henney<\/p>\n<p>I quite like <a href=\"https:\/\/twitter.com\/KevlinHenney\/\">Kevlin Henney<\/a>, particularly\nhis talks. Some people grumble about his information density being a little bit\nlow, (as if optimizing for information density is a good proxy for optimizing\nfor information transfer &ndash; it&rsquo;s not), but I find his talks both informative and\nentertaining. Above all though, I find them <em>accessible<\/em>. Kevlin spends a lot of\ntime talking about is the mindset of clean code, which we&rsquo;ll briefly encounter\ntoday.<\/p>"}]}}