Building Your Own Collection in Python
Learn how to build your own Collection in Python step by step: Container, Sized and Iterable explained, plus the difference between an Iterator and an Iterable.
Code
Inside articles there are more settings: width, font size, series position and code.
Saved in this browser.
Learn how to build your own Collection in Python step by step: Container, Sized and Iterable explained, plus the difference between an Iterator and an Iterable.
Learn how to build a data stream by balancing memory use and processing time: buffer data for a steady flow, generate data on demand, and cache results.
One of the things we all overlook when starting to learn Python, and one of the most puzzling, is functions (or methods) that take *args and **kwargs as parameters.
Learn how numeral system combination tables work and convert between binary, decimal, hexadecimal and octal with simple mental math.
In this post we will show examples of how to use virtual environments (venv) in python to isolate our projects between each other
Learn how to build JDK 9 from source code, just ahead of its imminent release. A step-by-step guide to get the new Java version running on your machine.
In this article we describe the Singleton pattern in Python, a pattern that makes sure a class has only one instance. Learn two ways to implement it.
Java's diamond operator lets you cut down on verbosity when writing your code. Learn how it works with generics and type inference, and where it falls short.
GSON is a Java API developed by Google to convert Java objects to JSON (serialization) and JSON to Java objects (deserialization). Learn it with examples.
In this article we describe a series of recommendations and best practices for programming in Python (version 2.7) so your code runs faster and cleaner.
Hash Table explained simply. What is a Hash Table and how does it work without writing code? A key type of "data structure" every developer should know.
The check digit covers several hash codes, such as the parity bit, the digit generated by the Luhn algorithm, the verification letter of national ID numbers, and more.