<?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[LGTM - Medium]]></title>
        <description><![CDATA[Looks LGTM To Me! A not-so-serious insight into agile dev, tech, and maybe the startup world. - Medium]]></description>
        <link>https://medium.com/lgtm?source=rss----20b400d5ac68---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>LGTM - Medium</title>
            <link>https://medium.com/lgtm?source=rss----20b400d5ac68---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 12:09:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/lgtm" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Special Topics in Calamity Programming]]></title>
            <link>https://medium.com/lgtm/special-topics-in-calamity-programming-f5036094fa4a?source=rss----20b400d5ac68---4</link>
            <guid isPermaLink="false">https://medium.com/p/f5036094fa4a</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Lee Machin]]></dc:creator>
            <pubDate>Wed, 30 May 2018 20:19:48 GMT</pubDate>
            <atom:updated>2018-05-30T20:57:01.961Z</atom:updated>
            <content:encoded><![CDATA[<h4>When your one-off experience in an organisation makes you a bastion of knowledge in the field.</h4><p>So I totally ripped off the title from one of my favourite books, <a href="https://en.wikipedia.org/wiki/Special_Topics_in_Calamity_Physics">Special Topics in Calamity Physics</a> by Marisha Pessl (which I totally recommend you read). Unlike that book, which on the surface is not about physics, this is absolutely about working as a programmer in tech and the nature of discourse that surrounds it. Tuck yourself in and get ready for a few strange sleepytime stories, and if you’re patient enough you’ll find a sort of angry point to it all at the end.</p><h3>Beauty and the Business Enterprise Agile Scrum Technique</h3><p>Once upon a time there was a developer who placed himself on the job market and soon found himself inside the grand headquarters of a multinational business. Entangled in the dusty cobwebs of its hierarchical, departmental, compartmental organisational structure, he ignores the chaos silently whirling around him like a bad draft in winter. He was the latest animated cog in the machine and the best he could do was put his head down and grind through whatever requirements were thrown his way.</p><p>He was far from his dream position at a fancy startup, with the bright glass walls and the high sun glaring from the bar-fridges stacked to the brim with free beer, and a leader whose passion and vision successfully masked his borderline sociopathic tendencies. But it was a start and he couldn’t complain as long as the bills were being paid on time.</p><p>One day a fresh fly hit the tangled web and decided that if they were going to sacrifice their lifeblood to the corporate machine they could at least transform it into something that worked better for themselves.</p><p>Fresh out of Agile College and with his management certifications in hand, he sells his masters on BEAST, the fancy new agile methodology for making organisations as ugly and chaotic as how ugly and chaotic they previously were, only with new words. It would solve every problem and all they needed were a few weird tricks.</p><p>He told his bosses and then his team that everyone had to get in to their palacial HQ bright and early in order to do what he called a ‘stand up’, which from his understanding is a meeting where the developers on the team reinforce their managers’ trust issues by giving them nonsensical status reports. This was agile though and the BEAST expert mandated it, because the team couldn’t be agile without it.</p><p>The certified agile technician mandated further rituals in order to satiate the ever-hungry Agile gods, and so the chaotic but expectable slog through the project requirements was refactored into a chaotic and entirely unpredictable slog through the management’s whims in the form of a ‘sprint’. A sprint, apparently, was a way for the management to change their mind on project scope whenever they wanted instead of committing to a reasonable expectation, while offering no flexibility in kind for their team. The sprint and its measurements provided amazing new tools for management to meticulously tune their team’s performance by firing and reassigning those who couldn’t deliver the baseline amount of story points in their personal velocity score.</p><p>So the story went as the misguided Agilist ran through his checklist of ceremonies and rituals, but this is not the story I want to tell you. The self-proclaimed scrum professional was, to any outside observer, inexperienced and naïve, possibly egoistic, and there is nothing new about the story of big companies being scammed into implementing shoddy systems under the guise of them being ‘Agile’. What’s interesting is what the developer did next.</p><p>A few months later the developer escaped his personal hell and left for pastures new, landing in the startup he always dreamed of working for. It was bliss and in wanting to share that bliss the developer wrote an angry blog post.</p><p><strong><em>“Agile will destroy your company!” </em></strong>the developer cried as he shared his cautionary tale to the world. Paragraphs and paragraphs of text were devoted to explaining why exactly agile methodologies should be avoided at all costs. It was a harsh criticism, controversial too, and the article drew as much ire as it did support. “That’s because you didn’t do it right!” one commenter said, frustrated and upset that his life’s work was being rubbished on the basis of a bad experience. “That’s what everybody always says about agile!” another responded, seemingly in support of the developer who authored the post. The message sunk in, however, and the values of agile suffered a hit to its credibility as the singular event supported the diaspora of victims of bad management.</p><p>In truth, the developer was not aware that he committed the same sin that his previous scrum master did: in having his negative experience of work he then believed that gave him equal, if not greater, expertise, than the person responsible for it. He had learned nothing of agile or scrum, he had only been tricked into believing that he did. The developer grew resentful over time as his first bad experience tainted the flavour of every one that would follow.</p><h3>It Takes One To Node One</h3><p>When I was a young whippersnapper like you the internet to me was like the wild prairie. The vast web of Geocities sites, flash animations, P2P apps and progressive jpegs (not the progressive you think of now) was a vast savannah of knowledge just waiting to be Safari’d, Explore’d and ‘Scaped, and you were the snail seeing it load before your eyes at 28 kilobytes a second, after 5 minutes of listening to what today would qualify as top-quality dubstep to get connected.</p><blockquote>For in six days the Lord made the heavens and the earth, the sea, and all that is in them, and rested the seventh day as his disciples embedded a scripting language. — Exodus 20:11</blockquote><p>The web was dynamic but not as you know it. The birth of JavaScript—a language so bizarre and complex it took <a href="https://en.wikipedia.org/wiki/Brendan_Eich">Brendan Eich</a> four days longer to implement it than it took God to implement <em>the entire world—</em>was slow to be adopted as browser vendors quarrelled over its identity and standards, as if it had no choice of its own. It wasn’t until the Age of <a href="https://en.wikipedia.org/wiki/Dynamic_HTML">DHTML</a> reached its zenith that JavaScript began to grow and come into its own.</p><p>Skip forward some years and the community rabbled and roused over the true potential of their one true language, and so the Tower of <a href="https://babeljs.io/">BabelJS</a> was constructed from the rubble of previous efforts and <a href="http://nodejs.org/">Node.JS</a> sought to bring the language to the elemental core of our being: the <em>backend</em>.</p><p>It’s a sorry tale for sure. This was not enough to satisfy the aged and weary and the young and weary-because-its-cool, and the magnificently evolved language remained pinned to a standard it no longer significantly upheld. Thus confirming the notions that first impressions are everything and what you are is always what you will be, JavaScript was met with derision and mockery from people who had not cared to observe the extent to which it had grown and matured, and in many ways became beautiful; a curious amalgam of of programming philosophies over the decades. Functional, procedural, prototypal, object-orient…al, with a strong sense of Self.</p><p>The myth grew ever harder to dispell as the community converged around improving their ecosystem instead of managing PR, thus vocal opponents were few and far between as their time was spent more productively. And so the reputation of JavaScript being a joke grew ever stronger.</p><p>In every case, the cries from the negative contingent were loud and incessant and absurd, and little effort was made to actively engage in the language as it had become, yet despite this their expertise was still seen as more valid.</p><p>One wonders if it was so deserving of such relentless ire or if it was tribalism at play.</p><h3>The Best Thing Since Sliced Arrays</h3><blockquote>Did you hear about the kid who pushed his stack too much? He finally popped.</blockquote><p>It was 2016 and the market was reeling from the lastest technological collapse. The Document Driven Age had hit the peak and thus began the inevitable collapse as consultants worldwide re-architected their solutions from scratch. Relationships between data are no simpler than relationships between people and it turned out that <a href="https://www.mongodb.com/">MongoDB</a> was not <em>the one (-to-many)</em> it claimed to be<em>.</em></p><p><strong><em>“What on earth was I thinking?” </em></strong>asked one consultant as they became lucid, “<em>I was so busy admiring its web-scale that I was blind to our incompatibilities.”</em></p><p>So it was that nobody learned, and the new hotness came and everything remained the same. Enter the mysterious man Satoshi.</p><p>For time immemorial mankind—civilisations-unkind—has invoked the higher power to shed light on the cosmic mystery that is our existence and purpose. Witches, wizards, magic, the blockchain, electricity, mana, prayer, meditation, distributed ledgers, marijuana, homeopathy, voodoo, conspiracy theories, Rust, dragons, the Loch Ness Monster and the blockchain have all been called upon to bring rhyme to our reason (or lack thereof, natch).</p><p>Satoshi was the latest and greatest in a long succession of great and, inevitably, late. He bestowed the gift of the blockchain upon our fertile land, upon which we could ledge and distribute and spend money without overarching accountability. Naturally the technology was so theoretically diverse that it could solve world peace, prevent starvation, and decentralise it such that alien races light-years away could participate in real time.</p><p>People the world over swarmed upon the hype train like it was Noah’s Ark chooching in after a signal failure (practically another act of god for the British amongst them) and just as there was always a use-case for a bread slicer, there was always a use-case for a distributed ledger and an initial coin offering, which was an offering in the sense of a sacrifice rather than a mutual exchange.</p><p>Suddenly, everyone was an expert. The mysterious technology nobody previously knew about became something everybody knew about in intimate detail. Snake charmers and snake oil abound. The bubble was yet to burst yet the pushing continued more and more, teasing the breaking point into existence.</p><p>Alright, what the fuck was all that except some kind of literary masturbation? You’re probably not asking that question, I’m just putting it into your mouth so I can draw a conclusion.</p><p>If you asked me what I felt about a lot of articles these days, I’d tell you I’m fed up of seeing witnesses masquerading as experts. Just because you had a shitty experience in a company that claimed to be organised in a certain way doesn’t mean the entire nature of that system is flawed; just because you had a burger that tasted like shit doesn’t mean the existence of burgers is wrong. Similarly so, just because it sucked to work with something a decade ago doesn’t mean your decade-old insight and cognitive biases towards that are as accurate now as they most likely were then. And on the flip side just because something looks like the latest and greatest doesn’t mean it’s a one-stop solution for everything you can imagine.</p><p>Deeper than that, it’s a hell of a lot easier to be negative about stuff than it is to be positive, even to the point where you may very well cling onto a negative assessment that was once true in order to maintain a particular world-view. This article is case-in-point: it was easier to write this than it was to write a bunch of other more positive things.</p><p>I love listening to stories about experiences and how things were, they’re informative and often carry a very subtle message as you connect over how things happened for you. I don’t love listening to one-off stories that are twisted into authoritative, absolute advice as if there’s some deeper wisdom in it. It’s experience but it’s not education: knowing what doesn’t go well doesn’t mean you know what <em>does</em> go well, neither does knowing of bad practices make you better educated about better ones. If you really do want to share some authoritative advice, make sure you’ve experienced both the failure and the success because it’s not enough to only see one side of it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5036094fa4a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgtm/special-topics-in-calamity-programming-f5036094fa4a">Special Topics in Calamity Programming</a> was originally published in <a href="https://medium.com/lgtm">LGTM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You might not need CRA]]></title>
            <link>https://medium.com/lgtm/maybe-you-dont-need-cra-b286ab27bef3?source=rss----20b400d5ac68---4</link>
            <guid isPermaLink="false">https://medium.com/p/b286ab27bef3</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[webpack]]></category>
            <dc:creator><![CDATA[Lee Machin]]></dc:creator>
            <pubDate>Sat, 26 May 2018 21:27:58 GMT</pubDate>
            <atom:updated>2018-05-26T21:28:21.278Z</atom:updated>
            <content:encoded><![CDATA[<h4>CRA is fantastic to get up and running in a jiffy, if you don’t care about the bloat. But what if you do?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyAsw0TwocLYdO26cA4zOQ.png" /><figcaption><strong>Really </strong>zero-configuration bundling<strong>.</strong></figcaption></figure><p>I’ve used <a href="https://github.com/facebook/create-react-app">Create React App</a> a few times, and I’ve really enjoyed getting down to the code without having to jump through all of the hoops with <a href="http://webpack.js.org/">Webpack</a> and <a href="https://babeljs.io/">Babel</a> to get my build running in an optimal way. Despite how valuable these tools are to the modern JS developer, doing this back in the days of Babel 5 and Webpack 1 was quite tedious.</p><p>I’ve recently been putting together a library (<a href="https://github.com/leemachin/yadt">another imaginatively named implementation of a data table</a>) that I’ve decided should be open source even though it’s super opinionated about what it does. I also decided it should be written in Typescript, which felt like it would complicated the build somewhat.</p><p>The thing is, there’s not much use publishing a React component if you’ve not got a realistic demo of how it works, and <a href="https://pages.github.com/">Github Pages</a> is a quick and easy to get something like that in place in lieu of having your own website.</p><p>My first approach was to make a new orphan branch (git checkout --orphan demo) and run create-react-app inside it so that I could pull in my component through NPM and build it that way. This was incredibly painful as it required that I publish my code in order to update the demo, and because it was in a different branch I couldn’t work on the demo and library at the same time.</p><p>I didn’t want to push a fully-ejected CRA setup to my master branch either, because it would be much harder for someone browsing the repo to find the actual library code along side all of the Webpack config, server side rendering config, demo code, environment config and so on, while also inflating the burden of dependencies in the codebase. There was nothing lightweight about any of it, especially as I wanted to add Typescript into the mix too.</p><p>Of course, the clue is in the name and CRA is for creating React <em>applications</em>, not libraries. Most of this stuff is shaken out for a production build which is what matters more than anything when deploying your masterpiece, and the overhead of downloading tens or hundreds of megabytes of code for your dev environment isn’t so significant given the quality of life improvements offered by the system.</p><h3>Enter Parcel</h3><p>I heard about Parcel a short while ago and was eager to try it out. People joke and complain about the high level of churn in the JS ecosystem but what you’re really looking for the most part is a passion for innovation. Parcel claims to bundle up your code without any configuration at all, which in some ways feels like the Rails approach to building software. It knows about Typescript, JS, ES6, and other assets you might use like images and CSS. It has a dev server with hot code reloading built in so that’s covered too.</p><p>After feeling uneasy about commiting my ejected CRA setup I decided to give it a proper shot, so I shoved my demo code into a new folder and added a minimal index.html for the entry point. It pulled in the Typescript file from my src folder so I could work on both the library and the demo at the same time, and visually check out the changes. The only configuration I had to change was my tsconfig.json, which had to ignore my demo folder now.</p><p>It was practically flawless and made the previous attempts to get this done look stupid. I could push to github pages without issue and I could make changes to my component on the fly, and I didn’t need the few hundred lines of configuration and the dozens of extra dependencies in my repo to make that happen. Of course, Parcel hides the dependencies just the same as an unejected CRA app does, but the flexibility of structuring my repo in a way that made sense to me easily won out.</p><h3>Missing pieces</h3><p>While Parcel is zero configuration, it doesn’t solve every problem. When it comes to server-side rendering, service workers, or stronger build optimisation you’re going to have to integrate that yourself, because there is no baked in support for those things so far.</p><p>Your bundle size will be larger than with Webpack, for example, because there is no support for dead code elimination (or tree shaking as it’s otherwise known). In this case, you’ll probably want to add <a href="https://rollupjs.org/">Rollup</a> to your pipeline to do that for you.</p><p>For server side rendering you have <a href="https://nextjs.org/">next.js</a>, and for the progressive web app stuff you can probably adapt the ejected service worker code from CRA.</p><h3>Is it right for you?</h3><p>Nobody else can answer that, but I don’t advocate for switching everything over to the new hotness just because it’s new and hot. There are plenty of valid reasons to depend on CRA (or its ejected form): it has an opinion on structure and layout of your codebase and you can easily build conventions around that and it’s very easy to go from zero to hello-world in just a couple of commands. If you’re happy with this then there’s little reason to throw it out; similarly so if you value the power and control that webpack offers.</p><p>If you’re looking to do something like I needed—building a library and deploying demo code independently of each other in the same branch with minimal scripting—then it might be worth giving this approach a shot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b286ab27bef3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgtm/maybe-you-dont-need-cra-b286ab27bef3">You might not need CRA</a> was originally published in <a href="https://medium.com/lgtm">LGTM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The beautiful chaos of the NPM ecosystem]]></title>
            <link>https://medium.com/lgtm/the-beautiful-chaos-of-the-npm-ecosystem-bec61abc5c25?source=rss----20b400d5ac68---4</link>
            <guid isPermaLink="false">https://medium.com/p/bec61abc5c25</guid>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[dependencies]]></category>
            <dc:creator><![CDATA[Lee Machin]]></dc:creator>
            <pubDate>Mon, 02 Apr 2018 19:13:29 GMT</pubDate>
            <atom:updated>2018-04-02T19:13:29.517Z</atom:updated>
            <content:encoded><![CDATA[<h4>Say what you want about the attitude towards micro-dependencies, npm (and by extension, yarn) get plenty right.</h4><p>What follows is a bit of a rant because it can be frustrating to witness the mob-mentality playing out in a way that doesn’t seem so destructive on the surface, yet that’s exactly what the popular JS and PHP bashing turns out to be: just calling it all shit because the status quo is to call it shit, no matter what is being achieved through it. Rather than paying attention to what you enjoy doing as a programmer it can often appear to be the case that you’re just waiting for someone to dig up a bit more dirt on the things you love to hate so you can get back into that drama.</p><p>JavaScript is a weird language to single out here, because it is not the only language that provides a half-way decent dependency management system. RubyGems is fantastic, and it’s great that the community converged on Bundler as <em>the</em> solution to fetching and managing libraries beyond a simple gem install for the one-off cases. How you build those Gemspecs is up to you — Bundler just wraps the existing RubyGems infrastructure, which sounds familiar when you look at Yarn. Rust’s Cargo is equally fantastic, and the approach Go takes is unconventional but fairly intuitive to a beginner who doesn’t want to think about versioning (what could be simpler than plugging a github URL into your source file and having it just work?).</p><p>It’s easier to make the point with JavaScript/Node because it often gets a lot of stick for the attitude the NPM organisation and the surrounding community has towards building a project. A guy called <a href="https://github.com/jonschlinkert">Jon Schlinkert</a> recently got called out for publishing hundreds and hundreds of simplistic packages to NPM, and for having the audacity for big projects like Webpack including some of them as dependencies. I think it’s unfair to call someone out for doing this because the number of downloads often speaks for itself: my completely unfounded speculation is that JS is more accessible to aspiring developers now than PHP and HTML ever were back in the late nineties and just beyond the turn of the millennium. I was cutting my teeth on PHP 4 and an FTP client connected to some shared hosting service way back in 2004 and back then even CSS2 was a distant dream for web devs. But now… we have more inclusive communities with huge numbers of volunteers posting articles and running weekend workshops, never mind the massively open online courses and the boot camps that are now available to those who want them.</p><p>The point is that a user trying to google how to figure out whether a number is odd or even, <em>in JS</em>, is likely to come across a github repo or an npm package that does the job for them already, and since the attitude to programming in JS is to stand on the head, shoulders, knees and toes of giants… well, it stands to reason that they’re more likely to run npm install --save is-slightly-smiling-face-emoji or the yarn equivalent than dive into the source code and see how it works. You can’t expect a beginner to do that even if they have the curiosity, because you can’t rely on the fact that these packages have intuitive implementations. The is-odd package might not be exporting parseInt(n, 10) % 2 === 1, but some crazy thing that handles all kinds of edge cases you would never have dreamed of anticipating.</p><p>It sounds ridiculous to those of us who’ve spent years or decades programming because we have a year or decade long head-start over those who are coming in fresh. And to some level it <em>is </em>ridiculous, because you don’t see the same kind of extreme micromanagement of functions in any other language. Imagine installing GCC or Clang and setting up a new C++ project, and then realising there’s no standard library included, and you have to sudo apt install libcppstd_iostream-dev to work with standard input and output on a terminal.</p><p>This brings me to my main point: the extent to which people extract functions into packages is extreme but optional, and nobody is forcing you to add is-paamayim-nekudotayim to your list of dependencies to see if a string contains ::. Having enjoyed the experience of setting up C and C++ projects, where the solution to using an external library is to either install whatever version of the headers are available through the OS (e.g. with apt on Debian or Ubuntu) or to <em>manually copy the file</em> into your repo and wire it all up with CMake, or Make, or whatever else you use to tell the compiler what to do, or even to copy the code and compile it first so you can link to it… I pretty much spent half a day telling the IDE that the test library I copy/pasted into the project lived in a subdirectory only to get inexplicably broken builds, and CMake looks powerful but seriously complicated. To be fair it’s not unique, you get the same by being introduced to JS through webpack and babel, or Python through pip and virtualenv, or Haskell through Cabal.</p><p>With that said, NPM might be chaotic and mismanaged and not-entirely-professional and whatever else you want to call it, but it (along with other package managers) make it so much easier to share code and have it available to your own project that it’s worth accepting the flaws.</p><p>That isn’t to say that it couldn’t be vastly improved; the unpleasant experience of starting a C project from scratch doesn’t mean that the JS ecosystem gets a free pass. More that the benefits it brings far outweigh some of those drawbacks (some of which have been dismissed by the effort put into Yarn), and if the option was to give all of that up in order to bring order to the chaos, then it would be easy to see just how much this stuff is taken for granted by those who can only see the faults.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bec61abc5c25" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgtm/the-beautiful-chaos-of-the-npm-ecosystem-bec61abc5c25">The beautiful chaos of the NPM ecosystem</a> was originally published in <a href="https://medium.com/lgtm">LGTM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating to the monorepo]]></title>
            <link>https://medium.com/lgtm/migrating-to-the-monorepo-582106142654?source=rss----20b400d5ac68---4</link>
            <guid isPermaLink="false">https://medium.com/p/582106142654</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[monorepo]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Lee Machin]]></dc:creator>
            <pubDate>Wed, 03 Jan 2018 20:10:29 GMT</pubDate>
            <atom:updated>2018-01-03T20:18:04.985Z</atom:updated>
            <content:encoded><![CDATA[<h4>How you can take your existing git repositories and combine them without losing any history</h4><p>There’s a lot of discussion about how monolithic codebases are really bad and you should totally switch to microservices so you have a good codebase. It’s pure cargo-culting and, when it comes to polishing your CV, not without a healthy dose of the fear of missing out.</p><p>The solution you might first arrive to when jumping on the micro-bandwagon is to start setting up bunch of new repos for these fancy new services of yours. They’ll get their own PRs and issues and won’t have to deal with the noise in the original monolithic repo. In a lot of cases this can make sense, especially as a rapidly growing company who actually does benefit from that change in architecture, purely because a lot of the third party services you use to handle CI and deployment have a one-to-one mapping between the idea of a ‘project’ and a repo, and it might be good for your teams to manage their own CI and deploy config as the transition is taking place.</p><p>There are plenty of situations where this solution is good but not optimal, especially if you’re just a small team of developers and your services go as far as having an API, a few workers, and a frontend client. This is practically the barebones of your standard web app, and what you’ll end up with if you set up a fresh Rails project and add a couple of mailers and templates. It’s not separated in that instance but you can see how you’ve got a frontend, a backend, and a job queue, and in this day and age it’s quite likely that your frontend might turn into a full on SPA with React and Webpack and all the other goodies.</p><p>We recently had this problem where I currently work, where having the Rails app in one repo and the frontend in another, and the e2e tests in a third, caused more trouble than it was worth. You couldn’t really run e2e tests in CI because the code required to do that lived in two different places and possibly with different branch names. Never mind having to do code review in multiple repos to deploy a single story. So we made the monorepo switch with about two days of effort.</p><p>Of course, you don’t really want to perform this sort of migration if it means you lose the knowledge of all your prior commits. It will render git log mostly useless, you won’t be able to run git blame or git bisect, or revert prior broken commits. <em>Everything </em>will point to that one commit where you merged it all. So, here’s the step by step guide to doing it in a beautifully lossless manner.</p><blockquote><strong>I don’t wanna read, just give me the script!<br></strong>It’s worth reading on before running this blindly, but if you’re already comfortable with git and want a one-shot solution then you can’t go too wrong by adapting this shell script and performing a mass migration. I recommend you run it against a disposable repository, if not just a branch, so you don’t accidentally mess everything up.</blockquote><pre>github_org=lgtm<br>my_repos=&quot;persephone achilles icarus antigone&quot;<br>src_dir=./src</pre><pre>git checkout -b monorepo-migration</pre><pre>for repo in $(echo $my_repos); do<br>  git remote add $repo git@github.com:$github_org/$repo.git<br>  git fetch $repo<br>  git read-tree --prefix=$src_dir/$repo -u $repo/master<br>  git add $src_dir/$repo<br>  git commit -m &quot;Migrated $repo to $src_dir/$repo&quot;<br>done</pre><pre>git push -u origin HEAD</pre><pre># Now make the PR</pre><h4>1. Decide on the directory structure</h4><p>Are you going to move all of the repos into src or services or leave them at the root? Better to decide that up front so you can make your life easier later on. It might be good to do this in a fresh repo, or one that you’ve originally used to orchestrate those separate repos, depending on what your setup is.</p><h4>2. Set up your git remote</h4><p>You’ll need to add a new remote for the repo you want to migrate, because you can’t just mv codebase without losing all of the commits. Let’s say I’ve got my React app in a repo called <em>persephone</em>:</p><pre>git remote add persephone git@github.com:lgtm/persephone</pre><h4>3. Fetch the code from the remote</h4><p>Next, you need to grab the code without checking out the branch. This is so git is aware of what you’re planning to merge in. Like above, you can automate this:</p><pre>git fetch persephone</pre><h4>4. Read the commits from the remote repo into your new one</h4><p>If you have any open PRs in your old repo I suggest you merge them before continuing, because you’ll have a bit more trouble if you’ve taken this step and need to update with fresh commits.</p><pre>git read-tree --prefix=src/persephone --u persephone/master</pre><p>This is copying git’s history from the master branch in your remote repo into a specific directory in your new one (--prefix means it will stick the supplied path to the beginning of each filepath in the tree). Even for ancient repos this shouldn’t take more than a couple of seconds.</p><p><strong>Beware of the </strong><strong>.gitignore:</strong></p><p>Double check the correctness of your .gitignore files in each repo. If you have added lines to that file but the ignored files are still committed inside the remote for some reason (e.g. maybe you committed a sensitive file, ignored it after the fact, and forgot to remove the file from git), they will not be copied in. This may lead to bizarre, head-scratching errors when a file that should be there suddenly isn’t, and you will otherwise have to adapt your setup to put those files in the right place in your monorepo. You wouldn’t expect the repository metadata to be the source of a bug, after all.</p><h4>5. Commit the changes</h4><p>Even though you’re reproducing the history of one repo inside another, unrelated one, you’ve still got to add a commit at the end to seal the deal.</p><pre>git add src/persephone<br>git commit -m &quot;Migrate persephone repo to src/persephone&quot;</pre><h4>6. Rebase into master</h4><p>Provided you did this in a branch so you could encapsulate it in a PR, it is <strong>absolutely vital </strong>that you merge it into master by rebasing. Make sure you’re all up to date and nothing else has been merged meanwhile, otherwise you’re going to have to re-apply those lost commits.</p><pre>git checkout master<br>git pull --rebase<br>git rebase monorepo-branch<br>git push --force</pre><p>The force push will probably set alarm bells ringing in most people, but you just copied the entire history of several repos into a new one, meaning that all of those commits happened well into the past and almost definitely before whatever else has been committed inside the new repo. Just make sure to co-ordinate the merge and do it in a quiet moment. This may also mean that you have to disable branch protection for a short while.</p><p><strong>What if I don’t want to rebase?</strong></p><p>Then you get a massive merge commit, which probably isn’t too helpful, or otherwise the history of several repos squashed into a single commit, which is totally useless.</p><h4>7. Deal with the rest of the transition</h4><p>Many third party integrations assume that one project is equal to one repo, and might not support the monorepo use-case at all. In any case, you’re going to have to reconfigure your CI pipelines to work with your new setup since you can’t assume that <em>anything </em>lives in the repo root any more.</p><p>It’s prudent to do this as part of the monorepo PR you have going on, but of course those commits will become difficult to review if you’re migrating any significant number of commits.</p><p>Our own monorepo migration resulting in building a local CLI suite that abstracted most of the commands for testing, building and deploying the few services we have. This simplified the config with CircleCI quite considerably, as otherwise the YAML file would be practically unmaintainable. If you’re not using a build system like Make, or you’re juggling a couple of them because one service uses Go and another use Node or whatever, it would be worth having a top-level system to co-ordinate all of that.</p><p><strong>Copying existing PRs:</strong></p><p>If you did this migration while some PRs were still left hanging, you’re not totally screwed. There are solutions to migrating those branches without losing the commit history (using git filter-branch), but if you’ve got more than a couple of PRs to handle it’s going to be fiddly work.</p><p>A quicker solution, at the expense of losing history and author information, is to apply a patch. You can get one for a PR by adding .diff to the end of the URL, and saving the contents to a file (let’s call it pr_patch). You can link to the original PR and stuff in the commit message, which is just-about good enough.</p><pre># assuming pr_patch exists with PR diff<br>git apply pr_patch --directory=src/persephone<br>rm pr_patch<br>git commit...</pre><h4>Worth it?</h4><p>That’s the real question. It doesn’t make sense to go to this kind of effort if you don’t understand the value it provides over your existing setup, so it’s worth spending the time outlining what you expect to gain and what it’s going to cost to get it done. That absolutely includes the disruption to the team (or teams) while that migration happens.</p><p>For us, the main value was in:</p><ul><li>Frontend and backend code can be reviewed within context of each other</li><li>No need to maintain multiple branches across multiple repos for one story</li><li>Greater visibility of the codebase as a whole</li><li>Easier to setup e2e tests for each PR</li></ul><p>The main difficulty was not in copying the commits from one repo to another, but with reprogramming the CI environment to handle the new pipeline and tweaking services like CodeClimate until they were happy. However, this allowed us to unify much of the disparate shell scripting spread around various YAML files and combine them into a versatile CLI tool.</p><p>This might not be the solution we would have chosen if we were a larger team, or if we were one team amongst many others, but the productivity gains as a result of this migration are far greater than they were when we originally split the code out into separate repos. And, realistically, those services were never independent enough to deserve their own repositories in the first place.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=582106142654" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgtm/migrating-to-the-monorepo-582106142654">Migrating to the monorepo</a> was originally published in <a href="https://medium.com/lgtm">LGTM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Christmas was almost saved by crypto]]></title>
            <link>https://medium.com/lgtm/how-christmas-was-almost-saved-by-crypto-95e16aacb827?source=rss----20b400d5ac68---4</link>
            <guid isPermaLink="false">https://medium.com/p/95e16aacb827</guid>
            <category><![CDATA[satire]]></category>
            <category><![CDATA[christmas]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Lee Machin]]></dc:creator>
            <pubDate>Fri, 29 Dec 2017 18:56:10 GMT</pubDate>
            <atom:updated>2017-12-29T18:58:59.756Z</atom:updated>
            <content:encoded><![CDATA[<h4>Santa would have been much better off transacting kid’s behaviour on the blockchain and delivering their presents through smart contracts.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8o1DM721yuBxt7KhIidqlw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/_SB32j-cVrU?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Brigitta Schneiter</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Santa was hit as hard by the latest economic downturn as anyone else outside of the 1%. His tax deductions had gone out of the window, his wages had stagnated, and he had to outsource his little helpers in order to keep the cost of running his business under control.</p><p>Just as the song goes, Santa knows when you’re sleeping, and he knows when you’re awake, but he knew nothing about disaster recovery and didn’t keep any backups of his database… for goodness sake. Such as it was when one of his helpers accidentally wiped out his server farm and his list of all the good girls and bad boys in the world vanished into thin air.</p><p>“Christmas is over!” he exclaimed, almost on the verge of a panic attack. “The kids already know they’re getting less this year because money is tight, but now they’re going to get nothing!” Santa should have known better than anyone to test his failover strategies in the event of a crisis, but he was just as much a victim of the steady onward march of technology as anyone else. Consultants urged him years back to invest in IT infrastructure to keep track of the little shits and, a few hundred million later, Santa and his elves were struggling to keep track of everything in their buggy, incomplete ERP system. Was much easier when it was all on paper, although the environment wasn’t too keen on that one.</p><p>He was right, you know. Christmas really was over, or it would have been if it wasn’t for his secret saviour he affectionally dubbed Santoshi. Thanks to Santoshi-San’s efforts in revolutionising currency and accounting systems, Santa had seen the light. You see, he didn’t <em>have</em> to know when the kids were sleeping or being naughty if he provided a mechanism for them to do that for him.</p><p>Imagine how <em>stupid </em>he felt when he realised that he would have been much better off transacting kid’s behaviour on the blockchain and delivering their presents through smart contracts. The kids would still get their surprises on Christmas day because the blockchain was encrypted, and there was no risk of losing data because it behaved like a globally distributed ledger. Such fucking <em>genius</em>!</p><p>And with it, <strong>SantaCoin</strong> was born. Children around the world would earn SantaCoin for good behaviour and lose it whenever they did something naughty, and whatever <strong>SantaCoin </strong>they had in time for Christmas was exchanged for coal, potatoes, Nintendos, and whatever else was on the wishlish they saved on their <strong>SantaCoin </strong>app. Everyone was invited to the ICO, which meant that even the nastiest children got a few nice presents to sell them on the upcoming changes.</p><p>This did not necessarily save Christmas for good, though, as <strong>SantaCoin </strong>itself became subject to gross speculation from all the Scrooges of the world. The risk of the scheme imploding grew more and more likely over the years as the value of the coin itself far exceeded the value of the gifts it was exchanged for, and the volatility meant that the children didn’t know if their millions of coins would actually earn them anything at all. This meant <strong>SantaCoin</strong> was almost too much like real money and he would see Christmas’s ruin a second time.</p><p>Worse than that, Santa found it increasingly hard to keep track of all the gifts and the smart contracts he had to execute, as scammers, perverts and warlords started selling drugs, weapons, and the children themselves on a dark-web ecommerce site known as the Red Ribbon Road<strong>. </strong>This flooded the blockchain with hundreds of thousands of illegal and untraceable transactions and eventually outnumbered those dedicated to making the children happy over Christmas. Some reports surfaced of children excitedly unwrapping heavily artillery on their snowy lawn, and parents finding their baby formula laced with crack cocaine.</p><p>Having tried and failed to make his cryptocurrency and blockchain useful, Santa gave in and went back to spying on children and recording their behaviour with good old pen and paper. It was much harder work but at least it worked.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95e16aacb827" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgtm/how-christmas-was-almost-saved-by-crypto-95e16aacb827">How Christmas was almost saved by crypto</a> was originally published in <a href="https://medium.com/lgtm">LGTM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IE-first Responsiveness and the Minimum Viable Experience]]></title>
            <link>https://medium.com/lgtm/ie-first-responsiveness-and-the-minimum-viable-experience-c2de236110bd?source=rss----20b400d5ac68---4</link>
            <guid isPermaLink="false">https://medium.com/p/c2de236110bd</guid>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[mvp]]></category>
            <category><![CDATA[internet-explorer]]></category>
            <dc:creator><![CDATA[Lee Machin]]></dc:creator>
            <pubDate>Tue, 05 Dec 2017 18:19:03 GMT</pubDate>
            <atom:updated>2017-12-05T20:06:19.299Z</atom:updated>
            <content:encoded><![CDATA[<h4>How you can embrace the raw power of CSS to design for IE and fall-forward to modern technology</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3k7hxI_HhwgR69SvLog0Q.png" /><figcaption>God forbid you still have to use IE, or a version earlier than 11. Those smiley rankings for features are so cute!</figcaption></figure><p>If you’re reading this you’re probably familiar with responsive web design, and the contingent that says you’ll fare much better if you design for the compact mobile experience before inflating it on the desktop.</p><p>The value of going mobile-first is that it’s much easier to design small and build it up into something bigger. More often than not you’re dealing with a very linear flow of content on a small screen, whereas on larger devices and laptops the most efficient use of real-estate requires a more fluid arrangement of elements. It’s much easier to design for that small experience and then make it bigger to suit larger screens than it is to shoehorn the big design into a small device. The only sacrifice is the additional mental cost required to take your usual design behaviours and turn them upside-down.</p><p>So it is with <a href="https://hacks.mozilla.org/2016/08/using-feature-queries-in-css/">CSS Feature Queries</a>, which are like responsive media queries only the responsiveness is now based on what CSS the browser can deal with.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bda388655d10481e8a14e13cb497981/href">https://medium.com/media/0bda388655d10481e8a14e13cb497981/href</a></iframe><p>You might notice a certain chicken and egg problem here, which is that you can’t use feature queries unless feature queries themselves are supported. Much like mobile-first responsiveness though, you just have to reverse your logic and it works exactly how you’d expect.</p><p>Enter <strong>IE-First Responsiveness</strong>.</p><p>IE-First responsiveness is where you write your default CSS to support IE, and then rely on the feature <em>not supported</em> by IE to add things only newer browsers can understand. This is novel in the sense that progressive enhancement traditionally only applied to Javascript, and when it came to presentation you were shit out of luck unless you accepted that you’d have to script part of the design.</p><p>Browsers don’t parse or render CSS they don’t understand, they just ignore it completely. This is both a blessing and a curse as it demands extra tooling to actually figure out errors in your CSS, but the laid-back approach to validation means features like this can actually exist in a backwards compatible manner.</p><p>This means that if you want to enjoy supporting modern browsers without tearing your hair out, you’ve got to treat your modern CSS as a progressive enhancement. This provides at least two huge benefits and one big <strong><em>why</em></strong>?</p><h4>Failing fast</h4><p>If you’re writing IE compatible CSS by default then you are totally avoiding the problem where you build your entire site or web-app in Chrome and, a week before deadline, open it up in IE and stare wide-eyed at the eldritch horror rendered before you. Check it in IE at the start and you’re staring into the abyss, but you’ve got time to close it off; check it in IE at the end and the abyss is staring into <em>you</em>.</p><p>You’ve already solved a plethora of bugs because you anticipated them at the start by offering a minimum viable experience, which you can then build up. Nobody is saying your site has to behave totally identically in IE to how it behaves in a much more modern browser.</p><h4>Progressive enhancement</h4><p>You’ve supported the worst case by default, and now CSS offers a very nice way for you to improve upon that for every browser that supports it, so you can start layering on the niceness. Before feature queries, supporting IE was like baking a cake with a chassis — just gotta make sure the sponge and the filling is good, and that you apply the icing in such a way that you can just swap it out for another icing if you’ve got a difficult customer.</p><p>Of course, the reality is that your cake filling and cake icing are bonded together in such a way that performing such a task pretty much makes the icing worse for everyone. Nobody cares about the cake at that point, it looks like shit.</p><p>In fact, a surprising amount of cross-platform development is like baking chassis-cake.</p><h4>Begging the question</h4><blockquote>“But if I’ve gone to all the effort of supporting IE first, why would I bother writing even more CSS for newer browsers?”</blockquote><p>If the experience in IE and in other browsers is functionally identical because of that CSS, then of course there is no reason to start using feature queries to do the exact same thing in a modern way. That’s just plain hard to maintain.</p><p>The thing with progressive enhancement is that what you add is an improvement to the user’s experience (ideally), and if you don’t need it then you don’t need it. It really is as simple as that.</p><h4>The Minimum Viable Experience</h4><p>Progressive enhancement and responsiveness isn’t a revolutionary concept, but I frequently encounter and raise questions about supporting legacy browsers like IE, and it is almost always secondary to the mission. It’s often a total afterthought because nobody really wants to deal with it if they don’t have to.</p><p>Designs are getting more beautiful and more complex and not all of this can be easily replicated in an older browser, or even a relatively recent phone if you can’t afford a brand new Samsung Galaxy or an iPhone. Sometimes developers will serve an IE-specific stylesheet using conditional comments, or even throw up its hands and redirect people to a modern browser, and it’ll either present a thoughtless, degraded experience or none at all.</p><p>Take a look at your analytics data and browser support stats and, if you find a legacy browser like IE topping the results and you’re considering a fresh design, why not try building for IE first and using the new feature queries to embellish it for the other users? The truth is that even when you do come up with a wonderful new design, you still have a margin of error where you’ll accept some deviation from pixel-perfection, and it’s much better in terms of the expectations you set to make sure the lower end of the experience is well accounted for, before you have to go back and tear apart your work to make it functional for most users.</p><p>It is always easier to build up than it is to build down.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2de236110bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgtm/ie-first-responsiveness-and-the-minimum-viable-experience-c2de236110bd">IE-first Responsiveness and the Minimum Viable Experience</a> was originally published in <a href="https://medium.com/lgtm">LGTM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Raiding the Piggy Bank]]></title>
            <link>https://medium.com/lgtm/raiding-the-piggy-bank-2edd93b455fd?source=rss----20b400d5ac68---4</link>
            <guid isPermaLink="false">https://medium.com/p/2edd93b455fd</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[subscription]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[freemium]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Lee Machin]]></dc:creator>
            <pubDate>Sat, 25 Nov 2017 16:36:38 GMT</pubDate>
            <atom:updated>2017-11-25T16:43:52.437Z</atom:updated>
            <content:encoded><![CDATA[<h4>A deep-dive into the nature of recurring payments, loot boxes and microtransactions, and how they have become more exploitative over time</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pZMKxHyza5AnhTKmqdU0Ag.png" /><figcaption>Loot boxes in Overwatch; admittedly a less egregious example of the concept</figcaption></figure><p>Discussing the impact of a recent shift towards recurring payments is hardly novel, and the concept has been around long enough for most people to understand that, <em>back in the day</em>, we generally had to pay for something once and then we owned it.</p><p>You need only look at the games industry to understand where most of the innovation in exploitative business models takes place. The last decade has seen a substantial change in how the larger game studios deliver their content, and how the narrative driving those decisions has <em>not</em> changed at all. In short, these companies are still battling piracy and increased development costs while failing to admit they are probably more successful than they have ever been.</p><p>With that in mind, please join me on a trip down memory lane, all the way back to the mid-90s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TFC31j7EeVllZkF9mBvpWg.jpeg" /><figcaption>You could argue that the PlayStation was the first console to fully legitimise CDs as a medium for video games (courtesy of <a href="https://en.wikipedia.org/wiki/PlayStation_(console)">Wikipedia</a>)</figcaption></figure><p>Those of you around my age, you may have grown up around the same time the first PlayStation was released. It may have been your first console, or you might have enjoyed the Sega MegaDrive (Sega Genesis), or the SNES (Super Famicom). Maybe you got the N64 for Christmas instead. This was years before Microsoft joined the fray with the Xbox, and when most of what you knew about games came from magazines, columns in tabloid newspapers, and cheesy TV shows like <a href="https://en.wikipedia.org/wiki/Gamezville">Gamezville</a>.</p><p>The reason I’m taking you on this nostalgic trip is because the PlayStation was, to my mind, the first majorly successful console to use the Compact Disc as the delivery mechanism. Nintendo and Sega both used proprietary cartridges and this made it really difficult to create counterfeit copies (not that it was impossible). You might remember that those PlayStation games were CDs that were black in colour on the readable side, a bit like vinyl records. This, along with some other hardware measures, was Sony’s own attempt at preventing piracy with a medium that was dramatically simpler to duplicate.</p><h4>Console mods</h4><p>It didn’t take long for a cottage industry of console chippers to appear. You’d know a guy who knows a guy who could disassemble your console, modify the hardware, and attach a little switch that you could toggle when you were swapping between legit games and ones you’d copied. They’d have a catalogue of games that you could buy from them at a fraction of the cost of the genuine version, and there was often a much greater selection than you could find in your local <a href="http://www.eurogamer.net/articles/article_31589">Electronics Boutique</a>, including bizarre US and Japanese imports. Being a fairly poor family made this a really attractive option of course, because experimentation with obscure titles was much safer when you were paying £5 and not £35.</p><h4>DIY piracy</h4><p>Technology advanced quickly enough that it became an option to buy a PC that came with a CD drive that could burn discs as well as read from them, which made piracy even easier because you could rent whatever games you liked from the local <a href="https://en.wikipedia.org/wiki/Blockbuster_LLC#United_Kingdom_2">Blockies</a> for just £2 or £3, burn them to your own CDs, and then send the rental copy back. For a child with barely any pocket money this was like heaven, and there was little consideration for the ethical consequences that were likely responsible for leading us to where we are today.</p><h4>Pre-owned sales and Trade-ins</h4><p>In those ten or twenty years the industry responded to the increasing accessibility of piracy in various ways, both from the retail side and the development side. Understandably, the threat of losing sales to piracy is quite threatening when the only way you can produce and sell a game is to sell an easy-duplicable physical copy inside a shop. No amount of DRM has ever helped that.</p><p>Retailers like Game tackled the issue by promoting pre-owned games over brand new ones, which encouraged gamers to buy new releases from them and then return them for other new releases at a substantial discount later on. The studios making the games didn’t like this because they didn’t get a cut on those repeated sales of the same game, and it was hard at the time to justify why they should.</p><p>If you’re still with me, let’s take this thing online.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQms4R7un6P5gF32rEFq4g.jpeg" /><figcaption>The Xbox from Microsoft, the latest in a line of revolutionary consoles. (Courtesy of <a href="https://en.wikipedia.org/wiki/Xbox_(console)">Wikipedia</a>)</figcaption></figure><h4>Online multiplayer</h4><p>If you had your own PC and a decent internet connection (256k ADSL was all the rage back then, just as <em>broadband </em>was beginning to enter our collective vocabulary), you probably cut your teeth on games like Quake, Counter Strike 1.6 and Unreal Tournament. Even older consoles supported the option of local LAN play, often through features called ‘system link’ or similar that required a special serial cable in order to work.</p><p>Both the Sega Dreamcast and the Xbox shipped with an ethernet port that allowed you to connect the console to the internet. For an extra cost you could play Phantasy Star Online with other players on your Dreamcast or, more notably, you could buy a subscription to Xbox Live. This was all the way back in 2002 and there is a whole community of 12–15 year olds who may never have seen what it was like back then.</p><p>Why is this history important? Well, it was Xbox Live that successfully validated the idea that gamers really wanted to play online just like you could on a PC. The PS2 was re-released with an integrated network adapter in order to compete, although it had no official service for many years and was free to participate in (this eventually became subscription based with PS Plus). And practically every console since then has had an online service, an online store, and a way for fellow owners of the same console to connect and play together.</p><p>This presented a fantastic opening for game developers who, in order to claim a greater slice of the revenue pie, could take advantage of these online capabilities to keep their players engaged. The Xbox marked the point where more and more games transitioned from pure single-player experiences to being mainly multiplayer with single-player game tacked on. Split-screen soon vanished in favour of online play with headsets and microphones, and even games that never really suited the multiplayer format found themselves shipping with some kind of deathmatch mode. This at least meant players would keep hold of the game longer, rather than trading it in immediately after finishing the 6–8 hour long story.</p><h4>Downloadable Content</h4><p>Once you’ve got your players hooked on your game you can start to build extra content to stop them from getting bored. You could notoriously buy <a href="https://www.polygon.com/2015/3/4/8148565/dlc-horse-armor-elder-scrolls-oblivion-mod">horse armour</a> in The Elder Scrolls: Oblivion, for example, or even buy entire game add-ons that considerably extended the available content. For the most part, the extra content was quite thorough and therefore could cost as much as £15-£20, and it was the console equivalent of the expansion packs you were able to get on PC for many years. Things haven’t really changed much with that kind of DLC and you could consider it a welcome addition to the console experience.</p><p>It was not, however, without controversy. Game studios were accused of shipping the DLC itself with the main game, as if it was originally part of that game but was later locked away. In other cases the DLC was offered in such close proximity to the main release that people suspected that too was original content spliced away for extra profit. Whether or not that happened, it was difficult to argue that the industry was operating solely with impure intentions.</p><h4>Annual releases</h4><p>I would argue that one major antecedent of today’s monthly subscription model is the concept of the annual release. While the idea of a subscription was not at all new, it laid the groundwork for making repeat payments for a single game more acceptable. The annual release is different to a series in the sense that it is often only a minor iteration over what came out the previous year, and it is often hyped to release at the same time (often November or December, just in time for Christmas). If you were invested enough in the multiplayer component of Call of Duty: Modern Warfare 2, for example, it’s highly likely that you would buy the next release and follow all of the other players into the new cookie-cutter multiplayer experience. If you didn’t, there would be fewer players to join you and the pressure to get the new game would eventually convince you to make the switch.</p><p>Other games soon followed suit, seeing the potential of hyping a new iteration every Christmas and securing that much-wanted recurring revenue. Of course, the problem for the studios was that they could only get that payment once every year. What if it could be more frequent?</p><h4>Freemium content</h4><p>Enter the App Store. One of the unintended consequences of Apple’s walled garden was the birth of a new kind of game, which was a variant of the <a href="https://en.wikipedia.org/wiki/Operant_conditioning_chamber">Skinner Box</a>. In this context, such a game is one that understands how to condition a user into paying money by manipulating their sense of success. The difference between this kind of game and an iterative one like <a href="http://orteil.dashnet.org/cookieclicker/">Cookie Clicker</a> or <a href="https://candybox2.github.io/">Candy Box</a> is the financial transaction, and the way the game is tailored to trick you into spending.</p><p>It was incredibly difficult to market mobile games to users at the same prices that were charged for PC and console games, and the overwhelming expectation for many was that they would only play the game if it was free or cost no more than a dollar or so. The idea of delivering a triple A title for £30 or more would not fly at all.</p><p>Smartphones, just like handheld consoles, are great for mobile gaming but they present some limitations of their own. There are few situations where the game will receive undivided attention from the player (basically anywhere with no signal), and plenty where Facebook or Twitter or Instagram will be vying for that same resource. So the game has to be simple enough to work in short bursts and feel rewarding, but it also has to have enough in there to prevent it from being boring for slightly longer periods of time.</p><p>One such way to approach this was to offer the game itself for free, but hide most of the other content behind micro-transactions. The free game might not have a whole bunch to offer, but you can spend £1 or so to buy another bunch of levels, or a special ability that changes the nature of the gameplay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*Ees1C0jcfX1NQw7HkafSIw.png" /><figcaption>Mario knows how to use In-App Purchases responsibly (<a href="https://en.wikipedia.org/wiki/Super_Mario_Run">Wikipedia</a>)</figcaption></figure><p>Super Mario Run is a perfect example of a freemium game that is not exploitative. You get five levels for free, and plenty enough to have fun with without investing in the full game. For a one-time payment you can unlock the rest of the game and the substantial amount of content it has to offer.</p><p>These examples are few and far between and the natural evolution of this business model leads us to where we are today, where every company is engaged in this battle to siphon money from our accounts slowly and steadily over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YO72r-FCmGcA7ba2eZowxQ.png" /><figcaption>Dungeon Keeper Mobile (<a href="http://www.eurogamer.net/articles/2014-02-05-dungeon-keeper-review">Eurogamer 1/10</a>), proof that if history does not exactly repeat itself, it often rhymes.</figcaption></figure><p>One of many egregious examples of freemium abuse came from (believe it or not) Electronic Arts after they released a reboot of Dungeon Keeper on mobile in 2014. In order to understand just how disastrous this was as a release, we need to explore the reasons why freemium became abusive in the first place.</p><h4>Manipulating addictive tendencies</h4><p>How many stories have you read about children wasting thousands on a game because of unrestricted access to In-App Purchases? Most freemium games of this ilk put rate-limits on every interactive aspect of the game, while offering a trickle of rewards to keep you hooked. If you pay a bit of money you can speed that up and get the rewards more quickly, but if you don’t then the game will become annoyingly tedious or even completely unplayable. The player can spend £5 or £10 on a fake currency that allows them to purchase extra in-game resources or super powers (often with time limits of their own) and then they go back to the rate-limited experience.</p><p>This might mean that you can place two or three blocks on the screen and then have to wait 60 seconds to place another. And then you place another few and that timer bumps up to three minutes. The more and more you progress, the longer those limits become. This is often difficult to notice because the game is already manipulating you into believing you are still being rewarded.</p><p>You might accept that this is fine on some level, because if done in a reasonable way you can still jump into the game for a few minutes a day and enjoy it without having to pay. This is a difficult position to maintain once greed sets in and both the player and the developer want to maximise that reward, and it is very easy to cross an ethical boundary when it comes to influencing the behaviour of a child or a gambling addict. At this point, the game does not exist to entertain, but to abuse the vulnerable for profit.</p><p>This brings us to the latest evolution of the concept: the loot box.</p><h4>Loot boxes</h4><p>It’s hard to call those free-to-play games gambling because you know what you’re getting when you spend the money. There’s usually no chance involved unless you’re playing an actual gambling game.</p><p>This isn’t necessarily the case with the loot box, depending on how it is integrated into the game. My understanding is that two games occupy two opposite ends of the spectrum: Overwatch and, as you might guess, Star Wars Battlefront 2.</p><p>Blizzard’s Overwatch has a loot box system that plays an optional role in the game, and you do not lose value from the vanilla Overwatch experience by choosing to ignore them. The rewards don’t offer any advantage to a player and they are entirely cosmetic, allowing more dedicated fans to customise the sound and appearance of their character. The rewards are random so there is a risk that if you spend money on these boxes you won’t always get what you want. I don’t know where I stand with this, because it’s not so different from buying Pokemon cards as a kid: part of the fun is not knowing what you’ll get, and you’re not forced into the purchasing funnel by having gameplay taken away from you. This, to me, makes the presence of that feature less onerous.</p><p>Battlefront 2, by EA, is the obvious contender and if you had a keen eye you’ll realise they were responsible for the same kind of shitshow with Dungeon Keeper. The vanilla gameplay experience is limited and the role of the loot boxes plays a critical role in unlocking the full value of the game. You cannot play as certain characters without investing a comical amount of time and effort, or without spending an even more comical amount of money on loot boxes with no guarantee you will actually unlock the full game. It’s hard to look at this and not see it as a malicious cash grab, particularly because it is not the first example of EA taking greed to a ridiculous extreme. This is totally unacceptable when you are already paying £50-£60 for the game itself.</p><p>In principle, however, loot boxes are an experiment in taking micro-transactions (where the item you receive is guaranteed) and seeing what happens when you take that guarantee away. There is no argument that this system is anything but consumer-friendly and is, more likely than not, a product of unrestricted and impossibly high expectations for companies to maximise profit at whatever cost, to both users and to society.</p><p>I’ve used games as an example because the progression from how we used to buy games and how we are now continually paying for them is utterly remarkable, but this is not isolated only to games.</p><p>Many tech startups are switching to Software as a Service (SaaS) models because subscribed users are far more valuable to investors. This means that even your <a href="https://1password.com/">password manager</a> is run with a subscription model, as is your <a href="https://www.jetbrains.com/">development environment</a> if you’re a programmer, and your monthly statement is likely filled with $5-$6 dollar payments to various online services for various things. Over the course of a few years these subscriptions work out to be much more expensive than they would be if you could pay all at once.</p><p>It is no longer enough for a company to survive on one-time payments for games or software. There always has to be some mechanism to extract more money from users, or offer increasingly restricted free products essentially as a gateway drug. In balance this is not necessarily a bad thing, as a company does require income in order to continue to support the products you enjoy, and you can have a much better outlook when you’ve got that constant flow of income in order to continually iterate instead of planning huge new versions.</p><p>People need to be paid, after all, and users want more features.</p><p>There is, however, a fine line between setting yourself up to sustain the business and support those employees you rely on to become successful, and treating your user as a bottomless moneybag who exists only to line your pockets.</p><p>Overall, I think it’s worth keeping an eye on developments in video games to see just where tech startups might go to generate new revenue. While it might be seriously unlikely to see loot box style business models in software, it may still influence new ideas, and that temptation to keep dipping into your piggy bank will only grow stronger.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2edd93b455fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgtm/raiding-the-piggy-bank-2edd93b455fd">Raiding the Piggy Bank</a> was originally published in <a href="https://medium.com/lgtm">LGTM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Echoes and bubbles]]></title>
            <link>https://medium.com/lgtm/echoes-and-bubbles-5a93ac6b8a49?source=rss----20b400d5ac68---4</link>
            <guid isPermaLink="false">https://medium.com/p/5a93ac6b8a49</guid>
            <category><![CDATA[echo-chamber]]></category>
            <category><![CDATA[advertising]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[manipulation]]></category>
            <dc:creator><![CDATA[Lee Machin]]></dc:creator>
            <pubDate>Wed, 22 Nov 2017 15:02:17 GMT</pubDate>
            <atom:updated>2017-11-22T15:17:58.612Z</atom:updated>
            <content:encoded><![CDATA[<h4>Manipulating opinions on the internet is good when it works in your favour… right?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ib9WJTl_WvsI63dfHm-OkA.png" /><figcaption>Where is the content that can challenge my point of view, and help me learn more about the subject?</figcaption></figure><p>Commentators in the US and UK alike are gripped by a growing controversy around just how much fake Twitter and Facebook profiles influenced their democratic process. Russian propaganda, they will have you believe, is responsible for both Trump’s presidency <em>and</em> Britain’s exit from Europe. Of course, this too is propaganda, but it’s propaganda that supports the narrative of two supposedly powerful countries being powerless victims of the inexorable advance of technology, which can be easily abused and manipulated by bad actors.</p><p>Anyone living outside of the US this morning may have opened up a site like Reddit and wondered if they were teleported into another dimension. Page after page after page of pro net-neutrality posts, mere days after scrolling through page after page after page of Star Wars Battlefront 2 complaints. One of these is understandably an important issue for Americans who want fair access to the internet, and it is incredibly difficult to support any justification for stripping the population of that freedom and putting that power into the hands of monolithic, faceless corporations. On the surface of things it’s impressive that such a concerted effort has been made to make it a topic that is impossible for the average reader to avoid, or at least impossible for <em>me </em>to avoid because I have no idea how this looks for anybody else.</p><p>But this is just the other side of the coin, and it is a far more public effort to influence public opinion <em>en-masse. </em>It’s easily to say this is acceptable because it supports your own beliefs, and you agree with it and you want other people to agree too, but in order to have this kind of influence it must be understood that it cannot be possible without accepting that other people can use the same technology to spread their own influence. If you can co-ordinate to control the entire basic experience of a website like Reddit, or Twitter or Facebook for a casual visitor, so can everybody else.</p><p>History is rife with examples of people arrogant enough to claim their ideology is so good that they want to keep that influential power for themselves, while being utterly uncompromising towards people who don’t fall on their side. One such instance is the continuing debate about encryption, surveillance, and backdoors, where the government believes it deserves to violate every expectation of privacy because they’re the good guys, and the bad guys can’t do any of that because, well, they’re bad. Another is inventing the nuclear bomb, and then being completely surprised when other countries use this as inspiration to build their own. The end result is that alarming efforts are made to maintain that position as a good-willed gatekeeper, without really understanding why something is good when you do it, but bad when someone else does it.</p><p>Coming back to the echo chamber, or the filter bubble as some might call it, these are all microcosms of the internet with enormous outreach across the world. The problem is not that people with different perspectives can manipulate those environments to promote their own point of view, or pump out propaganda, and it makes no sense to tackle the issue by blocking people or restricting access. This isn’t about freedom of speech or censorship (where as a European I’m quite comfortable with the basic boundaries established around what constitutes free speech, after the second world war), but about how those platforms have so much power to meld-minds and treat every possible opinion as equally valid and worthy of support.</p><blockquote>Facebook and Twitter are real life examples of the consequences of building platforms with Utopian ideals</blockquote><p>The real problem is the content recommendation algorithms and constant analysis of a person’s behaviour on the internet, coupled with an increasing tendency to view everything as a pro-or-anti position where you are either for, or you’re against, with absolutely no nuance. It’s in the interest of a platform like Twitter or Facebook to keep its users engaged and the easiest way to do that is to pander to them, and show them things that they will unquestionably like. This means that someone understood to believe that the world is flat will be delivered posts that reinforce that viewpoint in order to validate those beliefs, either by supporting them or generating outrage when someone challenges those beliefs. People get to group up with all of those people who are with them and protect themselves from all those against who apparently want to pop that bubble, and the whole time they are reassured that their opinion is as equal and valid as everyone else’s. Your entitlement to an opinion isn’t an entitlement to always have a correct opinion, which is the line that is more brazenly crossed (and often celebrated) on social media.</p><p>AI technology, or deep learning, is not so advanced and futuristic that it can recommend content that can generate a healthy scepticism about your point of view. It is not intelligent enough to encourage reflection, nor can it challenge your biases or facilitate a more compassionate world-view by presenting many perspectives of one situation. If you choose to seek that out it will not understand your intention for doing so, it will just decide how much of that perspective it wants to shove in your face later on.</p><p>Considering that the profit motive in these businesses outweighs the educational motive by infinite orders of magnitude, these simple algorithms are optimised to entertain and keep eyeballs and cursors within the site in order to increase advertising revenue, or boost vanity metrics for investors. They are incredibly easy to manipulate, as evidenced not only by troll accounts and bots on Twitter, but by the way in which journalistic content is written in general. Clickbait, for example, takes advantage of ambiguity and human curiosity, often delivering outrageous headlines that are far more memorable than the more balanced content inside the article. Other articles are polarising and in one way or another promote a strong us-versus-them mentality, which is a common tactic used in political circles to widen the division between the rich and the poor, the left and the right, black people and white people, women and men, and so on.</p><p>Inevitably these social media systems create a taxonomy of identities, labels, and beliefs that serve only to compartmentalise groups, isolating them from others because that middle ground where connection can happen is not allowed to exist. This is a kind of surreptitious segregation that makes it so easy to pit one group against another and deliver them the exact content they need to rile them up and manipulate them into action, because there is absolutely nothing stopping you from creating the bots and adverts that only one group will see.</p><p>At the end of it all, the controversy about Russians influencing elections is merely a symptom of a technological culture that optimises for profit without understanding the damaging effects it has on societies all over the world. I can’t claim to have a solution for that but I don’t think it takes a genius to start with the relationship between gigantic media platforms, popularity systems, and the reliance on ad revenue to survive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a93ac6b8a49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgtm/echoes-and-bubbles-5a93ac6b8a49">Echoes and bubbles</a> was originally published in <a href="https://medium.com/lgtm">LGTM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Giving WSL a Bash]]></title>
            <link>https://medium.com/lgtm/giving-wsl-a-bash-adb935350a42?source=rss----20b400d5ac68---4</link>
            <guid isPermaLink="false">https://medium.com/p/adb935350a42</guid>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Lee Machin]]></dc:creator>
            <pubDate>Mon, 20 Nov 2017 20:40:42 GMT</pubDate>
            <atom:updated>2017-11-20T20:54:53.252Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Fall Creators Update makes the Bash on Ubuntu on Windows on Laptop on Desk feature accessible to all</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J9W0-UJ62m_HHt1BpP2z-w.png" /><figcaption>I went to a hell of a lot of effort to create the Windows 10 UI in Xmonad… 😜</figcaption></figure><p>I think they just say it’s better to call it WSL and you’re running a specific distro now, but whatever. The ecosystem around the subsystem is substantially better than it was this time last year, when the whole thing was in beta. With that in mind, let me tell you how you can get the most out of your new Linux environment as a Windows user.</p><h4>Step zero: for old Beta users</h4><p>Uninstall your old setup that relied on the lxrun utility and install the new version of your distribution from the Windows app store (just search for Linux). I noticed a palpable increase in performance after doing just that, and your legacy environment will no longer receive such updates.</p><h4>Step one: Get <a href="https://github.com/mintty/wsltty">WSLtty</a></h4><p>How do you even pronounce that? I know how developers love to turn acronyms into words, like how MySQL is actually MySequel (yet PostgreSQL is Postgres presumably because PostgreSequel is a mouthful), but talking about downloading and setting up <strong><em>weasel titty</em></strong> is going to sound perverse at best and disturbing at worst, particularly if you’re talking about how much it sucks.</p><p>Anyway, download it and run the installer. It’s the cleanest and most functional console app I’ve found that just gets straight to the point. I’ve also found that mouse support is much better, in the sense that it actually works.</p><p>If you want something more fleshed out that can run multiple different shells, you can’t go too wrong with <a href="http://cmder.net/">cmder</a>. It’s portable, so set it up in your Dropbox folder or a USB stick and you’re good to go on any Windows machine. You will have to take extra steps to get the bash side working nicely, though, and most of the help you’ll need is in <a href="https://github.com/cmderdev/cmder/issues/901">this particular GitHub issue</a>.</p><p>I gave <a href="http://hyper.is/">Hyper</a> a shot out of simple curiosity and while it’s a very sweet looking app and is super simple to configure, it can absolutely kill the performance of your laptop. I wouldn’t recommend this option unless you’ve got the hardware to balance that out, especially if you’re running Slack and Chrome and VS Code or Atom as your editor.</p><h4>Step two: Configure your environment</h4><p>You’ve probably got your dotfiles set up somewhere already and know what you’re doing with them, but if you haven’t you might want to do a bit of tweaking on the default setup.</p><blockquote>Quick aside: Weasel Titty itself doesn’t support panes, so if you don’t want to run multiple instances you’re better off getting tmux installed, or making a bit of extra effort with cmder which does support that.</blockquote><p>One of the big selling points of WSL is the interoperability between your Linux environment and your Windows environment. There are some subtleties to this that make it less seamless than you think it is, and if you plan to just use WSL for editing and not just running build and deployment tools you’re going to have to take some extra steps:</p><ul><li>Anything you want to work with from a Windows app has to be saved somewhere in /mnt/c, which is how the Linux side sees C:\. For example, /mnt/c/Users/Beefcliff/Desktop is your Windows desktop. If you fail to do this and save in your $HOME directory, <strong>you will seriously fuck things up</strong>. The Linux file system is deliberately obscure and hidden by default in order to make this harder to do by accident.</li><li>If you use Git and use Windows tools for interacting with it, you need to configure them with <a href="https://help.github.com/articles/dealing-with-line-endings/">autocrlf = true</a>. This is so Windows doesn’t re-commit your entire repo and fill all of your files with ^M symbols for people working on Mac or Linux (or whatever Unix).</li><li>Similarly, configure your Windows text editor to use Linux style line endings (\n) if you can. Most editors will allow you to configure this and will do the hard work behind the scenes.</li></ul><h4>Step three… point one: Tmux, Vim, Emacs edge cases</h4><p>If, like me, you want to live inside the terminal and you use tmux, you will need to make one change in your configuration that will make life much easier for you. I only discovered this after totally reinstalling the subsystem and setting up again, and realising that the issue only happened while inside tmux.</p><p>I’m going to spoil you with the solution before explaining why it matters.</p><pre>set -g escape-time 10</pre><p>Without this, you might wonder why your editor is doing weird things when you switch from insert mode to normal mode. I use Evil inside emacs and if I was lucky I’d get an error about an unknown keybinding, but otherwise some weird stuff would happen inside the buffer and it’d be difficult to undo it.</p><p>I thought it was because of the terminal because emacs and vim behaved the same way. Turns out that tmux by default sets a 500 millisecond delay when you hit the escape key, which is far too slow for any decent typist.</p><h4>Step four: Make GUI apps work</h4><p>With very minimal effort you can go one step further and run entire Linux GUIs from the subsystem. This is not officially supported but it works pretty well anyway.</p><p>If you don’t use it already, I recommend you install <a href="https://chocolatey.org/">Chocolatey</a> from a Powershell console and then run choco install <a href="https://sourceforge.net/projects/vcxsrv/">vcxsrv</a>. It’s a Windows X server and it will do all of the heavy lifting for you. If you run it as a full screen window you can actually go as far as installing a tiling window manager and replacing the Windows UI for the most part!</p><p>But to keep it simple, once you’ve installed that and got it up and running, just add one simple line to your shell configuration (.bashrc , .bash_profile, or whatever):</p><pre>export DISPLAY=:0</pre><p>Reload your shell or source the file and you will be able to run your favourite GUI apps with relative ease. If you’re unhappy with the Windows terminal offerings, this means you can write a script on the Windows side to launch the Bash terminal, open up your Linux terminal of choice, and then hide that initial window that opened. Consider that a challenge and an adventure of your own, should you choose to accept it.</p><h4>Wrapping up</h4><p>That should give you enough to get started with Bashing up your Windows machine, opening you up to a whole new world of tools and resources that previously lingered just out of reach.</p><p>I use this productively in my day to day work as a developer, with few disadvantages compared to how I worked on my old Macbook. It is genuinely a boon and a huge incentive to give Windows another chance, particularly if you have other motives for using it (*cough* <em>games</em>).</p><h4>PS: Sharing Configuration</h4><p>It’s a common practice for people to store their dotfiles on Github and share them. I once did this but after <a href="https://keybase.io/">Keybase</a> released support for encrypted git repositories, I transitioned to that. This was mainly out of practicality, so I could store my API keys in there and automate that part of the setup.</p><p>However, if you like what you saw in that screenshot right at the start, I’m using Nord theme, the various parts of which you can find here:</p><ul><li><a href="https://github.com/arcticicestudio/nord-tmux">arcticicestudio/nord-tmux</a></li><li><a href="https://github.com/arcticicestudio/nord-mintty">arcticicestudio/nord-mintty</a></li><li><a href="https://github.com/arcticicestudio/nord-emacs">arcticicestudio/nord-emacs</a></li></ul><p>The rest is fairly vanilla.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adb935350a42" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgtm/giving-wsl-a-bash-adb935350a42">Giving WSL a Bash</a> was originally published in <a href="https://medium.com/lgtm">LGTM</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>