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

(Oct 10) #Python # ML # Computer Vision

Sometimes the performance of your code can be improved by fixing a very simple, unexpected problem. Adam Geitgey tackles an issue analogous to this in his article: rotating images used for ML computer vision programs to the orientation they were taken in. He also shows an implementation for code that handles this rotation problem for numpy.

(Sep 19) #SQL # Optimization

Small optimizations in database code can have big improvements in your project if it’s over many queries. In this informative article, Lukas Eder explains and compares COUNT(*) and COUNT(1) in four different SQL dialects, concluding that Postgresql is the only one where there was a noticeable difference.

(Sep 19) #BEAM # Erlang # Types as Testing # Gleam

Error handling in programming is pretty much just as important as writing the actual operational code. In this article, Gordon Guthrie explains the intended typing philosophy in BEAM languages and how types-as-testing can be used to produce informative errors in distributed Erlang systems.

(Oct 09) #Alloy # Formal Methods # Databases

A database migration is often no simple feat, purely because of the scale of state that is being changed. Having a step-by-step plan can go a long way. In this extensive article, Hillel Wayne presents a formal method with four main steps for a database migration. He then proceeds to demonstrate the method using Alloy for an example situation he created.

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