Top all-time · #12732
Ikke's blog
Personal blog · eikke.comprogramming
Ikke's blog is a personal blog at eikke.com about programming. Since 2008, 6 different Hacker News readers have linked it 7 times. The last post was in 2010, but the archive is still widely read.
Too few sampled comments (3) to say how often HN recommends it.?
Why HN links it
Commenters link this Python blog's posts on pyparsing and on how not to write Python code, offered as reference material for writing a DSL and for Python style guides.
Summarised by Claude from a sample of 3 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
What Hacker News says?
- nl · 2012-05-14
Better is pretty subjective here. Factories aren't common in Python, but they are used in exactly the same cases where they are used in Java (eg [1],[2],[3]). If you need to decide at runtime what object from an object hierarchy to create you use a factory. There's nothing inherently bad about that. [1] http://www.linuxtopia.org/online_books/programming_books/pyt... [2] http://stackoverflow.com/questions/8129018/fac…
Comment linking /python-factory-like-type-instances/
on “A core Python committer's (very shallow) thoughts on Dart” Submitted How not to write Python code as a story · 21 points
HN discussionI would recommend pyparsing for this. There was an excellent article on it in Python Magazine a few months ago. Some links: 1. O'Reilly mini-book on pyparsing (probably best single ref) http://oreilly.com/catalog/9780596514235/ 2. Quick example of pyparsing http://eikke.com/pyparsing-introduction-bnf-to-code/ 3. Main pyparsing page (i know it's not very aesthetically pleasing. The code is much better, I promise) htt…
Comment linking /pyparsing-introduction-bnf-to-code/
on “Writing a DSL with Python”Submitted Erlang, Python and Twisted mashup using TwOTP as a story · 2 points
HN discussionIn case other Python enthusiasts are seeking additional resources (besides reading PEP 8) Bhadra and others on stack overflow suggest: Code Like a Pythonista: Idiomatic Python ( http://python.net/~goodger/projects/pycon/2007/idiomatic/ ) Common mistakes and Warts ( http://learnpython.pbwiki.com/PythonTricks ) How not to write Python code ( http://eikke.com/how-not-to-write-python-code/ ) Python gotcha ( http://eikke…
Comment linking /python-gotcha/
on “Ask HN: Your favourite style guide?”Submitted Benchmark of any() and all() in python as a story · 1 points
HN discussion