← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 37
  1. 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.

  2. From Python 3.14, python -m pdb -p pid lets you connect a pdb session to a running Python process.

  3. 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.

  4. When working on a live system, the feedback loop can be pretty tricky.

  5. 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.

  6. 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…

  7. Disclaimer: as with every performance discussion, nothing beats measuring.

  8. 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.

  9. 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…

  10. Property testing is a very helpful form of testing.

  11. I have been trying to use nushell as my daily driver, and it's pretty cool!

  12. Feature flags are a way for us to enable or disable code paths without needing to re-deploy software.

  13. 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.

  14. 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.

  15. 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.

  16. Quines are programs that, when you run, will print out its own source text.

  17. A long time ago Javascript introduced strict mode.

  18. 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.

  19. There are a lot of simple ideas that float about in programming.

  20. What does sudo do?

  21. 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.

  22. (Update: my conjceture has been disproven, at least with current word lists.)

  23. 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) } }…

  24. 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.

  25. Whenever I started learning about parsing and writing interpreters, I would get to how to handle comments.

  26. Let's say you have a web app with some database.

  27. 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.

  28. Rust has an amazing dbg macro that lets you quickly set up an expression printer that will also put in the source line.

  29. 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.

  30. Through work I have to deal with a pretty huge codebase, and run Pylint on it during our continuous integration process.

  31. I have started playing around with FPGAs, by trying to build a (very simple, 2D) video card.

  32. Every couple of months I like to take part in a game jam.

  33. Remember files?

  34. Sometimes I'll find a new website where the content is so entrancing that I want to read through all the archives.

  35. ORMs have been a huge time saver for society.

  36. Let's say you're building a standard web application, where you have Clients, and Documents for those clients.

  37. Supercharged Types

    So I've been messing with Purescript recently.