Good morning (?)!

Hey, so December is approaching and a lot of programming blogs will begin their version of Advent of Code. I thought that maybe I should do it too. What do you think? The idea is to share a relatively unknown feature of a programming language each day. Yes, a different one every day; so 31 languages in total. And yes, every single day, including weekends. If you like the idea and have a snippet to share, please do so by replying to this email or comment over at our subreddit.

The languages I've chosen, in no particular order, are: Python, Ruby, JavaScript, Erlang, Elixir, Julia, Kotlin, Clojure, Haskell, Basic/Pascal, COBOL/Fortran, PHP, Objective-C, Visual Basic, Prolog, Dart, HTML, CSS, C, C++, Java, C#, Go, R, Rust, Swift, Perl, Scala, F#, D and SQL.

Like the list? Hate it? Something missing? Let me know.

Now on with the articles! Articles Type inference (Nov 14) #cpp

Type Inference is a feature of programming languages whereupon the compiler infers the type of a variable that has been declared without a type definition (think var , let , etc). It may seem like magic to many, but Eli Bendersky is here to show us how it's done. In particular, how does the Hindley-Milner type inference algorithm works.



Those "other" Apply functions (Nov 13) #r

The Apply family of functions in are allow you to perform an operation on slices of data coming from arrays, matrices, etc. The most commons ones being apply , lapply , and sapply , appropriately choosing the one that best fits the data structure you have and what you need in return. They are particularly handy when you want to avoid performing loops and stick to the more functional way of programming. In this post Andrew Treadway goes through the less common ones rapply , vapply , and eapply .



The “C” in CSS: The Cascade (Nov 13) #css

If you have ever tried to theme a website, especially one that you have limited control like your own subreddit, you've probably used !important in more than one occasion. But sometimes that doesn't work no matter how certain you are that the path you followed up the cascading styles is indeed correct. Thankfully Thomas Yip shares with us some fundamentals on the Cascading part of CSS and the myriads of ways to apply styles to elements.

Fun Kotlin fun and education on Twitter (Nov 13) #kotlin

From Kotlin Academy we get a collection of fun and educational Tweets for Kotlin. Here's a... fun one-liner: fun <Fun> `fun`(`fun`: Fun): Fun = `fun`

Programming language of the day: Plankalkul."Plankalkül is a programming language designed for engineering purposes by Konrad Zuse between 1942 and 1945. It was the first high-level (non-von Neumann) programming language to be designed for a computer. "

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