HNHacker News
TopNewBestAskShowJobs

jreese

4,836 karma · joined July 9, 2008

http://n7.gg amy @ n7.gg @n7cmdr

[ my public key: https://keybase.io/jreese; my proof: https://keybase.io/jreese/sigs/oMm1rGpBWQUZlYjQeGCSD25PvSnx2g6ZuaQ89HzjO2Q ]

submissionscomments
jreese··on GitHub: Private Profiles beta
It also sucks when terrible people abuse public profiles to harass and intimidate people. Privacy should always be an option for those who want or need it, otherwise we indirectly force marginalized people out of these spaces entirely.
jreese··on Your competitor wrote the RFP you're bidding on
Getting an H1B worker visa requires the hiring company to advertise the open position and assert that no other candidate met the required qualifications.
jreese··on Meta quickly detects silent data corruptions at scale
The amount of ephemeral content (stories, expiring content) being created/shared has a larger impact on capacity and provisioning than you might expect.
jreese··on Meta quickly detects silent data corruptions at scale
There's no meaningful benefit to dedicating any amount of DC equipment just to stale content. Those are spindles (and networks) that could be taking meaningful hot reads and writes, and colocating stale and hot data is generally a better use of capacity than concentrating hot data in fewer locations.
jreese··on Ask HN: When did 7 interviews become “normal”?
Basically boiled down to:

1) build a plan and make meaningful progress on a high impact, but stalled, project

2) communicate about progress and/or roadblocks to the team, and ask for help where needed to get past said roadblocks

3) be more proactive about finding and proposing high impact work, or areas where others could bring their expertise to help benefit my work or get it done faster

Details are confidential, of course.

jreese··on Ask HN: When did 7 interviews become “normal”?
The cover sheet has the words "Performance Improvement Plan", with key goals to achieve in a 30 day period, with the final page to be signed by me and my manager.

https://cdn.n7.gg/pip/pip-1.png

https://cdn.n7.gg/pip/pip-2.png

Not every company is awful.

jreese··on Ask HN: When did 7 interviews become “normal”?
PIPs are not exclusively foregone conclusion/CYA before firing. I've personally been on a PIP while in the "red zone" before an expected promotion, and came out the other side with an "exceeds" rating and said promotion during the next cycle. Sometimes, it's legitimately just a formal way of stating "this is what we expect from you if you want to stay here"; if you can meet those expectations, then great!
jreese··on Meta suspends Netherlands data center due to political pushback
Many FB datacenters use evaporative cooling systems rather than traditional A/C, basically spraying water into the incoming air supply to cool it below outdoor ambient temperatures. The hotter it is outside, the more water is needed to cool the air, trading temperature for humidity. But this water can't easily be recaptured without using significantly more energy than normal A/C, so the evaporated water is exhausted as part of the hot air from the DC aisles.
jreese··on A 2030 Self-Driving Car Bet
- limited visibility due to haze or precipitation

- everything is some shade of white/grey/brown

- snow is incredibly reflective

- winter is cold; sensors are almost certainly affected, dirty, or covered

- pedestrians are bundled up, looking less like people

- road markings are obscured or buried

- signs are dirty

- stopping distances are increased

- speeds must be slower to compensate for lack of traction

- "traction control" only helps when accelerating; stability control and ABS only help so much in snow/ice

jreese··on The Miseducation of Maria Montessori
Car sales 101: don't talk price until after you show them why they want it.
jreese··on How to take credit for someone else's work on GitHub
Yes, and there are a number of past stunts that include forking the Linux repo, pushing fake/misleading commits, and then showing how Github lets you see those commits in a context that implies they are part of the upstream Linux repo.
jreese··on Russian forces invade Ukraine after Putin orders attack
This post already got marked as flagged/dead ten minutes ago. I'm glad HN has the option to "vouch" for posts.
jreese··on Ask HN: How can I delete a Facebook account without waiting 30 days?
Not that I'm aware of (I work at FB, but not related to accounts).
jreese··on Subaru, Kia shut off some car features rather than adhere to 'right to repair'
> a mobile app that sends you loud ads at 3AM.

Oh, I hope there's a good story for this

jreese··on FAA says 5G could impact radio altimeters on most Boeing 737s
A 20 mile radius of any airport likely covers a significant portion (60-70%) of all urban/suburban population. They might as well just give up on that spectrum at that point.
jreese··on Ask HN: Why should I trust password managers?
But now your password manager (notebook) is vulnerable to fire and water damage, with no backup or recovery options.
jreese··on Django: Reformatted code with Black
I suspect you are fighting the tide of common practice in the Python community. In your example, switching from `import foo` to `from foo import bar` is changing the entire nature of the import. Sorting module- and from-imports separately also makes it much easier for many people to visually scan a block of imports. And similar to black, having a tool be consistent and predictable across projects and modules is more important than bikeshedding every possible opinion.
jreese··on Django: Reformatted code with Black
Actually, modern versions of black will retain the fluent style you prefer, though it will collapse up to the first method call on the first line within the parens, so you end up with something like:

    foo = (
        spark.read.parquet(...)
        .filter(...)
        .withColumn(...)
    )
