McSneaky Blog

Best and pest practices

Table of Contents * Code maintainability * What is maintainable code * How to write maintainable code * KISS, YAGNI, DRY etc * KISS - keep it simple stupid * YAGNI - you aren’t going to need it * DRY - Don’t repeat yourself * WET - Write everything twice * Easily readable code and cognitive overhead

Dockerizing AdonisJS v5 (outdated)

This guide is outdated, refer to » up-to-date guide « Tried putting AdonisJS v5 preview build into container. It is doable but requires some workarounds to work fine. Whole source code: https://gitlab.com/McSneaky/youtube-downloader Dockerfile # Build AdonisJS FROM node:14-alpine as builder # Workaround for now, since bodyparser install relies on

JWT

This post will be about JWTs for web development, not about mobile apps, programs or embedded devices What is JWT JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties. The claims in a JWT are encoded as a JSON object that

Useful Commands

Since I keep forgetting some good commands, which I have to re-search all the timem, I'll write them down in here This post will be updated from time to time, so everything is in one place Git Change remote URL Good when remote has moved, renamed or just

Developing 101

Git usage Use Git! (or any other version control system) Git gud and commit Using Git and learning basics with it how to use it will save you a lot of time. At the beginning it might slow you down, but it will pay back greatly in future The more

McSneaky Blog © 2026