1. Список говнокодов пользователя schecterXA

    Всего: 3

  2. C# / Говнокод #17491

    +95

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    public static class ColorExtension
    	{
    		public static bool IsDarkColor(this Color color)
    		{
    			return (color.R & 255) + (color.G & 255) + (color.B & 255) < 3*256/2;
    		}
    	}

    x & 255 = ?, где x типа byte

    schecterXA, 22 Января 2015

    Комментарии (10)
  3. C# / Говнокод #17457

    +135

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    public enum Minutes
    	{
    		[Description("00")]
    		Zero = 0,
    
    		[Description("05")]
    		Five = 5,
    
    		[Description("10")]
    		Ten = 10,
    
    		[Description("15")]
    		Fifteen = 15,
    
    		[Description("20")]
    		Twenty = 20,
    
    		[Description("25")]
    		TwentyFive = 25,
    
    		[Description("30")]
    		Thirty = 30,
    
    		[Description("35")]
    		ThirtyFive = 35,
    
    		[Description("40")]
    		Forty = 40,
    
    		[Description("45")]
    		FortyFive = 45,
    
    		[Description("50")]
    		Fifty = 50,
    
    		[Description("55")]
    		FiftyFive = 55,
    	}

    schecterXA, 16 Января 2015

    Комментарии (5)
  4. C# / Говнокод #17456

    +134

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    public enum Hours
    	{
    		[Description("01")]
    		One = 1,
    
    		[Description("02")]
    		Two = 2,
    
    		[Description("03")]
    		Three = 3,
    
    		[Description("04")]
    		Four = 4,
    
    		[Description("05")]
    		Five = 5,
    
    		[Description("06")]
    		Six = 6,
    
    		[Description("07")]
    		Seven = 7,
    
    		[Description("08")]
    		Eight = 8,
    
    		[Description("09")]
    		Nine = 9,
    
    		[Description("10")]
    		Ten = 10,
    
    		[Description("11")]
    		Eleven = 11,
    
    		[Description("12")]
    		Twelve = 12
    	}

    schecterXA, 16 Января 2015

    Комментарии (84)