Mistři v programování na #hovnokod

update updateResult.Result is bool :)

private static bool StartUpdate()
		{
			Logger logger = new Logger();
			_updateMgr = new UpdateManager(logger);
			UpdateResult updateResult = _updateMgr.UpdateDB();			

			if (!updateResult.Result)
			{
				return false;
			}
			return true;
		}

Anonymous,

Zlomiť ruky, aby tento človek už nemohol chytiť klávesnicu....

string IUser.TicketFiltersJson
{
	get { return null; }
	set { }
}

Anonymous,

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,