Readit News logoReadit News
crgwbr commented on Design patterns you should unlearn in Python   lihil.cc/blog/design-patt... · Posted by u/zeitlupe
eduardofcgo · 24 days ago
The programmers that insist in using type hints in python usually are the ones that makes these mistakes. I think the main reason that these patterns do not make sense is because python is a dynamic language. If you turn off the part of your brain that thinks in types you realize that you can solve most of these in plain functions and dicts. Using default args as replacement to the builder pattern is just ridiculous. If you want to encode rules for creating data, that screams schema validation, not builder pattern.
crgwbr · 24 days ago
Python type hints are hugely valuable both as a means of correctness checking, but also just as a means of documentation. It strikes me as incredibly shortsighted to say you can forget about types just because it’s a dynamic language. The types are absolutely still there and need thought about. They just aren’t defined or used in terms of allocation and management of memory.
crgwbr commented on Opencode: AI coding agent, built for the terminal   github.com/sst/opencode... · Posted by u/indigodaddy
jeremy_k · 2 months ago
Just wanted to say I had been happily plodding along using AI tools in Zed, which had worked pretty well but seeing the SST team was behind OpenCode I decided to finally give a terminal based agent a try. I was blown away, primarily by the feedback loops of say OpenCode writing new tests, running the test suite, seeing the tests errored and looping back start the whole process again. That looping does not happen in Zed!

It was the first time I felt like I could write up a large prompt, walk away from my laptop, and come back to a lot of work having been done. I've been super happy with the experience so far.

crgwbr · 2 months ago
I’ve definitely had exactly that sort of looping work with Zed, as long as I tell it how to run the tests. Are you perhaps not using one of the “thinking” models?
crgwbr commented on Cloudflare to introduce pay-per-crawl for AI bots   blog.cloudflare.com/intro... · Posted by u/scotchmi_st
crgwbr · 2 months ago
All this is going to do is drive AI companies to mask their user agent to appear as a standard browser, resulting in a worse end state than we’re in now. It’s an exercise in futility.
crgwbr commented on AI is ushering in a “tiny team” era   bloomberg.com/news/articl... · Posted by u/kjhughes
jprokay13 · 2 months ago
If you haven’t, adding in strict(er) linting rules is an easy win. Enforcing documentation for public methods is a great one imo.

The more you can do to tell the AI what you want via a “code-lint-test” loop, the better the results.

crgwbr · 2 months ago
Honestly the same is true for human devs. As frustrating as strict linting can be for newer devs, it’s way less frustrating than having all the same issues pointed out in code review. That’s interesting because I’ve been finding that all sorts of stuff that’s good for AI is actually good for humans too, linting, fast easy to run tests, standardized code layouts, etc. Humans just have more ability to adapt to oddities at the moment, which leads to slack.
crgwbr commented on Ask HN: Who is hiring? (May 2025)    · Posted by u/whoishiring
crgwbr · 4 months ago
thelab (https://www.thelab.co) | Senior Backend Engineer | ONSITE (NYC) or REMOTE (US or Türkiye) | Full-Time

We are looking for two experienced back-end engineers: (1) one to lead work with our client’s e-commerce business; (2) a second to lead a greenfield project involving ML and NLP driven workflow automation tools. The ideal candidate would have experience working with large Python and Typescript codebases. We are looking for someone who is self-motivated and is able to work with a team early on in a project, plan and identify requirements, see a project through to completion, and mentor junior members of the team along the way.

---

About thelab

We’re an agency of makers with deep expertise in solving creative and technology challenges. Our focus is on making better work to help brands work better. From branding & design, to software builds, large-scale ecommerce or anything in between, thelab mixes inspiration and hard work to produce results that mean business. Oh, and we host a mean barbecue too.

---

To apply, please go to https://thelabnyc.bamboohr.com/careers or email jobs.dev@thelab.co.

crgwbr commented on UI tip: maybe don't round percentages to 0% or 100%   evanhahn.com/maybe-dont-r... · Posted by u/goranmoomin
comrade1234 · 4 months ago
Counting down too. My clothes washer will count down from 1 minute left to 0 minutes left and then I have to wait for a minute for it to actually reach zero. Why can’t 1 be :59 to 0 instead of 1:59 to 1? And 0 be actually zero?

Yes I sit waiting in front of the washer when I do laundry counting down the seconds. Don’t you?

crgwbr · 4 months ago
Luxury. My washer and dryer both display numbers the appear to be minutes remaining, but do not tick down with any discernible relation to time. They start around 55, then over the course of 90 minutes decrement down to 10 in random steps. Then it hangs at 10 for another 10-20 mins, then eventually goes to 0 and shuts off. Are these supposed to be minutes? Is there any reason for their disconnection from the passage of time? Who knows? The manual certainly doesn’t say.
crgwbr commented on MacBooks account for 86% of total Mac sales; Mac desktops just 14%   macdailynews.com/2025/03/... · Posted by u/walterbell
usrusr · 5 months ago
Where the stationary work PC survives (I think): point of sale like desks that are half way between cash register (not personal at all) and notebook computer (each employee got their own). E.g. the computer feeding the screen at the hotel check-in counter. Not a big market relative to the number of systems existing because they aren't frequently replaced and when they are replaced, very cheaply, but the number existing is huge. And leaning to the PC side a lot, I think?

Workstation-grade, I'd say, is extremely limited and shrinking fast. Particularly outside of the tinkerer niche. Think "gamer", even if I suspect that actual gaming isn't half as big in that niche as marketing approaches would suggest. But in any case very much not-Apple.

crgwbr · 5 months ago
A lot of that market is going to iPads, nowadays, too
crgwbr commented on Amazon Aurora DSQL   aws.amazon.com/rds/aurora... · Posted by u/aws_hero
slackerIII · 9 months ago
The only announcement I want from AWS about databases is that the price for RDS is going down. Not that they have new chip that is more expensive but offers better price/performance, but that my bill is actually going to drop.

I don't trust them enough to use non-portable technology like this until they give me confidence they are committed to lowering prices.

crgwbr · 9 months ago
Of all the services AWS has, RDS is one of the best values and lowest risks. The peace of mind and reliability it gives you on something as important as a DB is well worth the cost.
crgwbr commented on Is AWS S3 having an outage?    · Posted by u/GGO
nnf · a year ago
I've long wished for built-in browser functionality that converts times to the user's preferred time zone, with perhaps a dotted outline indicating that a change was made by the browser to the page.
crgwbr · a year ago
I’d always hoped this is what HTML’s time tag would become. Unfortunately it does almost nothing.

u/crgwbr

KarmaCake day685September 22, 2009
About
http://crgwbr.com/blog/

https://gitlab.com/crgwbr

Work: cweber [at] thelabnyc [dot] com

Personal: crgwbr [at] gmail [dot] com

[ my public key: https://keybase.io/crgwbr; my proof: https://keybase.io/crgwbr/sigs/fICiB09sHobdLu5uWePdCHQ-sSZlz4Mduf9fVpdbelc ]

View Original