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






This email was sent to <<Email Address>>
why did I get this?    unsubscribe from this list    update subscription preferences
A Byte of Coding · 750 Fowler St NW · Atlanta, GA 30332-1914 · USA

Stats (updated daily)

Sent: 2092

Opens: 852

Clicks: 379

Link Clicks Clicks % Unique Clicks Unique Clicks %
Rewriting Go source code with AST tooling 64 26.23% 60 28.71
What is yield and how does it work in C#? 88 36.07% 72 34.45
Implicit Overflow Considered Harmful (and how to fix it) 92 37.70% 77 36.84

Previous

Back to Issues

Next