Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stiiv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
stiiv
2y ago
As someone who values a tight domain model (a la DDD) and primarily writes TypeScript, I've considered introducing branded types many times, and always decline. Instead, we just opt for "aliases," especially of primatives (`t
32.
▲
by
stiiv
2y ago
> an increased willingness to defer my thought-organising process to the AI by just jotting down some random ideas and asking it to make it coherent ...and then accepting that outcoming as sufficient, and moving on, right? Is the alterna
33.
▲
by
stiiv
2y ago
I am sure that some people will read this post and feel either encouraged or vindicated. A younger version of myself might have been one of them. My guess is that the author is curious by nature, and driven toward trying new technology. The
34.
▲
by
stiiv
2y ago
In my opinion, JavaScript's main advantage is that it can be run in browsers in addition to other (i.e. server) environments. If you're building something simple, and the type/shape of function parameters is either very obvio
35.
▲
by
stiiv
3y ago
Agreed! For this reason, we use very few third-party dependencies in our big TS monorepo. NPM is a jungle, and for an experienced team of TS developers, a new dependency just isn't worth the risk -- we'd rather just code things ou
36.
▲
by
stiiv
3y ago
You're right, though a "high bar" in itself is not a bad thing! Hopefully not too many people struggle with pressure to behave like cartoon dogs. On the other hand, we might all take some inspiration from them here and there.
37.
▲
by
stiiv
3y ago
A warning worth taking to heart! Even apart from Clojure and so-called "DDD," there was a kind-of-recent push toward making your application logic as "declarative" as possible. Following that strategy would enable some c
38.
▲
by
stiiv
3y ago
Thank you for not resisting. F# is very hard to beat for a tight domain model.
39.
▲
by
stiiv
3y ago
Here is a scenario that I've encountered a number of times. We needed to serve up some data for an API endpoint. Great! We'll write a SQL query for it. Just need a couple of joins and where-clause parameters -- it will be speedy,
40.
▲
by
stiiv
3y ago
I thought so at first, but no, that's not what the author is after. The article is about _recognizing the experience of being offended_. Near the end, the author says what to do with that recognition: > By getting offended more, you
41.
▲
by
stiiv
3y ago
There's an incongruity between a "mechanistic" model of causality and how we actually live, and actually should live. Your explanation is a good response to the posted experiment, but I don't think it's a good respo
42.
▲
by
stiiv
3y ago
I hope that people who suffer from exhaustion and a lack of breaks are setting realistic expectations for themselves, and not simply assuming that they need to push themselves to (or past) their limit. It is a rare manager who encourages yo
43.
▲
by
stiiv
3y ago
A site visit might consist of more than a single page load, and (hopefully) includes some interactions. For some sites, "client-side + HTTP data as needed" strategy will have a longer time to first render, but might be much quicke
44.
▲
by
stiiv
3y ago
It's all about minimizing cognitive overhead. This happens in a few ways when you use strict functional patterns and a tight domain model: - You can safely make more assumptions about how your program works - You can rely on your type
45.
▲
by
stiiv
3y ago
Twice a day: - HN for what's interesting - Reuters (domestic) for what's news - Email for what's personal I very rarely post. I'm pretty happy with this info diet.
46.
▲
by
stiiv
4y ago
> The problem comes in when there's a mismatch between responsibilities and names. Names are a way of expressing identity, while responsibilities are ephemeral: Your friend Sam is still Sam, even if Sam gets new responsibilities and
47.
▲
by
stiiv
4y ago
Yes! While I'm often suspicious of simplistic models like the Veil of Ignorance, it's really among the best in western philosophy: it's easy to understand, and its implications are compelling and clear. The concept also carri
48.
▲
by
stiiv
4y ago
_Proofs and Refutations_ tops the list. Dialog and progressive discovery are crucial to solving problems, and these things happen even after (mostly after?) you arrive at a good solution. _P&R_ provides a working example of how this mig
49.
▲
by
stiiv
4y ago
In my experience (6 companies, variety of verticals), COO responsibilities really vary. I haven't encountered a COO who wasn't interested in improving performance, but I also haven't encountered a COO whose role could be desc
50.
▲
by
stiiv
4y ago
For me, the backgrounds were interesting for their _more salient_ features rather than their ambience, e.g. unexpected smears of color, textures that vaguely looked like real things at a glance (like fabric or nature) but wouldn't stan
51.
▲
by
stiiv
4y ago
Yes, we ended up buying JetBrains Rider; I used it for a few years. I was much more productive in it than Ionide. Code analysis was excellent, though it would sometimes get weird on multi-project repos. Unit testing (incl. Expecto tests) we
52.
▲
by
stiiv
4y ago
Speaking as someone who recently switched from F# to TypeScript: yes, "annoying" is just what it is. Until TypeScript at least has pattern matching you'll be writing at least 50% more code, maybe more. Chaining would be a god
53.
▲
by
stiiv
4y ago
After learning a bunch of programming languages and their corresponding ecosystems (incl. Rust, Lisps, Scala), F# is still my favorite by a long shot. Its only serious shortcoming, imo, is the tooling. Visual Studio is great, but if you
54.
▲
by
stiiv
4y ago
> The goal of the research was to determine if the mutations in the Omicron spike protein were responsible for this variant’s increased ability to evade the immunity to SARS-2 that humans have built up, and whether the changes led to Omi
55.
▲
by
stiiv
4y ago
Accelerate (Forsgren, Humble, Kim) gave me a way to quantify results and talk to execs about how a development org is performing, something I always found difficult before. Domain Modeling Made Functional (Wlaschin) provided me with concept
56.
▲
by
stiiv
5y ago
I've been a lurker on HN for about a decade. This is literally the first comment that I have posted. Part of the reason is: while I am thoughtful, reasonably well-informed individual, I never felt up to the task of putting in enough ef