News for hackers. Stuff that matters.
Re:Let's test-drive some sorting algorithms by glitchc on Wednesday June 23, 2021 @12:25PM (#27606334)
"Test-drive" feels like a bit of a misnomer here. I was expecting more around performance and efficiency of sorting algorithms, but this article is mainly around how to build a test harness in Go.
Re:Let's test-drive some sorting algorithms by daveFNbuck on Wednesday June 23, 2021 @12:33PM (#27606429)
I think "test-drive" here is supposed to mean do test-driven development.
Re:Let's test-drive some sorting algorithms by sorokod on Wednesday June 23, 2021 @05:02PM (#27610306)
A TDD satire ?

from:

"...let’s only add a new code into our implementation if we have a test scenario that would justify its existence!"

to:

"Now let’s implement some sorting algorithm here. For now, let’s use the the algorithm called Bubble Sort."

to:

"Since the go standard library is more efficient, let’s change our implementation to use that instead"

Re:Let's test-drive some sorting algorithms by oolonthegreat on Wednesday June 23, 2021 @06:14PM (#27611199)
the author has a previous post praising TDD https://alabeduarte.com/tdd/, so I see no reason to believe it is satire: which is VERY confusing.
Re:Let's test-drive some sorting algorithms by barry27 on Wednesday June 23, 2021 @04:06PM (#27609490)
There is some good advice in this post. When something is broken, dont fix it until you have a test that demonstrates the issue.
Re:Let's test-drive some sorting algorithms by sorokod on Wednesday June 23, 2021 @05:09PM (#27610408)
What was the issue that required the pasting of bubble sort code?

100k elements in 14 seconds?

Re:Let's test-drive some sorting algorithms by barry27 on Tuesday June 29, 2021 @07:18PM (#27683014)
What do you mean "what was the issue that required the pasting of bubble sort code"? Are you responding to my comment?