Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
andrewaylett
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
91.
▲
by
andrewaylett
10mo ago
In a correct program, the borrow checker has no effect. Languages like C compile code with the understanding that if the compiler can't prove the code is incorrect, it'll assume it's correct. Rust compiles with the expectati
92.
▲
by
andrewaylett
10mo ago
Unsafe isn't so unsafe that it disables the borrow checker! The two main things the compiler allows in an unsafe block but not elsewhere are calling other code marked "unsafe" and dereferencing raw pointers. The net result i
93.
▲
by
andrewaylett
10mo ago
Cloudflare needs to worry about their sandbox, because they are running your code and you might be malicious. You have less reason to worry: if you want to do something malicious to the box your worker code is running on, you already have
94.
▲
by
andrewaylett
10mo ago
Honestly, for my own stuff I only need one PoP to be close to my users. And I've avoided using Cloudflare because they're too far away. More seriously, I think there's a distinction between "edge-style" and actua
95.
▲
by
andrewaylett
10mo ago
The market can remain irrational for longer than you can remain solvent.
96.
▲
by
andrewaylett
10mo ago
I would probably be Software Engineering even if my employer didn't pay me to. As evidence, note that it's new year's eve and I'm writing patches (and waiting for tests) during my holidays for someone else's FOSS p
97.
▲
by
andrewaylett
10mo ago
That makes things worse if all-zero is not a valid value for the datatype. I'd much prefer a set-up that requires you to initialise explicitly. Rust, for example, has a `Default` trait that you can implement if there is a sensible
98.
▲
by
andrewaylett
10mo ago
I think you might appreciate https://www.jj-vcs.dev , which makes it a lot easier to split and recombine changes. I often use it for checkpoints, although you wouldn't see that from looking at what I push :). One nifty fe
99.
▲
by
andrewaylett
10mo ago
Strong disagree: until the branch is merged, it's mine . I'm in a camp that prefers single rebased commits as units of change, "stacked diffs" style. GitHub in particular was annoying with this style but is definitely g
100.
▲
by
andrewaylett
10mo ago
Not everyone in my team wires up their pre-commit hook to run the pre-commit tool. I use JJ, so I don't even have a pre-commit hook to wire up. But the tool is useful. The key thing (that several folk have pointed out) is that CI
101.
▲
by
andrewaylett
10mo ago
I think you might like https://www.jj-vcs.dev/ — it snapshots before every operation, and can watch the filesystem to snapshot every change.
102.
▲
by
andrewaylett
10mo ago
That's a controversy I'm not sure you necessarily realise you've stepped into :). It's fairly common to consider working and PR branches to be "unpublished" from a mutability point of view: if I base my work on
103.
▲
by
andrewaylett
10mo ago
Case in point: https://www.jj-vcs.dev/
104.
▲
by
andrewaylett
10mo ago
You shouldn't be relying on hooks to maintain the integrity of your codebase, and I'm not seeing anything here that makes me want to avoid `pre-commit` (or, more literally, the https://pre-commit.com/ tool). CI
105.
▲
by
andrewaylett
10mo ago
I keep a couple of jj aliases that apply the `pre-commit` tool to a commit or a tree of commits: https://github.com/andrewaylett/dotfiles/blob/7a79cf166d1e7b... What I really want is some way within jj to k
106.
▲
by
andrewaylett
10mo ago
I feel like folk in this thread haven't used a Macbook Pro from the past ten years or so — which is fine , I don't expect everyone to want to use MacOS (I prefer Linux) but the hardware is genuinely nice. On my personal 2019 MBP
107.
▲
by
andrewaylett
10mo ago
It is, however, literally worth that amount of cash at the moment of redemption. If you were going to spend that money in that shop anyway, and you have no intent to sell the card to a third party, there's no need to apply a discount.
108.
▲
by
andrewaylett
10mo ago
On the other hand, it's trivially true that the store which "issues" (caveat explained in the article, they don't actually issue anything themselves) a gift card will accept it as a valid form of payment.
109.
▲
by
andrewaylett
10mo ago
It's interesting (to me, at least) to see the kinds of discounts that folk apply to gift card transactions. It's not unheard of for a colleague to end up with a gift card they can't use, and while there's a real sense i
110.
▲
by
andrewaylett
10mo ago
One thing I didn't think Patrick quite explored enough: there's a big difference between someone asking you to pay using a gift card and you asking to pay using a gift card. The examples he gives are predominantly around givin
111.
▲
by
andrewaylett
10mo ago
In my experience, levels are more a question of delivery and trust than of technical skill. If a Senior is off down a rabbit hole, that's them doing their job. It's almost a defining feature of the level down (SE2, or local equi
112.
▲
by
andrewaylett
10mo ago
Similarly. I have over 20 years of professional experience. I've worked on embedded systems, and with mainframes. I've done (amongst other things) kernel development, compiler (& RTL) development, line-of-business, mobile,
113.
▲
by
andrewaylett
10mo ago
The original Wordle had a hard-coded ordering that was visible in the source. I had a toy around with the list (as did many other people) a few years back, you can see my copy of the word list here: https://github.com/andre
114.
▲
by
andrewaylett
10mo ago
No, it let you continue to follow the main branch for most files, while files you edited would have their changes saved to a different location. And was just about as horrible as you might imagine. We moved from VSS to SVN, and it took a
115.
▲
by
andrewaylett
11mo ago
TC39 level three, and I don't follow TC39 that closely but it seems to be available everywhere except Safari and I'd not seen it yet. I'm not entirely sure whether I like it — I probably need to try using it for a bit (pu
116.
▲
Using – JavaScript
(developer.mozilla.org)
2 points
by
andrewaylett
11mo ago
|
1 comments
117.
▲
by
andrewaylett
11mo ago
I definitely get the impression that Wolfram builds his tools primarily for himself, and is happy to let other people play with them because that way he gets money to pay for them.
118.
▲
by
andrewaylett
11mo ago
I don't know about very rich — our spare room is set up as an office for WFH, along with a sofa bed, and I put a 100" projector screen on the wall opposite the sofa. A second hand projector, new (but not all that expensive) D
119.
▲
by
andrewaylett
11mo ago
While I almost certainly wouldn't have done more than wished for one, it's a shame they're not getting any return for their effort.
120.
▲
by
andrewaylett
11mo ago
BMW have one of the more annoying matrix main beam setups, as far as I'm concerned -- it's not great at picking out my car, and seems worse than others I've encountered. A redeeming feature is that it does seem to be smart
More ›