Sponsor

Remember those articles about VVVVVV project and horrors for developers from Freddy we’ve posted lately? Bugs described there were detected by PVS-Studio static code analyzer. It is a tool for detecting bugs and security weaknesses in the source code of programs, written in C, C++, C#, and Java. Static code analyzers allow you to find bugs in source code on the development stage that helps save your time and spare your nerves. Visit the link below to try PVS-Studio and improve your code quality.

Link: http://bit.ly/2xPbqBp

Articles

(Mar 14) #elixir #functional programming Save to Pocket

One of the great things about functional programming is being able to combine functions into data manipulating pipelines. This could be especially useful in situations where basic functionality remains the same while the specifics change, like text parsing. Drew Olson's recently learned about parser combinators after "delving into the world of pure functional programming" and has written an article from the basic to implementation in Elixir.

(Mar 14) #rust Save to Pocket

Dynamic dispatch is the process of selecting which implementation of a function to call at run time. It's useful when your variable might have two different values. But what if you're working with a compiler that might complain about types? In this concise article, Andre Bogus explains how you can achieve dynamic dispatch without using Boxes, but by simply "declar[ing] two stack slots that may alternately stay uninitialized or used" and telling the compiler to make the type dynamic.

(Mar 14) #r Save to Pocket

Plotting in R can be as simple as using functions like plot(), hist(), barplot(), or pie(). But what happens when you need a more customized graph? Well Karolis Koncevičius has written an article that demonstrates the simplicity of using R's underlying graphing functions. Karolis explains all of the different functions you'd need to use, their arguments. vectorization, and finally reconstructs a plot from scratch.

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.

Interested in sponsoring our newsletter? Click here to send us an email.

Cheers,

Pek