Quote:
Originally Posted by cbk1994
There are lots of examples. You have opinions (such as indentation of switch statements) mixed with gospel truths (like a == b for comparison instead of a = b). This makes it unclear to new scripters what is fact and what is personal preference.
I apologize if anyone took offense to my original requests. I think this thread would be a good starting point for a new compilation of coding standards. Much of what is in this thread is very correct, it just needs to be reorganized with some of the more controversial stuff removed.
|
Okay, I'm glad we have the same central goal then.
I think the problem is where one draws the line between a personal preference and something a non-personal preference.
Technically, it is also a "personal preference" to not put 10,000 lines of whitespace between every function, but that is because it is my "personal preference" to be able to read my script without scrolling down the whole time.
If I only stated "non-personal preferences", I'd just be restating the GS2 grammar. RC already tells you when you screw that up.
So, where
I draw the line is if a specific rule can be logically derived from certain core assumptions.
Naturally, a lot of things do come down to opinion here as to what the core assumptions are and which way to go, but the purpose of this thread is not to be the end-all guide for every scenario, but two things:
- A clear set of rules for quick reference.
- A walk-through to how these rules are derived to know when you can bend them.