Hacker News new | past | comments | ask | show | jobs | submit login
Regex Golf Part 2: Infinite Problems (ipython.org)
107 points by z0a on Feb 23, 2014 | hide | past | favorite | 10 comments



Whether it's a testament to Python's clean syntax or Norvig's immense coding experience, I always find his code to be good examples of readable code. He even managed to make code about regexes look nice!


This is what happens when Randall Munroe nerd-snipes Norvig. Its a beautiful thing, very interesting!


Holy shit. That article was an intense read. Well worth it, in the end, though.


Norvig teaches a Design of Computer Programs course on Udacity, which helps you think about solving problems.

https://www.udacity.com/course/cs212


Those un-wrapped lines of text are really annoying to read.


They wrap for me in Chrome, but not in Firefox. (What the hell?)


Looks like a quirk with display: -moz-box (an outdated property). Changing div.input to display: flex makes it work properly.


It's quite amazing that he manages to do this sort of thing in his spare time, for fun. I guess he has decades of experience that most people don't though :)


Peter Norvig of spell-checker fame explains us regexes.

I always get confused when I have to do NLP stuff and use the re library.


I wish I'd known about Branch And Bound when I was a student - it would have probably come in handy a few times.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: