Proper Code Management

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
DerSpatz
Posts: 8
Joined: 29 Feb 2016, 08:58

Proper Code Management

27 Apr 2017, 03:38

Greetings,

I am struggling with my code management and I would kindly ask for tips and tricks.

At the moment I am using eight different ahk-files for different topics (e.g. a summary-GUI) and whenever I need to add something, I just write the new code at the end of that file. This leads to a very unstructured code.
  • How do you keep your code clean and structured?
    Do you use a single file for all your projects and GUI?
    Do you have some sort of indices?
    Do you comment all your code?
    ...
I am thankful for any advice.

Best regards,
Spatz
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: Proper Code Management

27 Apr 2017, 18:19

A lot of this is personal preference. But the thing you need to realize most is, that you spend more time reading and editing code, than you do writing it. So, you always want to make the code as friendly to read as possible. I comment my code a lot, so that when I come back to it months later, I can know whats going on. I use multiple files for big projects, but not for small ones.


Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 186 guests