• 0 Posts
  • 34 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle
















  • Ironically, all of these things except Abrowser are based on Konqueror’s original engine, KHTML, so Konqueror was actually the OG engine. KHTML was forked to WebKit, which was forked to Blink, which became the underpinnings of Qt WebEngine, which Konqueror now uses.

    This is also why KHTML still appears in the user agent strings for all of these engines, but back in the day the Gecko engine used in Mozilla products was already a thing and KHTML was the alternative to that, hence “KHTML, like Gecko”.


  • The code in the image is C or C++ or similar. In those languages and languages derived from them, curly braces are optional but the parentheses are required. It should be the other way around to avoid logic errors like this:

    if (some expression)
      doSomething()
    else if (some other expression)
      printf(“some debugging code that’s only here temporarily”);
      doSomethingElse();
    

    Based on the indentation you’d think that doSomethingElse was only meant to run if the else if condition was true, but because of the lack of braces and the printf it actually happens regardless of either of the if conditions. This can sometimes lead to logic errors and it doesn’t hold up to a principle of durability under edit — that is, inserting some code into the if statement changes the outcome entirely because it changes the code path entirely, so the code is in a sense fragile to edits. If the curly braces were required instead of optional, this wouldn’t happen.

    I have all of my linters set up to flag a lack of curly braces in these languages as an error because of this. It’s a topic that sometimes causes some debate, ‘cause some people will vociferously defend their right to not have the braces there for one liners and more compact code, but I have found that in general having them be required consistently has led to fewer issues than having arguments about their absence, but to each their own. I know many big projects that have the opposite stance or have other guidelines, but I just make ‘em required on my own projects or projects that I’m in charge of and be done with it.



  • Yeah there’s like 3 known to exist:

    1. The presentation cup that they actually give to the hockey team when they win the finals. That’s the one they cart around and drop into backyard pools and forget in taxis. I had a chance to see this cup one time ‘cause the guy who travels around with it showed up to a bar I used to frequent and his server was a friend of mine, and they got to talking and my buddy recognized him. He just flat out asked buddy, “you want to see it?” And they went out to the parking lot and there it was in the trunk of a rental car. I say that had a chance to see it in this context ‘cause I was at the bar that night but had already left and the moment just came and went and that was that.

    2. The cup that’s on display at the hall of fame in Toronto. You can just walk up to that one and stand around it. It’s nailed down to its podium but you can just, like, go right up to it and touch it. Maybe there’s a sign there that says not to touch it, I don’t know. I’ve been to see this cup.

    3. The original cup, which is in a vault at the hall of fame. I don’t think you can see that one without some kind of ceremony or special occasion or something? Maybe some paperwork or something? I don’t think that one is on display out in the open and it doesn’t have any of the bands on it, but you can see pictures of it if you search around.