Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jpochtar
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
31.
▲
by
jpochtar
6y ago
Prestige is also "legible" in the sense introduced by "Seeing Like a State". It's valuable in eg. socially, if someone sees Harvard/Goldman, they can instantly bucket you in a particular social class, even if t
32.
▲
by
jpochtar
6y ago
I would love to pay money for this. It is exactly the case that there's lots of long-form online content I want to read, and would love to read on paper. I imagine copyright is a problem?
33.
▲
by
jpochtar
6y ago
NYC's population did not reject HQ2— a very small, vocal group killed it, angering quite a few of the rest of us. Even then, the controversy was over 1) tax breaks to Amazon being an unnecessary handout (turns out they weren't), a
34.
▲
by
jpochtar
6y ago
Not sarcasm, though I chuckled— it can be hard to tell from across the aisle! At first glance I thought the page was pro-development, the projects looking so obviously good and vibrantly rendered. (I'dve chosen ugly desaturated grays f
35.
▲
by
jpochtar
6y ago
Wow, SF might have been awesome. It's a real shame those regressive activists prevented progress.
36.
▲
Data Denormalization Is Broken
(medium.com)
1 points
by
jpochtar
7y ago
|
0 comments
37.
▲
by
jpochtar
7y ago
ah neat, thanks!
38.
▲
by
jpochtar
7y ago
Oh, I'd assumed disagreement on behavior of query="" between the two code samples meant it was UB and was looking for crashes/invalid memory accesses.
39.
▲
by
jpochtar
7y ago
There are though, when it checks for '\0'. `starts()` looks like it's not checking if len(source) < len(query), but if, say, query="foobar" and source="foo", when i = 3 the line if (source[i] != qu
40.
▲
by
jpochtar
7y ago
Can someone explain the bugs in the code samples? The author says they're there but I honestly can't find them.
41.
▲
by
jpochtar
7y ago
I like to "make the change easy, then make the easy change". This looks like 2 commits: 1st a refactor to make code more straightforward around the area I'm about to change, and 2nd to actually make the change. Ideally, the
42.
▲
by
jpochtar
7y ago
> completely flies in the face of separating view from the program layer HTML is the view layer. The "program" layer is JS manipulating JSON (ultimately fetched from a DB). Separating HTML and CSS made sense when content lived
43.
▲
by
jpochtar
7y ago
HTML is for styling. JSON is for content. If you've heard "separate content from presentation" all your career, you might autonomically hear it as "separate HTML from CSS". I used to. In a React app world, your con
44.
▲
by
jpochtar
7y ago
Why not just have the rails app exposing GQL also expose the customer UI/etc?
45.
▲
by
jpochtar
7y ago
By expecting Docker users to know more than they do, the author thinks they're dumber than they are. Docker users are mostly folks who specialize in other areas of programming, to whom Docker popularized affecting "fat binaries&qu
46.
▲
by
jpochtar
7y ago
As someone who's also worked on a debugger, I'm sad to say many programmers aren't working on problems that needed complex debugging. I couldn't understand why friends weren't interested in what I was working on, u
47.
▲
by
jpochtar
7y ago
Small, easy to write/maintain approaches are at an evolutionary disadvantage vs classically "enterprise" styles. Easier to work with -> fewer people needed -> fewer people hired -> fewer people learn -> fewer peop
48.
▲
by
jpochtar
7y ago
Just use inline styles and simplify your life. If you’re using React/Angular/Vue/etc, your markup is styling; so why are you separating styling (html) from other styling (css)??
49.
▲
by
jpochtar
7y ago
Are you sure you want hierarchy though? [ ["the ", {}], ["JSON format", {"link": "https://www.json.org/"}], ["was invented by ", {}], ["Douglas Crockf
50.
▲
by
jpochtar
7y ago
I worked on a WYSIWYG HTML editor (Pagedraw) for a while, and came to the conclusion it's overkill for the problem of browser layout. For CRUD apps, you really just want HStacks, VStacks, and ZStacks like they have in SwiftUI. They nic
51.
▲
by
jpochtar
7y ago
Because of Norvig's spelling corrector, my measure for good code is whether or not I can understand what it's supposed to be doing, and how it's supposed to work, from reading it in one pass. This code passes that test. Befo
52.
▲
by
jpochtar
7y ago
https://norvig.com/spell-correct.html Changed the way I think about code
53.
▲
Five Worlds
(joelonsoftware.com)
11 points
by
jpochtar
7y ago
|
1 comments
54.
▲
by
jpochtar
7y ago
;)
55.
▲
by
jpochtar
7y ago
For many people, "C" means C+{gcc/clang}+{x86/arm}, which has much more specific semantics than the C99 abstract machine. They'll ask interview questions like "what's sizeof(int)" expecting a number,
56.
▲
by
jpochtar
7y ago
Rails is probably a better fit for your needs. If you're primarily concerned with sending forms to and showing data from a server, React isn't going to give you much. React is great for Figma, Dropbox Paper, Coda, and Pagedraw: a
57.
▲
by
jpochtar
7y ago
Welcome to New York! [1] [1] https://www.youtube.com/watch?v=L0N3C6DsisQ
58.
▲
by
jpochtar
7y ago
Most code is unreadable, but that doesn't mean there isn't beautiful code out there worth reading. https://norvig.com/spell-correct.html is like poetry— or at least what I imagine poetry is like to people who like
59.
▲
by
jpochtar
7y ago
I compare it to Morty experiencing “true level” [0] [0] https://youtu.be/w-wbWGwZ7_k
60.
▲
by
jpochtar
7y ago
This is the first I've seen mention Bill Gates knows LISP. Are there any famous programmers who don't know LISP?
More ›