Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bokwoon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
bokwoon
2y ago
https://www.youtube.com/watch?v=10qowKUW82U [19:14] why not C#? Dimitri: Was C# considered? Anders: It was, but I will say that I think Go definitely is -- it's, I'd say, the lowest-level language we can get to an
2.
▲
An Ode to Vim
(bokwoon.com)
3 points
by
bokwoon
2y ago
|
0 comments
3.
▲
Show HN: Notebrew is an open-source static site CMS and blogging platform
(notebrew.com)
2 points
by
bokwoon
2y ago
|
0 comments
4.
▲
by
bokwoon
3y ago
https://twitter.com/edgedatabase/status/1620582614703964160 EdgeQL: select Child {name} filter .<child[is Parent].name = 'Uma Thurman'; SQL: select child.name from child joi
5.
▲
by
bokwoon
4y ago
I want to stress that for anyone looking to use Neovim as an IDE (lite), all you need is something that speaks the Language Server Protocol (LSP). You don't really need to download all these configuration frameworks. - Neovim's na
6.
▲
by
bokwoon
4y ago
> I didn't see anything to help me build back graphs Hmm you've certainly given me something to think about. Thanks. BTW joins are not challenging, but you made me realize I didn't show any joins in my basic examples. Here
7.
▲
by
bokwoon
4y ago
> at the same time, they provide little (or nothing) utilities to map the data coming from a complex query, back to objects Example of a query builder with built-in mapping capabilities (it’s mine): https://github.com/bok
8.
▲
Show HN: An SQL data mapper using Go generics
(github.com)
3 points
by
bokwoon
4y ago
|
0 comments
9.
▲
by
bokwoon
4y ago
> I assume that the cascading done on GitHub would be done on a FK constraint GitHub doesn’t use foreign keys, the cascade delete must have been manually implemented. https://news.ycombinator.com/item?id=21486494
10.
▲
by
bokwoon
4y ago
By far the most important feature that ngrok provides, I’ve never used ngrok for its ability to replay requests
11.
▲
by
bokwoon
5y ago
hi I was the one who made that comment. The JSON incompatibilities I was referring to at that time was for an older version of the JSON proposal. The current version of the JSON operator in SQLite mimics Postgres (and MySQL) perfectly and I
12.
▲
by
bokwoon
5y ago
I've seen a very good article on this: https://www.trek10.com/blog/dynamodb-single-table-relational... . It's an insightful dive into how KV stores can model relational data. However I also feel that these &#x
13.
▲
by
bokwoon
5y ago
For modelling trees, I much prefer using a list of ancestors compared to the parent-child adjacency list because it doesn't require recursion to answer basic questions. I had thought about how I would model threaded comments in SQL som
14.
▲
by
bokwoon
5y ago
Given that the author also wrote https://scattered-thoughts.net/writing/select-wat-from-sql/ , I don't think he knows nothing about inner joins. I think he was just using that equivalent form to compare it wit
15.
▲
by
bokwoon
5y ago
You're not supposed to use `super` or specialization with factory functions, call the functions you need instead. OOP inheritance does not belong in this pattern, even if you could hamfist it in (which you've already observed as u
16.
▲
by
bokwoon
6y ago
Could you explain what you mean by things start getting hard? Why did the languages you mentioned stop using their HTTP interfaces?
17.
▲
by
bokwoon
6y ago
Don't query builders already let you do that? By making the WHERE clause map to a data structure, you can just duplicate the data structure to duplicate the WHERE clause e.g. https://bokwoon95.github.io/sq/query-bu
18.
▲
by
bokwoon
6y ago
heh, you seem to have messed up the bracket order for the markdown links. I memorise it as the mnemonic "square bracket": first the square [], then the bracket ().
19.
▲
by
bokwoon
6y ago
> The other killer „feature“ of webapps is that you can have a single one for multiple platforms. That's a feature for developers, not consumers. Consumers will be unhappy if you tell them your mobile app doesn't exist on the a
20.
▲
by
bokwoon
6y ago
Ha, I used to have a shirt draped around the neck of the fan for this exact reason. Didn't work too well, some of the light still bled through
21.
▲
by
bokwoon
6y ago
> I did some things in Alaska before where I used yoga techniques to very slowly fall asleep, and I was able to stay awake while my sense of hearing and sense of touch went away I would love to be able to "sleep" while preservi
22.
▲
by
bokwoon
6y ago
My use case is simple enough. Git provides a list of checkpoints I can rollback to. I generally squash over merge, and I use vimdiff to resolve conflicts. I know every command I need to do those things. What's complicated to learn? If
23.
▲
by
bokwoon
6y ago
One of my favourite abstraction advice comes from this article: https://blog.carlmjohnson.net/post/2020/go-cli-how-to-and-ad... . "You want one layer to handle user input and get it into a normalized form. You
24.
▲
by
bokwoon
6y ago
In Go you use the pattern of prefixing enum constants with the enum category to indicate that the enums are related to each other (e.g. StatusOk, StatusNotFound instead of status.OK, status.NotFound). Which is funny because today I came acr
25.
▲
by
bokwoon
6y ago
A Go SQL Query Builder (and struct mapper). https://github.com/bokwoon95/go-structured-query It was created to solve one of my pain points about scanning columns into deeply nested structs. You have full control over w
26.
▲
by
bokwoon
6y ago
China would squash any civil problems out, like a bug
27.
▲
by
bokwoon
6y ago
Don't typical query builders allow for composing SQL from smaller building blocks?
28.
▲
by
bokwoon
6y ago
I also think 'main' branch makes more sense, but GitHub is breaking away from an entire collective body of tutorials out there that already reference the 'master' branch. All for the sake of PC and a knee jerk reaction t
29.
▲
by
bokwoon
6y ago
I think it's probably because COBOL has almost no dependencies. Correct me if I'm wrong. > The real horsemen of the legacy apocalypse is the depth of the dependency tree. Modern software development stacks abstraction on top of
30.
▲
by
bokwoon
6y ago
I agree, but also understand that many people use only a subset of vim and think of that as the full package. And that's fine for them.
More ›