AVA Tutorial
avajs/ava: 🚀 Testing can be a drag. AVA helps you get it done.
A concurrent test runner from the Andromeda galaxy. If I was to stray from Jasmine then it could only be for a project Sindre Sorhus is working on :) The screenshots on the project site promised extensive assertion failure output with clean stack traces and built-in Promise, async/await, Observable and React component support. So I tried it out and yup, AVA delivered.
Get Started
# Install
npm init ava
# Run tests
npx ava --watch --verbose
.NET Regex Tutorial
Not nearly as confusing as it is in JavaScript.
using System.Text.RegularExpressions;
bool mach = Regex.IsMatch("input", @"w+", RegexOptions.None);
Match match = Regex.Match("input", @"w+");
IReadOnlyList<Match> matches = Regex.Matches("input", @"w+");
string result = Regex.Replace("input", @"(w+)", "$1");
Vue.js Tutorial
vuejs/vue: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
Why Vue
100k+ ⭐: So many people can’t be wrong- Declarative rendering with a cool, terse syntax
- Low learning curve
- Reactive and composable view components
- Optional official
vue-routerandvuex(statemanagement) @vue/cli: Scaffold project with optional support for TypeScript, PWA, CSS Pre-processors, Linters, Tests, …- Automatic dependency tracking
- Virtual DOM
- Supports IE9+
Git Hooks with Husky
Update for Husky v9
A lot has changed in Husky since this blog post. See the 2024 update of this article instead!
Avoid pushing changes that break the build with githooks and Husky.
typicode/husky: 🐺 Git hooks made easy
Rubber Duck Debugging
Talk to the Duck
When confronted with a problem, don’t ask the person next to you for help right away, he’s probably doing something important as well!
Instead, first tell the duck about it – out loud. If you don’t get to a solution, start explaining your problem in more and more detail until it hits you. If the mere explanation led to a solution, you avoid unwillingly turning your colleague into a CardboardProgrammer.
Create a new blog post
This is something for me (or anyone else really) because I keep forgetting all this stuff.
- Use
{: .hide-from-excerpt}to do just that. imgsize must be 360×300.bigimgis 2000×500.- A
— - Pragmatic Tips
Debugging in Visual Studio
Basic Shortcuts
Git Assume Unchanged
Ideally one would create a new gitignored file to configure an application to fit his local development environment but when you do have to revert to modifying a committed configuration file, at least there is “git assume unchanged” to avoid committing your changes in these files accidentally.
Assume Unchanged
# Git assume a file
git update-index --assume-unchanged fileName
# And unassume with
git update-index --no-assume-unchanged fileName
Autohotkey DynaRun
Run any Autohotkey script on the web with a single.. Autohotkey hotkey.
Autohotkey Use Case: Submitting a Form
A simple Autohotkey use case you can start using in your application right away:
Filling in an entire form with predefined values.











