Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dsego
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
271.
▲
by
dsego
1y ago
Have I got a video for you. gingerBill – Tools of the Trade – BSC 2025 https://youtu.be/YNtoDGS4uak
272.
▲
by
dsego
1y ago
You do it in short windows, so you get eg. 512 samples and then run a short FFT. Or you can do longer windows that overlap, so e.g. hop by 512 but take 1024, more samples gives you more accurate results.
273.
▲
Mis-issued certificates for 1.1.1.1 DNS service pose a threat to the Internet
(arstechnica.com)
4 points
by
dsego
1y ago
|
0 comments
274.
▲
Datastar Hypermedia Framework
(data-star.dev)
1 points
by
dsego
1y ago
|
0 comments
275.
▲
by
dsego
1y ago
I created a small piece trying to build intuition, my approach was to think of it as probing with test signals, so instead of recreating a waveform, it's more poking at it with sines and seeing how well the test sine matches the target
276.
▲
by
dsego
1y ago
Sounds like a variation on the mechanical strobe tuner.
277.
▲
by
dsego
1y ago
Isn't dvorak optimized for alternating fingers but doesn't leverage same hand finger rolls? There are more modern layouts that take rolls into account.
278.
▲
by
dsego
1y ago
The stagger is beneficial for the right hand but makes it harder for the left hand. An ortholinear layout is not more comfortable, ideally there should either be a symmetrical or columnar stagger.
279.
▲
by
dsego
1y ago
> isSecure = user.role == 'admin' I would rather name intermediate variables to match the statement rather than some possible intent, it's basically a form of semantic compression. For example isAdminUser = user.role == &
280.
▲
by
dsego
1y ago
Sometimes an established pattern is easier to understand than the improved version. In that case convention is better, for example comparing http codes directly instead of giving them names, since those are easy to read for anyone who'
281.
▲
by
dsego
1y ago
Some certainly do. I have also noticed that the format of the code and structure used depend more on tools and hardware the developer uses rather than some philosophical ideal. A programmer with a big monitor could prefer big blocks of unin
282.
▲
by
dsego
1y ago
That's my fear, it will become a sort of a compiler. Prompts will be the code and code will be assembly, and nobody will even try to understand the details of the generated code unless there is something to debug. This will cause the c
283.
▲
by
dsego
1y ago
Not sure why Laravel decided to have that approach to models. In Django I can update the model properties and just generate a migration from that. I can always open the models.py file to see which fields a model class has. In Laravel I need
284.
▲
by
dsego
1y ago
I would also recommend A Philosophy of Software Design if you haven't read it, a very short and brilliant read with a similar approach. There is also a discussion between the author of Clean Code and APOSD: https://github.co
285.
▲
by
dsego
1y ago
> x = 4 // assign 4 to x Ah, the chat gpt style of comments. > Instead do something like: The only negative is that there is a chance the comment becomes stale and not in sync with the code. Other coders should be caref
286.
▲
by
dsego
1y ago
You usually don't want your code logic to stray from the mental or domain model of business stakeholders. Usually when my code makes assumptions to unify things or make elegant hierarchies, I find myself in a very bad place when stakeh
287.
▲
by
dsego
1y ago
What's more likely to fail or cause issues? Dependencies failing and parsing errors are usually handled by the build system (type checkers and linters). In the case where they are triggered in production, it can be easily caught by mon
288.
▲
by
dsego
1y ago
> The benefit is certainty that the system you are building and delivering to people works. I'd say that works and works correctly and covers all edge cases are different scenarios in my mind. Looking at an exaggerated example, if I
289.
▲
by
dsego
1y ago
E2e tests are the hardest to maintain and take a lot of time for little benefit in my experience. I'm talking about simulating a browser to open pages and click on buttons. They are flaky and brittle, the UI is easily the component whi
290.
▲
by
dsego
1y ago
Add a one line comment stating that it was edited by monodraw.
291.
▲
After the Hack: System Shock and Transhumanism [video]
(youtube.com)
1 points
by
dsego
1y ago
|
0 comments
292.
▲
by
dsego
1y ago
You can also automate it now with AI code review tools. You get most of the benefits, it will catch most obvious mistakes and suggest code changes.
293.
▲
by
dsego
1y ago
> The content has a bigger right margin than the left margin. I might be wrong, but I think in this case it has the same coded margin, but ends up as a different visual margin because the usb stick image is probably square shaped png or
294.
▲
by
dsego
1y ago
Not everybody even deserves school. Unfortunately, society benefits from everyone having at least some education, so making school non compulsory could have more detrimental effects with overall poorer education in the populace. With that
295.
▲
Atom Spy Case/Rosenbergs
(fbi.gov)
1 points
by
dsego
1y ago
|
0 comments
296.
▲
by
dsego
1y ago
Zig is noisy and and the syntax is really not elegant. One reason I like odin's syntax, it's minimal and so well thought out.
297.
▲
by
dsego
1y ago
Didn't we say this about the internet and computers in general?
298.
▲
The Sublime Text package directory, rebooted
(packages.sublimetext.io)
2 points
by
dsego
1y ago
|
0 comments
299.
▲
by
dsego
1y ago
It's a tough question, it was total war, all the civilians were working to support the military goals. Japanese supposedly had a very militarized society (1). The concept of total war adopted by the expansionist axis powers meant that
300.
▲
by
dsego
1y ago
It was total war (1), all civilian infrastructure was there to facilitate the war, all bets were off. (1) https://en.wikipedia.org/wiki/Total_war
More ›