• RLB (unregistered)

    This is singularly frist.

  • (nodebb)

    We should think of the childre

  • Duston (unregistered)

    W are not amused.

  • Vilx- (unregistered)

    And thus peopl started to purchase a pair of jean and a pair of glasse.

  • Anonymous') OR 1=1; DROP TABLE wtf; -- (unregistered)

    Clearly at some point a pointy-haired boss pointed out that "detail" was wrong in some other part of the UI, and the developer put in that hack to fix that one thing. I hope they got a good promotion for that.

  • Sole Purpose Of Visit (unregistered)

    Don' swea th detail ...

  • (nodebb)

    I sense a great disturbance in The Force, as though millions of languages other than English were ignored.

  • OldCoder (unregistered) in reply to cellocgw

    What do you mean?

    From the example given, even English is being ignored.

  • Angela Anuszewski (google) in reply to Duston

    You just made me think of "W" on Good Eats. She was never amused.

  • (nodebb) in reply to Angela Anuszewski

    I wouldn't be amused either if my name got changed to "".

  • 🤷 (unregistered)

    That's too much informatio!

  • Jim Tonic (unregistered)

    I don't think it's too bad. Yeah, a get-method to set some property is bad, a rookie mistake. As long as they control the list of control types (not from some content management system or user input), they'll be fine.

  • Is That Really A Crosswalk? (unregistered)

    I assume elsewhere there's code that does something like

    If number-of-things > 1 then output = output & "s"

  • (nodebb)

    From our code base:

    CALL SET_ENTITY_INFO(iEntity, info)

    Here info is an output variable (I hate pass by reference...)

  • JS (unregistered)

    It's funny. So as a lone dev with my own app framework, I have a frequently used UI util kit (a big typescript file of my desert island most helpful static functions that I drag from project to project adding onto occasionally). Among the most frequently used is Pluralize(n:number, unit:string, includeNumber:boolean):string ... Fortunately, it's been very rare I've needed to count moose or geese, but there have been a few valuable mods to that classic over the years, including gender, person and possessive. Overall it works pretty well if your intent is to populate known form questions. Going backwards from plural to singular, especially without providing a count or doing it as a static getter seems pretty insane...

  • SmashTeapot (unregistered)

    Why not just have an abstract class with a method getPluralName() and getSingularName()? Then you can define it to be whatever you want. Maybe I can't see the forest for the trees.

Leave a comment on “All About the Details”

Log In or post as a guest

Replying to comment #:

« Return to Article