I’ve done it. As long as you don’t exercise physically it’s fine. During my fast I was still able to think clearly and write code.