Rewriting Go source code with AST tooling

What is yield and how does it work in C#?

Implicit Overflow Considered Harmful (and how to fix it)

Issue #101

10/5/2021

A Byte of Coding Issue #101
Hey-yo
So more likely than not you heard about how facebook, instagram, and whatsapp all went offline yesterday. Cloudflare wrote a short but decent report on the topic. TLDR; a configuration change resulted in BGP and DNS problems.
Unrelated, special thanks to one of my readers this morning. They came in super clutch in helping the newsletter, even though I'm pretty sure they were on holiday. You know who you are! Anyway, here's the issue.

Rewriting Go source code with AST tooling

Published: 2 October 2021
Tags: go


What language do you know that providers great tools for analyzing itself in the core package? If Go wasn't the first thing you thought of, then let me know what was. In this article, Eli Bendersky introduces the go/ast package and uses it to do some basic rewrites, outlines the limitations of such methods, and proposes a better alternative.

Read Full Article

What is yield and how does it work in C#?

Published: 4 October 2021
Tags: csharp


"The yield keyword is used to build generators of element sequences". But why is this useful? Nikita Lipilin looks under-the-hood of yield in C#, examines various cases, and highlights when yield is convenient or when there’s no need for it.

Read Full Article

Implicit Overflow Considered Harmful (and how to fix it)

Published: 3 October 2021
Tags: security


We've had a couple of articles that presented security issues as result of integer overflow. None of them really looked at this issue as a whole across multiple languages. In this informative article, the author explores why multiple integer types are necessary and how they're handled in different languages, and then presents their own solution.

Read Full Article
Want to discuss the issue? 

If you want to discuss or comment on this issue, head on over to this page at A Byte of Coding.
Twitter
Website
Thanks for your Support! 

Thanks to sponsors and supporters like Євген Грицай, Scott Munro, zturak, pek, Emil Hannesbo, and Joe Hill this newsletter is provided to you for free. If you'd like to also show your support and buy me a monthly meal, you can donate on the Patreon page. It's not necessary, but it lets me know that I'm doing a good job and that you're finding value in the content.
Donate Here

Stats (updated daily)

Sent: 2092

Opens: 1264

Clicks: 375

Link Clicks Clicks % Unique Clicks Unique Clicks %
Implicit Overflow Considered Harmful (and how to fix it) 90 24.00% 75 24.59
What is yield and how does it work in C#? 88 23.47% 72 23.61
Rewriting Go source code with AST tooling 64 17.07% 60 19.67
report 53 14.13% 34 11.15
the archives 38 10.13% 31 10.16
Today's Sponsor: Quastor Daily 32 8.53% 27 8.85

Previous

Back to Issues

Next