A Byte of Coding Issue 355

A Byte of Coding Issue 355

A Byte of Coding

Hey-yo,

If you have any recommendations for open source tools that can be self-hosted, let me know. So far I have a feed aggregator.

Anyway, here’s the issue.

Unblocked provides helpful and accurate answers to questions about your codebase. It tailors answers by complementing your source code with relevant discussions from GitHub, Slack, Notion, JIRA and more. See how you can spend less time hunting for information and more time doing what you love: writing great code.

Published: 20 February 2024

Tags: architecture

Dave Rupert discusses the different iterations in architecture of his startup’s app.

Some highlights:

  • iteration is always necessary, you’ll never get it right the first time

  • “Monorepos are pretty great” (hard agree here, dev life is so much easier when you can start everything with one command)

  • just do it, yesterday you said tomorrow

Published: 20 February 2024

Tags: picat, logic programming

Hillel Wayne dives into the world of logic programming and planning, using the picat programming language.

Some highlights:

  • In [logic programming] and constraint solving, we instead provide a set of equations and find assignments that satisfy those relationships”

  • planning “find[s] variable mutations that reach a certain end state”

  • code examples in picat included

Tags: sponsored

Unblocked provides helpful and accurate answers to questions about your codebase. It tailors answers by complementing your source code with relevant discussions from GitHub, Slack, Notion, JIRA and more. See how you can spend less time hunting for information and more time doing what you love: writing great code.

Published: 20 February 2024

Tags: c++

Andrey Karpov explains how the “malloc function returns a null pointer if it's unable to allocate a memory buffer of the specified size”, which makes using the assert macro a bad idea to check the pointer (since it checks if equal to 0).

Some highlights:

  • also applicable to “calloc, realloc, alignedmalloc, _recalloc, strdup”

  • explicitly checking if ptr == NULL is best practice

  • assert macro might not work in release builds

Thanks for your Support!

Big thanks to all of the Patreon supports and company sponsors. If you want to support the newsletter you can checkout 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.