Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
SPBS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
SPBS
3y ago
The article tries to make it sound more serious than it actually is. So you can't unpublish packages on NPM now. So what? Why are you unpublishing it in the first place? Just leave it alone and slap a deprecation notice on it.
62.
▲
by
SPBS
3y ago
strings.Split does return subslices of the original string. It's not making a copy of the string. Allocations still have to be made for slice that holds the result of strings.Split. That's where the allocations are coming from.
63.
▲
by
SPBS
3y ago
> Companies can find several reasons to avoid dark patterns. By following best design practices, they can build a positive brand image, maintain customer trust, and adhere to legal and ethical standards. I don't think Amazon Prime o
64.
▲
by
SPBS
3y ago
It's not enough to have separate names, implicitly you must also treat them like separate entities and duplicate the code for horses into a separate donkey entity. While the code may be similar at first, changing business requirements
65.
▲
by
SPBS
3y ago
Everyone who you see posting tweets longer 280 characters is paying for the premium subscription, which leads me to believe X might actually be more successful (more sustainable?) than old Twitter in terms of monetization.
66.
▲
by
SPBS
3y ago
Sometimes the most valuable guide is a working example. Lord knows, there are so many docs out there that keep prattling on and on instead of showing me the code.
67.
▲
by
SPBS
3y ago
> Inspired by Kevin Kelly’s incredible 68 Bits of Unsolicited Advice [1] > [1] The Internet Archive has the full version. This makes me so sad, I remember reading Kevin's article back when it had the full 68 items, now it's
68.
▲
by
SPBS
3y ago
Well good, because hopefully it will shed enough load that YouTube considers it a success doesn't go any further than this. uBlock Origin still works, that's good enough for me.
69.
▲
by
SPBS
3y ago
It's not clear from the README how even to install it, likely just an exploration of writing file searcher in Raku and not a serious attempt at replacing grep/find/ack/ag/rg.
70.
▲
by
SPBS
3y ago
If Django Admin is ugly, then everything I make is uglier.
71.
▲
by
SPBS
3y ago
I have experienced the same thing migrating off Evernote: manually. I'm thankful I only had around 200 plaintext notes to migrate so it was still feasible to do by hand. I've since stored all my notes as text files synced by Dropb
72.
▲
Danger of Relying on Cloud Apps
(kuchaibee.bearblog.dev)
1 points
by
SPBS
3y ago
|
1 comments
73.
▲
by
SPBS
3y ago
I don't know how to reply to that except "experience tells me it is miserable to mandate everyone to quote their identifiers when they touch your database". Do you do that?
74.
▲
by
SPBS
3y ago
I just name it users and accept the minor inconsistency that every table is singular except for the users table (it has the lowest cognitive overhead IMO)
75.
▲
by
SPBS
3y ago
You would think that right, but quoting an identifier is the start of misery. It means everytime you invoke the identifier, you have to quote it. If you don't quote it, you open yourself to bugs. It's a giant footgun. "But
76.
▲
by
SPBS
3y ago
I can't. I forgot which stackoverflow comment or blog post mentioned it, but unquoted lowercase identifiers are the most portable and resilient naming convention that work across all database dialects. You don't have to worry ab
77.
▲
by
SPBS
3y ago
SQL's most egregious reserved keyword is, in my opinion, "user". Almost every application will have a users table. I gravitate towards singular table names these days [1], and SQL sitting its fat behind on the word "user
78.
▲
by
SPBS
3y ago
DataGrip isn't Electron
79.
▲
by
SPBS
3y ago
Yes it is important to have validation for anything coming in from outside (json, the database, etc). This is done by creating a map with the valid enum values and checking at runtime. This compile time solution wouldn't have worked fo
80.
▲
by
SPBS
3y ago
This is not elegant. It also has overhead. Stick with the simple `const Red Color = "red"`, you're not gaining a lot by doing all these strange type contortions in Go. Seriously consider what you are protecting against, and
81.
▲
by
SPBS
3y ago
<a href="">links</a> are such a pain to write though. Probably the biggest annoyance when I write in raw html.
82.
▲
by
SPBS
3y ago
I can see why they did it, 'phat kaphrao' might be mispronounced as 'fat kaphrao' ('phat' being the stylistic way of spelling fat on the internet).
83.
▲
by
SPBS
3y ago
I guess I should qualify it by saying "Domain Specific Language" instead of "language". Newer programming languages are different because they have a huge body of extremely clever people working on it making sure it'
84.
▲
by
SPBS
3y ago
It's like (speaking) languages really. The good ones are ones that have always been there and people have just sort of accepted into the mainstream (like English). Don't invent your own language. If you can do it in an existing la
85.
▲
by
SPBS
3y ago
I get the whole site is designed in a very cool (and creative) way but it feels so draining to read. - Everything is green, WHERE do my eyes go? - Oh, I have to click to go to the next section. Instead of scrolling. - Fat dickbars on the
86.
▲
by
SPBS
3y ago
Good luck though, you're going up against giants (as much as this article portrays SQL as outdated, anyone who tries to go against it is very much the underdog). It's hard to get people to buy in on a custom database stack that is
87.
▲
by
SPBS
3y ago
xargs is more useful because it's posix so you can always guarantee it to be there (whereas with GNU Parallel you probably have to reach for a package manager to install it first). The ergonomics are worse though, as usual.
88.
▲
by
SPBS
3y ago
> The SQL is not really the point. It's about the rows and objects, moving the data from the objects to the INSERT statement, moving the data from the rows you SELECTed back to the objects. That's easy. It's a database map
89.
▲
by
SPBS
3y ago
FP-style castle of abstractions is just as bad as OO-style castle of abstractions. A "function that returns a function that returns a function that returns a..." is just as bad as an "AbstractFactoryManager that manages an Ab
90.
▲
by
SPBS
3y ago
ugh I was so excited to see pure HTML modals were a thing with <dialog> only to find out there's no way of triggering them without JavaScript. Using pure HTML you can only dismiss them, not trigger them. https://gi
More ›