Live data from Hacker News

Bubble sort in pure CSS

dev.to

1–10 of 73 posts

Re: Bubble sort in pure CSS

#2
> Editor’s Note: This article ends on a cliffhanger. The next part goes out in a week

I stopped reading there.

Let us know when the second part is out. Why write half an article?

Re: Bubble sort in pure CSS

#3
post #2

> Editor’s Note: This article ends on a cliffhanger. The next part goes out in a week I stopped reading there. Let us know when the second part is out. Why write half an article?

Where does that text appear in the article?

I learned from the article and found the subject interesting, but the breathlessly excited tone and forced cuteness were offputting.

Re: Bubble sort in pure CSS

#5
> (oneIsGreater * origArray[0]) + (twoIsGreater * origArray[1])

There is a reason why conjunction (AND) is also called logical multiplication, and disjunction (OR) logical addition. There is not much difference between this and:

  (oneIsGreater ? origArray[0] : 0) | (twoIsGreater ? origArray[1] : 0)
This is often useful to think about when working on bitset or SIMD algorithms.

Re: Bubble sort in pure CSS

#6
post #4

It seems to only work for a fixed size. Wouldn’t that be called a sorting network?

It is a sorting network corresponding to bubble sort on 5-element input.

It is actually pretty good - the code uses 10 comparisons, while the optimal sorting network for 5 elements uses 9: https://bertdobbelaere.github.io/sorting_networks.html#N5L9D...

Re: Bubble sort in pure CSS

#9
post #2

> Editor’s Note: This article ends on a cliffhanger. The next part goes out in a week I stopped reading there. Let us know when the second part is out. Why write half an article?

Where does that text appear in the article? I learned from the article and found the subject interesting, but the breathlessly excited tone and forced cuteness were offputting.

I think he clicked on the wrong article since https://one-from-nippon.ghost.io/worlds-first-app-store/ ("The First App Store") on the front page starts with that.

Re: Bubble sort in pure CSS

#10
post #2

> Editor’s Note: This article ends on a cliffhanger. The next part goes out in a week I stopped reading there. Let us know when the second part is out. Why write half an article?

Where does that text appear in the article? I learned from the article and found the subject interesting, but the breathlessly excited tone and forced cuteness were offputting.

I'm glad to know other people are annoyed by this rather perverse style of writing. I associate it with "web business guru" / "side-hustle tutorial" / "how I made X amount of dollars in Y months", and it reeks of ultra thirdh::) xx For a while, I
Post reply on HN