Mistři v programování na #hovnokod

By Vojtech Petřík...Neumí ani česky, ani programovat.

 static string[] GenerateRandomClassOfRandomness()
        {
            string classOfRandomness = "";
            string usage = "";
            string randNameSpace = RandomString(rnd.Next(5, 10));
            string randFuncName = RandomString(rnd.Next(5, 10));
            string randClassName = RandomString(rnd.Next(5, 10));
            string randVar1 = RandomString(rnd.Next(5, 10));
            string randVar2 = RandomString(rnd.Next(5, 10));

            if (rnd.Next(0, 10) > 5)
            {
                classOfRandomness = "\nnamespace " + randNameSpace +
                    "\n{\nclass " + randClassName +
                    "\n{\n[SwapLines]\n [JunkcodeVars]\n  volatile int " + randVar1 + " = 0; \n[SwapLines/] \n public " + randClassName + "( int " + randVar2 + "){ " + randFuncName + "(" + randVar2 + ");}public void " + randFuncName + "(int " + randVar2 + "){ " + randVar1 + "++;if (" + randVar1 + "< " + randVar2 + "){ " + randFuncName + "(" + randVar2 + ");}else " + randVar1 + " = 0;}}}";
                usage = "new " + randNameSpace + "." + randClassName + "(" + rnd.Next(1, 5) + ");";
            }
            else
            {
                classOfRandomness = "\nnamespace " + randNameSpace + "\n{\n    class " + randClassName + "\n    {        public volatile static int " + randVar1 + " = 1111;        int a = new Random().Next(0, 2);        int b = new Random().Next(0, 2);        int c = new Random().Next(0, 2);        public int " + randFuncName + "()        {            if(a+b+c > 0)            {                " + randVar1 + " += a + b + c;            }            return new Random().Next(0, " + randVar1 + ");        }    }}";
                usage = "new " + randNameSpace + "." + randClassName + "()." + randFuncName + "();";

            }
            return new string[] { classOfRandomness, usage };
        }
//Blodhblaka-  Vojtech Petrik - Hovnokod 101. Umi jen frameworky. Asi proto,  ze ma prohle obe nohy :----)

Anonymous,


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ý,

bazén? bazén. bazén!

bool hasPool = hotelInfo.BoxCheck.Any(i => i.DataName.ToLower().Contains("bazén"));
info.AppendFormat("<span>Bazén: <b>{0}</b></span>", hasPool ? "ANO" : "NE");

Anonymous,


Anonymous,