/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

tenthousandmeters.com
| | doughellmann.com
3.6 parsecs away

Travel
| | [AI summary] A technical analysis reveals that using the dictionary constructor dict() instead of the literal syntax {} in CPython 2.7 results in significantly higher performance costs due to extra function call overhead and intermediate memory allocations.
| | madebyme.today
5.1 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?
| | blog.hakril.net
4.9 parsecs away

Travel
| |
| | deniskyashif.com
24.2 parsecs away

Travel
| In this article, we'll define a basic regular expression language using a context-free grammar and learn how to parse its strings in linear time using the recursive descent method.