Mistři v programování na #hovnokod

Aneb když se mi zdá, že málo vyhledávám.

SELECT village_part_description_id
FROM village_part_description_assignment
WHERE village_part_description_id = 78

Zbyněk Rybička,

Placená verze pluginu do Wordpressu (99 €)

$load_admin = false;
if( is_admin() ) {
    $load_admin = true;
}

Anonymous,

toto uz sa dlhsim kodom snad ani neda

            ViewBag.FirstTabClass = "active";
            ViewBag.SecondTabClass = "";
            ViewBag.ThirdTabClass = "";
            ViewBag.FourthTabClass = "";
            ViewBag.fifthTabClass = "";
            ViewBag.SixthTabClass = "";

            if (tab != null)
            {
                switch (tab)
                {
                    case 1 :
                        {
                            ViewBag.FirstTabClass = "active";
                            ViewBag.SecondTabClass = "";
                            ViewBag.ThirdTabClass = "";
                            ViewBag.FourthTabClass = "";
                            ViewBag.FifthTabClass = "";
                            ViewBag.SixthTabClass = "";
                        }
                        break;
                    case 2:
                        {
                            ViewBag.FirstTabClass = "";
                            ViewBag.SecondTabClass = "active";
                            ViewBag.ThirdTabClass = "";
                            ViewBag.FourthTabClass = "";
                            ViewBag.FifthTabClass = "";
                            ViewBag.SixthTabClass = "";
                        }
                        break;
                    case 3:
                        {
                            ViewBag.FirstTabClass = "";
                            ViewBag.SecondTabClass = "";
                            ViewBag.ThirdTabClass = "active";
                            ViewBag.FourthTabClass = "";
                            ViewBag.FifthTabClass = "";
                            ViewBag.SixthTabClass = "";
                        }
                        break;
                    case 4:
                        {
                            ViewBag.FirstTabClass = "";
                            ViewBag.SecondTabClass = "";
                            ViewBag.ThirdTabClass = "";
                            ViewBag.FourthTabClass = "active";
                            ViewBag.FifthTabClass = "";
                            ViewBag.SixthTabClass = "";
                        }
                        break;
                    case 5:
                        {
                            ViewBag.FirstTabClass = "";
                            ViewBag.SecondTabClass = "";
                            ViewBag.ThirdTabClass = "";
                            ViewBag.FourthTabClass = "";
                            ViewBag.FifthTabClass = "active";
                            ViewBag.SixthTabClass = "";
                        }
                        break;
                    case 6:
                        {
                            ViewBag.FirstTabClass = "";
                            ViewBag.SecondTabClass = "";
                            ViewBag.ThirdTabClass = "";
                            ViewBag.FourthTabClass = "";
                            ViewBag.FifthTabClass = "";
                            ViewBag.SixthTabClass = "active";
                        }
                        break;
                }
            }

Martin Práznovský,

if lover

if (common.checkContains('INSTALL', 'kvm')) {
    saltPort = 6969
} else {
    saltPort = 6969
}

Anonymous,


Anonymous,