How to save time in implementing a new feature

Recently I have found that I could have been more efficient than how I was doing, my approach of diving straight into the code to implement the feature and then keep refining later works, but takes quite some time.

The problem is, every time I make a change, I have to test to make sure it doesn’t break anything, this caused me to test multiple times as I experimented to make my solution work. I have found that it would save more time if I do all the implementation first, then test.

It would save more time if I write down a list of test cases and mark each as done after I have tested. So I won’t forget what I have tested and can be sure that those cases work.

Also, if possible, write unit tests so tests can be executed automatically quickly in place of manual testing.

So I came up with the following flow, maybe it will be faster.

Connect from host to VM in VirtualBox and allow Internet in VM

In order to do this, setup 2 network adapters for the VM, first one use NAT so the VM has access to the Internet through the host.

The second adapter is set to Host-only.

in the VM, run ipconfig and use the IP address of the VM under the host-only network to access from the host.

Use the default gateway to access host from inside the VM

API Reference for NHibernate

While trying to figure out how a method in NHibernate works, I looked for the API Reference and couldn’t find it.

Turns out, NHibernate is a port of Hibernate for .NET framework, so you can find all the API reference in Hibernate API reference.

At least they could have included a link on their website, this probably wasted a lot of everyone’s time.

Flush the user cache, reset settings for TFS and VS

https://blogs.msdn.microsoft.com/willy-peter_schaub/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache-or-not/

Delete the contents from the following folders
C:\Users\<<Your Alias>>\AppData\Local\Microsoft\Team Foundation
C:\Users\<<Your Alias>>\AppData\Local\Microsoft\VisualStudio
C:\Users\<<Your Alias>>\AppData\Local\Microsoft\VSCommon
Go to the Visual Studio IDE folder in command prompt and Run the following command “devenv /resetuserdata” from the Visual Studio IDE folder.
Typical location for 64 bit: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
Typical location for 32 bit: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE