~/talk

20 Terrible Ways to Reverse a String

Talkat code.talks 2019 · 2019-10-24..10-25· [python, testing]
links:none on file
slides:none on file

Twenty distinct Python ways to reverse a string, each progressively worse: pure slicing replaced by 20 intentionally awful methods including a neural net trained to predict character order (low accuracy, slow to train), a bogosort approach that needs bogosort requiring n! shuffles for correctness, binary/bit-shift encodings, and a physical pipeline using Blender + printer + scissors to render and reassemble letters — all demonstrably working but impractically slow, memory-heavy, or fragile, with concrete complexity and failure modes shown.

AI-written summary · about

  1. 0:00Reversing strings in Python
  2. 5:53Flawed string reversal methods
  3. 11:11Performance of basic approaches
  4. 17:15Binary trees and grammars
  5. 24:44Server and client implementations
  6. 30:06Network operations and artifacts
  7. 35:06Language-based costs
  8. 39:06Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.