Contact Corfitz

Fix it tomorrow…

This is not an encouragement to procrastination, but sometimes you may find yourself struggling to solve an issue that you have been working on for hours. The solution seems so simple, yet you just can’t seem to figure it out. Then my advice to you is: Fix it tomorrow…

The reason you probably can’t solve it at the given moment, is probably due to tiredness, stress, overthinking, and that you have stared yourself blind on what you are working on.

It happened for me quite recently having to execute an asynchronous function in a GraphQL API mutation for each of the entries provided, which didn’t get a chance to finalise before the mutation was done. The observant reader and programmer is probably yelling at me now saying ”Well duh! You can’t expect a promise to return in a for each loop or while mapping an array of data!” and as this might true indeed, my brain yesterday associated the problem more with the GraphQL and mutation aspect, not the fact that I couldn’t write proper Javascript..

Bottom line is, I woke up today, opened up my screen to see the very obvious mistake, and you know what? It work as it should now! Haha… So give your head time to rest sometimes.. You know the solution may be simple, yet you may just be too tired to realise the obvious.


Posted: 2019-04-21


Read more gakker