Timeline for What's the best convention to store "other" option?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 1, 2020 at 8:24 | comment | added | Filip Milovanović | "code I'll be checking against the string "other", like a magic constant" - well, confine the special case to one place in code, the one place where you have to check, and then either concoct some scheme to treat it polymorphically, or treat the two differently/separately if that makes more sense. | |
| Apr 1, 2020 at 7:08 | answer | added | slepic | timeline score: 0 | |
| Apr 1, 2020 at 6:35 | review | Close votes | |||
| Apr 16, 2020 at 3:05 | |||||
| Apr 1, 2020 at 5:03 | answer | added | mtj | timeline score: 1 | |
| Apr 1, 2020 at 4:34 | comment | added | Kartik | @mtj it will control the flow of my app. For instance, if it's Dell, Asus, or something, I'll show a link to go to the company's website. If it's "other", I'll hide the section completely. If the user hasn't chosen anything yet, I'll show a CTA for the user to choose. | |
| Apr 1, 2020 at 4:24 | comment | added | mtj | The "correct" way is determined by further use of this information. Why do you need this information, and what will be done with it? | |
| Apr 1, 2020 at 4:00 | review | First posts | |||
| Apr 2, 2020 at 21:54 | |||||
| Apr 1, 2020 at 3:57 | history | asked | Kartik | CC BY-SA 4.0 |