Good morning (?)!

David Buchanan tweeted an image of Shakespeare that unzips into a multi part RAR archive of all of his works...

On with the articles!

Articles

(Oct 25) #cpp

Mipmapping is a technique in 3D engines that caches multiple textures in increasing quality for the same object such that, depending on the viewing distance, the most appropriate one is chosen. Typically the details of an object far away aren't very visible, as such, the lowest quality texture is chosen, while the opposite happens when viewing the object up close. In this deep dive Yining Karl Li, a Disney engineer who works on the in-house renderer Hyperion, shows us how to implement a tiled, mimapping texture caching system.





(Oct 03) #algorithms

If you've ever wanted to implement a ranking system similar to what Reddit where both votes and post time is taken into account, then this article is for you. The author goes through the mathematical algorithms first, explaining how they work, then shows us the necessary database queries and finally gives us an interactive demo that visually shows how posts decay over time.





(Oct 13) #javascript

There's a regex algorithm that's been around at least since 1998 that checks whether a given number is prime. Yes, using regex. And it's a single line. You can find explanations of it in Perl, Ruby, Python, Java. In this article Mark Sauer-Utley uses JavaScript and explains how each part of the regex works. And if you are curious, this is the single line: return !(Array(n+1).join(1).match(/^1?$|^(11+?)\1+&/)) . Can you guess how it works without reading the article?





Programming language of the day: Rebol."Rebol is a cross-platform data exchange language and a multi-paradigm dynamic programming language designed by Carl Sassenrath for network communications and distributed computing. It introduces the concept of dialecting: small, optimized, domain-specific languages for code and data, which is also the most notable property of the language according to its designer Carl Sassenrath."



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