Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kitkat_new
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
kitkat_new
2y ago
> If you're going to start adding logic to hide other elements conditionaly it's prone to become spaguetti. And how would that scale code-wise? this is a trivial task, it's only going to spaghetti if you go out of your way
32.
▲
by
kitkat_new
2y ago
you mean user1 button? It would throw away the previous http request and users 1 data wouldn't even show up Hiding the elements/div would prevent the user from clicking that button. I don't see how it is 20/80. Switchmap
33.
▲
by
kitkat_new
2y ago
sounds more like 20/20 solution ux-wise better immediately hide user1 and show a loading button and use rxjs's switchmap
34.
▲
by
kitkat_new
2y ago
it doesn't really maximize individual liberty, ultimately almost anyone would end up with less liberty in practice, except for people choosing to centralize power i.e. rejecting anarchism
35.
▲
by
kitkat_new
2y ago
dont like the lack of hierarchical structure
36.
▲
by
kitkat_new
2y ago
1. I don't 2. who claimed its special?
37.
▲
by
kitkat_new
2y ago
anarchism doesn't maximize peoples freedom
38.
▲
by
kitkat_new
2y ago
if it seems that obvious, you surely can explain why it would make semse?
39.
▲
by
kitkat_new
2y ago
use of limited resources, air pollution, noise, higher infrastructure cost, global warming, more kills in traffic
40.
▲
by
kitkat_new
2y ago
in this case (which shouldn't happen because it requires that you merged things that don't belong together - see accidental duplication), at least the one changing the method has all information on his hands and doesn't have
41.
▲
by
kitkat_new
2y ago
isn't encoding a requirement in the type applying DRY as well then?
42.
▲
by
kitkat_new
2y ago
better understand DRY first, before you add lots of technical debt to your code: https://news.ycombinator.com/item?id=40525064#40525690
43.
▲
by
kitkat_new
2y ago
they aren't better and lead to maintenance hell
44.
▲
by
kitkat_new
2y ago
maintainability is more important than readability alone
45.
▲
by
kitkat_new
2y ago
example? duplicating (literally copy paste) is easier than even finding duplicated code with small differences.
46.
▲
by
kitkat_new
2y ago
use compile time polymorphism premature abstraction -> not understood dry ( https://news.ycombinator.com/item?id=40525064#40525690 )
47.
▲
by
kitkat_new
2y ago
not drying is technical debt
48.
▲
by
kitkat_new
2y ago
5 copies are already extremely difficult. It's not like they just jump into your eye when you edit some code.
49.
▲
by
kitkat_new
2y ago
> You can then go back and DRY it up while making sure your unit tests (you did write those, right?) still pass. not gonna happen once merged
50.
▲
by
kitkat_new
2y ago
> sometimes unrelated pieces you are using it wrong https://news.ycombinator.com/item?id=40525064#40525690
51.
▲
by
kitkat_new
3y ago
well, no magic, goal reached. However, the current implementation of error handling is atrocious. If Go would take sum types and question marks from Rust, Go would keep the general error handling strategy and philosophy with the difference
52.
▲
by
kitkat_new
3y ago
why would it? recursive inlining
53.
▲
by
kitkat_new
3y ago
capitalism doesn't like your idea
54.
▲
Google: Linux-Driver Rewritten in Rust
(lore.kernel.org)
25 points
by
kitkat_new
3y ago
|
0 comments
55.
▲
by
kitkat_new
3y ago
This. It always amuses me when people complain about complexity in Rust. It feels like they have no idea what they don't know about the alternatives
56.
▲
by
kitkat_new
3y ago
Especially, because it clicks ads without you seeing them
57.
▲
Shell boss set to cut jobs from low-carbon division
(web.archive.org)
3 points
by
kitkat_new
3y ago
|
0 comments
58.
▲
by
kitkat_new
3y ago
Hacker News YX could be way better though
59.
▲
'Pervasive and relentless' racism on the rise in Europe, survey finds
(theguardian.com)
4 points
by
kitkat_new
3y ago
|
1 comments
60.
▲
by
kitkat_new
3y ago
> and actually verifying fingerprints OOB is a must, and that's true for all E2EE methods AFAIK? most E2EE messaging services (e.g. Matrix, Signal, WhatsApp) enable verifying other people instead of devices, reducing the required ve
More ›