The best way to mine depends on what you are trying to mine. For diamonds I prefer using mining turtles because they easily make up for their cost. What I do is dig down to y: 11.000 and set the turtle to tunnel for 50 or so blocks and I do that in huge squares. There is no programming required...