jreese··on Django: Reformatted code with Black
This is something µsort actually gets right:

    $ usort diff foo.py
    --- a/foo.py
    +++ b/foo.py
    @@ -1,2 +1 @@
    -from x import a, b, d, e
    -from x import c as C
    +from x import a, b, c as C, d, e
https://usort.readthedocs.io
jreese··on Django: Reformatted code with Black
Give µsort a try instead; it's focused on providing more safety when applying sorting to large codebases, and is designed to pair well with black out of the box:

https://usort.readthedocs.io

https://ufmt.omnilib.dev

jreese··on The Death of Wordle
> if they keep their promise of keeping it free and open

There is no "promise" other than "initially free", which almost certainly guarantees it will soon be hosted on NYT and require their subscription to play.

jreese··on Black, the uncompromising Python code formatter, is stable
That's something we're aware of, and something we've considered, but also potentially dangerous from a safety standpoint, due to Python's dynamic nature, and how much moving imports can affect runtime semantics. Any implementation of this would need to be aware of those dangers, and also be able to provide stable and predictable behavior. At the moment, it's not a huge priority given the availability of tooling to automatically add missing imports, or the limited impact of under-sorting in the context of notebooks.
jreese··on Black, the uncompromising Python code formatter, is stable
We've written a number of words on "Why µsort", including a comparison to isort: https://usort.readthedocs.io/en/stable/why.html

The biggest reason is µsort's detection of sortable "blocks" of imports, and only sorting within those blocks to limit breaking changes, combined with use of proper parsing and CST manipulation to guarantee valid syntax after sorting.

jreese··on Black, the uncompromising Python code formatter, is stable
Absolutely! We're hoping that the vast majority of modules are good citizens, but we also know that the reality not perfect. That's why µsort allows you to configure a list of modules with known import-time side effects, and µsort will then treat those are barriers everywhere.

https://usort.readthedocs.io/en/stable/guide.html#side-effec...

jreese··on Black, the uncompromising Python code formatter, is stable
Shameless self-promotion, as a former coworker of Łukasz, Black's creator:

Another coworker and I have created an import sorter that fits well alongside Black, called µsort. It is designed from the ground up to be a safe, stable import sorter that won't move imports in ways that potentially change behavior of the codebase, and without needing developers to litter their code with "skip" directives. We use it in our daily formatting codemods on tens of thousands of source files every day, and just finished our 1.0 release in December.

https://usort.readthedocs.io

Going further, if you like enforcing both formatting and import order in your CI pipeline, I also created the project µfmt, which combines both Black and µsort into a single, atomic formatting step. This ensures there's never any conflict of opinion between the two tools, and any formatting changes are presented as a single diff result.

https://ufmt.readthedocs.io

jreese··on Meta Unveils New AI Supercomputer
Meta has a number of publicly-announced datacenter locations that were built and operated specifically by/for Meta. It's probably safe to assume it's located in one or more of those datacenters.
jreese··on Problems once solved by a metaclass can be solved by __init_subclass__
I'm not fond of the example given in the post, but I've very happily used __init_subclass__ in a few places where I previously would have needed a decorator. Eg, for "plugin-like" things where I would have otherwise needed a decorator to keep track, or iterated over subclasses, now can just "register" subclasses without any extra work on the child classes. Things that I normally wouldn't expect to change the behavior of the subclass, but where having a no-effort hook at subclass creation time can be extremely useful.
jreese··on Show HN: I made an app that tracks your devices' batteries from your Mac
This was a no-brainer purchase, if only for the low battery notifications alone! I can't tell you how many times I've gone to pick up my iPad or work phone, only to find the battery at <10%, or completely drained. I very much look forward to seeing a gentle reminder to plug them in before they are gone.

Is there any way this can also include the battery level of my Apple Watch? I'm a sleep tracking user, so I have to find some time during the day to charge it, and I frequently find myself missing the taps when it gets to low battery.

Thank you for your work on this!

jreese··on PDM: A Modern Python Package Manager
Do you expect other people to add your project as a dependency of their projects, and call into your API? Then it's a library.

If the only expected users of your API is your own project, it's an application.

And yes, if you need to build native extensions, setuptools is still your only real option. It's not great, and results in hundreds of packages that all find their own definition of insanity. But given just how crazy the C/C++ toolchain ecosystem is, especially when you have to deal with Windows, macOS, and the diversity of Linux, no one else has been will to tackle that problem because setuptools already exists.

jreese··on PDM: A Modern Python Package Manager
Ah, you're right. I thought Poetry had adopted PEP 621 already, but it looks like there's still a debate about if/how they want to do that. A bit ironic considering the author of Poetry was listed as an author on PEP 621, and that was accepted just over a year ago.
← PreviousPage 2 of 4Next →