Author’s voice: The content emphasizes the importance of surprise in text files, measuring it using an equation. Surprising information includes the concept of calculating surprise at the word level and compressing text to improve readability. The script mentioned calculates frequencies at the word-level and suggests identifying frequent sequences of words for compression. Surprising content involves using Huffman coding to shrink code size and replacing repeated phrases to increase surprise. The article explores maintaining readability in code by structuring it logically and coarsely around CPU timelines and data flow. The author reflects on grouping related concepts and the challenges in defining what constitutes related concepts. Contradictions emerge when evaluating text readability formulas versus code readability.
https://taylor.town/compress-code