Click here to Skip to main content
15,888,968 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
Generalimplementing interface method, same signature, from two interfaces Pin
raddevus25-Apr-24 9:55
mvaraddevus25-Apr-24 9:55 
GeneralRe: implementing interface method, same signature, from two interfaces Pin
Jon McKee25-Apr-24 12:27
professionalJon McKee25-Apr-24 12:27 
GeneralRe: implementing interface method, same signature, from two interfaces Pin
Richard Deeming5hrs 50mins ago
mveRichard Deeming5hrs 50mins ago 
RantGiven enough eyeballs - a Sunday rant... Pin
Mircea Neacsu21-Apr-24 7:32
Mircea Neacsu21-Apr-24 7:32 
GeneralRe: Given enough eyeballs - a Sunday rant... Pin
Greg Utas21-Apr-24 8:10
professionalGreg Utas21-Apr-24 8:10 
GeneralRe: Given enough eyeballs - a Sunday rant... Pin
Mircea Neacsu21-Apr-24 8:18
Mircea Neacsu21-Apr-24 8:18 
GeneralRe: Given enough eyeballs - a Sunday rant... Pin
Greg Utas21-Apr-24 10:11
professionalGreg Utas21-Apr-24 10:11 
GeneralCountry code Pin
PIEBALDconsult16-Apr-24 17:07
mvePIEBALDconsult16-Apr-24 17:07 
GeneralRe: Country code Pin
Peter_in_278016-Apr-24 17:50
professionalPeter_in_278016-Apr-24 17:50 
GeneralRe: Country code Pin
Jörgen Andersson16-Apr-24 20:15
professionalJörgen Andersson16-Apr-24 20:15 
GeneralRe: Country code Pin
snorkie17-Apr-24 2:40
professionalsnorkie17-Apr-24 2:40 
GeneralRe: Country code Pin
trønderen17-Apr-24 4:26
trønderen17-Apr-24 4:26 
PIEBALDconsult wrote:
Requiring the country code seems unusual (for a site in the U.S.)
What do you mean - is there anything outside the USA? Do they have telephones as well? Really?? Wink | ;-)

-- but what would prompt a web developer to make it an elephanting drop-down?!
I guess that even a lot of Europeans do not know the phone country code of their homeland. I guess that a lot of USA citizens, if they had to call home when on a dangerous vacation trip to The Primitive World outside USA, would go straight ahead with their US number, unaware that they have to prefix it with +1. On a landline phone, that might be 001, or 0951 (that's in Norway, up until 20-30 years ago), or something else. Even when told about the '+1', many would not know the meaning of the 1, but view the whole prefix as a deficiency of the country's phone system.

So, I think this drop down list, displaying both the code, so that users learn it, and the name of the country, for those who are not sure about the code, is a really good idea. It is not possible to see from the screenshot if you are allowed to type the code directly without using the pulldown list. Users who know their country code with 110% certainty would most likely prefer that - but maybe their memory has a bit error, or they make a typing mistake, so they specify an unused code or the code of a completely different country. The pulldown list is one way for the software to ensure that a valid number is entered. And, the selected value can display the country: Users from other countries might leave a '+1' untouched without noticing. They are much more likely to notice '+1 (US)': But I am not in the US!

The UI isn't really that bad, in my eyes. I think what I saw yesterday was far worse: I sent a notice through the web pages of the Norwegian Automobile Owners Association. The form had entries for name, email, and membership number: The membership number field was a spin control starting at -1. I did not let it spin up to my number (a value for the field was not mandatory) Smile | :)

Religious freedom is the freedom to say that two plus two make five.

GeneralSQL (Transact-SQL) needs a proper FOR loop! Pin
PIEBALDconsult1-Apr-24 17:30
mvePIEBALDconsult1-Apr-24 17:30 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
#realJSOP2-Apr-24 9:07
mve#realJSOP2-Apr-24 9:07 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! PinPopular
snorkie4-Apr-24 8:08
professionalsnorkie4-Apr-24 8:08 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
PIEBALDconsult4-Apr-24 8:16
mvePIEBALDconsult4-Apr-24 8:16 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
Sander Rossel8-Apr-24 1:11
professionalSander Rossel8-Apr-24 1:11 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
PIEBALDconsult8-Apr-24 3:27
mvePIEBALDconsult8-Apr-24 3:27 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
Sander Rossel10-Apr-24 4:29
professionalSander Rossel10-Apr-24 4:29 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
GuyThiebaut8-Apr-24 23:53
professionalGuyThiebaut8-Apr-24 23:53 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
Sander Rossel9-Apr-24 0:15
professionalSander Rossel9-Apr-24 0:15 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
ChandraRam12-Apr-24 1:16
ChandraRam12-Apr-24 1:16 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
honey the codewitch9-Apr-24 21:58
mvahoney the codewitch9-Apr-24 21:58 
GeneralRe: SQL (Transact-SQL) needs a proper FOR loop! Pin
jsc4210-Apr-24 0:24
professionaljsc4210-Apr-24 0:24 
General.bash_history makes me happy, how about you? Pin
raddevus9-Mar-24 13:34
mvaraddevus9-Mar-24 13:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.