Posts on Else Web Development https://elsewebdevelopment.com/posts/ Recent content in Posts on Else Web Development Hugo -- 0.147.9 en-GB Mon, 27 Feb 2023 14:57:59 +0000 Neovim vs Helix: Which is the best Vi/Vim style modal editor? https://elsewebdevelopment.com/neovim-vs-helix-which-is-the-best-vi-vim-style-modal-editor/ Tue, 19 Apr 2022 18:13:09 +0000 https://elsewebdevelopment.com/?p=4063 <h2 id="introduction">Introduction</h2> <p>Neovim and Helix are both modal editors for programmers. They have a lot in common, but different approaches to providing the IDE (integrated development environment) features that make them so appealing.</p> <p>IDE features make writing code easier and more productive. They include things like intelligent code completion and integration with the Git version control system. These features differentiate a program designed for writing code from a basic text editor.</p> Ultimate Vim Keyboard Shortcuts https://elsewebdevelopment.com/ultimate-vim-keyboard-shortcuts/ Fri, 06 Aug 2021 19:32:13 +0000 https://www.elsewebdevelopment.com/?p=1856 <p>A well-thought-out printable PDF of Vim keyboard shortcuts to enhance your workflow. I hope you find some cool ones you didn&rsquo;t know about, and also find it a useful reference to the essentials.</p> <p>These shortcuts are all available out of the box in Vim and Neovim. If you want a full custom setup for Neovim using the best Lua plugins then have a look at my <a href="https://github.com/David-Else/developer-workstation-setup-script" target="_blank" rel="noopener" >Developer Workstation Setup Script</a ></p> Linux one-liners: Using the standard Find command to replace 3rd party fuzzy finders https://elsewebdevelopment.com/linux-one-liners-using-the-standard-find-command-to-replace-3rd-party-fuzzy-finders/ Tue, 12 Jan 2021 12:56:11 +0000 https://www.elsewebdevelopment.com/?p=1772 <p>When trying to solve a problem using Linux you can rest assured that someone has come across it before, and probably solved it back in the seventies.</p> <p>Everyone needs to search their hard drive for files and open them in a program of their choice. Using a mouse-driven desktop file explorer is terdious, so what is the best way to do it without leaving the beloved terminal?</p> <p>There are a lot of command-line &lsquo;fuzzy finders&rsquo; that all vie for your attention. Don&rsquo;t waste your time, Linux has the <code>find</code> command built-in and it can do basic fuzzy file searching in one line! You just need to unravel the cryptic syntax and wrap it up in a function.</p> Neovim Explained: How to Build a Plugin-Free Nvim Config That Unlocks Builtin Features https://elsewebdevelopment.com/neovim-explained-how-to-build-a-plugin-free-nvim-config-that-unlocks-builtin-features/ Mon, 24 Aug 2020 12:00:19 +0000 https://elsewebdevelopment.com/neovim-explained-how-to-build-a-plugin-free-nvim-config-that-unlocks-builtin-features/ <p> <a href="https://neovim.io/" target="_blank" rel="noopener" >Neovim</a > (aka Nvim) is a radical refactor of <a href="https://www.vim.org/" target="_blank" rel="noopener" >Vim</a >. It aims to take Vim, improve the code, and add more features. They are mostly compatible but have slightly different defaults. The settings in this Neovim tutorial should also work with the latest Vim.</p> <p>Neovim is a text editor, but it can be configured with plugins to be closer to an IDE. Plugins are a big subject we are not going to cover in this tutorial, we are aiming to get a minimal working setup with zero bloat.</p> CentOS 8 Setup for Developers https://elsewebdevelopment.com/centos-8-setup-for-developers/ Mon, 01 Jun 2020 13:03:00 +0000 https://www.elsewebdevelopment.com/?p=1256 <p>CentOS 8 is a free version of RHEL 8 which was branched from Fedora 28. I consider this new version of CentOS to be the first viable long term support version of Fedora.</p> <p>In this article, I will discuss why CentOS 8 is amazing for developers, and walk you through my install script to make downloading all the additional software you need easy and automatic.</p> <p>Many people consider CentOS to be only for server use. In the past, it has been hard to setup for development and as a general use desktop. This is not true anymore, so follow along and join me on this magical journey into the promised land of stability and up-to-date applications!</p> Typescript Airbnb Style Guide Optimized for Prettier in One JSON File https://elsewebdevelopment.com/typescript-airbnb-style-guide-optimized-for-prettier-in-one-json-file/ Sat, 16 Nov 2019 15:29:07 +0000 https://www.elsewebdevelopment.com/?p=1328 <p>The <a href="https://github.com/airbnb/javascript" target="_blank" rel="noopener" >Airbnb Style Guide</a > is one of the most popular and comprehensive set of ESlint rules. Sadly there is no official version for TypeScript, but there is <a href="https://github.com/iamturns/eslint-config-airbnb-typescript" target="_blank" rel="noopener" >eslint-config-airbnb-typescript</a >. It does all the painstaking work of making the Airbnb linting rules compatible and optimized for TypeScript and <a href="https://github.com/typescript-eslint/typescript-eslint" target="_blank" rel="noopener" >TypeScript ESLint</a >.</p> <p>While you can install and set things up the usual way using NPM, if you are using Prettier things get very complex and the dependencies pile up fast.</p> TypeScript 3.7 Utility Types | Printable PDF Cheat Sheet https://elsewebdevelopment.com/typescript-3-7-utility-types-printable-pdf-cheat-sheet/ Tue, 12 Nov 2019 13:57:20 +0000 https://www.elsewebdevelopment.com/?p=1288 <p>Learning modern TypeScript is not easy, especially when the <a href="https://github.com/microsoft/TypeScript/blob/master/doc/spec.md" target="_blank" rel="noopener" >Language Specification</a > was last updated in Jan 2016. This is eventually going to be remedied with a <a href="https://github.com/microsoft/TypeScript-New-Handbook" target="_blank" rel="noopener" >brand-new version of the handbook</a >, but the pace it is being written is glacial. Much of the current official documentation and general blog based information is outdated too.</p> <p>To add to this horror, well-meaning people seem to have confused the meaning of the words &lsquo;cheat sheet&rsquo; with &lsquo;pages of vaguely related information in an unprintable format&rsquo;. Maybe younger developers have never encountered a &lsquo;printer&rsquo; device before? A decrepit antique that feeds on the corpses of dead trees and splits out thin slices of white &lsquo;analogue information&rsquo; that requires physical space to store.</p> Configuring Fedora & Localhost Setup https://elsewebdevelopment.com/configuring-fedora-localhost-setup/ Sun, 05 Nov 2017 17:04:27 +0000 https://elsewebdevelopment.com/configuring-fedora-localhost-setup/ <p>This is the first part of my series of step by step guides to turn Fedora into the ultimate web development platform.</p> <p>I am going to assume that you have Fedora installed already, or are comfortable installing it yourself. Once you are up and running, just run the terminal application and follow along to set up your perfect development environment.</p> <p>In this guide we will discover:</p> <ul> <li>How to set the host name, and why it&rsquo;s important.</li> <li>Which repositories to install and how to do it.</li> <li>How to setup subpixel rendering to improve font appearance.</li> <li>How to setup and configure your LAMP environment for localhost development.</li> </ul> Linux for Web Development Guide https://elsewebdevelopment.com/linux-for-web-development-guide/ Wed, 01 Nov 2017 22:05:42 +0000 http://localhost/sites/else-web-development-final/?p=35 <p>Many years ago a good friend of mine named his pet rat Linux. I had heard of this mysterious operating system before, but tales of days spent configuring hardware drivers, and cellar-dwelling neck beards scared me away. Why bother using it, never mind naming your rat after it!? In this guide we will discover:</p> <ul> <li>Exactly what Linux is, and how it differs from Windows and Mac.</li> <li>Why we should use it for web development.</li> <li>Exactly which version of Linux is best for the job.</li> </ul>