test

Tips on how ask & search as a junior dev

Tips on how to request correctly for help.

Tips on how ask & search as a junior dev

Introduction

In your programming journey you might stumble on new or unfamiliar subject and it is perfectly normal. In order to tackle those, you should learn first how to describe your issue and how to ask for help or search for the correct answer online.

Here are a few things to keep in mind :

Not Hello

Never Send a single Hello, Hi, hey, … It’s just that simple. For more details check the link in the title above.

Dont ask to ask, just ask

When starting in a company people get sometimes shy and feel the need to ask for some (unnecessary) confirmation. Here is something that happen a lot :

<n00b> Hey goyo do you know javascript ?
<goyo> Seen  

This interaction is useless and often lead to no answer. Multiples reason could explain this :

What you should do:

<n00b> Hey goyo I have some issue on using some props 
in my react component. Here is my code and 
I cant seem to understand why it doesn't work
<goyo> No problem, i'll check it in between meeting and will get back to you before tomorrow morning.  

Many benefits :

XY problem

When searching on a problem you will sometimes believe that getting help to solve a small part will unblock you. So rather than asking help for the final problem you will ask for a rather smaller task. However it will not be the optimal way to solve your bigger problem leading in having to ask for help twice. Here is a great example also used in the website linked above :

<n00b> How can I echo the last three characters in a filename?  
<goyo> If they're in a variable: echo ${foo: -3}  
<goyo> Why 3 characters? What do you REALLY want?  
<goyo> Do you want the extension?  
<n00b> Yes.  
<goyo> There's no guarantee that every filename will have a three-letter extension,  
<goyo> so blindly grabbing three characters does not solve the problem.  
<goyo> echo ${foo##*.}

Instead of directly what the beginner wanted here, he hacked his way into creating another problem. What you should do:

<n00b> How can I echo the extension of a file?.  
<goyo> echo ${foo##*.}

It saves muuuuuuuuuch time & frustration on both ends 👍

Going Further

You can read those articles if you find the subject interesting :

References

Tags : #Code #Learning