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.
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.
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.
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’.
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.
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.
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.
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.
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.
A vulnerability named "BatBadBut" was discovered in the Rust standard library on Windows that allows arbitrary command execution due to improper argument escaping when invoking batch files.
Some interesting use cases for GPT-4 with Vision include nutrition insights from pictures, UI replication from screenshots, web scraping, and data extraction.
Get our free, 5-minute newsletter read by 350,000 frontend, backend, and full stack developers