Virtual Species

Remove Local Git Branches

Sometimes we fall in need that we need to remove all the local git branches that are not on the remote. We create a pull request after finishing our tasks and merge that pull into the master, we have an option to delete that particular sub-branch at that time.

Git Branch
Once we delete that sub-branch from the server, we can run any of the following commands to remove that branch from the remote tracking branch list_
$ git remote prune origin
$ git fetch origin --prune
$ git fetch origin -p

Dog Year Calculator

Different breeds of dog age at varying speeds. Dogs age at varying speeds at different stages of their lives. "Small dogs reach skeletal and reproductive maturity sooner than larger breeds. Once they've achieved those measures of adulthood they carry on to live longer,​" says Dr. Kate Creevy, assistant professor of internal medicine at the University of Georgia. It's often said that the age of dogs can be better understood by multiplying their age, in human years, by 7. That is not very accurate since dogs reach adulthood within the first couple of years. The general calculator below is a bit more accurate. The formula has used 10.5 dog years per human year for the first 2 years, then 4 dog years per human year for each year after.

Word Counter

WordCounterForVirtualSpecies

Character Counter

Char Count on virtualspecies.com

Commenting in Popular Programming Languages

Every main programming language implements comments. Comments are ignored by the compiler and this is how a script generates it's own documentation. We know that Good code is self-documenting. We comment once we delete a chunk of code or to prevent rethink. If we build a library or framework, some sort of API documentation is very important to other developers for easy grasping. Remember to comment as often as possible. It’s important! Here is the list of comment styles of various languages_ 

Code commenting on virtualspecies.com
Ada
     -- Comment in Ada