HNHacker News
TopNewBestAskShowJobs

jessekv

755 karma · joined December 26, 2022

submissionscomments
jessekv··on Microsoft's Canada timezone troubles leave admins fixing calendars
Generally speaking, UTC + localization works for past events, but not future ones (see sibling comments)
jessekv··on Bringing uv and ty together
Pyrefly is better than ty for my use cases. Maybe ty will get there some day.
jessekv··on Dam removals are bringing fish back across the northeastern United States
In the great lakes you have low-head dams keeping lampreys at bay:

https://publibrary.sec.usace.army.mil/api/download?id=52f6cb...

But oxygenation not really an advantage of low-head dams, when the dam is often contributing to the oxygen depletion in the first place. Free-flowing streams are typically adequately oxygenated.

jessekv··on Dam removals are bringing fish back across the northeastern United States
Small dams raise the temp of the water and decrease the dissolved oxygen, so removing the dams can improve ecological resilience in a warming climate.
jessekv··on Why Common Lisp is now the best programming language
I like this analogy. Another one I have used is double-entry bookkeeping.
jessekv··on The firefighting system of the Van der Heyden brothers in 17th century Amsterdam
When learning kayaking you have to practice a water escape, I wish there was something similar for driver's ed in the Netherlands. Thinking about it is terrifying.
jessekv··on The firefighting system of the Van der Heyden brothers in 17th century Amsterdam
That device's legacy lives on and is still in active use, though the main customers are now cows:

https://www.dutchnews.nl/2021/05/rotterdam-floating-farm-cri...

jessekv··on The firefighting system of the Van der Heyden brothers in 17th century Amsterdam
Most likely the latter. Thousands of bikes, a hundred people, and more than thirty cars fall in to Amsterdam canals each year. "What to do if your car falls in the water" is part of driver's ed.
jessekv··on I converted 2D conventional flight tracking into 3D
Very cool! Have you considered rendering clouds?
jessekv··on Packaging the technical interview
p.s. thanks to all those working this week :)
jessekv··on Jepsen: NATS 2.12.1
A tiny bit more context here:

https://github.com/nats-io/nats-server/discussions/3312#disc...

(I opened this discussion 2.5 years ago and get an email from github every once in a while ever since. I had given up hope TBH)

jessekv··on Delete tests
I hate to admit it, but flaky tests almost always highlight weaknesses in my software architecture.

And fixing a flaky test usually involves making the actual code more robust.

jessekv··on Delete tests
> Who tests the tests?

To me it's a bit like double entry bookkeeping. Two layers is valuable, but there's rapidly diminishing returns beyond two.

jessekv··on Delete tests
I think it's relative, right? That's how abstractions and interfaces work.

I can write a module with integration tests at the module level and unit tests on its functions.

I can now write an application that uses my module. From the perspective of my application, my module's integration tests look like unit tests.

My module might, for example, implicitly depend on the test suite of CPython, the C compiler, the QA at the chip fab. But I don't need to run those tests any more.

In your case you hope the in-memory database matches the production one enough that you can write fast isolated unit tests on your application logic. You can trust this works because something else unit-tested the in-memory database, and integration tested the db client against the various db backends.

jessekv··on Swiss vs. UK approach to major tranport projects
My guess is the tunnel will become the preferred roosting spot for the bats.
jessekv··on April Fools 2014: The *Real* Test Driven Development (2014)
> We once saw a comment in the generated code that said "I need some coffee".
jessekv··on Italy OKs $15.5B project to build suspension bridge from mainland to Sicily
B1M covered this. The video has a fun animation of the political history too:

https://www.theb1m.com/video/italys-12bn-bridge-mystery

jessekv··on Litestar is worth a look
Yep! But I don't.
jessekv··on Litestar is worth a look
I usually just use asyncpg.
jessekv··on OpenAI's "Study Mode" and the risks of flattery
Why is the first one needed?
jessekv··on Why Exercise Is a Miracle Drug
Don't sprinters start with 4 limbs on the ground? The advantage of the 4 limbs seems to be gone by the second step.

Trail runners often run with poles on up or down hills. Not sure about top speed, but from experience the poles definitely help with endurance.

jessekv··on Fast
related: https://bdickason.com/posts/speed-is-the-killer-feature/
jessekv··on Keep Pydantic out of your Domain Layer
Sebastián Ramírez created FastAPI and SQLModel, and was an early adopter of Pydantic. Samuel Colvin created Pydantic.
jessekv··on Epanet-JS
At a smaller scale, the efficiencies gained from properly designing the system are not a major savings.

That said, if I had a garden with a big fountain I absolutely would try to model it in EPANET ;)

Just how fancy is your irrigation system?

jessekv··on Epanet-JS
I suppose it's correct to say EPANET competes with expensive commercial offerings, but it's actually available completely free:

https://www.epa.gov/water-research/epanet

I know someone who uses it to design clean drinking water distribution systems in rural communities in Central America. They would not be able to do what they do if they had to pay for an expensive commercial licence.

Desktop EPANET is still windows-only though, so having a browser version is pretty cool.

jessekv··on The European wood pigeon helped me appreciate its omnipresent city cousins
related: https://news.ycombinator.com/item?id=40757996
jessekv··on Uv and Ray: Pain-Free Python Dependencies in Clusters
It would be a fun callback if the demo was a factorial server:

https://joearms.github.io/#2013-11-21%20My%20favorite%20Erla...

jessekv··on Axolotls May Hold the Key to Regrowing Limbs
This is the whimsy I needed today :)
jessekv··on I've almost completely switched from "Python" to "uv run"
You can take it one step further and make the file executable and place this at the top of the file:

#!/usr/bin/env -S uv run

jessekv··on Kagi Reaches 50k Users
My experience of the extension was bad.

The extension is a hack that allows them to redirect the searches from one of the available search engines to Kagi. So first you search, then e.g. the DDG page loads halfway, then the page flashes, you get redirected to Kagi. If you are lucky, you are signed in, and you wait for the Kagi results. If not, you sign in and type your search again.

On iOS, I made a shortcut that pops up a native text prompt for your search, then opens Kagi using your session token. I recommend this over the extension, it is fast snd reliable.

Page 1 of 13Next →