HNHacker News
TopNewBestAskShowJobs

Zecc

613 karma · joined October 10, 2010

submissionscomments
Zecc··on Observable API Proposal
And then there's async generators...
Zecc··on Firefox address bar
The about:config dark magic you're looking for should be `browser.fixup.alternate.enabled = false`, `browser.fixup.dns_first_for_single_words = true` and `browser.fixup.domainsuffixwhitelist.<localdnsname> = true`.

Hope it works for you.

Zecc··on Firefox address bar
In Windows' File Explorer, F6 cycles focus between window sub-regions, while Alt+D sends you unconditionally to the address bar independent of where the focus is. So maybe there is a parallel here.
Zecc··on Firefox address bar
I second this. I've had the very rare message saying the tab tree has gotten out of sync (always as a consequence of me moving tabs between incognito windows), but the first time it happened clicking the message refreshed the tab tree successfully; the second time it didn't but toggling the sidebar off and on fixed it. I've had no problems with stability.

And to me the context menu option to unload tabs is a killer feature.

Zecc··on Firefox address bar
Of course for Wikipedia specifically you'd use `!wiki query` instead.
Zecc··on Trick Yourself into Breaking a Bad Habit
And I thought it was be from Portugal, but when I read it's from Spain I adjusted to "from Iberia".

But now someone else mentioned Italy. I wouldn't be surprised if it traces its roots to ancient Rome or Greece.

Zecc··on Why F# evangelism isn't working (2015)
>If the only flaw in C# is knowing which method calls requires the new keyword because its a constructor, and which dont because its a factory, that is bad enough to want to avoid it

I'm sure this is just an example popping first out of your mind, but it seems like an oddly specific thing to mention. Specially since the answer is obvious if you know C#: the name of the method matches that of the type if and only if it is a constructor.

I won't comment on the rest of your post as my experience with F# is minimal; but I think I understand where you're coming from.

> Separating Data from Behavior manages complexity better

There's a sweet spot, and it varies. Sometimes it is difficult to find. API design can be difficult. Managing complexity is sometimes itself a complex process.

Zecc··on Sigils are underappreciated (2022)
> A limited ability to avoid collisions with "reserved words" ... would be more of a mis-feature than a feature.

While I don't necessarily disagree with you, there's something I'd like to mention.

C# allows using @ before a variable name which happens to be the same as a keyword to escape the name.

I don't remember the specifics, but it has saved me once when I wanted to create a class shaped exactly like a JSON object I was loading from an external source and one of the fields was a reserved word. For example, this works fine:

    class MyClass
    {
        public int value;
        public string @default;
        public string @switch;
    }
    
    string json = "{\"value\": 8, \"default\": \"something\", \"switch\": \"on\"}";

    MyClass o = JObject.Parse(json).ToObject<MyClass>();
    Console.WriteLine("default={0}, switch={1}", o.@default, o.@switch);
Zecc··on Kenny Log-Ins
A space can be typed quite easily, while a backspace cannot.

That said, even systems which do not accept spaces will accept them as long as they are immediately followed by an equal amount of backspaces. /s

Zecc··on Popover API
On the contrary. It will give a new data point on how up-to-date the interviewee's knowledge is.
Zecc··on Managing State with Signals
The fact this comes from the same author as https://grumpy.website/ makes it extra hilarious.
Zecc··on Ligatures in programming fonts: hell no (2019)
I don't use ASCII-art often in source code, but when I do (or when I'm reading code from someone who has), I prefer if the characters align correctly.
Zecc··on The plan to explode a nuclear bomb on the Moon
I believe someone will sooner or later link to the Kurzgesagt video about nuking the moon, so I might as well do it myself:

https://www.youtube.com/watch?v=qEfPBt9dU60

Zecc··on Why do studios use Roman numerals in the copyright notice in the end credits?
> they could certainly used 0-<page number> for that

Hello, fellow programmer. A fine day for zero-based indexing, isn't it?

Zecc··on The weird world of Windows file paths
Sure, but that's because everyone uses SHGetFolderPath or Environment.GetFolderPath to get these paths instead of hardcoding them. Right? Right??
Zecc··on Proposed Renewal of the Registry Agreement for .NET
This is about the .net TLD and has nothing to do with .NET the framework.

