Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dgb23
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
421.
▲
by
dgb23
2y ago
John Oliver's program is both funny and informative. "Infotainment" as it's sometimes called. I think its success can be attributed to how it presents things that are often inherently worrying, controversial or critical.
422.
▲
by
dgb23
2y ago
Depends on who you ask. Advertisement and propaganda is not necessarily helpful for consumers, but just needs to be convincing in order to be helpful for producers.
423.
▲
by
dgb23
2y ago
Coincidentally that's how I started thinking about limits and allocating everything up front. I wanted to try out arena allocation, with one arena per http request (and one for the entire lifetime). But when I realized that if I wouldn
424.
▲
by
dgb23
2y ago
I like the part about memory management. Arenas are so simple. In the (toy) web server I'm writing I initially also started with arenas. However I quickly realized that I don't actually need to grow and shrink memory at all. Curre
425.
▲
by
dgb23
2y ago
I like this take, but you're saying something different I think, which is more along the lines of "Customers don't care about how the sausage is made". You didn't polish a turd, you found something that could be val
426.
▲
by
dgb23
2y ago
I watched a video by Russ Cox that was recommended in a recent thread, Go Testing By Example: https://www.youtube.com/watch?v=X4rxi9jStLo There's _a lot_ of useful advice in there. But what I wanted to mention specific
427.
▲
by
dgb23
2y ago
That’s a fair point. However dynamic languages tend to have very good linting that catch many basic type errors. They can also run way more often during development, down to the function/expression level.
428.
▲
by
dgb23
2y ago
My old man who will always gladly mention that „we did this already in the 80‘s and it was called frobniz“ whenever I bring up a technique, architecture etc. would beg to differ. When I asked him about TDD he said they did practically the s
429.
▲
by
dgb23
2y ago
Love it, even though it must have been incredibly confusing when old tests failed at first. The assumption being that the tests were correct. They _passed_ all those months or years! I'm just also watching your YT video on testing and
430.
▲
by
dgb23
2y ago
> It is possible to write complex and performant programs without allocating memory. I assume you mean by only allocating on the stack? Those are still allocations. It's just someone else doing it for you. > And in some languages
431.
▲
by
dgb23
2y ago
A perhaps important clarification: Many of those, including Linux as far as I know, simply started as projects that were driven by single authors with a strong vision and remarkable diligence. Then people flocked to those projects, but with
432.
▲
by
dgb23
2y ago
Go is definitely used for stuff that rivals their Rust/C++ etc. counterparts in terms of performance and general quality. Caddy and docker pop right into my mind. I‘ve also seen databases, image processing and other nitty gritty system
433.
▲
by
dgb23
2y ago
Are there cases where people actually rely on the previous behavior? I always assumed that it was considered faulty to do so.
434.
▲
by
dgb23
2y ago
Without pointers in some form or another, you can’t refer to allocated memory. You can change the name of pointers but they are still pointers.
435.
▲
by
dgb23
2y ago
> The second part is where functional programming shines -- you have a simple way to just recompute all the derived things. And since it's presumably the same way the derived things were computed in the first place, you don't h
436.
▲
by
dgb23
2y ago
Yes, that's what I meant. But I think I talked passed you in a way. I think its fair criticism that as a beginner, you don't actually want to deal with build.zig or even understand it. You just want to write some code and run it a
437.
▲
by
dgb23
2y ago
> For example, the recommended way to start a project, with `zig init`, has a load of code that I really don't need when I just want a bare project to get started. I recently started a new project. zig-init provides you with a worki
438.
▲
Ask HN: Can the philosophy and vision of BDFL projects transcend their leaders?
5 points
by
dgb23
2y ago
|
0 comments
439.
▲
by
dgb23
2y ago
I always recommend SMEs to not use _any_ form of tracking/analytics by default. Just make the site useful, informative and well presented. To find out how users interact with it: Ask them, and/or do tests. Use the actual relations
440.
▲
by
dgb23
2y ago
I don't quite understand. uBlock lets you opt in/out per domain. I regularly turn it off and on for specific sites.
441.
▲
by
dgb23
2y ago
That's a very good question that I need to think about way more.
442.
▲
by
dgb23
2y ago
Le me clarify: good modularization and abstractions emerge from engineering concerns (like the ones listed above) and not the other way around. The reason I wrote the above comment is because I've seen this being flipped on its head to
443.
▲
by
dgb23
2y ago
I'm not arguing against decomposition, modularisation, clarity or abstractions. Just don't do them for their own sake.
444.
▲
by
dgb23
2y ago
The beatings will continue until morale improves.
445.
▲
by
dgb23
2y ago
It depends entirely on how you define perfectionism. The article unfortunately doesn't explain well what they meant. Assuming it is following, paradigms, design patterns and making the code "cleaner", then I would agree with
446.
▲
by
dgb23
2y ago
See the sibling comment https://news.ycombinator.com/item?id=41094612 Apparently this is a safety feature.
447.
▲
by
dgb23
2y ago
This is not what GP asked for. That's the most requested feature from the state of JS survey. I bet the percentage of web developers who want this are a tiny minority. There are just too many issues with this. Static typing without the
448.
▲
by
dgb23
2y ago
I've read studies about workers coops and some of them somewhat contradict what you say in your last paragraph, specifically (b). Worker coops often cut down on their individual profits in hard times to keep the boat afloat. I think ul
449.
▲
by
dgb23
2y ago
Honest questions (this might be over my head...): My assumption (is it correct?) that sorted Vec<(u32, u32)> represents start/end times in a tuple? What comes to mind at first is always storing less information. Do you _need_ 32b
450.
▲
by
dgb23
2y ago
It’s a disadvantage if you require proprietary licenses, but an advantage if you leverage open source licenses.
More ›