Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sshine
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
751.
▲
by
sshine
2y ago
Yes, I'm also curious about who the audience is. I hold monthly Rust hack nights, and occasionally the theme is beginner-friendly. I usually point them to Rustlings, and participants are having a great time. For teaching a class in Rus
752.
▲
by
sshine
2y ago
I’ve found Vue easier to learn because it bundles things and lets you learn visual components before fully exploring the reactive model. So while the modularity of React is preferable to a seasoned developer, it does no good to a newcomer.
753.
▲
by
sshine
2y ago
> You're choosing to write the `?` ...but you're not choosing to write the `throws FooException`? I can only say that if the `?` weren't around and you had to write more verbose handling each time, having the question &quo
754.
▲
by
sshine
2y ago
That's a fair distinction. I would say "adding Result to the caller signature" provides a similar cascade, but it's not entirely true: Every call must separately be unwrapped. So consistently wrapping your Result calls w
755.
▲
by
sshine
2y ago
When I took the compiler course at university, the professor would have a new coursework theme every year, and the year I took the course, the coursework compiler was exception-oriented. So exceptions were the only control flow mechanism be
756.
▲
by
sshine
2y ago
While that is true, there are clippy::indexing_slicing, clippy::string_slice for that: https://github.com/rust-lang/rust-clippy/issues/8184#issuecomment-1003651774 error: indexing may panic --> s
757.
▲
by
sshine
2y ago
There is some DX similarity between checked exceptions and Result types. Because the compiler will fail if you don't explicitly mention each possible exception. But checked exceptions are coming out of style: They're unchecked in
758.
▲
by
sshine
2y ago
I've personally come to be very happy with hardware isolation as a method of mental compartmentalization. E.g. choice of computer dictates choice of activity, I won't accidentally work on something when I'm not supposed to. I
759.
▲
by
sshine
2y ago
I should say: Using separate directories makes improper deletion likely. Using separate computers with full-disk encryption and shredding procedures makes proper deletion a happy path. It's not that you cannot properly isolate enviro
760.
▲
by
sshine
2y ago
Using separate directories does not guarantee proper deletion.
761.
▲
by
sshine
2y ago
> Care to elaborate in what circumstances is using a "personal machine for work" a problem and why? When you stop working for an employer/customer and you are legally required to purge all files. Having everything work-r
762.
▲
by
sshine
2y ago
> Any system can be made utterly complex Kubernetes makes it easier to end up with something utterly complex.
763.
▲
by
sshine
2y ago
I think you’re overstating the usage of Haskell. Hardly everyone uses it. Jokes aside, I think you’ll be surprised to learn that the DevOps effort for most official programming language resources are surprisingly alike, regardless of their
764.
▲
by
sshine
2y ago
A week or two ago, the Haskell website was down for the greater part of a weekend. Digging through Hacker News history, Haskell.org was periodically reported down between 7 and 14 years ago. I suspect the volunteer resources behind language
765.
▲
by
sshine
2y ago
Both can be true. Protecting your agricultural capacity is what convinces the part of the population that does not directly benefit from the subsidies.
766.
▲
by
sshine
2y ago
sh
767.
▲
by
sshine
2y ago
> how do you find & verify [...] decent people who do not find the "CSAM Verification" job horrible? I think the distinction is: Some people are okay with the job because they're pedophiles. Others are okay with the
768.
▲
by
sshine
2y ago
> I would prefer my hangman enjoy his job I don't want him looking away at the last minute. > I think it's a holdover from a puritan mindset that [...] only okay if the person doing it feels bad the whole time. The Dexte
769.
▲
by
sshine
2y ago
I try to at least know when something is bash and when something is POSIX sh. There is no reason to infest your system scripts with bashisms.
770.
▲
by
sshine
2y ago
How do they manage the OS-specific stuff with pure TypeScript? How does it compare in benchmarks against Tauri for size and speed?
771.
▲
by
sshine
2y ago
Presumably they can lead to assassination attempts, too. But it becomes hard to prove.
772.
▲
by
sshine
2y ago
> The people who relate to that brand would, I would think, be more likely to flout laws like speed limits, failing to use indicators for turns or merges, and drive more aggressively than a brand that emphasizes safety or enjoyment of e
773.
▲
by
sshine
2y ago
Yes, but that adds one more command. You can also do ZZ instead of :x, if you're playing keystroke golf.
774.
▲
by
sshine
2y ago
> packages, not programs Let me fix that for you: packages, and programs You put all the logic in a library. You reference the library in a very small program. The main() functions inside those small programs are usually one or two s
775.
▲
by
sshine
2y ago
It’s one third of what you’ll ever need to use Vim: i <Esc>:w :q
776.
▲
by
sshine
2y ago
I beg your pardon. There is also an excellent conversation about parser combinators in Haskell.
777.
▲
by
sshine
2y ago
Dual-classing as a desk-like build, however, you lose your vitality buffs.
778.
▲
by
sshine
2y ago
> it's a stretch to call parser combinator code in Haskell simple or legible Parser combinators in Haskell are exactly simple and legible. When you think of them as an embedded DSL, Haskell is just a well-suited medium because it
779.
▲
by
sshine
2y ago
Since the original sed command took "Haskell" as standard input, why not: {-# LANGUAGE OverloadedStrings #-} import qualified Data.Text as T import qualified Data.Text.IO as T main :: IO () main = T.interact (T.repla
780.
▲
by
sshine
2y ago
Incidentally, I try my hardest to pronounce Chinese names correctly, as I study Chinese. You would write “Yang” and not “Young” (assuming that’s their name and they didn’t change it to “Young” after migrating), and you would leave out the p
More ›