It doesn't take long to realize this, it's even outright obvious considering ICANN is involved, but still... It seems weird to me that they would write .NET and .COM rather than .net and .com even if DNS is case-insensitive.

Zecc··on Thinking hard makes the brain tired
On the one hand I wrote down the whole thing easily in (I think) less than 30 seconds.

On the other hand I wrote Z25 (uh-oh) and I couldn't spot my mistake until I had the computer write it down too. All the letters were there. But I wrote down 16 twice and I didn't spot the error even afterwards because I was too focused on the letters.

Zecc··on Zig Quirks
> The last adjective I want used in relation to my variable names is “obscure.”

Well, second-to-last right after "misleading".

Zecc··on Morse Code Chat
Less than six months ago I found this same site and I was practicing religiously multiple times a day. Several weeks ago I interrupted my practice for one reason or another and last time I tried my score had dropped to below 40%. I need to start practicing again.

I haven't learned the full alphabet yet. I'm still missing letters q, g, h, z, x,c, v and all the digits.

Something I've found interesting is how much difference it made changing the tone frequency. My brain definitely got used to a certain tone initially, and when I first tried changing the tone my recognition ability dropped quite a bit. So now I change it occasionally to keep my brain on its proverbial toes.

I wish there was a way to practice just the letters I have more difficulty with; namely, the ones which were added later.

Zecc··on Understanding the .NET ecosystem: The evolution of .NET into .NET 7
"seeing how close"
Zecc··on Understanding the .NET ecosystem: The evolution of .NET into .NET 7
I haven't actually tried either Dapper or PetaPoco, only perused their documentation. But I was sold on LinqToDb after seeing how it supported CTE and seeing our close code to generate updates [1] and joins [2] ended up looking like the actual intended SQL.

  [1]: https://linq2db.github.io/#update

  [2]: https://linq2db.github.io/articles/sql/Join-Operators.html
Zecc··on The Io Language
Perhaps the least know language in the Seven Languages in Seven Weeks book by Bruce A. Tate.

The others being Ruby, Erlang, Scala, Clojure, Haskell and Prolog.

Zecc··on Slightly Intelligent Home
> goes dark when you're taking a long shit. so you have to get up and wave your hands with your trousers down and asshole covered in shit, like a psychotic

This is hilarious to me. I am currently taking a long shit lit only by my laptop's screen.

Also, I have fortunately long mastered the art of wiping my butt without looking.

Zecc··on Boulder Dash
Have you considered submitting your blog post to HN? I enjoyed reading it, but I'm not going to steal any karma from you.
Zecc··on Europe pushing for lunar time zone
I've heard that due to time dilation time runs slower inside the Earth's core, enough to make it a couple of years younger than its surface.
Zecc··on Git branches are named sequences of commits
It's interesting how I strongly disagreed with you before reading the linked blog post, but I fully agree with you after reading it.

I still rather think of "git branches" as the technically correct "just refs" and hold the separate-but-related human-only concept of "development branch" in my head. I don't think there's a better approximation of truth than that, nor do I think it's that more complex to understand.

But the fact these two concepts share the same name truly is confusing. One would do better to refer to the former as "bookmark" or "branch tip".

Zecc··on Ask Dang: What tools do you use for moderating HN?
My thoughts go to the person in my college whose login, based on their initials, was `acne`.
Zecc··on MS Teams 2.0 – trying to fix the issues
Type `1. <text>`, then just press Enter to add new items. Press Enter twice to finish the list.

Also, tab and shift+tab seem to work to indent and unindent, for sub-lists.

Zecc··on MS Teams 2.0 – trying to fix the issues
Shift+Enter is your friend, at least in that one particular situation. Alt+Enter seems to work as well. Ctrl+Enter will send the message.
Zecc··on Multi-Account Containers
I expressed myself poorly. In retrospect it sounds like the exact opposite of what I meant, in fact.

What I meant is if you open what you would otherwise open in an incognito window in a container instead, you can restart your browser without those tabs being closed and the respective state being lost.

← PreviousPage 5 of 12Next →