clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

The intuitive and powerful forEach loop in JavaScript

The forEach loop for beginners, and how to use it with a nodeLists, and HTMLCollections. Array.prototype.forEach() So the forEach loop…

Common JavaScript array methods and Object.keys()

A lightweight introduction into some of array methods in JavaScript, and how work with objects in an iterative manner. Object.keys() Object…

Git: rebasing workflow and resolving merge conflicts

Simple rebase/merge workflow and how to deal with possible merge conflicts. So you're building a feature on a feature branch called some…

Git: move commits between branches with cherry-pick

Cherry-picking commits in Git is easy and straightforward, here’s how to do that. Basic usage of cherry-pick Take two branches: new-feature…

Git: checkout files or folders from another branch

You probably knew that a branch can be "checked out" with the git checkout branch-name , but interestingly, a single file or a whole folder…

Git: handy branching commands

Here’s a little cheat sheet to help deal with branches. Listing branches List branches: List remote branches: List remote branches that are…

Git: stashing

Stashing is a great tool to make life with branches a bit more fluent. Rationale Scenario: you're building a new feature in a dedicated…

Tab complete Git commands and branches

Here’s a quick post on the awesomeness of tab completion, and how it can be applied to Git commands and branch names. 👉 See also: my…

jQuery's .closest() function, and pure JavaScript alternatives

Here’s a boil-down on the jQuery’s .closest() method and 2 native JavaScript alternatives. jQuery’s .closest() function is great! Here’s…

Append and prepend elements with pure JavaScript

Adding element after and before other elements in the DOM, also known as appending or prepending. Pure JavaScript provides some handy…

  • © 2021 Antti Hiljá
  • About
  • Follow me in Twatter → @hiljaa
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • console.log('Smash the patriarchy!')
  • I love u!