Categories
Angular JavaScript Programming

Angular 1.5 todo app

I have been using Angular for over 3 years. A few months ago Angular 1.5 came out and they introduced the .component() method, which is basically the same as an element directive but with a much simpler API. Since then I’ve fallen more and more in love with Angular so I decided to write a […]

Categories
Programming

My Atom setup

I recently started using Atom, this awesome web-based editor from GitHub. My previous editor was Sublime Text but I decided to make the move. Why? Because Sublime has a slow development.

Categories
Git

Git worktree feature

Have you ever been busy working on a branch but needed to push something to another branch without disrupting work on your current branch? Enter the worktree feature! It was introduced in Git 2.5 and is very handy when working on multiple branches simultaneously, without disrupting your work on the other branch. It got me […]

Categories
Git

Splitting up a commit in Git

My last post got fairly positive feedback, 77% upvotes on Reddit. But in the comments I was asked to add an important practical use-case, how to split commits. So instead of editing my previous post, I decided to make a new post demonstrating how I would do that.

Categories
Git

Interactive rebase in Git

Rebasing in Git is basically replaying commits on top of each other. But with interactive rebase you are in control of how they should be replayed and what should be done with them. You can re-arrange them, skip them, reword them, edit their changes and squash them together. This is a very powerful tool.

Categories
Git

How to use bisect in Git

There’s a method in Git that can become very useful when working in large projects where it is hard to find where bugs originated from. This is the git bisect command and allows you to find by binary search the change that introduced a bug.

Categories
.NET Programming

Isolating your BLL from your DAL and unit testing it

This article will teach you how to set up a basic service and repository, to isolate your BLL (Business Logic Layer) from your DAL (Data Access Layer), so you can easily create unit tests for your BLL. This solution doesn’t use any ORM (Object Relational Mapping) like e.g. Entity Framework. This is only to explain […]

Categories
.NET Programming

How to mock and test WCF services using Moq

I really needed to mock and test WCF services for a new project I’m working on. I had heard great things about the Moq mocking framework so I decided to use that.

Categories
Git

Aliases in Git I couldn’t be without

Let\’s face it, Git is pretty raw, but it has the options to do cool stuff. That\’s why I decided to make a post with the aliases I use all the time and couldn\’t be without.

Categories
Git

How to commit the right way in Git

Most people write commit messages explaining in short what is in their commit, which in the long run tells other people NOTHING about the commit without having to go through the diff of the commit. But there is a better way to do this.