Sudden hand pain could be from overuse like in a software professional leading inflammation of tendons. Unless we clinically assess, it will difficult to pinpoint the diagnosis. But most of the times an anti inflammatory like tab Combiflam will help take away pain and inflammation.
Next Steps
If pain does not subside in couple of days please visit an orthopaedic surgeon
Health Tips
Repetitive strain injuries are common in Software professionals. They should take regular ultra short breaks for couple of minutes and do some hand, back, shoulder stretches to prevent any injuries.