First, why would you want to do something from scratch? It will probably be slower, more buggy, take much more effort, and may be less portable; unless you have a very very good reason to go it solo, it's usually best to use the wheel someone else invented and refined over the years.