HNHacker News
TopNewBestAskShowJobs

guitarbill

4,311 karma · joined January 6, 2016

submissionscomments
guitarbill··on YouTube tests blocking videos unless you disable ad blockers
I hate ads, but I'm largely ok with sponsor reads. They are by far the least evil and least annoying.

They are not targeted (everybody watching the video sees the same ad... for now). They don't invade my privacy. They are usually fairly short. They're usually somewhat relevant to the creator, and therefore my interests. Of course, it depends on the creator. Some have more integrity, others less.

If between Youtube Premium, Patreon, and sponsored segments or episodes creators can make a living, that sounds great to me. Better than TV, radio, or the increasingly expensive and ad-ified streaming services. I'll take it.

guitarbill··on Horrible Code, Clean Performance
> A dictionary will generally beat storing values as key/value in a list, de-duplicating and linearly searching on the key. If you don't believe that

I don't believe that, although "generally" is doing heavy lifting here. It depends on the key, value, number of kv, how good the hash algo is, etc. Yeah, standard impls are pretty good nowadays. If you don't want to bother understanding the problem space fully (which like you said is fine, otherwise we'd get nowhere), use a standard tool to solve the problem.

So yes, by all means use a hash map if it makes it easier to read/reason about. Hash maps after all are a common tool for this. Just don't start with the big-O crap.

guitarbill··on Horrible Code, Clean Performance
I loathe big-O arguments, and so will happily disagree with this advice.

Big-O is by definition only useful when N is large/very large. In many problem spaces, N is bounded, or ought to be bounded at e.g. the input validation level.

That doesn't even capture all the details that big-O glosses over, like how many ops are actually executed, cache coherency, etc etc.

Prefer simpler code until profiled; that's it. Once a bottleneck is identified, big-O might be a useful tool for discussing improvements, far behind just measuring it.

guitarbill··on Firefox may soon reject Cookie prompts automatically
Non-targeted ads are fine from a privacy perspective/GDPR
guitarbill··on De-Stressing Booking.com (2019)
Sadly, I have to concur. The US based ones are all more awful.

I can deal with nagging messages while using the site, as long as I'm shown the full price, and not bombarded with upsell emails afterwards (that I have unsubscribed from 3 times already).

Never going to use Expedia again.

guitarbill··on Show HN: Cadseer. a parametric solid modeling CAD desktop application
My experience has been similar. By viewer, I meant the CQ-editor. I've also had issues getting it to run. IMO, it tries to do too much.

Since Jupyter-CadQuery [0] uses Juypter as an "editor", it's much more mature and stable. And if the viewer blows up, the notebook still works and can simply be reloaded. Debugging via replay is great.

It's also nice that you can install Jupyter-CadQuery on a different machine, either via Conda or Docker. And the standalone viewer looks awesome. It's a really exciting ecosystem.

[0] https://github.com/bernhard-42/jupyter-cadquery/

guitarbill··on Show HN: Cadseer. a parametric solid modeling CAD desktop application
I've found CadQuery to be a nice replacement for OpenSCAD. The viewer isn't as good, but using CadQuery + Jupyter Notebook is real nice. And it does fillets/chamfers, plus you can reference geometry. Bit of a learning curve though
guitarbill··on Push notifications are now supported cross-browser
Lots of people find email "useful or even desirable". Same with SMS, phone calls, mail/letters.

All have been abused by "marketing" to the point where they almost became or become useless. In some cases, workarounds were found so we can continue living our lives without spammers.

I suppose it's inevitable that push notifications are no different. But the argument is still unconvincing.

guitarbill··on Textual is a beautiful Terminal User Interface library in Python
It's very nice that Textual has a text input widgets. Seems like many TUI libraries have widgets, but lack one to handle text input. So you have to implement this yourself over and over, often forgetting shortcuts people expect (e.g. ctrl+a/e).
guitarbill··on Will Carbon Replace C++?
Sadly, if it's interoperable with C++, you'll likely need to know forty years of C++ quirks at some point...

It all just seems like a band-aid (adhesive plaster for non-native speakers).

I wonder if having a stable ABI wouldn't be better. Specifically the CXX project shows how this kind of capability is extremely powerful.

guitarbill··on After Alaska Airlines planes bump runway, a scramble to ‘pull the plug’
Agreed, although it takes an individual with a huge amount of integrity or a culture that values and promotes integrity to make a call like this:

> “At that point, two in a row like that, that’s when I said, ‘No, we’re done,'” said Peyton. “That’s when I stopped things.”

Hats off to Peyton, and possibly Alaska. I would also love to hear about times when something similar happened, and it was discovered that nothing was wrong.

guitarbill··on Correlation between the use of swearwords and code quality in open source code? [pdf]
Measuring code quality is always fraught with issues. That said, I could imagine that code bases that allow for swearing generally have a more honest and open communication culture, so swearing may be an indirect indicator of this. Which may be a better explanation than the hypothesis that "the use of swearwords constitutes an indicator of a profound emotional involvement of the programmer with the code and its inherent complexities, thus yielding better code based on a thorough, critical, and dialectic code analysis process."
guitarbill··on Japan adopts plan to make maximum use of nuclear power
> The "only the purest ideal is good enough, shut everything else down" mentality has its upsides in many (most?) situations.

Unfortunately, I have come to see this differently. For example Threema. It turns out it wasn't a great choice, at least from the cryptographic side. Maybe it's still a good choice from a data protection standpoint. Or the high Android usage. Is buying e.g. Huawei phones really a good idea?

Even if we could say there is a way to go from ideal to the practical "best", so much time is wasted in endless debates about the "best". This only works for issues where time isn't of the essence. Sometimes, pragmatism is required.

guitarbill··on Japan adopts plan to make maximum use of nuclear power
Not as "drastically" as their nuclear power of course...
guitarbill··on Ask HN: Are alternative (oil, nu, etc.) shells usable as daily drivers?
Not wrong, but fish is so nice because it just works without any configuration. Sane defaults are a blessing.

I just checked and the only things I have configured are `set fish_greeting` (i.e. empty) and some paths...

Edit: Also, I don't know how, but the fish completion is magic. It seems to remember which commands I use often in which folders and in which order. I'm not sure if that's how it's implemented. Sure feels that way though.

guitarbill··on Expected changes with Dropbox for macOS
Yes, I understand the context. But the communication from both Dropbox and Apple is unclear, especially Apple's. Does it work or not?
guitarbill··on Ask HN: Employers, why do you want us back in the office?
Certainly regions which have been neglecting internet infrastructure directly or indirectly will be at a disadvantage, including economically. This is hardly news. The pandemic also made it more obvious to many people that fiber build-out is a must, since latency and upload also matter for remote conferencing, not just download speeds.

As for adversaries or natural disasters, internet rarely works without electricity. In the small scale, my guess would be internet barely increases the weak spot that is already present via electricity. In the large scale, it doesn't matter if someone is in the office or an hour away.

guitarbill··on Expected changes with Dropbox for macOS
Did they actually block it? The Dropbox blurb says

> Photos Library isn’t supported on Dropbox for macOS.

And links to this Apple support page [0]. That says:

> And to avoid possible data loss, don't store your library [...] on a device shared over your network or the internet, including over a cloud-based storage service.

So both don't explicitly say it's blocked, just "not supported". What does that even mean? That it won't work at all?

[0] https://support.apple.com/en-gb/HT201517

guitarbill··on Why should you use Tokio vs. threads in Rust?
In my experience, many things that are trivial in C/C++ are unfortunately subtly wrong, especially involving threads.

It's a shame that your C or C++ experience doesn't translate to Rust. For me a lot of things just clicked in Rust. Although there certainly was the occasional "why can't I just do this?" that took much longer to reason all the way through. It's maybe something Rust tutorials need to be better at, or maybe there ought to be tutorials specifically for e.g. C++ folks?

For better or worse, Rust gives you the choice (& vs Arc, etc), and it's yours to make. These choices are fatiguing to make if you aren't used to them (I believe C/C++ is similar for newcomers). In the long run, making those choices explicit is where Rust really shines in codebases IMO.

Nothing wrong with using Golang if it works for you. I sometimes wish for a middle ground between Python and Rust, but Golang isn't for me.

guitarbill··on Two of the UK's water companies are still using dowsing to find leaks
> The fact that 10 of the 17 water companies were using dowsing 5 years ago before a public shaming shows that the practice could have practical use.

Err, no it doesn't. By this argument, thousands of doctors having used bloodletting or trepanning also "shows that the practice could have practical use".

> It seems she did not follow up on the claims of accuracy, or investigate the validity of the practice at all.

She's the one who cited studies where dowsing performs no better than chance, while the water companies published no data on the matter.

guitarbill··on Setting the clock ahead to see what breaks
You may or may not be surprised at how many drives acknowledge a write, but instead of committing it to the physical storage put it in a cache, and then don't have enough power reserves to flush the cache on power failure... hard to design software around hardware that lies.
guitarbill··on FAA says computer failure was caused by contractors who introduced data errors
We don't know the "procedures". They could be braindead, overly complex, and/or impossible to follow.
guitarbill··on Ask HN: What is your opinion of “unlimited” PTO?
If

* you can take enough time off by yourself, and

* your team is doing the same/is not resentful, and

* your signifiant other is also ok with it

then it's pretty great.

Kids ill? Day off. Have a big trip planned to far away? You can now stay longer, and don't need to sacrifice e.g. Thanksgiving or Christmas. Moving house? Days off. Etc.

Anecdotally, productivity is up on teams I've been on with DTO. Everyone is just more rested, relaxed, and ready.

guitarbill··on Where are my Git UI features from the future?
I have found this to be a common assertion, but my experience has been different.

Mercurial Queues exists and people use(d) it. It has many, many more footguns than Git, and it's shockingly easy to loose work. The fact that this was ever acceptable is interesting.

Phabricator is not good, or at least not as good GitLab, GitHub, or Gerrit (IMO). This is important, because Git alone is half the picture nowadays.

The extensibility of Mercurial is also interesting, and leads to codebase-specific commands. This is maybe good for long-term developers, but makes onboarding new hires just that much harder.

So Mercurial's UX being that much better than Git is - in my very limited experience - a myth.

guitarbill··on US Government demands direct police access to European biometric data [pdf]
That's solely down to the US and things like the Foreign Account Tax Compliance Act (FATCA).

Not sure what you're arguing for? To make EU or EU state tax law as insane as the US tax law? The US is effectively able to bully other nations because of the US dollar and access to the banking system...

guitarbill··on Twitter applies 7-day suspension to half a dozen journalists
Love the GDPR, but how is ADS-B data personal data?
guitarbill··on Read this post ‘unless’ you’re not a Ruby developer
> German famously has a word for nearly everything. I'm not sure that's elegant, in that it requires learning a far greater number of words.

That's not quite how it works though, right? Compound words are exactly that, combining two or more words to narrow down the meaning, without having to invent a new word. It's almost like "if not" vs "unless"...

guitarbill··on Not-so-great features coming soon to Windows 11
Maybe IE was better for a while. But for a long time it wasn't, and it wasn't allowed to stand by itself. That was the problem. It was the de facto standard, not by being good, but by being pushed via Windows.

I hope we can agree a text editor is different that a browser, word processor, or an IDE (at least nowadays). Nobody complains that Microsoft ships Nodepad or Paint, because they are the bare minimum and avoidable. Hell, they shipped Nodepad and Wordpad, and neither dented Word's market share.

Regarding 2, this is unbelievably naive. For such an important product, of course Microsoft would find a way to make it do "essential" OS tasks. Apple/iOS is obviously much worse in this regard. But for better or worse, iOS devices are a minority in the EU.

guitarbill··on Learning Rust with ChatGPT, Copilot and Advent of Code
Unicode/text is complicated, and there's a lot of terminology. Describing Rust strings as "a series of grapheme clusters" is maybe confusing, and `chars()` doesn't allow iterating over grapheme clusters.

As the docs point out, they are simply types that either borrow or own some memory (i.e. bytes), and the types/operations guarantee those bytes are valid UTF-8/Unicode code points (aka. characters). A code point is one to four bytes when encoded with UTF-8.

Grapheme clusters are more complicated. Roughly speaking they are a collection of code points that match more what humans expect (and depend on the language/script), e.g. `ü` can actually be two code points `u` + `¨`, and splitting after `u` could be nonsensical. AFAIK, Rust's standard library doesn't really provide a way to deal with grapheme clusters? EDIT: it used to, but it got deprecated and removed [0]

So TL;DR: 1-4 bytes => 1 character, 2+ characters => maybe 1 grapheme cluster. Hope that helps either you, or someone else reading this.

[0] https://github.com/rust-lang/rust/pull/24428

guitarbill··on Ask HN: Reading material on how to be a better software engineer?
IMO, the advice is all over the place. Sometimes it's good or almost, but often obvious or accepted (maybe a sign of the times?). Sometimes it's bad or ambiguous. If you can make that call, you are likely experienced enough to not need it. If not, how would you know what to follow, and what to ignore?

There's also a shocking lack of evidence that applying "clean" code rules actually leads to, well, "better" code (more maintainable, or even just more readable). In fact, in some cases, the rules kinda clash.

So in the best case, you read it, think about it, and maybe pick up one or two new things. In the worst case, it leads to pointless zealotry that can be quite toxic, especially when forced onto other people.

In short, save your money. Clean code is a grift, like many self-help books. You do have to give to Uncle Bob, he recognised that in a gold rush it's better to sell shovels (as the saying goes).

This has been linked elsewhere already, but is a better critique than I could do in a comment: https://qntm.org/clean

← PreviousPage 4 of 34Next →