Articles

(Jan 03) #databases

In SQL, you can use cursors to perform traversal on lists just like you would do in a typical programming language. However, in most cases, there's a better and more performant way of doing the same thing. In this article Denis Gobo explains why you should avoid cursors in 99% of the cases with examples.



(Jan 15) #cpp

C++ contains some syntax that is appears awkward and confusing, such as 'requires requires'. Although it has a perfectly valid reason to exist, this kind of code can be written in ways that make it easier to understand. In this short piece, Arthur O'Dwyer explains the 'requires requires' syntax, and, comparing it with another similar example, demonstrates how developers can represent them both in a clearer and more readable format.



(Jan 14) #csharp #design-patterns

Dependency Injection (DI) is a programming technique that allows developers to write code that is less coupled and easier to test. By combining DI with the Decorator Pattern, a technique for adding functionality to a class without changing the existing implementation, developers have a powerful and efficient way to add new features to their software. The advantages of this combination are demonstrated in this article, which is part of a series by Jeremy Bytes on DI, with an example involving the addition of exception logging to a data reader.







Programming language of the day: Clio. "Clio is a pure functional lazy-evaluated programming language targeting decentralized and distributed systems. It is made to take advantage of multiple CPUs and CPU cores (parallelism) by default, to run on clusters and on the cloud easily.

Clio compiles to JavaScript. This makes Clio fast, easy to port and easy to extend. It gives Clio a free JIT compiler, a powerful VM and access to lots of existing libraries. It enables Clio to run in the browser and on servers, and anywhere JavaScript can run."



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 it by becoming a patron (Patreon), buying me a coffee (PayPal), donating anonymously (coinbase), or purchasing an MCC mug (RedBubble); it helps me keep this going.

Cheers,

Pek