• 0 Posts
  • 14 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle

  • Its even worse than that. It is completely unpredictable and just does what it want. When I type in “Vi”, the first choice is Visual Studio. It will stay on Visual Studio until I have typed in “Visual Studi”. But if I’m a fast typer, and I type in the entirety of “Visual Studio”, it opens Visual Studio Code.

    So the fastest way to open up Code is to type “VSC”. This doesn’t work with “VS” for Visual Studio.

    I have to type out “Spot” specifically to open Spotify. Typing out Spotify opens edge.

    There are also files and programs it cannot find despite having been installed for years, even though I’ve MANUALLY added the paths to the searched directories.

    If anyone of you is on Windows for whatever reason and want your mind blown, try downloading a little program called Everything. It can literally find every single program on your computer as fast as you can type. And it looks up exactly what you type in. It also supports wildcard characters etc. This is the kind of behavior I expect from my computer. Sure, make a shiny frontend for casual users who don’t need to see every single file on their system, but please, why do I have to go through third parties to get this experience on an OS that my company paid for, when I can get the same experience out of the box on any free Linux distro?



  • What you’re describing is an interface. An interface is a contract that ensures you can do something, but doesn’t care how.

    Abstract classes can have abstract functions. When you do this, you’re basically just creating a base class with an interface on top; you’re saying “all my children must implement this interface of mine” without having to actually make a separate interface.

    Abstract classes also offer additional functionality though, such as the ability to define properties, and default implementations of methods. You can even utilize the base class implementation of the method in your child class, in order to perform extra steps or format your input before you do whatever it is you were doing in the first place.

    So, an interface is a contract that allows you to call a method, without having to know the specific class or implementation.

    Inheritance is more like “it does everything that X does, but it also does Y and Z.” If you’re ever finding yourself writing an abstract class with purely abstract methods, you probably want to write an interface instead. That way, you get all the same functionality, but it’s more loosely coupled

    Epecially when you think in “real” OOP terms:

    Abstract classes are “child is a parent”, fx “duck is a bird”. Bird describes all the traits that all birds have in common. But not all birds fly, so flight must come from an interface. This interface can be passed around to any number of objects, and they’re not as tightly coupled because unlike an abstract class, an interface doesnt imply that “duck is a flight”. The interface is just something we know the duck can do.

    As you can probably tell, I work with OOP on a daily basis and have for years. There are a lot of valid criticisms of the OOP philosophy, and I have heard a lot of good points for the record. I am just educating on the OOP principles because you said you were interested and to clear up any misconceptions.









  • GoosLife@lemmy.worldtolinuxmemes@lemmy.world:wq!
    link
    fedilink
    arrow-up
    3
    ·
    10 months ago

    Ctrl-X in Nano is arguably more nonsensical, considering that vi was made in an era long (decades) before many of the conventions we know today came about. They were figuring it out in real time. And the criterium here is much simpler: it must be available on all keyboards so no fancy keys. That’s all.

    On the other hand, when nano decided to use Ctrl+X for eXit, Apples Ctrl+X/C/V had already been brought over to Windows and Apple, and was also the de facto way for most Linux apps to handle these inputs although I do think it came before any “official” efforts to standardize these shortcuts in desktop environments.





  • He said “because of ballooning development costs”. Stardew valley is famously a one man labor of love, the opposite of ballooning development costs.

    $14 pr sold copy is ridiculously high in this context, because development costs is only for one dude.

    You’re comparing this guys runaway success with a company with several development teams, office spaces, marketing teams, accountants, probably janitors, security, etc, etc.

    I’m not saying he is in the right, just pointing out that it is apples to oranges.


  • Remember when googling was done by (assuming this info couldn’t be found in the lexicon) calling directly to the source and asking the receptionist?

    I remember my dad and uncle couldn’t decide when they thought Coca Cola was founded, so they went to the phonebook, found the number for Coca Cola and just asked. They were happy to help, too. I also remember calling directly to the publisher for Disney comics to ask how much certain comics were, and they sent us a form in the mail that we would fill out to order the specific books we wanted, which then arrived in the mail like 2 weeks later. Pretty much the internet but with extra steps, mandatory human interaction and extremely long wait times lol.