Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SM
Posts
0
Comments
261
Joined
2 yr. ago

  • The problem most of these examples and counter examples make is only showing simple code and assuming that you always want to apply the patterns of abstracting things or not.

    This is the real problem. Without context of what the project is for we can only speculate on what the "best practice" is. If my problem is that I have a directory with 2000 videos in it, and I need to process all the ones with an English language track, I am going to write a one-off bash script, and not a huge C# project filled with the OO concepts.

    But if the method is one of 10,000 needed in a huge project, then sticking with the coding guidelines of the whole project is more important for maintainability. A dev coming in 36 months later who is familiar with the code base would have less problems going through an abstracted setup, just because they have experience with the project and can make assumptions from that.

  • This is the answer. It is expensive because it will be a low demand item. Most people will never need this, so it is a specialty item that is taking up valuable shelf space.

    All the conspiracy theories in this thread are just the standard "whaa, they changed something" whining.

  • The code on the left is more readable. It is easy to follow and see what is happening at each step.

    That being said, the code on the right is easier to maintain. If the requirement comes down the pipe that we now need to support a new pizza topping it is easy to jump to the add toppings method using the IDE instead of scanning the entire monolith procedural function. Or if we now need to add support for take-and-bake, we can just modify the small entry method.

    This also assumes that we are not needing to reuse any of these methods. If you want to add toppings to a sandwich or a salad, better write another huge method like the one on the left, or add a ton of nested if/else or switch statements. If you use the style on the right you can reuse the add toppings method without worrying about if you should preheat the oven for a salad.

    The author chose a very simplistic requirement for an example and it is all well and good until you let it fester in a code base for ten years, with multiple interns maintaining it and end up with a huge spaghetti code monster to deal with.

  • The only cable I think I would need that I don’t already have would be a C-to-A cable to plug the phone into the car. My car doesn’t support wireless CarPlay.

    What lightning dongles do people use that they would need that adapter for?

  • GPT is a tool that the students will have access to their entire professional lives. It should be treated as such and worked into the curriculum.

    Forbidding it would be like saying you can’t use Photoshop in a photography class.

  • I spent some time when I migrated from just storing my passwords in Chrome. I went through and made sure all of them were strong, unique passwords. I set up categories for all of them. I set it up so I could share the right ones with the family and whatnot.

    Doing the raw import is easy, but it was a good time to make sure everything was in order.

  • In my opinion (removed from the whole AI controversy) is that intellectual property law has been long abused, not by artists and creators but by publishers and studio owners who have used their landlord-esque positions to take control of most art, and then extend their IP rights while denying the public a robust public domain.

    The idea that a strong public domain is beneficial to all culture has been lost. Now we have huge court cases because two different songs use a similar progression of notes. The point of copyright should be to motivate people to create more art, not prevent people from doing it.

    Take the whole Under Pressure/Vanilla Ice fiasco. Nobody listening to "Ice Ice Baby" is going to then say to themselves "great, now I never have to listen to Queen again". They are both very different songs in different genres, that use the same guitar riff.

    I understand why selling pirate DVD's should be illegal, for recently made movies that are still under print, but transforming a work should not be infringement.

  • I'm not sure, I can only reply anecdotally that I have used Apple laptops with mag safe connectors for many years and never had a problem with metal getting stuck in there and shorting stuff out.

    I think I remember a post from a few years back where someone was having problems charging and found a used staple stuck in there, but I don't think it has been a wide spread problem.

  • I remember an old anecdote from sometime around 2005, that Microsoft did a survey to see what features people wanted added to the Office suite, of the top 10 requested features, 8 were already in the products and the users didn't know about them.

    The whole suite was bloated with stuff most people didn't need, or at least very rarely needed, but no one wanted to take time to take a class on Excel, or read patch notes, or whatever.

  • because their current lighting cable only transfers at USB 2.0 speeds as well

    This is the main reason. People are confusing the protocol (USB 2.0/3.0) with the connector (USB C/Lightning). Apple slapping a different connector on the phone isn't changing the underlying technology inside the phone. People claiming that USB-C must mean 3.0 are just spreading FUD in order to shit on Apple again.

    And, as others in this thread have pointed out, high speed transfers by cable are low priority for phone users, there are much better tools to do that, like maybe an external hard drive.