Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sevensor
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
151.
▲
by
sevensor
1y ago
> Today, in the world of micromanagement, line-managers aren't expected to be much more than cannon-fodder to be blamed by C-levels when developers are unhappy. Exactly. Line managers take the heat from above and below. In a dysfunc
152.
▲
by
sevensor
1y ago
Python protocols work great for duck typing as well. You can specify exactly how an object has to quack without constraining it to an avian family tree.
153.
▲
by
sevensor
1y ago
I appreciate the attempt to explain in executive speak that engineers may not be fungible, that they can be costly to replace, that the organization will suffer if attrition gets out of hand, and that their decisions can influence these out
154.
▲
by
sevensor
1y ago
Less punchy but close to the truth: people leave for a lot of reasons. I can’t think of a time I’ve quit over a bad boss. Bosses come and go, even bad ones. If you only ever have bad bosses, that’s an executive problem, not a manager proble
155.
▲
by
sevensor
1y ago
Neat idea! Author’s ideas about different subsets of Python are worth the price of admission. What you can express in the type system, what performs well under JIT, what’s basically same and reasonable, may not be precisely specified, but a
156.
▲
by
sevensor
1y ago
Thank you, Hypothesis is brilliant!
157.
▲
by
sevensor
1y ago
I use hypothesis to test that the happy path is really happy. I use it to define the set of expected inputs for a function, and it looks for the nastiest possible sets of inputs. It’s kind of the opposite of how I write ordinary tests, wher
158.
▲
by
sevensor
1y ago
I haven’t read something so presumptuous and offputting since the Ubuntu “neckbeard” blog post. I don’t particularly like developing in Jupyter, but whatever this is, it’s gross and I’ll have no part of it.
159.
▲
by
sevensor
1y ago
If you enjoy Hooke fanfic, he features prominently in Quicksilver .
160.
▲
by
sevensor
1y ago
Personally I find helix is basically vim with selection oriented editing borrowed from kakoune, which is fine I guess. Real kakoune has another radical idea that helix doesn’t touch though, which is its thorough unix integration. If vim is
161.
▲
by
sevensor
1y ago
Surely if you do this, you just end up expressing your C design in different syntax? Doing the right thing means writing different functions with different signatures. Incrementalism here is very hard, and the smallest feasible bottom up re
162.
▲
by
sevensor
1y ago
I’ve seen more than one CEO wear the “goofy uncle” mask and let other executives do the dirty work. I think they’d rather be seen as incompetent than take the heat for bad policies.
163.
▲
by
sevensor
1y ago
What I really like about the article is the reflection on the limits of optimization. Optimization gets you mostly OK results most of the time, but there will always be pathological cases where optimization gives you bad results, and there’
164.
▲
by
sevensor
1y ago
My house came with ghastly inefficient heating (ceiling cable) and no AC. Mini splits were worth every penny.
165.
▲
by
sevensor
1y ago
On the award of her Grammy, Kanye West grabbed the microphone and said this to Taylor Swift. I think Newby is Swift in this analogy. Edit: MTV Video Music Award, not Grammy.
166.
▲
by
sevensor
1y ago
Every year, Project Gutenberg becomes a little closer to giving us access to every book worth reading, often in multiple editions and languages. It’s a treasure.
167.
▲
by
sevensor
1y ago
VFDs need really good grounding. Make sure you have a solid earth ground or you can get arcing across the motor bearings. This makes a sound that’s often described as “fluting,” and I think that might be your problem. If it is, you need to
168.
▲
by
sevensor
1y ago
Even their own manufacturers don’t know what’s in a bearing assembly they manufactured ten years ago, all they can do is sell you a new one with the same spec. Rolling element bearings are specified by application; shaft diameter, load dire
169.
▲
by
sevensor
1y ago
I’ll bite: use objects sparingly, and mainly to namespace functions that operate on data. Use inheritance even more sparingly, because it’s a nightmare to work with a poorly conceived inheritance hierarchy, and they’re so easy to get wrong.
170.
▲
by
sevensor
1y ago
I can see how this is useful if you’re repeatedly updating the same part of a tree. I can’t quite see how to use this approach for random edits. Seems like you’re back at recreating all the nodes back up to the root every time?
171.
▲
by
sevensor
1y ago
Totally worth reading Part 1 as well; I was unfamiliar with the sector as a computing device before today. It’s very clever.
172.
▲
by
sevensor
1y ago
> Principles are a bit subjective and if you lean on them all the time without thought it's a sort of laziness - you're not really examining the situation and what it merits. I think there’s a very important developmental stage
173.
▲
by
sevensor
1y ago
I try to channel Terry Gross. “You say it’s very important to frob the encabulator before and after you linearize the splines? Interesting, tell me more about that.” I don’t just want to correct bad code, I want to understand the misunder
174.
▲
by
sevensor
1y ago
I ended up just downloading the texlive image and letting it go slightly stale while I wrote. Latex plays poorly with OS package managers and I decided I preferred to be out of date. I made each chapter a separate file and compiled each on
175.
▲
by
sevensor
1y ago
Maybe if your C has aggressive test coverage and you’re using Valgrind religiously and always checking errno when you’re supposed to and you’re checking the return value of everything. Otherwise lol. C as it’s written by middling teams is a
176.
▲
by
sevensor
1y ago
So don’t? Just annotate the stuff that’s not annoying. I agree, IO is annoying to type. Decorators are fine, it’s just a function that returns a function. It’s still a win, however much you decide to annotate.
177.
▲
by
sevensor
1y ago
One of the things that makes typing an existing codebase difficult in Python is dealing with variance issues. It turns out people get these wrong all over the place in Python and their code ends up working by accident. Generally it’s not wo
178.
▲
by
sevensor
1y ago
I don’t know anything about your jit compiler, but generally the value I get from type annotations has nothing to do with what they do at runtime. People get so confused about Python’s type annotations because they resemble type declaration
179.
▲
by
sevensor
1y ago
Sequence[SupportsFloat] | Mapping[int,SupportsFloat] Whether or not you explicitly write out the type, I find that functions with this sort of signature often end up with code that checks the type of the arguments at runtime anywa
180.
▲
by
sevensor
1y ago
I wrote my dissertation this way. As long as you’re already comfortable with latex, it’s amazing. Huge time saver not to have to write latex formatting when you don’t have to, but an equally huge time saver to be able to control formatting
More ›