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 04) #Swift # Sorting

Sorting algorithms are some of the most commonly used algorithms in programming. Understanding how they work in the language you are using can help you make more informed decisions on which one is better to use for your situation. In this practical article, Bruno Rocha explains how Swift's sorting algorithm works, both pre-Swft 5 and post.

(Sep 16) #Go

Passing by variables by value and reference are two very different things; in the former the computer sees the actual value of the variable, whereas in the latter only the address is seen. In this informative article, Eli Bendersky shows how these two concepts can produce unexpected effects in Go loops.

(Sep 16) #Constraint Programming

Constraint programming is programming paradigm that is more about asking what needs to be achieved than how to achieve it. This is accomplished by putting constraints on what a possible solution to the problem is. In Oleksii Tsvietnov's article he describes the functionality of constraint programming and implements it in a character case and ASCII code converter.

(Sep 11) #PHP

Arrays are a universal data structure that most of the time you can assume will behave as you expect, but that does not seem to be the case for PHP. In this explanatory article, Jeremy Ruten provides some examples that show how arrays in PHP do not behave as expected and are in fact maps. He then goes on to give some tips on what to look out for when working with them.

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.

Cheers,

Pek