I've nerdsniped myself - instead of working on the wordpress site I need to finish, I'm trying to reverse engineer the "bionic reading" algorithm for funsies.
It's that thing that went around last week, of text with the first half of each word in bold. Supposedly improves reading speed or comprehension or both; I couldn't discern any difference in the sample text, so I'm making a way to test with larger blocks of text.
I've got a working algorithm, but it doesn't perfectly match. Refining it.
Spotted this sorting algorithm on Twitter, "ICantBelieveItCanSort", and thought ... hey, php has the syntax to do this too.
Pretty sure this is O(n^2) in its purest form.
Hmm. Haven't considered this syntax before, but no reason it shouldn't work ... (Inspired by a tweet about C++ demonstrating if/else-while)
3v4l link for the image's code: https://3v4l.org/88DJ3
Software developer. Photographer. Sailing enthusiast. Known on twitter as "beryllium9".