Fasting is definitely one of the best ways to be in remembrance of God. There are certainly other ways, including helping people and serving one’s family and children. If one purifies (wudhu) prior to going to bed it will be like they worship all night.