Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

TorstenFrings

@TorstenFrings
About
Posts
14
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • reviewing old code
    T TorstenFrings

    I wonder, why u had to use recursion/goto at all:

    protected void Page_Load(object sender, EventArgs e)
    {
    var Stuff = loadStuff();
    }

    private List loadStuff()
    {
    var Stuff = new List();
    do
    {
    foreach (Node thing in Node.GetCurrent().Children)
    {
    Stuff.Add(thing);
    }
    Stuff = ShuffleNodeList(Stuff);
    }
    while (blablabla);
    return Stuff;
    }

    The Weird and The Wonderful

  • Changes goes whong
    T TorstenFrings

    sergio_ykz wrote:

    infallible validation using Javascript

    that was a nice one :D

    The Weird and The Wonderful question

  • What should you do if assigning is going to crash your application?
    T TorstenFrings

    too sad you can't override the assignment operator in c#

    The Weird and The Wonderful json help question

  • It was the 13th hour of the 13th day of the 13th month...
    T TorstenFrings

    the real WTF is, that this may fail in the very rare case, when the year switches between the evaluation of DateTime.Today.Year and DateTime.Today.Month, leading to a primer one year back in the past... but this may not be an issue if the code will not be executed during new years eve ;)

    The Weird and The Wonderful

  • if .... else case
    T TorstenFrings

    omg yes it's PASCAL ... guess the horror is the fact, that there is no need for the outer IF, because it could be handled inside the CASE as well

    The Weird and The Wonderful com help

  • if .... else case
    T TorstenFrings

    no, this is the VB way of comparison

    The Weird and The Wonderful com help

  • Hall of Shame
    T TorstenFrings

    He just spoiled the spoiling

    The Weird and The Wonderful

  • Glitch
    T TorstenFrings

    that's pure evil :) hopefully, there is no switch statement using this constant...

    The Weird and The Wonderful question

  • Making sure something is really true.....
    T TorstenFrings

    there is an obvious flaw in this code, it should read like:

    if (Status == "something")
    {
    randomValue = true;
    }
    else if (Status != "something")
    {
    randomValue = true;
    }
    else
    {
    randomValue = true;
    }

    The Weird and The Wonderful

  • Please laugh at me so I never do this again...
    T TorstenFrings

    an elegant solution would be to put the controls in question into a dedicated collection and iterate over this

    The Weird and The Wonderful

  • Please laugh at me so I never do this again...
    T TorstenFrings

    It's never a good idea to provide multiple ways to do the same thing

    The Weird and The Wonderful

  • Austin Danger Powers
    T TorstenFrings

    What I meant was: GetFullName(null, "middle", "last") => "last" GetFullName("first", "middle", null) => "first" isn't accomplished by your expression... but as well doesn't justify the code of horror in the OP

    The Weird and The Wonderful

  • New trend at work...
    T TorstenFrings

    Naerling wrote:

    Of course it would be:

    manager.AddToManager("String1", New ListInterfaceClass({New Example1, New Example2, New Example3}))

    have you looked at the ParamArray keyword? It allows you to declare a function that takes a variable number of parameters and handles them as an array... so you don't need no curly braces

    The Weird and The Wonderful css regex help question

  • Austin Danger Powers
    T TorstenFrings

    You missed the condition, that the middle name should be omitted if first or last is missing... :cool:

    The Weird and The Wonderful
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups