Click here to Skip to main content
15,903,739 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I don't laugh at programming themed cartoons Pin
BGArts2-May-16 6:08
BGArts2-May-16 6:08 
GeneralRe: I don't laugh at programming themed cartoons Pin
90823652-May-16 10:24
90823652-May-16 10:24 
GeneralRe: I don't laugh at programming themed cartoons Pin
Kornfeld Eliyahu Peter2-May-16 7:01
professionalKornfeld Eliyahu Peter2-May-16 7:01 
GeneralRe: I don't laugh at programming themed cartoons Pin
Daniel Pfeffer2-May-16 22:42
professionalDaniel Pfeffer2-May-16 22:42 
JokeRe: I don't laugh at programming themed cartoons Pin
Sander Rossel2-May-16 9:46
professionalSander Rossel2-May-16 9:46 
GeneralRe: I don't laugh at programming themed cartoons Pin
BGArts2-May-16 11:09
BGArts2-May-16 11:09 
GeneralRe: I don't laugh at programming themed cartoons Pin
Sander Rossel2-May-16 11:23
professionalSander Rossel2-May-16 11:23 
GeneralA user story of the Search button PinPopular
Marc Clifton2-May-16 3:23
mvaMarc Clifton2-May-16 3:23 
I've put together a simple website for this non-profit[^], and one of the features is to search for participants. The search is very simple -- type in any part of the participant's first or last name, and a list of matches is displayed on the right from which to pick.

My client said it wasn't working. I showed her it was working, and then I asked her to do what she was doing before. Meantime, I was watching the console trace.

To my amusement, I noticed she was typing in the entire name, like "Marc Clifton" (no, I'm not a black breastfeeding mom -- see link if that's a WTF for you.)

First off, I had a bug -- I wasn't parsing the parameter correctly, so it was trying to find "Marc%20Clifton" My bad -- if I was using a commercial server, instead of having rolled my own, this probably wouldn't have happened.

But the other problem is that she was typing in the whole name. So now my search algorithm handles:

"M" (any case, that was working already) as a fragment in the first and last name fields
"Marc Clifton" - searches specifically for first name like "Marc" and last name like "Clifton"
"Clifton, Marc" - same as above.

So you can also enter in things like: "M C" or "C, M" and it'll work too.

Moral of the story is -- you figure the user shares some common context of how a "Search" button works, only to realize that that is not the situation, and I coded something as simple as search for my contextual understanding of how search works, not theirs!

Gads. Even a simple search isn't simple.

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralRe: A user story of the Search button Pin
peterkmx2-May-16 3:36
professionalpeterkmx2-May-16 3:36 
GeneralRe: A user story of the Search button Pin
Bassam Abdul-Baki2-May-16 4:23
professionalBassam Abdul-Baki2-May-16 4:23 
GeneralRe: A user story of the Search button Pin
Marc Clifton2-May-16 4:41
mvaMarc Clifton2-May-16 4:41 
GeneralRe: A user story of the Search button Pin
Bassam Abdul-Baki2-May-16 4:47
professionalBassam Abdul-Baki2-May-16 4:47 
GeneralOh its a bank holiday... Pin
glennPattonWork32-May-16 1:46
professionalglennPattonWork32-May-16 1:46 
GeneralRe: Oh its a bank holiday... Pin
OriginalGriff2-May-16 2:09
mveOriginalGriff2-May-16 2:09 
GeneralRe: Oh its a bank holiday... Pin
glennPattonWork32-May-16 2:17
professionalglennPattonWork32-May-16 2:17 
GeneralRe: Oh its a bank holiday... Pin
OriginalGriff2-May-16 2:23
mveOriginalGriff2-May-16 2:23 
GeneralRe: Oh its a bank holiday... Pin
Member 124968872-May-16 2:31
Member 124968872-May-16 2:31 
GeneralRe: Oh its a bank holiday... Pin
glennPattonWork32-May-16 2:33
professionalglennPattonWork32-May-16 2:33 
GeneralRe: Oh its a bank holiday... Pin
90823652-May-16 2:39
90823652-May-16 2:39 
GeneralRe: Oh its a bank holiday... Pin
OriginalGriff2-May-16 2:39
mveOriginalGriff2-May-16 2:39 
GeneralRe: Oh its a bank holiday... Pin
jeron12-May-16 4:25
jeron12-May-16 4:25 
GeneralRe: Oh its a bank holiday... Pin
Member 124968872-May-16 7:23
Member 124968872-May-16 7:23 
GeneralRe: Oh its a bank holiday... Pin
Member 124968872-May-16 7:26
Member 124968872-May-16 7:26 
GeneralRe: Oh its a bank holiday... Pin
jeron12-May-16 7:45
jeron12-May-16 7:45 
GeneralRe: Oh its a bank holiday... Pin
BGArts2-May-16 4:43
BGArts2-May-16 4:43 

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.