Mistři v programování na #hovnokod

Aby bylo jasno ...

public class BooleanValues
    {
        public const string True = "1";
        public const string True2 = "true";
        public const string True3 = "True";
        public const string True4 = "TRUE";
        public const string False = "0";
        public const string False2 = "";
        public const string False3 = "false";
        public const string False4 = "False";
        public const string False5 = "FALSE";

        public BooleanValues();
    }

Anonymous,

Magické konstanty rulezzz

resource.State = (ObjectState)(this.IsPublic ? 1 : 0);
...
...
...
this.IsPublic = ((int)resource.State == 1);

Anonymous,


Anonymous,

Odchytavat vyjimky je treba vsude , I tam kde nejsou.

            try
            {
  
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }

Anonymous,


Anonymous,