BetterDev #256 - How to write a code formatter and a search engine in 80 lines of Python
Better Dev #256 Apr 15, 2024
Hi all,
We come back with a new issue this week. If you like BetterDev, please help spead word out by refer to your friends. Buy Me a coffee would be great too.
This issue is my favourite issue with a lot of pracitcal, action-able item which close to our day to day work. I hope you like them.
We use code formatter all day long. But what is the process of implement such as a tool?
In this post I will walk you through the journey of buliding a search engine from scratch using Python. As usual, all the code I’ve written can be found on my GitHub (microsearch repo). This implementation doesn’t pretend to be a production-ready search engine, just a usable toy example showing how a search engine works under the hood.
I recently implemented a small program to visualize the inner workings of a scheme that compresses floating point timeseries by XORing subsequent values. The resulting visualizations are quite neat and made it much easier for me to understand this beautiful algorithm than any of the explanations that I had previously encountered.
Render.com staging pipeline got blocked due to what looked like a simple query
SELECT e.id FROM events e JOIN postgres_dbs db ON (e.data ->> ‘serviceId’) = db.database_id LIMIT 1;
Can you spot what’s wrong? Let’s read
I’ll explain how to set up PostgreSQL for tests and discuss some common pitfalls to avoid.
Love it or hate it. We will stick with JavaScript for quite a long time. Understanding these objects and its memory lay out is a must to improve your performance optimization skill
Or: how to learn about clip/siglip and vector encoding images
One of feature of Mac is it can detect the right app to open a file, even without a file extension. How did it works and how it evolve
Lets learn how to re-create a service similar to ngrok by re-using existing software such as nginx and openssh. There is also a great repository for these tunneling softwares
By apparently overtraining them, researchers have seen neural networks discover novel solutions to problem
Code to read
a gem that allows you to write Crystal code, inlined in Ruby. All you need is a modern crystal compiler installed on your system.
RubyEasily generate information-rich, publication-quality tables from Python. Read how it’s built
PythonLike Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker. Pretty big so hard to grok all the code but will give an idea on how to approach these kind of system
GoA Mozilla SpiderMonkey JavaScript engine embedded into the Python VM, using the Python engine to provide the JS host environment.
Tools
is a developer tool for generating a visual graph of your module dependencies, finding circular dependencies, and giving you other useful info.
A PostgreSQL extension for recommending indexes to improve query performance.
Self Hosted
This program receives flows (currently Netflow/IPFIX and sFlow), enriches them with interface names (using SNMP), geo information (using IPinfo.io), and exports them to Kafka, then ClickHouse. It also exposes a web interface to browse the collected data.
an open-source, self-hostable, and highly customizable authentication and user management system. Think of it as Supabase Auth or next-auth, but better.
You can view this issue in web browser.
If you have any suggestion/feedback, do tell me by replying to this email. I read them all.
No longer want to receive these emails? Unsubscribe
Older messages
BetterDev #255 - What even is a JSON number
Monday, April 8, 2024
Better Dev #255 Apr 8, 2024 Hi all, We come back with a new issue this week. If you like BetterDev, please help spead word out by refer to your friends. Buy Me a coffee would be great too. This week, I
BetterDev #254 - Garbage Collection for Systems Programmers and How radio work
Monday, April 1, 2024
Better Dev #254 Apr 1, 2024 Hi all, We come back to my second week :). If you like BetterDev, please help spead word out by refer to your friends. Buy Me a coffee would be great too In previous email,
BetterDev #253 - Fifty Things you can do with a Software Defined Radio
Monday, March 25, 2024
Better Dev #253 Mar 24, 2023 Hi everyone, I've returned this week and hope to make this newsletter a more regular occurrence. I apologize if my absence and lack of updates have disappointed any of
BetterDev #251 - Writing a Debugger From Scratch
Monday, October 2, 2023
Better Dev #251 Oct 2, 2023 Last week, the famous Insomnia rugpull us and require an account to use the software. In process, many has lost their project data when the migration happen from local to
BetterDev #250 - What's the toughest bug you ever found and fixed
Monday, September 25, 2023
Better Dev #250 Sep 25, 2023 Hi everyone, This week, many resorts in Las Vegas got hack and have to shutdown their system. That means many operation is handled by paper and pen. The hack appears to be
You Might Also Like
Daily Coding Problem: Problem #1426 [Hard]
Monday, April 29, 2024
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Salesforce. Given an array of integers, find the maximum XOR of any two elements.
Code Story - Mar 24
Monday, April 29, 2024
Welcome to the March addition of the podcast newsletter. Please enjoy, and check out any of the episodes you might have missed below. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Feature | The Best Visualizations from April on Our New App 📲
Monday, April 29, 2024
See the most popular, most discussed, and most liked visualizations on our new data storytelling app Voronoi from April. View Online | Subscribe At the end of 2023, we publicly launched Voronoi, our
😸 Tangible change
Monday, April 29, 2024
🤖 Elon is closing in on $6 billion in funding for his AI startup. 🛜 The FCC has officially voted... Product Hunt Read in browser This newsletter is brought to you by YOU MIGHT HAVE MISSED 🤖 Elon is
⚙️ AI has emotions now
Monday, April 29, 2024
Plus: Meta AI? More like Mid-ta AI!
Yikes! Copilot failed all our coding tests
Monday, April 29, 2024
iPad Pro with M4; Best security keys; AI conducts job interviews now -- ZDNET ZDNET Tech Today - US April 29, 2024 placeholder Yikes! Microsoft Copilot failed every single one of my coding tests I ran
Re: The smart home product I use every day!
Monday, April 29, 2024
Hey , Earlier this month, I emailed you about one of my favorite smart home products, a robot vacuum and mop. I wanted to let you know that Samsung currently has a Spring Black Friday Sale and is
The EU draws its regulatory cords tighter around Apple
Monday, April 29, 2024
The EU has said Apple's iPadOS will now fall under the DMA View this email online in your browser By Alex Wilhelm Monday, April 29, 2024 Welcome to TechCrunch AM! We're off to a quick start
GCP Newsletter #396
Monday, April 29, 2024
Welcome to issue #396 April 29th, 2024 News Networking Official Blog Partners Introducing the Verified Peering Provider program, a simple alternative to Direct Peering - Google has launched a new
How many Vision Pro headsets has Apple sold?
Monday, April 29, 2024
The Morning After It's Monday, April 29, 2024. Apple Vision Pro headset production is reportedly being cut, sales are reportedly “way down.” But but but wait: Wasn't the Vision Pro meant to