How to write an object oriented program that doesn’t suck

Posted on January 20, 2017. Filed under: Uncategorized | Tags: , , |

How to write an object oriented program that doesn’t suck Most of our codes [sic] are not perfect in many ways and it will take ages to list all the possible flaws. However, I will list some of the most common and frequent mistakes and give some suggestions to fix them.

Read Full Post | Make a Comment ( Comments Off on How to write an object oriented program that doesn’t suck )

Another Git catastrophe cleaned up

Posted on December 13, 2016. Filed under: Uncategorized | Tags: , , |

Another Git catastrophe cleaned up My co-worker X had been collaborating with a front-end designer on a very large change, consisting of about 406 commits in total. The sum of the changes was to add 18 new files of code to implement the back end of the new system, and also to implement the front […]

Read Full Post | Make a Comment ( Comments Off on Another Git catastrophe cleaned up )

Oh shit, git!

Posted on September 9, 2016. Filed under: Uncategorized | Tags: , , , , , , , , |

Oh shit, git! Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation has this chicken and egg problem where you can’t search for how to get yourself out of a mess, unless you already know the name of the thing you need to know […]

Read Full Post | Make a Comment ( Comments Off on Oh shit, git! )

Recovering commits with Git

Posted on April 17, 2016. Filed under: Uncategorized | Tags: , , , , , |

Recovering commits with Git Today I did not handle [my commits] with care and commits seemed to be lost. Luckily I found that Git does not delete commits. My lost commits were just not referenced by any branch or tag, but were ‘dangling’. The problem is finding these commits back. Similar content to MJD’s recent […]

Read Full Post | Make a Comment ( Comments Off on Recovering commits with Git )

How to recover lost files added to Git but not committed

Posted on April 16, 2016. Filed under: Uncategorized | Tags: , , |

How to recover lost files added to Git but not committed If you lose something [in Git], don’t panic. There’s a good chance that you can find someone who will be able to hunt it down again. So said MJD’s previous blog. This is a write-up of how he recovered some files that he accidentally […]

Read Full Post | Make a Comment ( Comments Off on How to recover lost files added to Git but not committed )

How to undo (almost) anything with Git

Posted on June 9, 2015. Filed under: Uncategorized | Tags: , , , , , , , , |

How to undo (almost) anything with Git One of the most useful features of any version control system is the ability to “undo” your mistakes. In Git, “undo” can mean many slightly different things. When you make a new commit, Git stores a snapshot of your repository at that specific moment in time; later, you […]

Read Full Post | Make a Comment ( Comments Off on How to undo (almost) anything with Git )

Liked it here?
Why not try sites on the blogroll...