Python errors as values: Comparing useful patterns from Go and Rust
A thrown error interrupts the control flow, propagating down the call stack until it’s caught. If it isn’t caught then the program cashes. A big problem with this approach is a lack of clarity on where an error might occur.
Sometimes Litestream can be overkill for projects with a small database that do not have high durability requirements. In these cases, it may be more appropriate to simply back up your database daily or hourly. This approach can also be used in conjunction with Litestream as a fallback. You can never have too many backups!
HTML First is a set of principles that aims to make building web software easier, faster, more inclusive, and more maintainable by…
- Leveraging the default capabilities of modern web browsers.
- Leveraging the extreme simplicity of HTML’s attribute syntax.
- Leveraging the web’s ViewSource affordance.
A log file highlighter
Guide to Implement an SSH Client Using Golang
I’m researching SSH clients in Go to build a server management CLI tool. Something like Ansible but that understandable to my brain.
URL explained – The Fundamentals
…the syntax and use of an URL and the difference between URI, URL, URN, and URC…
HUG CSS, how I approach CSS architecture
- Classless HTML for the core styles.
- Utility classes to nudge and tweak elements when needed.
- Group classes to simplify styling collections of elements that may have more complex needs.
I’ve been doing something very similar recently and like it more than using Tailwind CSS.
HTML Web Components: An Example
Web components give you an approach of augmentation, where you can provide basic functionality and then progressively enhance the experience depending on the end user’s capabilities.
ZAPit is a new feature in 2.14.0 which performs a quick ‘reconnaissance’ scan of the URL specified. It currently only runs from the command line.
An Interactive Guide to CSS Grid
Great tutorial. Just started using grid on a new project recently and works great for the general layout of pages. You can still use flex box for some situations where it makes sense.
Another great grid guide.
Web components guide to get started.
GNU Stow is a symlink farm manager which takes distinct packages of software and/or data located in separate directories on the filesystem, and makes them appear to be installed in the same place.
Great idea to name aliases starting with ,
making them super easy to find with tab completion.
Implementing Reactivity from scratch
Reactivity is at the heart of many web interfaces. It makes programming robust and interactive web apps much, much easier. Although most frameworks have reactivity as a built in feature, there will always be a point when you need reactivity in plain JavaScript. So, here I will show you how to implement reactivity in JavaScript.
Web Components Eliminate JavaScript Framework Lock-in
web components can dramatically loosen the coupling of JavaScript frameworks.
dango-unfold
Modern Django admin theme for seamless interface development
You’re (probably) using connectedCallback wrong
In general, work should be deferred to connectedCallback as much as possible—especially work involving fetching resources or rendering. However, note that connectedCallback can be called more than once, so any initialization work that is truly one-time will need a guard to prevent it from running twice.
In general, the constructor should be used to set up initial state and default values, and to set up event listeners and possibly a shadow root.
* Code that only needs to run once should be put in the `constructor`. * Code that needs to be run every time the component is added/removed from the DOM should be put in `connectedCallback` and `disconnectedCallback`.
Greenmask is an open-source util written on go that provides features for logical backup dumping, obfuscation and restoration. Brings wide functionality for backing up, anonymization and masking. It is written fully in pure go with ported required PostgreSQL library.
The Component Gallery is a collection of interface components from real-world design systems.
Prefect is a workflow orchestration tool empowering developers to build, observe, and react to data pipelines
Customize the Django admin to differentiate environments
If you have a
ENVIRONMENT
context variable available (as we do) you could add the following template asadmin/base.html
to your project, giving you a red color scheme for the production environment (to discourage people from updating content) and a nice scheme for thepreproduction
environment which clearly deviates from the standard color scheme used everywhere else…
A great step by step blog post on how to build a winter themed web component.
A very cool recreation of the operating system used in the original Jurassic Park movie. Super fun!
Maybe We Don’t Need UUIDv7 After All
When using any kind of random primary key, make sure you use a hash index instead of the default B tree.
Just do it.
Creating Dynamic Forms with Django
Patterns for Reactivity with Modern Vanilla JavaScript
You don’t need JavaScript for that