Re:Show HN: Whiteboardfree – Developer Jobs at Companies Tha...
by hinkley on Friday May 18, 2018 @04:01PM
(#17104536)
I’ve been in too many NIH situations and when someone asks me one of these questions, often my mind isn’t on the solution. Im thinking about if there’s a reason they asked the question, and maybe this was a mistake.
I get so hung up on this it’s changed how I ask the question. The last time I asked a sort question, all I wanted was a compound comparator. And even then I couched it as “we want the rest endpoint to support sort criteria so we can do a top five list, but to sell the idea, we are going to sort in the UI for now. Give me some code to do that.”
Re:Show HN: Whiteboardfree – Developer Jobs at Companies Tha...
by scarface74 on Friday May 18, 2018 @05:51PM
(#17105238)
I wouldn't even bother remembering that pattern.
With R#
Generate Code -> create Relationsl Comparison and click on the properties that I want to use for comparison.
If that's the kind of whiteboarding you do, no problem. But, don't ask me to write a merge sort in C# (been there done that). If you ask me to sort a list in C#, I'm going to write:
sortedList = employeeList.OrderBy(e => e.LastName + " " + e.FirstName).ToList();