I wrote a fun sed script today: sed -E -n -e ‘:t ; s/(.{21})(.*)/\\bf\{\1\}\n\2/ ; p ; s/\\bf\{(.*)\}\n.*/\1/ ; h ; :q { n ; G ; s/(.{21})(.*)\n\1/\2/ ; tp ; s/(.+)\n.*/\1/ ; bt} ; :p { P ; bq }’ Short, but effective. Can you figure out what it does? (solution after the break)
Archive of entries posted on April 2012
Link: PHP sucks
One of my co-workers wrote up this gem on why PHP sucks. I don’t agree with his points (having a “development server” isn’t an important or even particularly useful feature of a framework, much less a language; prepared statements aren’t the pinnacle of SQL), but he does do a good job of showing off some [...]






