Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 5, 2020 03:09 am GMT

What actions you should take when you are stuck on a coding problem

This post was originally published on June 30, 2020 on my blog.

Have you ever felt stuck on a coding problem? I know its a rhetorical question . Its almost impossible not to get stuck at some point throughout your career as a software engineer and not only once. This is the nature of our job. To solve riddles every day. We accepted that reality when we decided to get involved with code either professionally or as a hobby. Even senior software engineers will encounter unknown concepts for them. If you are in this position I can totally relate with you. I know very well how frustrating it can be. First things first, do yourself a favor and dont beat yourself up or even worse dont start having doubts about your existing skills and your experience. Thats something you definitely not need!

Dont worry though, Ill do my best and try to help you by giving you some tips that personally helped me go through such situations in the past.

1. Read the documentation

Yes, I know this might sound mundane but trust me this can be most of the time the solution to your problem. The documentation will (almost) always provide you with what youre looking for. Even if it is poorly written, a simple search to its API could be proved very helpful. Personally, I refer to the documentation before jumping into other mediums. Be sure you have a clear understanding of the input, processing, and output expectation of each code unit and how that matches the principles on the documentation. Many times I have started working on something without even reading the documentation in the first place believing that Ill figure it out by myself and had nothing but an undesired result.

2. Break it into smaller chunks

This is the first principle of software engineering. Im quite sure that you have never worked on something complex enough and you managed to get it to a satisfactory point without breaking it into smaller tasks. This is how we go from A to B point. We have the big picture in our mind but in order to achieve the end result, we go step by step and build around it.

3. Search Google

We definitely cant neglect the help of the Google search. They say that a good Googler is a good software engineer as well. Thats 100% true but that, only, is not enough by itself. Its not only the Google search per se but the fact that you have to know exactly what to expect on the results. Youll become more experienced on that as time goes by. Youve probably seen that before. You searched for something and you didnt get back what you expected from, but when you modified your query you finally got the answer to your problem.

4. Ask for help

Dont be afraid to ask for help. No one born to know everything at the beginning. Colleagues, stack overflow, Facebook communities, and slack groups are one of the best mediums you could address your problem to. Always a second pair of eyes can make the difference. What may appears to be elusive for you might be obvious for someone else. If you need instant support from an experienced software engineer I highly recommend using codementor.

Conclusion

I hope you found these tips useful enough! Let me know which one(s) you use often and what other approach have you taken to tackle this situation.


Original Link: https://dev.to/thodwris/what-actions-you-should-take-when-you-are-stuck-on-a-coding-problem-20fm

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To