On the other hand, I find myself a lot more focused and productive in Ramadan.
Knowing that I'm not supposed to eat or drink, I don't have to think every other hour what should I gulp down my stomach. This is a distraction which is a bit difficult to get rid of in normal days.
Also, meal timings become strict which automatically instills disciplines. In normal routine I would adjust the meals by few hours just to get some part of code done. Having such flexibility also allows some buffer to visit Social Media or Hacker News. However with empty stomach, one stays relatively bound to complete the work rather than procrastinating.