You being a software engineer is suffering of cervical pain because of too much stress on your neck.
Next Steps
Try using low pillow , correct posture while working on laptops/ computer , frequent breaks while working & hot water fomentation. Get your cervical spine x ray for more clarification.