Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
This is a short one, and an obvious one, but I feel like I should have absorbed it much earlier in my "I'm not an SRE I just need to get my problem solved" career.
-
From Python 3.14, python -m pdb -p pid lets you connect a pdb session to a running Python process.
-
Sometimes you're looking at a snippet of code, and want to change it. my_data my_data.some_attr When going from the first line to the second, I needed to put my cursor near the end, and then add the attribute access.
-
When working on a live system, the feedback loop can be pretty tricky.
-
This post summarizes my takeaways from Platform as a Reflection of Values, a very eye-opening talk that helped me understand why I would have the same disagreements over and over with some team members in the past.
-
Consider the following snippet of Rust, of a Target struct, along with a builder to go along with it: struct Target { foo: bool, bar: u64, baz: i64, } struct Builder { foo: Option<bool>, bar: Option<u64>, baz: Option<i64>, } impl…
-
Disclaimer: as with every performance discussion, nothing beats measuring.
-
The following is something I know in my heart but always take a minute to reconstruct when it comes up, so I am posting it here for posterity.
-
The other day this snippet of Typescript generated by Github copilot was floating around: type MappedParameterTypes<T extends Parameter[]> = { // Check if the parameter has an 'enum' defined [P in T[number] as P["name"]]: P extends {enum: Array<in…
-
Property testing is a very helpful form of testing.
-
I have been trying to use nushell as my daily driver, and it's pretty cool!
-
Feature flags are a way for us to enable or disable code paths without needing to re-deploy software.
-
Node packages love to use carot versioning. read-pkg-up@"^7.0.1 means that this package requires at least 7.0.1 but less than versions 8 or above.
-
When first setting up some containers on a new project, you might be using 2 or 3 tools, and decide to just take some "official" image from Docker Hub as a baseline for a container.
-
tl;dr don't turn on all the checks for a subset of files, check as many files as possible and add checks on a module-by-module basis This post is a bit of a response to some online complaining by Armin Ronacher about mypy.
-
Quines are programs that, when you run, will print out its own source text.
-
A long time ago Javascript introduced strict mode.
-
What I'm going to describe is just derived from how traits themselves work, but despite having now written a decent amount of Rust, I had not really fully absorbed this fact.
-
There are a lot of simple ideas that float about in programming.
-
What does sudo do?
-
While working with the same people in the same problem domain for a long time, it's extremely common for people to take shortcuts when describing usage of a technical system.
-
(Update: my conjceture has been disproven, at least with current word lists.)
-
When you're introduced to Rust's data types you will often be introduced to usage via match: fn divide(numerator: f64, denominator: f64) -> Option<f64> { if denominator == 0.0 { None } else { Some(numerator / denominator) } }…
-
Here is a mental transcript of a bunch of things I tried to do this morning when trying to figure out how to listen in on a socket and get information from a client.
-
Whenever I started learning about parsing and writing interpreters, I would get to how to handle comments.
-
Let's say you have a web app with some database.
-
Developping for the web is fun, Webpack is a marvel of modern enginerering, and when you have a project fully set up with the latest and greatest tools, things work amazingly.
-
Rust has an amazing dbg macro that lets you quickly set up an expression printer that will also put in the source line.
-
Last time I spent some time digging into Pylint, I was able to identify some memory issues, but hadn't really changed the runtime of Pylint.
-
Through work I have to deal with a pretty huge codebase, and run Pylint on it during our continuous integration process.
-
I have started playing around with FPGAs, by trying to build a (very simple, 2D) video card.
-
Every couple of months I like to take part in a game jam.
-
Remember files?
-
Sometimes I'll find a new website where the content is so entrancing that I want to read through all the archives.
-
ORMs have been a huge time saver for society.
-
Let's say you're building a standard web application, where you have Clients, and Documents for those clients.
-
So I've been messing with Purescript recently.