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
Overcoming Perfectionism: How to Break Free from the Enemy of Progress
Wednesday, November 27, 2024
Discover how perfectionism hinders progress and learn practical strategies to overcome the fear of imperfection, boost productivity, and achieve your goals without getting stuck in the pursuit of
🖤 Laravel Black Friday Deals!
Wednesday, November 27, 2024
The biggest deals of the year Laravel Black Friday Deals View in browser Laravel News Editor Note: We are sending this outside the regular Sunday newsletter schedule because some of these specials end
BetterDev #271 - Memory: The Forgotten History and Why did Windows 95 setup use three operating systems?
Wednesday, November 27, 2024
Better Dev #271 Nov 26, 2024 Hi all, Welcome to thanksgiving issue of BetterDev. Hope everyone had a safe and warm thanksgiving. It's getting so cold these days. If you are in warzone such as
Mapped | Unemployment Rate By U.S. State in 2024 💼
Tuesday, November 26, 2024
As of October 2024, DC and Nevada tied for the highest unemployment rate in the US at 5.7%. Which states saw the lowest rates? View Online | Subscribe | Download Our App FINAL CHANCE - ENDS TONIGHT!
🔊 7 DIY Tips for Soundproofing a Room — Why I Switched to Xfce for Linux Mint
Tuesday, November 26, 2024
Also: Home Theater Sound Terms Explained, and More! How-To Geek Logo November 26, 2024 Did You Know The shiny layer of a CD doesn't contain the data; the plastic polycarbonate layer does. The shiny
JSK Daily for Nov 26, 2024
Tuesday, November 26, 2024
JSK Daily for Nov 26, 2024 View this email in your browser A community curated daily e-mail of JavaScript news JavaScript Certification Black Friday Offer – Up to 54% Off! Certificates.dev, the trusted
NumPy, Loop Targets, Vector Animation, and More
Tuesday, November 26, 2024
NumPy Practical Examples: Useful Techniques #657 – NOVEMBER 26, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo NumPy Practical Examples: Useful Techniques In this tutorial, you'll learn how to
Your Games Quarterly newsletter has arrived
Tuesday, November 26, 2024
What's new for games in Google Play and Android Email not displaying correctly? View it online November 2024 The First Developer Preview of Android 16 The First Developer Preview of Android 16
Daily Coding Problem: Problem #1620 [Hard]
Tuesday, November 26, 2024
Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Sudoku is a puzzle where you're given a partially-filled 9 by 9 grid with
Final Hours: Help Save "The Art of Data" From Falling Short 🙏
Tuesday, November 26, 2024
Will Visual Capitalist end up revealing the secrets behind data storytelling? There are 12 hours left to change the fate of "The Art of Data". View Online | Subscribe | Download Our App Help