About:

The website 'Pythonicity' is centered around the concept of being Pythonic, which refers to the quality of writing code that is idiomatic and follows the conventions of the Python programming language.

Website:

Specializations:

Outgoing Links:

Subscribe to RSS:
The text discusses the convergence of Go and Python languages, particularly with the addition of generics and iterators in Go, making it closer to Python's reusability and expressiveness. It also talks about the lack of generator ...
The text presents a contrarian view on cursor-based pagination, arguing that range filters with a size limit are sufficient to implement pagination and offer more flexibility. It also discusses the issues with cursor implementatio...
The text is a companion guide to the Python packaging tutorial, focusing on build backends, evaluations of popular build backends, file selection, metadata, and recommendations. The author provides criticisms and recommendations f...
The text discusses the misconception of GraphQL root fields, the need for clarity in queries, the issue of flat namespace, the special aspect of top-level mutation fields, the inconsistency in the implementation of top-level resol...
The text discusses the contrarian view on composition over inheritance in Python. It provides examples and proposed solutions to adapt a Java-esque interface into pythonic code. It also compares the maintainability, extensibility,...
The text discusses the overuse of decorators in Python and compares them to blocks and partial functions. It provides examples of overuse and suggests using context managers and partial functions instead.
The text discusses the myths and misconceptions regarding null behavior in GraphQL, emphasizing that fields are nullable by default and that non-null types are always required. It also provides alternatives to create better APIs b...

0GraphQL coroutines

2023-02-20

...
The text discusses random selection utilities in Python, which are less common in Python circles due to the builtin random module. It provides examples of generalization of shuffle and sample, and a random sample in a single pass....
The text discusses the generation of prime numbers and optimization techniques for prime checking in Python. It covers various methods and their efficiency, as well as the design of an efficient and clean interface for prime gener...
The text explains how to solve the Hardest Logic Puzzle Ever programmatically, using Python. It involves three gods, True, False, and Random, who answer questions in their own language. The author models the data, asks questions, ...
GraphQL aims to overcome REST's shortcomings through a flexible query language, but on the server side, GraphQL resolvers have effectively recreated the same over- and under-fetching problems that have long plagued ORMs. The ineff...
The text presents a contrarian view on closing files in Python, arguing that it is not always necessary to explicitly close file-like objects. It discusses the downsides of leaving files open unnecessarily and the benefits of usin...
The text discusses the use of mutable default arguments in Python and the problems associated with it. It provides alternative solutions and argues that the overuse of None as the only default has led to an over-reaction. It also ...
The text explains how to solve the water pouring puzzle programmatically using Python. It provides a step-by-step guide on how to model the data, implement the primitive operations, and search for solutions. The author also discus...
The text explains how to solve the coin balance puzzle programmatically. It discusses the twelve-coin problem, a simpler variant with three coins in two weighings, and a more complex variant with 39 coins in four weighings. The te...
The text explains how to solve the Hat puzzle programmatically. It involves three concepts common to classic logic puzzles: Theory of mind, Functional fixedness, and Induction. The puzzle is solved by generating a flat table of al...
The text discusses splitting an iterable into equal sized chunks, and the different variants and solutions for the problem. It presents definitive, general, and efficient solutions for the task.
The text discusses the accumulator function and its implementation in Python. It compares the implementation in Python with other programming languages and discusses the challenges and limitations of Python. The author argues that...
The text discusses the contrarian view on map and filter in Python, and how it has become recommended in many Python circles to eschew map and filter in favor of generator expressions or list comprehensions. It provides a brief hi...