Jump start your developer career with these 10 tips
We believe that to become a better engineer it all comes down to practice, practice and more practice. Especially when you just started your career. The problem is that when you’re just getting started, there is much more to it than just writing lines of code.
At the beginning you’ll struggle to get everything right, doing this while trying to focus on writing code can be too much at the same time. That’s why I encourage to take the time and put in some effort into getting used to everything that comes with writing code. After this, when you will write code, you will notice that it will become a smoother experience and you won’t get pulled out of the flow while performing other tasks, for example, navigating through files and searching for an answer on the internet.
You will get more time to write code, and you’ll also be more focused on the writing code part as the other tasks will be performed more automatically without thinking about it.
The following tips aren’t in a particular order and I would suggest to only pick one or two up at a time, focus is the key here.
Learn your IDE
To get more productive quickly, learn how your IDE works. Take the time to learn the shortcuts for tasks you frequently do or take some time to perform. One task that immediately comes to mind is to find a file in the file explorer, this task often takes some seconds but even more important, it takes you out of the flow. By learning the shortcut to navigate to the file, you won’t be required to think.
Another useful tip in working with your IDE is to take a look at the extensions (or plugins) it provides. Even the smallest extensions, for example, a theme, can often lead to a happier development environment and experience. It’s these little things that can help when you’re working in your IDE for several hours a day.
Most of IDE’s have a “tip of the day”, do not turn this off. You can learn about useful tips you otherwise won’t encounter.
A tip continuing the above tip would be on how to read documentation files. You don’t need to read the whole documentation to solve your problem. Quickly scan the document and know which part you have to read to solve your problem. By practicing this early on you will also take notice of the multiple ways on how to solve a problem, each with their benefits and drawbacks. It will also give you an idea on how good documentation looks like and the importance of good documentation.
When you’re stuck with a problem and you are not able to find an answer within a time span of 10 minutes, do not hesitate to ask for help. When you’re asking for help don’t just ask the question. Show and describe the problem that you’re encountering, explain why you think this problem occurs, show what you have tried already in order to solve the problem, and what you have found on the internet. This gives a good basis and some thinking time to the one that’s trying to help.
A good question is phrased correctly and boils down to the actual problem, not the code and other random factors around it. To pinpoint the root cause, create a new minimal application and try to reproduce the issue. Most of the time, you will notice that this step usually solves the problem. If it doesn’t, it will help you to have a better understanding of its behavior. This minimal application offers a playground to you and the other developer trying to answer. It helps her by filtering out all the other buzz, plus this playground can be tested faster than the actual application.
Even if you have the problem solved but are unsure about the implementation, take a break or ask for a second pair of eyes. There are always multiple ways to solve a problem. Often the implementation depends on how you look at it, it depends on how you start at solving the problem in front of you. You will notice that when you take a break and come back, you will take a look at the problem from another angle and this will lead to another implementation. The same counts for a second pair of eyes, with a fresh mind the real problem usually surfaces and the solution will become clear.
Committing frequently and writing good commit messages
This tip is often times overlooked. By writing good commit messages, you will leave a trail of thoughts behind. When you or a reviewer takes a look at the commit history, the line of thoughts will be immediately clear. This makes it easier to review code. Ask for the commit rules in your company to show that you care, if there are no rules, a good start would be to follow the practice of conventional commit messages. A commit message describes what you did in a glance, for example
update check out does not show what you did in comparison to
fix(check out): resolve delivery address to a foreign country. The latter shows that the commit is a bug fix during the checkout process, and what it solved, adding a foreign country as a delivery address.
Comparable to this tip, is to commit small changes frequently. This makes it easier to revert changes if you went down the wrong rabbit hole. A popular practice is to write (failing) tests first, commit the tests, solve the problem and make sure the tests pass, and as last step to refactor the code. This is known as Test Driven Development (TDD) and is also referred to as the Red Green Refactor cycle. To take it a step further, you could even try the test && commit || revert cycle, where changes would be reverted if the test cases would fail.
Having a good understanding of
git and knowing what you can do with it is definitely helpful for this tip, and in general.
Knowing to debug is important
You will often need to debug code. If you master your debug skills, you will find the cause of the problem faster. Here again, learn the environment you’re working in, for example the chrome devtools or inside your IDE, and the shortcuts to jump through the code more quickly. Reading, really reading (and understanding) an error message is also a step in the right direction. From my experience error messages are frequently ignored. More often than not, reading the error message carefully will result in a quicker fix, you will know what went wrong and where the error occurred. This is useful information to start the debug process.
If it seems unsolvable, think like a scientist and keep the scientific method in mind. To follow the scientific method, make an observation and form a hypothesis, make a prediction based on the hypothesis, test the prediction, repeat until you got the hypothesis right.
You will read more code than you would write, reading and understanding code is an important part of your career. By reading other peoples code, I learned a lot. Reading work-related code is a great start, but don’t stop there. Try reading code of a popular library or from a library you’re using daily. At first, this will be hard but don’t give up after one try. When you read code on a regular basis, you will notice familiar parts and all the pieces will come together nicely.
If you want to take it a step further, you can even contribute to these libraries. As a start you can start by offering help to triage issues and to write documentation, everyone loves good up-to-date documentation. When you’ll become familiar with the code base you could pick up small changes and bug fixes, later on you can write bigger and bigger features.
Related to this tip, is the opposite. Let your code be reviewed and stay open for feedback.
To get started in open source look for entry-level issues to get a hang of it, look for issues labeled as “Good First Issue”, “Up For Grabs”, or “Help Wanted”.
Split up big tasks into multiple smaller tasks
If a task is too big and you don’t know where to start, split it up into smaller chunks. This will make it easier to wrap your head around. An extra benefit of doing this is that you’ll feel more productive. Every task you can check off is a win. This will lead to a positive state of mind and the drive to continue your winning streak.
A great way to become better is to surround you with motivated people, these people will pull you up to a higher level. Find a mentor, start contributing to open source, write and read articles, follow people, or join a local group. It works contagiously to see the effort motivated people put into their work, seeing how passionate they are about their work and seeing them reap the deserved results.
Put in the extra time
If you want to get better at a faster pace then other developers, put in the extra time. It only has to take an extra 30 minutes a day. That’s 2 to 3 hours extra per week, this accumulates to 156 hours extra over the time span of a year. The average workweek in Belgium is around 37.5 hours, putting in the extra time a day means you have worked a whole extra month more. During the first years of your career this is a lot, and believe me this will be visible.
One of the pillars of extreme programming, program with in pairs. A starting developer can learn from working alone, but can learn the tricks of the trade from a more experienced developer. They key here is to find what works for you, to find a balanced timetable to work. Pairing can be intense, agree on a schedule with the needed breaks.
A nice-to-know to this tip is that not every level of developer can pair program with junior developers efficiently, the Dreyfus model is a good resource to find a matching pair.
The above tips won’t make you a better engineer overnight. What they do, is allowing you to focus on the coding part while you’re writing code. The best way to learn something is to focus on one task at a time. If you take the time to practice and master the above tips, you will execute all of the tasks around coding without thinking about it. This will lead to small wins and more coding time. I believe the best way to become better at writing code is to practice, practice and practice, the writing code skills will come automatically over time, we just want to become better at a shorter time. Knowing your way around and not waste time makes it also more fun and practical to pair program with other engineers, plus you’ll look more skilled.