The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Item Sequence in Dropdown List

Last post 07-09-2008 10:40 AM by danixdefcon5. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 07-08-2008 7:01 PM

    Item Sequence in Dropdown List

    You have to love when a developer sorts a list of numbers as text.

     Dropdown list sequence

    --
    Making cubicle life a little less boring
    www.plotevil.com
  • 07-08-2008 7:04 PM In reply to

    Re: Item Sequence in Dropdown List

    Don't be so fast to blame the developer.  Maybe it's the dba's fault for changing the field type to nvarchar, no? 

  • 07-08-2008 7:10 PM In reply to

    Re: Item Sequence in Dropdown List

    Sure, but couldn't the developer cast the value to ensure the expected type?

    --
    Making cubicle life a little less boring
    www.plotevil.com
  • 07-08-2008 7:16 PM In reply to

    • DrJokepu
    • Top 500 Contributor
    • Joined on 03-20-2008
    • London, UK
    • Posts 96

    Re: Item Sequence in Dropdown List

    plotevil:
    Sure, but couldn't the developer cast the value to ensure the expected type?

    And what if actually a string is the expected type? What if actually that column supposed to store proper alphanumeric strings, like serials, for example FF1337LOL or something like that, and in that particular case they happen to be numbers? Maybe that particular client uses numbers for naming cost centres or whatever, but other client have letters in cost center names so having alphanumeric fields is a requirement. Without knowing what sort of data this list supposed to store, this might or might not be a problem

    The Real WTF here is the blue background and that the listbox displays more than 7 rows at the same time. Clearly this particular developer doesn't know much about proper UI design.

    The good doctor is here to help. I promise this time I will not screw up the operation.
  • 07-08-2008 10:42 PM In reply to

    Re: Item Sequence in Dropdown List

    A natural sort would be appropriate, then.
  • 07-09-2008 3:32 AM In reply to

    Re: Item Sequence in Dropdown List

     

    plotevil:

    Sure, but couldn't the developer cast the value to ensure the expected type?

    In many languages that would involve casting it to a list of ints, sorting, then casting them back to strings in order to add them to the list.  Possible, but tedious and potentially very slow once the list grew large enough.

  • 07-09-2008 3:48 AM In reply to

    • Dalden
    • Not Ranked
    • Joined on 06-18-2008
    • Cape Town, South Africa
    • Posts 17

    Re: Item Sequence in Dropdown List

     In the company I work for now they hired a development house to build them a web-based data entry and retrieval system to replace all the little spreadsheets and bits of paper everyone was using to store information on.

    The application had numerous drop-downs, for selecting things like categories and choosing specific items, sometimes running into hundreds of items. None of these were sorted, they were simply presented in database row order.

    Sometimes developers just blindly code away without testing the application from a useability perspective.

    Thats why you have user acceptance testing I suppose :)

  • 07-09-2008 7:47 AM In reply to

    Re: Item Sequence in Dropdown List

    Soviut:
    In many languages that would involve casting it to a list of ints, sorting, then casting them back to strings in order to add them to the list.  Possible, but tedious and potentially very slow once the list grew large enough.
    How long do you tend to make lists for dropdowns?  They get pretty cumbersome at even 200 elements.  At some point, it's really better to make it a free form text box.

    morbs was last seen Mon Aug 25 15:19:24 GMT-05:00 2008 in #TDWTFMafia saying "I tried to take a shit in Kentucky but my Internet kept going down so instead I just pulled out my .45 and fired randomly at children but they didn't die and do you know why they didn't die? Because Kentucky has the shittiest Internet ever. <snip>

    PLEASE SPAM:
    jtobin@ohioinstituteofhealthcareers.edu
    jtobin@ohiobusinesscollege.edu
  • 07-09-2008 8:23 AM In reply to

    Re: Item Sequence in Dropdown List

     

    belgariontheking:

    At some point, it's really better to make it a free form text box.

     

    c-c-c-c-combo box ...

     

    oh wait wrong website for that meme..

  • 07-09-2008 9:39 AM In reply to

    • Vechni
    • Top 500 Contributor
    • Joined on 09-12-2007
    • Baltimore, MD
    • Posts 100

    Re: Item Sequence in Dropdown List

     Haha! Oh wow!

  • 07-09-2008 10:40 AM In reply to

    Re: Item Sequence in Dropdown List

    belgariontheking:

    Soviut:
    In many languages that would involve casting it to a list of ints, sorting, then casting them back to strings in order to add them to the list.  Possible, but tedious and potentially very slow once the list grew large enough.
    How long do you tend to make lists for dropdowns?  They get pretty cumbersome at even 200 elements.  At some point, it's really better to make it a free form text box.

    That's why I never use the "Select Tags..." button. That's an example of a list gone too big!
Page 1 of 1 (11 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems