Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
johnfn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
781.
▲
by
johnfn
1y ago
You won't have a full and comprehensive education as an author without spending a few months copying texts by hand in a scriptorium like monks did back in the 500s.
782.
▲
by
johnfn
1y ago
In that case, you might enjoy this part of the article: > For the foreseeable future, the Go team will stop pursuing syntactic language changes for error handling
783.
▲
by
johnfn
1y ago
icons = ("mail", "linkedin", "github") return Card( DivLAligned( DiceBearAvatar(name, h=24, w=24), Div(H3(name), P(role))), footer=DivFullySpaced(
784.
▲
by
johnfn
1y ago
Who said "unlimited powers", other than you? That seems like an intentional distortion of the article, which says "LLMs can write a large fraction of all the tedious code you’ll ever need to write". Doing most of my tedi
785.
▲
by
johnfn
1y ago
The authors probably intended to write: index = remapVec[index]; which would do a better job at following a cycle.
786.
▲
by
johnfn
1y ago
Leave it to hacker news to figure out why knitting chickens is actually a sign of cultural collapse.
787.
▲
by
johnfn
1y ago
Google paid Mozilla XB to keep Google as the default search engine, and Apple XXB. Does that mean that Google wasn't a good product?
788.
▲
by
johnfn
1y ago
I'm confused by this comment - it seems to just be restating what my comment said.
789.
▲
by
johnfn
1y ago
Maybe I'm just being overly pedantic about a simplified anecdote, but that's the moment that you decided some issues couldn't be discussed with him ? That seems like a fairly innocuous response. Couldn't you have push
790.
▲
by
johnfn
1y ago
> It’s as if a biologist were to say: “I have a great new theory of organisms. It lists many that exist and many that can’t possibly exist, and I can tell you nothing about the distinction.” > Again, we’d laugh. Or should. Should we?
791.
▲
by
johnfn
1y ago
Is there a single example of MS doing something like this in the last 10 years?
792.
▲
by
johnfn
1y ago
This answer is how I wish the world would work, but I am stuck with a server with a poor type system that can't refine the types nearly as accurately as TS can. :(
793.
▲
by
johnfn
1y ago
Now you run into the issue I mentioned in GP, where you end up writing `if (blah)` everywhere, even though you know that `blah` is definitely present.
794.
▲
by
johnfn
1y ago
I think I can do this, yes, but it becomes a very large amount of repetitive work. Let's say I have api/profile (which has `.posts`) and api/user-directory (which does not). I define User as a discriminated union - one has ty
795.
▲
by
johnfn
1y ago
Hmm, this is pretty interesting, but I still have issues. While Zod seems to be able to transform my server-returned object into a discriminated union, it doesn't seem to be able to tell which of the unions it is. For instance, say tha
796.
▲
by
johnfn
1y ago
The problem with this is that your One True User shape tends to have a bunch of optional properties on it. e.g., in the user profile you fetch Post[], but in the user directory you don't, and so on with other joined properties. If ever
797.
▲
by
johnfn
1y ago
I'm curious if anyone here can answer a question I've wondered about for a long time. I've heard Zod might be in the right ballpark, but from reading the documentation, I'm not sure how I would go about it. Say I have a
798.
▲
by
johnfn
1y ago
That sounds like people who don't know web dev trying to do web dev.
799.
▲
by
johnfn
1y ago
One of my pet peeves is people blaming things on React that have nothing to do with React. I see this quite frequently on Hacker News. Using an a tag or not has nothing to do with React.
800.
▲
by
johnfn
1y ago
But no one was killed here, so your comparison really falls flat to me - there’s a reason we have a sliding scale of punishments that scale to the crime, and security issues are nowhere near the same level of severity as murder. It feels mo
801.
▲
by
johnfn
1y ago
Sorbet is intended for people who have no choice but to use ruby.
802.
▲
by
johnfn
1y ago
> Why one would try to make ruby "look like" statically typed language? It violates the idea of ruby, which dynamically typed language. People said the exact same things when Typescript was first being released. I think history
803.
▲
by
johnfn
1y ago
Isn’t that what they’re doing by building off of vscode?
804.
▲
by
johnfn
1y ago
The restrictive extension ecosystem was a big part of VSCode's success. You can compare to Atom, which allowed extensions to do whatever they wanted: Atom ended up feeling exceptionally slow and bloated because extensions had full lati
805.
▲
by
johnfn
1y ago
As an (ex) VSCode extension developer, VSCode really does lock down what you can do as an extension. It's well intentioned and likely led to the success of VSCode, but it's not great if you want to build entirely new UI interactio
806.
▲
by
johnfn
1y ago
This is very cool and I'm always happy to see more competition in this space. That said, two suggestions: - The logo looks like it was inspired directly from the Cursor logo and modified slightly. I would suggest changing it. - It migh
807.
▲
by
johnfn
1y ago
How many people understand the intricacies of any complex language or type system? Though I think one of the great things about TS is that you need to understand none of it in order to do `npm install @types/lodash` and get all the ben
808.
▲
by
johnfn
1y ago
> I feel like these days people just want quick answers to do very specific things but that's a very inefficient way to learn something like SQLAlchemy. In defense of OP, a particular frustration I have with SQLAlchemy is that I und
809.
▲
by
johnfn
1y ago
In defense of mypy et al, Typescript had some of the greatest minds of our generation working for a decade+ on properly typing every insane form found in every random Javascript file. Microsoft has funded a team of great developers to hamme
810.
▲
by
johnfn
1y ago
In most reasonably-sized websites, Tailwind will decrease overall bundle size when compared to other ways of writing CSS. Which is less code, 100 instances of "margin-left: 8px" or 100 instances of "ml-2" (and a single d
More ›