Articles

(Mar 07) #cpp Save to Pocket

Although lambdas were added to C++ a while ago, it's never too late to get a better understanding of how they work. In Glennan Carnie's extensive article, he covers pretty much everything lambda related. Specifically, he discusses inline lambdas, capturing the context, and lambdas within member functions. Not only does he give an example of each of these, he also takes tiem to look "under the hood" at what the compiler does.

(Feb 27) #java #testing Save to Pocket

When you write some code, you have to make sure it actually works correctly, not only with the expected input, but with unexpected input too. That's why tests are written, but it can be cumbersome or messy to write a bunch of test cases. Luckily James Lorenzen has written an article about how to use parameterized tests in Java. He demonstrates how you can use JUnit 5 to substantially reduce the amount of testing code you have to write.

(Feb 23) #swift #jit Save to Pocket

Just-in-time (JIT) compilation is when code is compiled at run time. A system implementing a JIT compiler usually analyses the code being executed to see when the speedup from compiling or recompiling exceeds the overhead of compiling that code. In this article, Saagar Jha presents a method for hacking together your own JIT for an iOS app, using "a somewhat arcane side effect of how debugging works on iOS".

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