Web Developer by day, and aspiring Swift developer at night.

  • 1 Post
  • 85 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle




  • I’m not terribly surprised by the mixed reactions to this comment. As an Apple person who owns several Apple products, I can confidently agree with @Random_Character_A@lemmy.world.

    A lot of (not all) are elitists and cannot fathom that the quality of Apple products has significantly declined, while the pricing has significantly risen. It’s sad too, because Apple is supposed to mean top-shelf in quality.


  • Apple urges developers to not use DeviceCheck for anything beyond basic device verification, and if you’re a developer that’s also misusing it, then you should definitely cease that—there are probably more reliable ways to check whether it’s the same user trying to access an account from a device or not.

    Sounds reasonable…

    But then, why would you use it?

    For example, you might use this data to identify devices that have already taken advantage of a promotional offer that you provide, or to flag a device that you’ve determined to be fraudulent.

    Oh, ok. Wait, what? But…



  • In my experience, this amount of conflicts typically occurs because 1) most people mass commit a bunch of (mostly unrelated) changes at once, which leads to 2) inexperienced/impatient devs to clobber incoming merge conflicts without doing proper merges (mostly because they can’t make heads or tails of the diffs).

    This is very easily mitigated if all developers would make small, related commits (with descriptive commit messages and not “committing changes”). This makes everybody’s life easier because 1) diffs are smaller and readable for conflicts, 2) the dev can see the progression of code through commit history, 3) broken code is more easily revertable (and traceable) if something goes wrong, and 4) it’s easier to cherry pick specific changes if the whole changes cannot be published all at once.

    Also, git pull --rebase is your friend and not scary at all. It applies all incoming changes first, then applies your new commits last. 9 out of 10 times it avoids conflicts.

    Lastly, use a GUI. There are plenty out there to suit your tastes, and I feel they are a safer and easier alternative than CLI. Some GUIs are very safe and even allow undo operations on most things.



  • Sometimes it takes a little unintentional embarrassment to drive a point home. It’ll make them think twice next time.

    What I mean by that is that as long as you’re not intentionally or maliciously trying to embarrass them, then you shouldn’t feel bad. You cannot always control how somebody receives information; nor should you. The best you can do is to be clear and polite in your communication. If someone’s feelings get hurt, that’s on them to reconcile, not you.

    This is genuinely like parenting a child: they need to develop their critical thinking skills, and to gain their own confidence. So they must be left to make their own mistakes to learn from. Your job is to give show them the tools to use, give advice when necessary, and be there to catch them when they fall; because they will fall.

    Doing this will help bolster their self-confidence and make them better mid-/senior-developers later in their career. Coddling them and constantly holding their hand will make them reliant on other people and prevent them from learning anything.

    Edit: also remember KISS. 😊



  • dohpaz42@lemmy.worldtoProgrammer Humor@lemmy.mlI may not be the brightest
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    2
    ·
    23 days ago
    sudo echo "# FYI quotes(") must be escaped with \ like \"
    

    👆 that is not a comment. That is a command that says to echo the text “# FYI quotes(” and then to do ) must be escaped like \ \" which is invalid syntax.

    I assume that startup script is reading the contents of the file and trying to echo them into another file? i.e., using the original file as a template, but is not escaping the input, hence the error — which you’re lucky that’s the problem you’re encountering and not something actually destructive like sudo echo "# foo" && rm -rf /*.


  • dohpaz42@lemmy.worldtoLinux@lemmy.mlThis $149 RISC-V Tablet Runs Ubuntu 24.04
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    2
    ·
    edit-2
    24 days ago

    The ram options available for this tablet are better than what the iPad had when it first came out, and are pretty on par with more modern versions. Source

    The idea of using a tablet as a computer is not exactly a selling point for me. What id love to see is an app market space for tablets like this. Something that competes with Apple and Google; especially if it had a focus on home automation and security. Gaming would be a close second.


  • Banning members on their username. Locking down an entire community because of a small group of people spamming. Deleting posts because an account isn’t old enough?

    Why not throw in the system to have to approve posts before they get published? Really make the community welcoming.

    It was said in another comment above that this tool is easily abused by “overzealous mods”, but I believe the real problem are overzealous programmers.

    Reddit failed for reasons, and I believe automod was one of them. But you’ll do you, and nothing I say can change that.





  • As an American there are several factors that weigh in situations like this:

    1. Legal language is a foreign and difficult language to grasp and understand. That’s why lawyers go to school for as long as they do. Yet, citizens are expected to understand it as if it were plain English. So a lot of us don’t read or understand what we’re agreeing to; especially when it’s 10-s of pages long.
    2. Out of sight and out of mind. Unless it happens to us personally, there really is no incentive for us to do anything about it. It’s as, I know, but we’ve been cultivated as a culture with its head in the sand. Hell, even our constitutional right to peaceful protest has been all but stripped away from us.
    3. Financial barriers. It is expensive to fight legal battles, most especially against huge corporations like Disney. A lot of lawyers demand a lot of money up front, and getting our day in court to take years. Corporations can afford to stall. Is plebs can barely afford the initial consult. So unless it’s something considered “in the bag”, it’s probably not financially feasible.

  • Ladybird Browser Team Selects Swift as Preferred Language Andreas Kling announces Swift as Ladybird’s future language for better safety and ergonomics. Full transition awaits Swift 6.

    ByBobby BorisovAugust 11, 2024 Ladybird Browser Team Selects Swift as Preferred Language Ladybird is a new name in the Linux ecosystem you might not be familiar with. So, let’s briefly explain what it’s all about.

    It’s a web browser initiative, funded by $1 million, spearheaded by GitHub co-founder and former CEO Chris Wanstrath and tech visionary Andreas Kling. It seeks to challenge the status quo with a new browser written from scratch, completely independent of corporate interests. Our article on the subject has more on this. Now, back to the topic.

    Over the past few months, Ladybird’s developers have been experimenting by rewriting different parts of the browser project in various languages. The outcome was clear: Swift emerged as the preferred choice among the team. According to Kling, the feedback favored Swift for its modern features and robust safety protocols.

    Another significant advantage of Swift is its ongoing improvements in interoperability with C++. This development means Ladybird can adopt Swift gradually, without extensive rewrites, easing the transition and reducing potential integration issues.

    Now, I’m sure you associate Swift with app development for Apple devices, where it’s been the go-to technology. But recently, that’s started to change.

    What I mean is despite its strong associations with Apple, Swift has been making strides towards independence. It has been reorganized under a separate GitHub organization, distancing itself from Apple-specific projects.

    This shift, coupled with better support for non-Apple platforms and diverse development environments, positions Swift as a more versatile and broadly applicable programming language.

    Looking ahead, Ladybird plans to implement Swift once version 6 exits beta this fall. The upcoming release promises compatibility with the latest versions of Clang, essential for integrating Swift with Ladybird’s existing C++ code.

    It’s worth noting that no browser engine has yet been developed using Swift, making this project particularly challenging. As things are still in the early planning stages, we shouldn’t expect to see any initial versions of the Ladybird browser this year.

    A more realistic timeline suggests an early preview release could happen in 2025, though the developers have not yet committed to specific dates.

    For more information, refer to Kling’s post on X.

    Bobby Borisov Bobby Borisov

    Bobby, an editor-in-chief at Linuxiac, is a Linux professional with over 20 years of experience. With a strong focus on Linux and open-source software, he has worked as a Senior Linux System Administrator, Software Developer, and DevOps Engineer for small and large multinational companies.