Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jamincan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
241.
▲
by
jamincan
4y ago
User's might block cookies, but this will likely still go through.
242.
▲
by
jamincan
4y ago
Rust has been seeing a lot of adoption from Python devs too, in part because of crates like PyO3 making interop fairly easy. I think Rust's appeal (and Go's for that matter) in these cases is that it offers high performance withou
243.
▲
by
jamincan
4y ago
For what it's worth, it's not that difficult to manually implement the `FromRequest` trait for `Thing` so that it parses the request based on the Content-Type.
244.
▲
by
jamincan
4y ago
I think part of the issue is that AI can potentially mask the problem.
245.
▲
by
jamincan
4y ago
Maybe tower-request-id is an example of how to implement something like that? https://github.com/imbolc/tower-request-id
246.
▲
by
jamincan
4y ago
You don't have to specify the type in the signature; you can just as easily parse the request body manually. But in the instance where the endpoint only accepts json, it's simpler to write it this way.
247.
▲
by
jamincan
4y ago
The breakdown really shows how ill-conceived the device is. 'Christ' is filtered in strict mode, because it can be used as a swear word, but then presumably it would be censored in all the other situations it's not used as a
248.
▲
by
jamincan
4y ago
The Youtube algorithm recommended a "top ten" list awhile ago about things the youtuber hated about van life. I had been watching quite a feel tiny homes videos, mostly out of curiousity about how people made efficient use of thei
249.
▲
by
jamincan
4y ago
What are black truffle flavorings?
250.
▲
by
jamincan
4y ago
I wonder if it's not a bit like the Dunning-Kruger effect. The good people around us struggle thinking that they're bad, while the bad people blithely go around thinking they're good.
251.
▲
by
jamincan
4y ago
The library ecosystem does fill that gap somewhat with crates like anyhow [1] which also allow you to add context to the errors you return. 1. https://docs.rs/anyhow/latest/anyhow/
252.
▲
by
jamincan
4y ago
As someone who struggles with depression, I definitely relate to that example. Part of the frustration is that those things are already voiced in my head. The other part of the frustration is that I've already cycled through worse and
253.
▲
by
jamincan
4y ago
The Rust book has a pretty good explanation of the difference. https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
254.
▲
by
jamincan
4y ago
`&'static str` is an `&str` (string slice) with a `'static` lifetime (ie. lasting the duration of the program). It is most commonly encountered with string literals. In some languages, it is appropriate to gloss over the d
255.
▲
by
jamincan
4y ago
I once had a pasta salad backpacker meal (forget which brand) that was pretty much this method exactly (except we rehydrated it in its original bag). Some of the freeze-dried veggies still had a little bit of crunch, but the pasta was good
256.
▲
by
jamincan
4y ago
I believe the backtrace API was added to stable rust with the most recent release, and so anyhow backtraces should now be available outside of nightly.
257.
▲
by
jamincan
4y ago
Here in Ontario it seems that the standards for new divided highways now include wildlife over or underpasses, at least in the north.
258.
▲
by
jamincan
4y ago
They started mandating that businesses charge for plastic bags where I live, and it made a huge difference from a culture that scarcely used reuseable bags/bins, to one that predominately uses them (at least anecdotally, I don't h
259.
▲
by
jamincan
4y ago
It looks like Sasha Levin works for Google as of 2021. https://www.linkedin.com/in/sasha-levin-9861662
260.
▲
by
jamincan
4y ago
I think in any instance where you need to unpack every variant, `match` will almost always be the least verbose option.
261.
▲
by
jamincan
4y ago
Not having used nushell, is that what it is like?
262.
▲
by
jamincan
4y ago
I get the impression that she packaged it for OpenBSD and wrote this as an intro to the shell for others. The 'written by Solene' bit reads initially as though she's claiming to have written Nushell, but when reading the text
263.
▲
by
jamincan
4y ago
That's my experience as well. That entire part of my life is just blurred together.
264.
▲
by
jamincan
4y ago
My gut feeling is that Rust won't compete with Python in the ML space, but contrary to the common assertion that Rust is too hard for non-CS types, it has actually seen notable adoption from Python-users. While the strictness of the co
265.
▲
by
jamincan
4y ago
But, of course, you have to be a savvy enough, and informed enough user to even know this.
266.
▲
by
jamincan
4y ago
Without a response from the parent, I'm guessing they wanted it to be in wasm, and Rust is one of the more popular languages for wasm development.
267.
▲
by
jamincan
4y ago
The only way I can figure out to make this explicit, though, seems very verbose and non-intuitive and frankly no clearer than `.into()` on its own: Err(Into::<Box<dyn Error>>::into("sha1 hash is not valid")) Is there a
268.
▲
by
jamincan
4y ago
Go to the product detail and they show precise measurements and often CAD models of the part.
269.
▲
by
jamincan
4y ago
It seems they only do B2B in Canada. We use them all the time.
270.
▲
by
jamincan
4y ago
We use them all the time here in Mississauga. Generally we're getting next-day delivery (I think they have a warehouse in Cleveland). It's not the cheapest option, but they are great for projects still in development as they almos
More ›