Explore >> Select a destination


You are here

honnef.co
| | thepugautomatic.com
15.1 parsecs away

Travel
| | I recently discovered the Ruby Module Builder pattern. It lets you pass in arguments to dynamically generate a module at include time: class Greeter < Module def initialize(name)...
| | www.greyblake.com
16.1 parsecs away

Travel
| | A blog about software development.
| | vimcasts.org
16.3 parsecs away

Travel
| |
| | madebyme.today
99.8 parsecs away

Travel
| Some time ago, during a code review, I had a discussion with a colleague of mine about preferring dict() over {} in new Python code. They argued that dict() is more readable - and expresses intent more clearly - therefore should be preferred. I wasn't convinced by that, but at that time I didn't have any counterarguments, so I passed. Yet that made me wonder: what's the difference between the dict type and {} literal expression?