TLDR Web Dev

TLDR WEB DEV 2024-04-11

6 sections15 entrieslinks blockcomplete parse

Parse notes

  • Subscription/account footer truncated before parsefooter_truncated

01GENERAL

Sponsored

CODE

There are many genAI tools that can help you write code. But do they have the contextual data to help you fix errors in production? Sentry’s Autofix [3] understands what your users are doing when an error occurs, analyzes the error, generates a fix and even opens a PR. It’s like having an extra junior developer.

sentry.ioSponsor

02ARTICLES & TUTORIALS

CODE SEARCH IS HARD

Code search is a hard problem to solve compared to normal search. Search tools often optimize for natural language, but these techniques make code search worse. Most big companies have custom code search tools, which is a sign of how difficult the problem is. Postgres has functions that can make code search easier, like its full text search options.

blog.val.town5 min read

HOW I WRITE TESTS IN GO

Golang comes with its own testing library, which is not common among popular programming languages. Unit tests in Go should be written to run in parallel by default so that concurrency issues are surfaced early on. The testing package has a comprehensive set of flags and can provide code coverage reports, race condition detection, static analysis, shuffled test execution, and more.

blog.verygoodsoftwarenotvirus.ru14 min read

03OPINIONS & ADVICE

SHELL HISTORY IS YOUR BEST PRODUCTIVITY TOOL

This blog demonstrates how customizing ZSH shell history configurations can be a boon for your productivity. These tips make it easier to find and reuse past commands quickly. You can efficiently access a personalized command library by tuning history storage and implementing advanced search techniques such as ‘fzf’ and ‘ag’.

martinheinz.dev6 min read

DON'T REQUIRE PEOPLE TO CHANGE 'SOURCE CODE' TO CONFIGURE YOUR PROGRAMS

Programs should avoid requiring users to modify source code files (like Makefiles or header files) for configuration purposes. This is because it can often lead to merge conflicts during updates later on, which can be difficult to debug. Configurations should be handled through other methods instead.

utcc.utoronto.ca2 min read

04LAUNCHES & TOOLS

CODEGEMMA

CodeGemma, a collaborative effort between Google and Hugging Face, is a family of open-access, code-specialized LLMs. The models are available in 2B and 7B configurations. They have been fine-tuned with a lot of data to bring better performance in logical reasoning and programming suggestions.

huggingface.co8 min read

AIDER

Aider is a command-line tool that lets you directly edit code in your files while pair-programming with GPT. It will git commit changes with AI-generated commit messages.

github.comGitHub repository

DECO

Deco is a real-time TypeScript web editor. You can code directly on the web or on your machine and get instant feedback.

deco.cxTool

05MISCELLANEOUS

GEMINI 1.5 AND GOOGLE’S NATURE

The recent Google Cloud Next keynote showcased Google’s vast, scalable AI infrastructure, which is difficult to replicate. Gemini models can now be integrated with Google Search and enterprise data sources, reducing hallucinations and creating better answers. Gemini 1.5 Pro can process up to 1 million tokens of information, which is a breakthrough in long context understanding. Google is integrating Gemini into many of its enterprise products, such as Google Workspace and code development tools, which is another competitive advantage for them.

stratechery.com10 min read

NOTES ON GIT'S ERROR MESSAGES

Git’s error messages can be confusing to understand, but there are some great strategies to help decode them. Git status clarifies the current branch state, and git log helps examine commits and identify divergence points. You can also customize your shell prompt to display branch status, which can be helpful.

jvns.ca10 min read

WHY CAN'T MY MOM EMAIL ME?

This author was receiving encrypted emails with blank bodies from his mother. The issue was Proton's use of the Web Key Directory (WKD), which automatically encrypts emails if a public key is found for the recipient's address, even if the user didn't explicitly enroll in the service. The author’s email address was enrolled, so he received blank emails.

matduggan.com5 min read