- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
This is singularly frist.
Admin
We should think of the childre
Admin
W are not amused.
Admin
And thus peopl started to purchase a pair of jean and a pair of glasse.
Admin
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.
Admin
Don' swea th detail ...
Admin
I sense a great disturbance in The Force, as though millions of languages other than English were ignored.
Admin
What do you mean?
From the example given, even English is being ignored.
Admin
You just made me think of "W" on Good Eats. She was never amused.
Admin
I wouldn't be amused either if my name got changed to "".
Admin
That's too much informatio!
Admin
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.
Admin
I assume elsewhere there's code that does something like
If number-of-things > 1 then output = output & "s"
Admin
From our code base:
CALL SET_ENTITY_INFO(iEntity, info)
Here info is an output variable (I hate pass by reference...)
Admin
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...
Admin
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.
Admin
Addendum 2021-07-26 06:56: Imagine a line break and end quote before "At".