• 1 Post
  • 120 Comments
Joined 2 years ago
cake
Cake day: July 2nd, 2023

help-circle
  • My big reason would be “it hurts readability”. That is, when writing code, readibility for others who aren’t familiar with it (including future me) is my top-priority, and that means indentation and alignment are HIGHLY important, and if I spend the time to write code with specific indentation and alignment, to make it readable at a glance, I want to be certain that it’s always going to display exactly that way. Tabs specifically break that guarantee, because they’re subject to editor settings, which means shit like the below example can occur:

    I write the following code with an editor that uses a tab size of 4.

    myObject.DoSomething(
        someParameter:      "A",
        someOtherParameter: "B",
        value:              "C");
    

    If someone pulls this up in an editor that uses a tab size of 8, they get…

    myObject.DoSomething(
        someParameter:          "A",
        someOtherParameter:     "B",
        value:                          "C");
    

    Not really a big deal, in this simple case, but it illustrates the point.

    My second reason would be that it makes code more difficult to WRITE, I.E. it’s not that hard to insert spaces when you mean to insert tabs, considering that you’re not LITERALLY using only tabs just only tabs for indentation and alignment. And if you do accidentally have spaces mixed in, you’re not going to be able to tell. The guy on another machine with different editor settings will, though.

    I’m aware there are fonts that can make spaces and tabs visible and distinct, but that sounds like a NIGHTMARE to write and read code with. I mentioned above, my top priority is easy readability, and introducing more visual noise to make tabs and spaces distinct can only hurt readability.

















  • He alluded to it in the first video, and I think it’s spot on.

    They ended up with an “inventory problem”. Which is to say, some business major in the company somewhere, or a consultant or whatever saw that they were spending money to store it all, and said “A company’s assets should never cost money, they should MAKE money” or some such business speak. Ultimately that translated into every layer of the business being instructed to prioritize using that that old inventory, somehow, or pushing it to customers.

    “People don’t really want to buy all this older hardware off of us, but we can convince people who don’t know any better to rent it.”

    “We don’t have enough 4090s to keep up with demand for these high-end rentals, but we’re sure as hell not buying more when we have all these perfectly-good 4080s lying around.”