How to make programming less annoying for beginners

in programming •  7 years ago  (edited)

Many commands are very commonly used in code, like if statements(if(condition == true): do that...)

But always having to type them can get a bit annoying for beginners, so this post will show you how to make this First-World-Problem a thing of the past.

First of all you'll need to insttal the free software Autohotkey.

When you're done doing this, rightclick in any folder, go to new and then AutoHotkey Script.

Then you can just edit it by opening it in the standart windows editor.


Functionality

When you opend it up, you'll fist need to erase everything that's already written down in the file.

And then you can just type in something like this:

Numpad1::                          
SEND if():{Left}{Left}             
return

Let's take a look what all of this means:

"Nampad1::" means that everything between this and the return at the end will only be executed if Numpad 1 was pressed.

"SEND if():{Left}{Left}" means that the programm types "if():" and then presses the left arrow key twice.(this takes less than a second)

"return" means that the code above doesn't effect the code that may be written after the return


Here's an example of how I used this to speed up my programming:


The code is available here.


And if you want to make it even easier, you can make little stickers to put onto your keycaps, so you can't forget which one does what. (Yes, I know this looks pretty bad, but you can do better than me)


+

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Cool post! I could never learn any languages besides HTML and CSS

It's never to late to try, maybe some of my future posts that will go more into the mechanics of programming will help you learn one more.