this post isn't to ask any specific question, but rather to discuss what you do to try to improve your code and your code writing. Mods please move it if necessary to whatever forum is most appropriate.
I just finished reading the Kindle sample of the book "clean code". I, like most VBA users, am not a full-time programmer. I started off (and still am) a "Power user" who has grown some in VBA and programming after 5 or so years of beating my head against the wall. I read this forum, have read some good books on Access VBA, and follow most things FMS and Rubberduck put out.
I feel that for self-taught (no formal computer science, programming etc.) I'm not half bad. But I'm always pushing myself to improve. In the last two years, any new code I've written has tried to keep business logic out of forms and in class modules. I try to break methods into smaller chunks (single responsibility), and I've even begun using interfaces when appropriate.
There are some simple things I haven't tried yet-- things like passing recordsets in method arguments or creating a wrapper for a recordset. I would like to try this if and when it makes sense.
After my long winded intro, I'm curious what others are doing to improve the code they work in...What are you doing today, that you weren't doing in years past? What makes your code easier to read and maintain now?
I just finished reading the Kindle sample of the book "clean code". I, like most VBA users, am not a full-time programmer. I started off (and still am) a "Power user" who has grown some in VBA and programming after 5 or so years of beating my head against the wall. I read this forum, have read some good books on Access VBA, and follow most things FMS and Rubberduck put out.
I feel that for self-taught (no formal computer science, programming etc.) I'm not half bad. But I'm always pushing myself to improve. In the last two years, any new code I've written has tried to keep business logic out of forms and in class modules. I try to break methods into smaller chunks (single responsibility), and I've even begun using interfaces when appropriate.
There are some simple things I haven't tried yet-- things like passing recordsets in method arguments or creating a wrapper for a recordset. I would like to try this if and when it makes sense.
After my long winded intro, I'm curious what others are doing to improve the code they work in...What are you doing today, that you weren't doing in years past? What makes your code easier to read and maintain now?