<?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[Oli &amp; Tom - Medium]]></title>
        <description><![CDATA[Hi! We have been working in the software industry for 4+ years and have been building dev tools and other software together for the past few years. This publication serves as a repository for our thoughts and project write-ups. - Medium]]></description>
        <link>https://medium.com/oli-tom?source=rss----75370017a031---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Oli &amp;amp; Tom - Medium</title>
            <link>https://medium.com/oli-tom?source=rss----75370017a031---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:14:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/oli-tom" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Entity Framework Core — From zero to something]]></title>
            <link>https://medium.com/oli-tom/entity-framework-core-from-zero-to-something-e8031ef9cfac?source=rss----75370017a031---4</link>
            <guid isPermaLink="false">https://medium.com/p/e8031ef9cfac</guid>
            <category><![CDATA[dotnet-core]]></category>
            <category><![CDATA[entity-framework-core]]></category>
            <category><![CDATA[getting-started]]></category>
            <dc:creator><![CDATA[Oli Blade]]></dc:creator>
            <pubDate>Mon, 10 May 2021 08:59:55 GMT</pubDate>
            <atom:updated>2020-09-30T16:08:12.588Z</atom:updated>
            <content:encoded><![CDATA[<h3>Entity Framework Core — From zero to something</h3><p>I… have never used Entity Framework before. But when someone pitched me the idea of removing all my CRUD stored procedures I jumped right in with my new ASP.NET Core 3.1 project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*dp1DGgXapJV47j3NgtnLRw.png" /></figure><h3>Getting started</h3><p>To begin with, I created a SQL Server Database Project in Visual Studio with a couple of tables that reference each other so we have something to play with.</p><pre>CREATE TABLE [dbo].[Campaigns]<br>(<br> [CampaignId] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY,<br> [Name] NVARCHAR(100),<br> [Enabled] BIT, <br> [UserId] NVARCHAR(450) NOT NULL<br>)</pre><pre>CREATE TABLE [dbo].[CampaignFilters]<br>(<br> [CampaignFilterId] INT NOT NULL PRIMARY KEY IDENTITY, <br> [CampaignId] UNIQUEIDENTIFIER NOT NULL,<br> [FilterTypeId] INT NOT NULL<br> <br>CONSTRAINT [FK_CampaignFilters_Campaigns] FOREIGN KEY ([CampaignId]) REFERENCES [Campaigns]([CampaignId])<br>)</pre><p>Next, I used the Schema Compare feature in Visual Studio to add my tables to my Database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*HJRD37NzAUTSOJ9qgRE7DQ.png" /><figcaption>Database in SSMS</figcaption></figure><p>With my new tables safely in SQL Server it was time to move on to some Entity Framework things.</p><h3>Generating the models</h3><p>Easy as 1…2…3</p><p>1. Run the command in Visual Studio Package Manager Console to scaffold the models and Model Context (the thing that tells the models what they are)</p><pre>Scaffold-DbContext ”Server=localhost;Database=EntityFrameworkDB;User Id=DBUser;Password=Password;” -Provider Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models/Database -force</pre><p>2. Realise the scaffolded models have weird pluralisation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*ZFsUwcd5oNv5kNyQI1nWdw.png" /><figcaption>Why is it plural? Maybe it’s just me :(</figcaption></figure><p>3. Install the following Nuget package and try again</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*DT-kcgQsy7tZTWiffb_oRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/1*uKP-atMROdzOiaalSJdXjg.png" /><figcaption>Successful scaffolding</figcaption></figure><h3>Trying it out</h3><p>I slapped together a couple of CRUD-y read and writes using the models and context I had just made using some dependency injection to get hold of the DBContext.</p><pre>public class CampaignRepository<br> {<br>  private EntityFrameworkDBContext EntityFrameworkDBContext { get; }</pre><pre>public CampaignRepository(EntityFrameworkDBContext entityFrameworkDBContext)<br>  {<br>   EntityFrameworkDBContext = entityFrameworkDBContext;<br>  }</pre><pre>public IEnumerable&lt;Campaign&gt; GetCampaignsByUser(string userID)<br>  {<br>   return EntityFrameworkDBContext.Campaigns.Where(x =&gt; x.UserId == userID);<br>  }</pre><pre>public void SaveCampaign(Campaign campaign)<br>  {<br>   EntityFrameworkDBContext.Campaigns.Add(campaign);<br>   EntityFrameworkDBContext.SaveChanges();<br>  }<br> }</pre><p>And sure enough…. it worked.</p><h3>Other things I learned along the way</h3><ol><li>You can run the scaffold command from the DotNet CLI.</li></ol><pre>dotnet ef DbContext Scaffold “Server=localhost;Database=EntityFrameworkDB;User Id=DBUser;Password=Password;” Microsoft.EntityFrameworkCore.SqlServer -o Models/Database — force</pre><p>2. You can use stored procedures along side Entity Framework, there’s no ish.</p><p>3. Update and Add are not the same thing and will cause errors if used interchangeably.</p><p>4. Use the “-force” flag to overwrite your changes</p><p>5. You can use partial classes to expand on the models</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8031ef9cfac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oli-tom/entity-framework-core-from-zero-to-something-e8031ef9cfac">Entity Framework Core — From zero to something</a> was originally published in <a href="https://medium.com/oli-tom">Oli &amp; Tom</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prerender your Angular app, as simple as possible]]></title>
            <link>https://medium.com/oli-tom/prerender-your-angular-app-as-simple-as-possible-ba88f22511ac?source=rss----75370017a031---4</link>
            <guid isPermaLink="false">https://medium.com/p/ba88f22511ac</guid>
            <category><![CDATA[prerender]]></category>
            <category><![CDATA[angular-universal]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[Oli Blade]]></dc:creator>
            <pubDate>Mon, 10 May 2021 08:59:43 GMT</pubDate>
            <atom:updated>2020-10-12T17:22:42.286Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever wanted a simple static site, but you won’t want to lose Angular in the process? Here’s how you do it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*dmYfFJBn25tHGnBi.png" /></figure><h3>Getting started</h3><p>Make sure your Angular CLI and Angular version is up to date, you can check with ng version, and update with ng update. Version 9+ should do it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*g048cC98wu9yDfjB7L4PcA.png" /><figcaption>My Angular version</figcaption></figure><h3>From start to finish</h3><ol><li>Start a new Angular Project using the CLI with ng new</li><li>Install Angular Universal Express Engine using the CLI ng add @nguniversal/express-engine</li><li>Add the routes you would like to prerender to the “prerender” -&gt; “routes” array in the angular.json</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*0N6FLEvc8YaX7OpJtxLfLA.png" /></figure><p>4. Prerender the content with npm run prerender . This will generate the prerendered files in “dist” -&gt; MyApp -&gt; “browser”. Note how you have “index.html” with the prerendered content and “index.original.html” with the original copy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*BRhpiYkZqKVriVcDzjPstg.png" /></figure><p>And that’s it... Bob is indeed my uncle.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba88f22511ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oli-tom/prerender-your-angular-app-as-simple-as-possible-ba88f22511ac">Prerender your Angular app, as simple as possible</a> was originally published in <a href="https://medium.com/oli-tom">Oli &amp; Tom</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying to Firebase with GitHub Actions]]></title>
            <link>https://medium.com/oli-tom/deploying-to-firebase-with-github-actions-ffdcefc25ee2?source=rss----75370017a031---4</link>
            <guid isPermaLink="false">https://medium.com/p/ffdcefc25ee2</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Oli Blade]]></dc:creator>
            <pubDate>Mon, 10 May 2021 08:59:20 GMT</pubDate>
            <atom:updated>2020-10-29T19:42:35.896Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a quick guide on how to get an un-hosted project, onto <a href="https://console.firebase.google.com/">Firebase</a> hosting using <a href="https://docs.github.com/en/free-pro-team@latest/actions">GitHub Actions</a> which is updated on every merge. We’ll just be using the Firebase CLI, no fancy coding required!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9ixlX2uq9cVQif4Y.jpeg" /></figure><p>A few assumptions before we begin:</p><ul><li>A repository on GitHub with a website ready to host (In my case, a fresh Angular App “ng new”)</li><li>A Firebase account</li><li>The latest <a href="https://www.npmjs.com/package/firebase-tools">Firebase cli</a> installed and ready to go</li></ul><h3>So let’s get started</h3><p>First up, head over to <a href="https://console.firebase.google.com/">Firebase</a> and create your new Project. Just follow the basic steps, add your project name, enable analytics if you want to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gnXqWAkLMXMYULQl0I0M6Q.png" /></figure><p>Now let’s hop into our command window and setup the Firebase and GitHub stuff.</p><ol><li>Get a command window open in your project directory.</li><li>Type the following command.</li></ol><pre>firebase init hosting:github</pre><p>This will walk you through the process from start to finish</p><p>3. Follow the steps in the console, use the existing Firebase project you made earlier.</p><p>4. When prompted for the GitHub repository, type in the following “Username/Repository”, or in my case</p><pre>OliBlade/MyFirebaseApp</pre><p>5. You’ll also be asked to input the build directory of your site, and your build command, in my case “npm run build”</p><h3>Once that’s all done</h3><p>You’ll have seen in the output that this has created a service account in your Firebase project with permission to deploy Firebase Hosting. Also that service account’s JSON key has been uploaded to the GitHub repository as a <a href="https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets">GitHub Secret</a>.</p><p>In your files you’ll notice a folder called “.github” with a couple of YAML files in the workflows folder. If you take a look at these you will see how they reference the newly created secret and configure the <a href="https://github.com/marketplace/actions/deploy-to-firebase-hosting">GitHub Action</a> to deploy Firebase Hosting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*688WrTCulz4CvkCTvV5kcg.png" /></figure><h3>Commit and Push</h3><p>It doesn’t really matter if you do this on a new branch or not, but you probably should. Navigate to your repository and click the Actions tab. You will see your action executing and building the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*-arD2VC9Q5xc9zxkPDB7Og.png" /></figure><p>Notice step 4 deploys to FireBase, if you check out your new project in <a href="https://console.firebase.google.com/">Firebase Console</a> you will see a freshly deployed and hosted app.</p><p>This now updates your live FireBase hosted website with every merge into your main branch, and every PR in this GitHub repo will get its own preview URL!</p><h3>Some extra reading</h3><ul><li>This post was heavily based on <a href="https://firebase.google.com/docs/hosting/github-integration">this Firebase documentation</a>, but I thought I’d do a little walkthrough</li><li><a href="https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets">GitHub Secrets</a></li><li><a href="https://docs.github.com/en/free-pro-team@latest/actions">GitHub Action</a></li><li><a href="https://github.com/marketplace/actions/deploy-to-firebase-hosting">GitHub Action to deploy to Firebase hosting</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffdcefc25ee2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oli-tom/deploying-to-firebase-with-github-actions-ffdcefc25ee2">Deploying to Firebase with GitHub Actions</a> was originally published in <a href="https://medium.com/oli-tom">Oli &amp; Tom</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You Aren’t Writing Enough Reusable Code And 5 Ways To Fix It]]></title>
            <link>https://medium.com/oli-tom/why-you-arent-writing-enough-reusable-code-and-5-ways-to-fix-it-7f579e9f9473?source=rss----75370017a031---4</link>
            <guid isPermaLink="false">https://medium.com/p/7f579e9f9473</guid>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Tom Langdon]]></dc:creator>
            <pubDate>Wed, 30 Sep 2020 15:45:55 GMT</pubDate>
            <atom:updated>2019-11-19T21:31:23.194Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Woman sitting at a desk in front of coding computer screen" src="https://cdn-images-1.medium.com/max/1024/1*oo3MycXpaTRQ8vs_YlvTXw.jpeg" /></figure><p>Reusable code is the holy grail of development. If you can write something once and use it over and over again, you’ve just saved yourself valuable time. But complicated, single use spaghetti code seems to be the norm, especially among newer, inexperienced or self-taught developers.</p><p>Making the switch to writing reusable code will not only save you countless hours of rewriting similar blocks of code, it will revolutionise the way you think about application structure and you will be outputting higher quality, easier to understand code.</p><h4>What Is Reusable Code?</h4><p>Reusable code is exactly what it sounds like, it’s code you can use more than once. This can mean a function you use more than once in the same application, or a block of code you use in multiple different applications, it just has to avoid being over-complicated and bespoke.</p><h4>How Do I Write Reusable Code?</h4><p>Making the switch to writing reusable code can be daunting at first, it requires a shift in perspective and you often have to change the way you handle application structure. Stick with the steps laid out below and I promise when you look back on the code you used to write you will wonder how you coped.</p><h4>#1 Make all of your functions single purpose</h4><p>We are all guilty of breaking this rule, you know what I mean. We have all written 300 line long functions that perform 10 different separate actions, and sure it works, but what happens when you then need to perform just one of those 10 actions? Now you are needlessly recreating functionality. Instead, you should split each of those 10 actions into their own function and call those functions from the original.</p><p>Even if you never plan on reusing the functionality, giving each function a single purpose creates inherently better code. It makes it easier to debug, easier to unit test and easier to read. Speaking of unit tests…</p><h4>#2 Test Driven Development</h4><p>This has always been somewhat of a sore-point for a lot of developers, myself included, and I personally don’t practise what I preach in this regard but if you are struggling this can give you a real boost. Test driven development in a nutshell is writing a unit test that would return a successful result for the function you want to create, and then creating the function to pass the test.</p><p>I wont go into the pros and cons of test driven development here, that’s an article for another time, but this style of development is great at leading you to creating single purpose functions. Test for the outcome you want, and then create that outcome.</p><h4>#3 Write DRY code</h4><p>This one is nice and simple, dry code stands for Don’t Repeat Yourself. The whole point of reusable code is that you don’t have to write the same, or similar things twice. If you are often repeating yourself, chances are the code you wrote in the first place wasn’t reusable enough.</p><p>Instead of repeating yourself with a slightly altered bit of code, look back at the original and work out what you could do to make it work for both situations. Often this will take you slightly longer than rewriting the code, but it means that if you need to use it again, chances are you wont have to write anything. Possibly even more importantly, if you need to make a change to how the code works, you now only have to make the change in one place. If your code is repeated, you have a lot of changes to make, some of which you might miss.</p><h4>#4 Use a Snippet Manager</h4><p>The points so far have focused on how to reuse code from within the same application, but what about reusing code across applications? I’m sure you have had a piece of code you know you have written before, but you can’t find which application you wrote it in and so you give up and write it again.</p><p>This problem can be avoided with a snippet manager, but there is a lot more information on what these are and how to choose the right one for you in my earlier post: <a href="https://medium.com/@TomLangdon/5-code-snippet-managers-that-will-change-the-way-you-write-code-9a3bc93bd845">5 Code Snippet Managers That Will Change The Way You Write Code</a>.</p><p>Something unexpected I found when I started using a snippet manager was that the code I wrote ended up being better quality. Knowing that I was going to want to save the section of code I was writing into my library, I spent longer making it cleaner, more efficient and more reusable.</p><h4>#5 Keep The Business Logic Separate</h4><p>This is kind of the same point as #1 but I see it enough that it warrants it’s own point. All business logic, whether that’s API controllers, Database calls or class declaration, should be separate form the bulk of your code. Just like with the first point, if you need to use any of the functionality tied in with your business logic, your going to have to rewrite or re-purpose it, and that will only lead to trouble.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f579e9f9473" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oli-tom/why-you-arent-writing-enough-reusable-code-and-5-ways-to-fix-it-7f579e9f9473">Why You Aren’t Writing Enough Reusable Code And 5 Ways To Fix It</a> was originally published in <a href="https://medium.com/oli-tom">Oli &amp; Tom</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Code Snippet Managers That Will Change The Way You Write Code]]></title>
            <link>https://medium.com/oli-tom/5-code-snippet-managers-that-will-change-the-way-you-write-code-9a3bc93bd845?source=rss----75370017a031---4</link>
            <guid isPermaLink="false">https://medium.com/p/9a3bc93bd845</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[code-snippet]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[development-tools]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Tom Langdon]]></dc:creator>
            <pubDate>Wed, 30 Sep 2020 15:45:31 GMT</pubDate>
            <atom:updated>2019-11-19T11:11:15.608Z</atom:updated>
            <content:encoded><![CDATA[<p>We all know the feeling, you are working on a new app and you need to do something you’ve already done 100 times before, but you can’t quite remember how you did it. You go and dig through your previous app for the snippet of code you need, but you can’t find it in there. Maybe it’s in this site, or the other one?</p><p>20 minutes of searching later and you finally find what your looking for but that was 20 minutes you could have used for something more productive if you had a code snippet manager.</p><h4>What Is A Code Snippet Manager?</h4><p>Code snippet managers are the solution to reusable code. They let you save a library of commonly used snippets of code, either in the cloud or locally on your machine, and keeps them organised and ready to use. The good ones will have a mini editor with proper syntax highlighting and support for multiple languages, the REALLY good ones will let you group snippets, link them together and share them with your friends/co-workers.</p><p>Whichever option is right for you, a snippet manager should save you time, enable proper re-using of code and make sure you never lose an important bit of code again. Have a look below at the five best options I found and supercharge your coding workflow.</p><h4>#1 Best All-Round: <a href="https://www.3cols.com/">3Cols</a></h4><figure><img alt="3Cols snippet manager interface preview" src="https://cdn-images-1.medium.com/max/1024/1*17KZHV0mIOGmcWQ2PsuLfw.png" /><figcaption>One of the best features of 3Cols is it’s fantastic built-in editor</figcaption></figure><p>Why waste your time and put the best option last in an article all about how to save you time. 3Cols is by far the best option I have found and is in-fact the reason I created this list when I found a post about it <a href="https://www.reddit.com/r/webdev/comments/dx5w5b/showoff_saturday_3cols_a_cloud_based_code_snippet/">here</a> on Reddit. They claimed to be the best option in the space, and I wanted to find out for myself. But the claim seems to hold up.</p><p><strong>Pros:</strong></p><ul><li>Unlimited private snippets for free</li><li>Best categorisation options on the list</li><li>Fully featured editor</li><li>Lighting fast</li><li>Works on web or installed on almost any platform</li></ul><p><strong>Cons</strong></p><ul><li>No integration with browsers or IDE (yet)</li><li>Sharing requires a premium subscription ($1.69 a month)</li></ul><p>It really is no competition here, there is no other option that stores your snippets privately on the cloud, works both locally and on the web and all for free. Not only that but if you do end up sharing your snippets (I fully recommend creating a collaborative board between you and your developer friends) it costs only $1.69 a month — over 3 times cheaper than the next cheapest option. The only drawback here is their lack of integration with any IDE’s or, less importantly, a browser extension to easily save snippets, but according to the <a href="https://www.reddit.com/r/webdev/comments/dx5w5b/showoff_saturday_3cols_a_cloud_based_code_snippet/">Reddit post</a> I mentioned, both of these features are coming in the future, so watch this space!</p><h4>#2 Most Integrated: Your IDE!</h4><figure><img alt="Visual studio snippet manager interface preview" src="https://cdn-images-1.medium.com/max/615/1*sxywAbQnZYgxLqVeSm254Q.png" /><figcaption>The availability of visual studio’s snippet manager struggles to make up for the clunky interface</figcaption></figure><p>If you are looking for something easy to use with minimal setup then most IDE’s worth their salt have a simple snippet manager built in, or at least have extensions to do so.</p><p><strong>Pros:</strong></p><ul><li>Minimal Setup</li><li>Never have to leave your IDE</li><li>Always free</li></ul><p><strong>Cons:</strong></p><ul><li>Very Limited Features</li><li>Often not backed up on the cloud</li><li>Interfaces can be somewhat slow/clunky</li></ul><p>Although they are easy to set up and use they don’t come without drawbacks and they probably shouldn’t be used as much more than a first step into the world of snippet managers. A few of the options on this list have their own IDE extensions to offer a similar feature anyway.</p><h4>#3 Best Extensibility: <a href="https://snipit.io/">Snipit</a></h4><figure><img alt="Snipit interface preview" src="https://cdn-images-1.medium.com/max/1024/1*U8ZgPo0C9A-gBJLkTulZkA.png" /><figcaption>Great integration and favourites/tags are the stand out features of Snipit</figcaption></figure><p>If you want the luxury of never having to leave your IDE as with the option above, but you also want cloud backups, a richer feature set and a browser extension to easily save snippets you find around the web then Snipit is the option for you.</p><p><strong>Pros:</strong></p><ul><li>VS Code extension for seamless integration</li><li>Multiple browser extensions to easily save snippets</li><li>Unlimited public snippets for free</li><li>Favourites and tags make finding specific snippets easier</li></ul><p><strong>Cons:</strong></p><ul><li>Creating private snippets requires premium (€7.00 per month)</li><li>Only has one level of categorisation</li><li>Layout isn’t very responsive on smaller screens</li></ul><p>Overall all Snipit is a good choice with excellent integration, but if you care about keeping your snippets private then you need to be ready to cough up the hefty €7.00 a month required to do so and to organise them all with only one level of grouping.</p><h4>#4 Biggest Name: <a href="https://gist.github.com/">GitHub Gists</a></h4><figure><img alt="Gists snippet manager interface preview" src="https://cdn-images-1.medium.com/max/1024/1*X9m4qRyD2toLKNYuuGfqXQ.png" /><figcaption>The backing of a big name can only go so far to help you ignore how painfully slow Gists are to navigate</figcaption></figure><p>Sometimes having the reliability that comes with a company like GitHub is very important, and the version control and API that come with Gists are an excellent addition but you had better be prepared to wait for them.</p><p><strong>Pros:</strong></p><ul><li>Backed by GitHub so stability and reliability aren’t a worry</li><li>Version control can be useful in certain conditions</li><li>API access gives you a whole new way of working with your snippets</li></ul><p><strong>Cons:</strong></p><ul><li>Painfully slow to navigate between snippets with a fill page load each</li><li>Very Limited Categorisation</li><li>Sharing is very clunky</li></ul><p>I feel like the only thing holding Gists back from being a candidate for my top pick is how slow it is to move between your snippets. The fact that each snippet requires a full page load to view is a deal breaker for me, and the fact that sharing private Gists requires a link with no sort of browse-able repository is another nail in the coffin.</p><h4>#5 Best Local App: <a href="https://www.renfei.org/snippets-lab/">Snippets Lab</a></h4><figure><img alt="Snippets Lab interface preview" src="https://cdn-images-1.medium.com/max/1024/1*WucCeuACDOy5gO9k0-bprw.jpeg" /><figcaption>The fantastic interface, organisation and inclusion of an easy to use assistant make this a standout option</figcaption></figure><p>It wouldn’t feel right to not include this option in the list as the local app is fully featured, with excellent organisation, a searchable assistant available at all times, Gist Integration and an excellent interface. The only problem is that it’s not available as a web app, with limited syncing options and the real kicker… it’s mac OS only.</p><p><strong>Pros:</strong></p><ul><li>Fantastic interface</li><li>Great organisation</li><li>Searchable assistant for easy to access snippets</li></ul><p><strong>Cons:</strong></p><ul><li>Local only with limited sync options</li><li>Only available on mac OS</li></ul><p>If this option was available as a web app it would have been the obvious choice for my top pick, and if you only need access to snippets on one machine and the machine happens to be running mac OS then it should be yours, but if not it’s not a viable option.</p><h4>Conclusion</h4><p>There is an option available for everyone here and I urge you to use one of them, set up a collection and share it with your developer friends. The instant access to a whole library of snippets will revolutionise the way in which you write code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a3bc93bd845" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oli-tom/5-code-snippet-managers-that-will-change-the-way-you-write-code-9a3bc93bd845">5 Code Snippet Managers That Will Change The Way You Write Code</a> was originally published in <a href="https://medium.com/oli-tom">Oli &amp; Tom</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>