Click here to Skip to main content
15,907,396 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.

 
GeneralDon't know if I should laugh or cry... Pin
Sander Rossel28-Aug-16 3:49
professionalSander Rossel28-Aug-16 3:49 
GeneralRe: Don't know if I should laugh or cry... Pin
Daniel Pfeffer28-Aug-16 4:18
professionalDaniel Pfeffer28-Aug-16 4:18 
GeneralRe: Don't know if I should laugh or cry... Pin
Cornelius Henning28-Aug-16 4:30
professionalCornelius Henning28-Aug-16 4:30 
GeneralRe: Don't know if I should laugh or cry... Pin
Sander Rossel28-Aug-16 4:42
professionalSander Rossel28-Aug-16 4:42 
GeneralRe: Don't know if I should laugh or cry... Pin
OriginalGriff28-Aug-16 5:43
mveOriginalGriff28-Aug-16 5:43 
GeneralRe: Don't know if I should laugh or cry... Pin
Sander Rossel28-Aug-16 5:56
professionalSander Rossel28-Aug-16 5:56 
GeneralRe: Don't know if I should laugh or cry... Pin
ledtech328-Aug-16 5:26
ledtech328-Aug-16 5:26 
GeneralRe: Don't know if I should laugh or cry... Pin
Sander Rossel28-Aug-16 5:52
professionalSander Rossel28-Aug-16 5:52 
I know how concat works, but obviously I don't have the source code.
unionAll is something I wrote, it works pretty much the same way, but lazy evaluated and it doesn't accept multiple parameters, hence the extra unionAll.
I wrote some tests on unionAll to check that it really adds the elements of a and b to a newly created c, and it does (in the order of a and b).
There is no multi-threading, so "slowing down" shouldn't be an issue (unless bits can jump, as well as fall over).
So there should be no difference between the two.

The weird part is that the sorting was off, but the algorithm itself didn't change.
But the REALLY weird part is that it started working after hours of debugging and no code changes (as far as I know).
There's probably a change somewhere, but after hours of debugging I can't find it.
All looks pretty much the same.

If everything was as easy as "look[ing] at the differences" I'd be out of a job Laugh | :laugh:
Read my (free) ebook Object-Oriented Programming in C# Succinctly.
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles here on CodeProject.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: Don't know if I should laugh or cry... Pin
ledtech328-Aug-16 8:15
ledtech328-Aug-16 8:15 
GeneralRe: Don't know if I should laugh or cry... Pin
Sander Rossel28-Aug-16 9:00
professionalSander Rossel28-Aug-16 9:00 
GeneralRe: Don't know if I should laugh or cry... Pin
ledtech328-Aug-16 12:27
ledtech328-Aug-16 12:27 
GeneralRe: Don't know if I should laugh or cry... Pin
Brady Kelly28-Aug-16 23:16
Brady Kelly28-Aug-16 23:16 
GeneralRe: Don't know if I should laugh or cry... Pin
Sander Rossel29-Aug-16 6:23
professionalSander Rossel29-Aug-16 6:23 
GeneralRe: Don't know if I should laugh or cry... Pin
Brady Kelly29-Aug-16 8:25
Brady Kelly29-Aug-16 8:25 
GeneralRe: Don't know if I should laugh or cry... Pin
Sander Rossel29-Aug-16 8:48
professionalSander Rossel29-Aug-16 8:48 
GeneralRe: Don't know if I should laugh or cry... Pin
Foothill29-Aug-16 3:50
professionalFoothill29-Aug-16 3:50 
GeneralRe: Don't know if I should laugh or cry... Pin
CDP180228-Aug-16 8:54
CDP180228-Aug-16 8:54 
GeneralRe: Don't know if I should laugh or cry... Pin
Sander Rossel28-Aug-16 8:59
professionalSander Rossel28-Aug-16 8:59 
GeneralRe: Don't know if I should laugh or cry... Pin
CDP180228-Aug-16 9:57
CDP180228-Aug-16 9:57 
GeneralRe: Don't know if I should laugh or cry... Pin
Rage28-Aug-16 23:33
professionalRage28-Aug-16 23:33 
GeneralRe: Don't know if I should laugh or cry... Pin
patbob29-Aug-16 5:51
patbob29-Aug-16 5:51 
GeneralRe: Don't know if I should laugh or cry... Pin
Sander Rossel29-Aug-16 6:21
professionalSander Rossel29-Aug-16 6:21 
GeneralRe: Don't know if I should laugh or cry... Pin
Mark_Wallace29-Aug-16 5:53
Mark_Wallace29-Aug-16 5:53 
GeneralVisual Studio "15" roadmap Pin
Franc Morales28-Aug-16 0:11
Franc Morales28-Aug-16 0:11 
GeneralRe: Visual Studio "15" roadmap Pin
Dave Kreskowiak28-Aug-16 4:52
mveDave Kreskowiak28-Aug-16 4:52 

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.