Rust is an elegant language, that is quite different from many other popular languages. For example, instead of using classes and inheritance, Rust has a trait-based system. However I believe, that many programmers new to Rust (including myself) are unfamiliar with common Rust patterns.
In this post, I want to discuss the newtype-pattern, as well as the From and Input traits , which help with conversion between types.
boltons should be builtins.
Boltons is a set of pure-Python utilities in the same spirit as — and yet conspicuously missing from — the the standard library, including:
Atomic file saving, bolted on with fileutils
A highly-optimized OrderedMultiDict, in dictutils
Two types of PriorityQueue, in queueutils
Chunked and windowed iteration, in iterutils
A full-featured TracebackInfo type, for representing stack traces, in tbutils
A lightweight UTC timezone available in timeutils.
Recursive mapping for nested data transforms, with remapThe Silver Searcher is a tool for searching code. It started off as a clone of Ack, but their feature sets have since diverged slightly. In typical usage, Ag is 5-10x faster than Ack.
serpy - ridiculously fast object serialization #python
via Programming in the 21st Century http://prog21.dadgum.com/