Often, there are multiple ways to solve a problem.
It’s all about finding the best solution.
This is where I do my best coding.
The best solutions won’t come by staring at the screenMore lines of code or more hours of work do not always equal elegant solutions.
In fact, you may end up deleting your code the next day.
Sleep on those tricky problems — you may arrive at a better solution the next morning.
If you work for a company that allows you flexibility, use it — for your benefit and the company’s.
Developers who waste away at their desk typically do not put out quality work.
Hopefully, your boss realizes this too!Spend time with your familySometimes my best ideas come when I am at home spending time with others.
A solution will come to me and I will open up my phone and jot it down.
Then the next morning, or whenever I have free time, I will look at the note and start working.
Maybe this will work for you!Something seems too complicatedIf something seems too complicated, it probably is.
If you have been sitting on a problem for a couple of days and still have not found a solution, you probably need to take a step back and rethink your approach.
Maybe the application isn’t architected in a way that makes your approach feasible.
Maybe you need to consult with a more experienced colleague.
ConclusionThe world around you is full of solutions.
Some of my best code has come from ideas I have found away from my keyboard.
So, tell your boss, “I’m just stepping away for a while — but I will be back, with a better solution and a healthier mind.