DEV Community

Cover image for How to write code faster
David Arogunre
David Arogunre

Posted on

How to write code faster

It can be really challenging as a programmer to write fast code all programmers want to have a life of their own and don’t want to spend all of their time just coding that is why in this video I am going to be giving 5 major tips that will greatly improve how fast to and efficiently your write code. Hey everybody I am David Arogunre and welcome to this post. In this post I am going to as you already know giving you 5 tips on how you can right faster code without sacrificing the quality of your code.

Disclaimer: Just because it is faster code doesn’t mean that you should rush the coding process if you do that can result in a heap of errors and eventually sacrificing the quality of your code.

Number one, structure or plan out your code before hand this will really improve your programming work flow. Many times we have problems structuring our code during the coding process because we did not plan or design our code before hand planning your code before hand will help you greatly improve in your coding process. Not designing your code before hand is the main reason why people waste time while trying to code out big or large codebases. An app like Notion or Microsoft Visio can be used to plan out your code I will link Notion and the other apps in the description below.

Number two, use an intellisense. Using an intellisense like kite will greatly improve your programming work flow. By the way if you haven’t heard about kite I will also link that in the video description. As I was saying Intellisense like kite increase your programming speed up too 25%. By the way if you don’t know what an intellisense. They are just like auto complete engines for your IDE’s choice. They basically just help you to auto complete code instead of writing long pieces of code, the intellisense I will highly recommend is Kite. Kite is like any other intellisense but better It give you auto complete but instead of sorting it by popularity like other intellisense it sorts it by relevance in your code using AI(Artificial Intelligence). It also gives you full completion and documentation look-up if you are using the famous programming language Python . I highly recommend using an intellisense because it will speed up your work flow and efficiency. I can’t recommend using an intellisense enough. I use Kite for my work flow.

Number three, learn basic key-bindings for your IDE of choice. Different IDE’s use different key-bindings and if you know their basic key-bindings you will be able to improve your work flow and productivity. There are many general basic key-bindings across all editors like Ctrl + C, Ctrl + V, and I am very sure if you are a programmer you already knew these key-bindings. Knowing key-bindings is an aspect that is going to determine how fast you code, if you can open up your terminal in just 2 seconds just by using a key-binding, trust me it is going to save you a lot of time and energy instead of a lot of scrolling. Try your best to understand basic key-bindings it will help you a lot in your work flow. Key-bindings are key for a productive programming work flow.

Number four, create a quiet and peaceful working space. By doing this you will be able to work in an enclosed area without any disturbance and distraction. Distraction are one of the main reasons why people spend longer periods of time coding they are always being distracted by something or someone for example your phone always keep your phone away from you at all times as to not get any distracting notifications try to avoid using a thing that you know can distract while you are coding. And you can definitely put on music if it makes you more productive. So go to your workstation and start your work instead of siting in a place that you know can easily distract you. If you follow this particular tip I assure you that your efficiency will increase.

Number five, this one is slightly different from others and it is learning how to type fast. You can do this by learning to touch typing I am sure that a lot of you who are programmers touch type but if you don’t I highly recommend you learn to. What is touch typing? Touch typing is typing without looking at the keyboard you can only using muscle memory. Achieving a medium or high typing speed by learning to touch type. Websites like keybr.com and 10fastfingers will teach you how to touch type once you learn how to touch type writing code will become a lot easier. If you are typing while looking at the keyboard this will slow you down and your productivity and efficiency will decrease. Typing fast is really a key component of writing fast code. Once you learn how to type faster and add up all this practices together I assure you that you will be writing code 50% faster than before.

I said productivity and faster a lot in this video.

I hope you enjoyed watching this video if you like this video give it a like, subscribe and hit that notification bell to get informed anytime I post a new video and don’t forget to leave a comment in the comment section and I will  reply to you as soon as possible. Bye and I will see you in the next video.

Top comments (3)

Collapse
 
detoix profile image
detoix

mastering your tools is definitely important - if you have intellisense, learn what it can do for you and use it, remember though that it is actually not about fast typing, but rather about typing what is required. in other words, if you know what you're going to code beforehand, you're going to do it only once, without deleting and starting over again, thus it will be significantly faster

Collapse
 
davidarogunre profile image
David Arogunre

Thanks for the advice and thanks for reading i hope you enjoyed it

Collapse
 
davidarogunre profile image
David Arogunre

You can also use emmets to write code faster