Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
luuio
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
luuio
1y ago
Happy to continue :) Where our conversation is at, it's not about RDBMS vs. NoSQL. On the Redis INCR operation example (or an equivalent operation in any database, even in an RDBMS). In short, you don't always have the guarantee t
2.
▲
by
luuio
1y ago
Look up the two general problem on youtube. Unless the entire end to end operation is wrapped inside a giant transaction, no system in the world can give you the confirmation. Imagine this: you issued a write, a few things can happen: 1. Th
3.
▲
by
luuio
1y ago
let's say you have an object like this when you started: {count: 10, etag: 1}. then for some reason, something failed. when you retry and load the object, you get {count: 12, etag: 3}. how do you know if your previous attempt had succe
4.
▲
by
luuio
1y ago
> why wouldn't doing the same write twice produce an idempotent result you can imagine this: ``` var thing = KVStore.Get<MyThing>(...); if (things.Checkpoints.Contains(myUuid) == false) { thing.Counter += 1; } KVStore.U
5.
▲
by
luuio
1y ago
> there is always more wisdom in what we throw away than what we innovate i have found this to be true throughout my career. not that things cannot improve, they can always improve. but assuming the original work wasn't grossly inco
6.
▲
by
luuio
1y ago
1. Beyond just querying, the stored proc spent a lot of time processing data. As in, looping through cursors, making business logic decisions, calculating things, etc. 2. Having the business logic (not just loading the data) inside the stor
7.
▲
by
luuio
1y ago
The KV store had etag support for conditional writes. Etags are only useful to make sure the data didn't change underneath between your read and your write. Storing the checkpoints along with the mutation was for idempotency. If the ch
8.
▲
by
luuio
1y ago
Not Dan Luu. And to the other comment, not intentionally hiding my identity. Just that for most of my writing, who I am is irrelevant.
9.
▲
by
luuio
1y ago
Windows licensing cost. They are a pretty penny at large scale.
10.
▲
Wrong ways to use the databases, when the pendulum swung too far
(luu.io)
103 points
by
luuio
1y ago
|
103 comments
11.
▲
by
luuio
2y ago
a random number (existing entropy) XOR with a static number (the crashed wall) is still a random number, me think
12.
▲
by
luuio
3y ago
Looking through that list, Windows XP logo has the perfect balance of: - Simple solid modern colors, no halo/vignette effect like the Vista/7 logos - Multiple colors, not just one single boring blue color like the newer logos - Th
13.
▲
by
luuio
3y ago
At least two reasons I'm not choosing Go: - Go (the language) is missing the ability to declare something immutable. I don't mean making fields in a struct private then exposing getters. I mean the equivalent of an immutable refer
14.
▲
by
luuio
3y ago
At least two reasons I'm not choosing Go: - Go (the language) is missing the ability to declare something immutable. I don't mean making fields in a struct private then exposing getters. I mean the equivalent of an immutable refer
15.
▲
by
luuio
3y ago
Yep. And the OP also failed to recognize that the whole Ribbon menu could be collapsed making it just looks slightly larger than Notepad.
16.
▲
by
luuio
4y ago
Everything you said is true. C++ gives you everything you need to be safe. But that's not the point. Rust makes it HARD (or very hard) to do things that are unsafe. It's not what C++ can or cannot do, it's not what Rust can
17.
▲
Please stop using foo, bar, baz
(luu.io)
2 points
by
luuio
4y ago
|
1 comments
18.
▲
by
luuio
4y ago
Thanks for the call out! There are definitely companies that go with (A), but in all the companies I've been at, (B) is the model. As others have responded, there are definitely trade offs with different models. The way I've seen
19.
▲
One common behavior seen in “mature” software engineers
(luu.io)
228 points
by
luuio
4y ago
|
119 comments
20.
▲
by
luuio
4y ago
I share exactly your sentiment. The snappy on/off is what makes the checkbox satisfying for me. The "ding" whenever you check an item off the list in Wunderlist comes to mind.
21.
▲
by
luuio
5y ago
@David, thanks, and completely aligned on why we don't use nuget packages anymore. > As for being intuitive, the default experience is to use the Web SDK. I didn't even get into SDKs but it does more than default the framework
22.
▲
by
luuio
5y ago
It's not about if you should or should not search. It's about how often you have to do that, and how easy it is to search for what you want. It boils down to how much anti pattern a framework/ecosystem has. In this case, thei
23.
▲
by
luuio
5y ago
> I, and a lot of other devs, would be able to solve this particular problem without looking up the docs Look through the rest of this comment thread and see how many failed attempts at solving this problem there were before two high pro
24.
▲
by
luuio
5y ago
Disagree here. This is where I would quote the principles of two other language. From Python: have one way of doing things From Go: explicit is bette than implicit. Is Sdk=... is just a short cut to pull in a handful of framework references
25.
▲
by
luuio
5y ago
What about the option to just make everything asp.net one single nuget package? And how come other ecosystems/languages don't have this issue? What's the difference? The other question is, why isn't what you posted the d
26.
▲
by
luuio
5y ago
Thanks! This is what I was looking for (not anymore, sorry switched to a different language/ecosystem for this project). This still begs the question, or my original point still stands—why framework reference vs. nuget reference? I
27.
▲
by
luuio
5y ago
> You could just start with the default sdk and add the imports/targets yourself (or in practice: let the IDE do it for you.) That's what I have been calling out. I have not had much luck in pulling in the right dependencies ne
28.
▲
by
luuio
5y ago
Can you build with just these package references? because I did exactly did a while ago and I could not.
29.
▲
by
luuio
5y ago
The whole point here is that the project does not target the Sdk.Web thing. Yours only works because the project is targeting Sdk.Web (instead of Sdk). When I said console app, I literally meant using the project that you would create if yo
30.
▲
by
luuio
5y ago
That is exactly the thing. I *do not* want to have the Sdk=...Web/Worker. Imagine this scenario, you started a new project with the Sdk targeting Worker. Then you need that binary to also target web. What do you do? - If you switch the
More ›