Pet peeves

  1. ‹ Older
  2. 9 months ago

    Gavin S

    4 Sep 2019 Testers, Xojo Pro, Forum Moderators, MVP UK

    We've all come across UI controls being used to hold some type of data in OPC (other people's code) and not just for display. For example, hidden columns in Listboxes. Ugh. Pet peeve right there.

    But I came across a new low this morning. A Label control, with no text, whose Visible property was being used as a Boolean. If a condition was satisfied in code, this Label was set to visible, still with no text. Then other parts of the code checked if the Label was visible or not.

    I feel dirty.

  3. brian f

    4 Sep 2019 Testers, Xojo Pro Chilly California

    @Gavin S We've all come across UI controls being used to hold some type of data in OPC (other people's code) and not just for display. For example, hidden columns in Listboxes. Ugh. Pet peeve right there.

    But I came across a new low this morning. A Label control, with no text, whose Visible property was being used as a Boolean. If a condition was satisfied in code, this Label was set to visible, still with no text. Then other parts of the code checked if the Label was visible or not.

    I feel dirty.

    Time to take a shower and wash that dirty code away

  4. Tim L

    4 Sep 2019 Testers, Xojo Pro Phoenix, AZ, USA

    @brian f Time to take a shower and wash that dirty code away

    The shower scene from Silkwood comes to mind.

  5. brian f

    4 Sep 2019 Testers, Xojo Pro Chilly California

    @Tim L The shower scene from Silkwood comes to mind.

    :P

  6. 8 months ago

    Mark C

    5 Oct 2019 Testers, Xojo Pro Spain 03170

    Anyways....
    when you thought 19r1 was the time, after 3 years of not upgrading, to upgrade.
    Damn those discounts.

  7. Rick A

    6 Oct 2019 Testers, Xojo Pro (Brazil. UTC-3:00)
    Edited 8 months ago

    @Gavin S But I came across a new low this morning. A Label control, with no text, whose Visible property was being used as a Boolean.

    This is so insane that it took me few seconds to understand. Once I read, I was "but that property is Boolean, how could the guy setting it with something else?"

    Been there many times, in special when I worked with interns touching codes.

    I've saw codes humans should not be allowed to. Some caused my eyes bleeding.

    I've saw things like:

    // not the real code, not the real language
    x = true
    if x=true then a=0
    if a=0 Then
     ajjfakjsdfjasdjfa()
    End

    And yes, "x" and "a" had no other use.

    The final code ended just a function call with a better name.

    ---

    Your case seems typical from users, not pros, developing things and coming from some sort of visual database oriented environment. I've saw this behavior from people used to Microsoft Access or FileMaker.

  8. Rick A

    6 Oct 2019 Testers, Xojo Pro (Brazil. UTC-3:00)

    I believe I have said it already. But just in case...

    Once upon a time a team was discussing an API and a guy was explaining the functions parameters and behaviors of part of the code.

    -If this, then that, if this, then that...

    I observed the code and found an inconsistency. And asked "what happens if the parameter is zero?" (the many ifs did not catch that zero) and the guy said something like:

    -Zero is a parameter this function will never have. Don't worry.

    Months later there was a program crashing wildly without people knowing why. Guess what? A zero reaching there.

    I guess people in Microsoft write things like "Catastrophic Failure" for situations like these, just to know that something that should never happen at some place, happened.

  9. 2 months ago

    Self !@#$% isolation!!!!!!

  10. brian f

    Mar 26 Testers, Xojo Pro Chilly California

    #4258!

  11. 9 weeks ago
  12. brian f

    Mar 26 Testers, Xojo Pro Chilly California

    People with the last name of Summers when it is only Spring time :P

  13. OUCH!!!!!
    That was harsh!

    I return after a 4 year absence and get immediately abused!

    Harsh people! :)

  14. Gavin S

    Mar 26 Testers, Xojo Pro, Forum Moderators, MVP UK

    @Richard S OUCH!!!!!
    That was harsh!

    I return after a 4 year absence and get immediately abused!

    Harsh people! :)

    Have you been self-isolating for four years?! I always thought you were a man ahead of your time.

  15. I planned ahead!
    This crappy 6 foot long beard is now starting to bug me (literally) :(

  16. Norman P

    Mar 26 Testers, Xojo Pro outside LMAO !!!!!!!

    @Richard S I planned ahead!
    This crappy 6 foot long beard is now starting to bug me (literally) :(

    I think the word you're looking for is "infested"

  17. Infested beards

  18. Gavin S

    Mar 26 Testers, Xojo Pro, Forum Moderators, MVP UK

    @Richard S Infested beards

    You're back five minutes and you're already talking about your sister.

  19. Gavin S

    Mar 26 Testers, Xojo Pro, Forum Moderators, MVP UK

    The Pet Peeves 2 thread.

  20. @Gavin S You're back five minutes and you're already talking about your sister.

    You can't talk - So are you now! :)

or Sign Up to reply!