Jump to content

Clean Coding


rcmaehl
 Share

Recommended Posts

As guinness pointed out, we all have our own little foibles - but the majority of the long-term members here have pretty easy-to-follow coding styles. Perhaps take a look at their work and see if there are tips for your own scripts. :D

M23

That I will do.

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Link to comment
Share on other sites

One of my coding foibles is I generally align two dimensional array elements neatly on the page. This allows me to quickly locate elements to fix errors or alter things. In fact adding underscore will slow the script down ever so slightly, but it's a trade off. Example here:

Link to comment
Share on other sites

Foibles ... ?

Definition: personal imperfection

Synonyms: characteristic, defect, eccentricity, failing, fault, frailty, idiosyncrasy, infirmity, kink, mannerism, oddity, peculiarity, quirk, shortcoming, singularity, vice, weak point, weakness

Aha. Where talking humans here.

Ban monospaced fonts in coding. ... No more wasting time trying to lineup code stuff ... or cursing at Tidy for messing it up again. (Although UDF function docs kinda look funny with it.)

---

It's life Jim, but not as we know it :D

Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

I'm quite anal about variable names or getting more so as the scripts start getting better and bigger, and the comment about add comments as you progress is something im starting to do now as well as i cant remember what the feck i was doing a month later when i pick it up again. :D:oops:

Edited by Chimaera
Link to comment
Share on other sites

I find myself using a $Label[label number here] array and the like when my programs start getting big to cut down on variables.

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...