SRL Archive - Devs' Corner

Don't commit with wrong standards.


Naike

2010-11-29 05:24:05


Function Correct(S: String, B: Boolean): Boolean;

var
I: Integer;

If you want to have Boolean -> boolean, feel free to do so.

BUT keep it correct standards, no space between function and parameters

Function Wrong (S : String) : Boolean;

^ Don't do that.

:smarty:

EvilChicken!

2010-11-29 08:10:02

Most people would probably view this as a very small thing..

Well, most people have no idea how having OCD-ish thoughts regarding stuff like that feels like. Seriously, if I even copy the tiniest amount of code from anywhere, I can not for the love of cod force myself to work with it until I've corrected it´s standards. >:
Though, I also prefer capitalized data types and fully lowercase bolded words.

Hm, shouldn't SRL made a thread where we all make one and final desicion on what standards to use when committing?

Cstrike

2010-11-29 09:48:21

I wouldn't mind going through patching up some standards. There are some functions that are completely messy. Everyone seems to have their own "unique" standards that differ slightly from everyone else.


@EvilChicken: It'd be cool to have a thread like that :)


From Shuttleu:
http://www.kaitnieks.com/scar/scriptingsta/


Nava's thread:
http://villavu.com/forum/showthread.php?t=59755


Those two slightly different in one or two things but are generally the same.

Nava2

2010-11-29 10:52:05

From: cstrike
I wouldn't mind going through patching up some standards. There are some functions that are completely messy. Everyone seems to have their own "unique" standards that differ slightly from everyone else.


@EvilChicken: It'd be cool to have a thread like that :)


From Shuttleu:
http://www.kaitnieks.com/scar/scriptingsta/


Nava's thread:
http://villavu.com/forum/showthread.php?t=59755


Those two slightly different in one or two things but are generally the same.


Mine is just Kait's standards updated to work with Simba as well as using things that really weren't thought of at the time. I also do not like some small things in there that lead to ugly code or poor practices. :)