5 Ways to Increase Your Efficiency as a Developer
Tags: devjournal, career, productivity
Published: 2021-04-22 13:38:00

<!-- wp:paragraph -->
<p>Like any other field, the efficiency of a developer varies based on several factors: work culture, management, personal life, skills, and so on. Some we can control, and some we cannot.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In this article, we will discuss how to make oneself better by working on things we control. There are some clichéd tips like <em>Stay Focused, Avoid Distractions </em>and<em> Be in the FLOW</em>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>But we are going to get a bit more technical on increasing the efficiency.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Journey of a Software Developer</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The usual stages of a developer are shown below:</p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>Coder -&gt; Programmer -&gt; Architect</p></blockquote>
<!-- /wp:quote -->

<!-- wp:paragraph -->
<p><strong>Coder</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Many people use the words “coder” and “programmer” interchangeably. But, there is a difference between the two. A coder is someone who knows how to write the code or a script. Optimisation and architecture are not their priority. Rather, they focus on writing code that just works.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>Programmer</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>A programmer is a superset of a coder. They know how to write code, but in addition, they also write it with great optimisation and robustness. Secondly, time and memory complexities are kept in mind when writing code.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>Architect</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>As you might have guessed, the architect or the software architect, to be precise, is a superset of a programmer. The architect is responsible for not only a piece of code but also how these pieces fit together.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Coder vs. Programmer vs. Architect: An Example</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>A great example would be to ask these three people to “Create tic-tac-toe.”</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>When asking the coders, they will start coding, assuming it's a 3x3 tic-tac-toe with two players. Secondly, they might write nested <em>for </em>loops as a brute force approach to figure out who won the match. There might also be no design patterns in place like MVC, MVVM, or others.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>However, the programmer will first understand the requirements completely and then start on the coding part. They will create optimised algorithms for maintaining the state of the players and a scalable way to change the grid dimensions.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The architect will select which technology is best for designing the game. A few other questions come into play: Is it going to be a web-based or mobile app? Will an API be required or just played locally? In addition, they will also decide on which design patterns to implement. Once the architecture is defined, only then will the actual implementation start.</p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>The goal of each developer should be to become a great architect along with having great technical skills.</p></blockquote>
<!-- /wp:quote -->

<!-- wp:paragraph -->
<p>Here are a few ways to improve your efficiency and skills:</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>1. Pen and Paper</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Many people find it offensive to give a pen and paper coding interview. In my opinion, it is one of the best tools to get clarity. Jot down the things that you want to achieve and how you will achieve them.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In the tic-tac-toe example above, you can write down that there will be models like Player and Board. Secondly, a game engine will be required to calculate the result after each move. Also, write down what each class will contain, e.g., Player will have a name and symbol property.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>You get the idea. Figure out your design patterns. What you are trying to achieve in code, achieve it with pen and paper first.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>2. Become Your Own Manager</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>At the start of the day, create a TODO list of your tasks, e.g., you will complete the game engine today, or you will complete the board UI today, etc.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Try to break it down into smaller tasks of 3–4 hours each. Having clear goals for the day keeps you motivated. Secondly, it gives a sense of satisfaction when the tasks are completed; it boosts morale.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Essentially, it’s a variant of the <a href="https://www.atlassian.com/agile/kanban#:~:text=Kanban%20is%20a%20popular%20framework,of%20work%20at%20any%20time.">Kanban</a> management style. But, I have found it to be quite effective.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>3. Documentation</h2>
<!-- /wp:heading -->

<!-- wp:image {"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://miro.medium.com/max/1400/0*ic31iXHxVYtLUjWo.png" alt=""/><figcaption><em><span style="text-decoration: underline;">Reference: https://www.reddit.com/r/ProgrammerHumor/comments/ijoxq6/why_read_documentation/</span></em></figcaption></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>One of the reasons for taking time to get things right is a lack of knowledge.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Astonishingly, there are many developers who just assume how the system or library works. They spend an enormous amount of time figuring out by themselves how it works without reading the documentation. This leads to a loss in efficiency.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>A simple example I personally encountered was writing blogs using the Markdown syntax. I know most of the basic syntax, but I was unaware of some of the advanced ones. I wasted around 5–10 minutes trying to figure it out. If I had gone to the documentation, instead, it would have saved me time.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Here is a <a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Here-Cheatsheet">Markdown</a> cheat sheet in case you are wondering.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>4. Don’t Reinvent the Wheel</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>If something is already available in the market, with great reliability, use it. Usually speaking the pros will outweigh the cons.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>As an example, you should never write your own cryptographic function or library. There are pretty decent libraries available in almost all languages, and they will save you lots of time. More importantly, it will have the correct implementation, and it will be well optimised</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>But don’t overdo it. You shouldn’t import <a href="https://underscorejs.org/">underscore</a> or <a href="https://lodash.com/">lodash</a> just to loop through an array. It only increases your package size and hurts the user experience.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>5. Testing</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Test-Driven Development (TDD) is another methodology that is going strong. Writing tests is as important as writing code. Though manual testing is required, automated tests provide confidence that your system will not break logically.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Initially, it might feel that you are spending more time writing tests. But as the project grows, it would be worth it. Fewer bugs and more robustness.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Here is an article on <a href="https://www.daveops.co.in/post/learn-test-driven-development-with-integration-tests-in-net-5-0">how to do TDD</a> in .NET Core.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Conclusion</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>I, personally, felt a lot of different emotions when following the above tips, but they have improved my efficiency a lot, especially creating a to-do list for the day.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Read more interesting articles:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><a href="https://www.daveops.co.in/post/xcode-vs-android-studio-which-is-worse">XCode or Android Studio: Which is Better?</a></li><li><a href="https://www.daveops.co.in/post/continuous-integration-ci-cd-for-ios-part-1">Setup CI-CD for iOS</a></li><li><a href="https://www.daveops.co.in/post/how-to-setup-ci-cd-pipelines-for-android-with-azure-devops">Setup CI-CD for Android</a></li><li><a href="https://www.daveops.co.in/post/learn-test-driven-development-with-integration-tests-in-net-5-0">Learning Integration Tests in .NET with .TDD</a></li></ul>
<!-- /wp:list -->