Articles

(Jan 19) #cpp #qt5 #debugging

Address sanitizer is an open source programming tool by Google that detects memory corruption bugs such as buffer overflows or accesses to a dangling pointer (use-after-free). In Burkhard Stubert's article he revisits a C++ and Qt5 bug he had in the past and debugs it using address sanitizers. By building the program with address sanitizers, he was able to discover that the "application accessed [a] memory address after the object at [the] address had been deleted". He then went on to "building a sanitized Qt" to further clarify the issue.

(Jan 17) #rust #typing

Most of the time if you're writing code for a real-world application, you're going to have to deal with units of measure. They're a little hard to deal with, because you have to deal with conversions when you're manipulating them and usually thesame unit can be written with different syntax. In David Teller's article he presents a generalized method for dealing with units of measure in Rust using a refinement type system, which is "a type system that takes as input the result of a previous type system and introduces new verifications/guarantees".

(Jan 16) #cryptography #math

Ever wonder what some of the most popular modern day cryptography techniques are based on? Well the Shannon cipher is "regarded by many as the foundation of modern cryptography". Jørgen Veisdal takes a mathematical dive into this fundamental concept, covering both its history and definition. Furthermore, he covers the idea and math of perfect security, which is when a Shannon cipher has produced a ciphertext which has equal probability of being any message.

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 us by becoming a patron (Patreon) for perks like ad-free issues, or via a one-time donation via PayPal.

Interested in sponsoring our newsletter? Click here to send us an email.

Cheers,

Pek