#node #javascript #Sequelize #productivityUsing ES6 classes for Sequelize 4 or 5 modelsThe ES2015 or ES6 specification introduced class to JavaScript. Libraries like React went from React.createClass to class MyComponent extends React.Component, ie went from rolling their own constructor to leveraging a language built-in to convey the programmer’s intent. For a Nod ...
#git #bash #productivityChange the date of a git commitOne of the greatest and worst things with git is that you can rewrite the history. Here’s a sneaky way of abusing that, I can’t think of a legitimate reason to do this. As with anything, thanks StackOverflow for all the options I can pick from 👍. ...
#cdn #dev-decoded #productivityThe step-by-step guide to create a domain redirect with CloudflareRedirecting a whole domain using Cloudflare can be useful but isn’t documented anywhere, here’s how to do it. ...
#git #web development #productivitySplit an existing git commitOne of git’s main differences when compared to other version control systems is that it lets the user rewrite the history. The main way to do this is to use git rebase, usually followed by a git push --``force to overwrite history the remote with the local history. Here’s a ...
#technical writing #productivity #web developmentDitch syntax highlighting for better technical writingDitching syntax highlighting leads to more concise snippets, more thought to be put to find a minimal example and better overall flow in your writing. ...
#dev-decoded #git #programming #ProductivityLearn git even if you don’t codeThe tools we wield define us, git is the one tool all developers use ...
#dev-decoded #Web development #ProductivityIn simple terms: code on the backend, frontend and how they interactA look at the shifting boundaries of the web development stack This was originally posted as an answer on Quora: How do frontend code and backend code interact with each other? Let’s start with quick definitions followed by state of the art best practices. ...
#Testing #javascript #ProductivityAVA, low-config testing for JavaScriptA JavaScript testing library for 2017 AVA is a Futuristic JavaScript test runner. Some of its best features are: it works out of the box, no need to specify a blob for test files or add Babel hooks it runs tests in parallel, this stops you from using global state and runs faster ...
#javascript #Functional Programming #ProductivityFirst-class and Higher Order Functions: Effective Functional JavaScriptFunctions: the killer JavaScript feature we never talk about. JavaScript is a very in-demand language today. It runs in a lot of places from the browser to embedded systems and it brings a non-blocking I/O model that is faster than others for some types of applications. What real ...
#javascript #Functional Programming #ProductivityClosures, Partial Application and Currying: Effective Functional JavaScriptSpices and other ingredients of a great curry To use JavaScript to its full potential you have to embrace its strong functional programming base. We’re going to explore some crucial and powerful functional constructs: closures, partial application and currying that make JavaScrip ...