Sponsor

Ably’s cloud infrastructure and APIs make it easy to power and scale complex realtime features like chat, GPS location updates, and IoT device control. Companies like HubSpot build on Ably because we reduce technical complexity, help future-proof their stack, and provide best-in-class realtime infrastructure.

Use our APIs for free and get started with realtime engineering

Articles

(Sep 13) #C++ # Ranges

Ranges is a library for C++ that essentially makes it easier and clearer to write algorithms. In this article, Alex Astashyn discusses some of the problems he ran into using the ranges library, why they are present, and how he got around them. He also introduces his own rangeless library, inspired by Haskell's simplicity in accomplishing similar tasks, aimed to improve on some of ranges' limitations.

(Oct 05) #Haskell # Typing

Safe and "good" code are not always the same thing, usually because "good" code implies it is easy to read and understand, whereas safety always adds a level of complexity. In Tom Ellis' article, he takes a look at the code for a Yahtzee game written in Haskell with wrapper types and refactors it towards "improving the design guided by considerations of type safety".

(Oct 08) #SPARK # Data-Structures

SPARK is a programming language designed for situations where predictable and highly reliable operation is paramount. This makes it difficult to perform tasks that are common in other, more relaxed languages. In this technical article, Claire Dross demonstrates how to create pointer based data-structure, in the form of "a map encoded as a singly-linked list of pairs of a key and a value", that abides by a "strict-memory ownership policy designed to prevent aliasing".

(Oct 08) #Hash Tables # Python # Compilers

Hash tables are a fundamental data structure that use hashed keys as indices for values. In this article, Edd Yerburgh explains what hash tables are, why they are used, how dictionaries are implemented by CPython using hashing tables, and how all the functions to manipulate dictionaries work under-the-hood.

And that''s it for today! Discuss this issue at our subreddit r/morningcupofcoding.

Did you like what you read? Let us know by clicking one of the links below.

Liked - Disliked

I hope you enjoyed reading the latest issue of Morning Cup of Coding. If you did, consider supporting our Kickstarter campaign for our newest project Human Readable Magazine. If you like our newsletter, you'll definitely like our magazine!

Cheers,

Pek