Skip Navigation

Posts
73
Comments
920
Joined
3 yr. ago

  • Removed

    Error message

    Jump
  • Formatted, so I can read it

     
        
    Exception in thread "main" java.lang.NullPointerException: 
     Cannot invoke "String.toLowerCase()" because the return value of 
    "com.baeldung.java14.npe.HelpfulNullPointerException$PersonalDetails.getEmailAddress()" is null
     at com.baeldung.java14.npe.HelpfulNullPointerException.main(HelpfulNullPointerException.java:10)
    
      
  • Now that you say so, I feel like I've read about this before. In comments about Diatraxis/one of them years ago. :)

  • I'm using the website / native website interface. It's at least possible there to edit the post and url. May be different for "Lemmy clients".

  • I like that even here on Lemmy, with inline code format, colors.ini is not being colored but color.ini is. Great symbolism for your issue.

  • If you only care about contributing improvements, no, it doesn't matter.

    If you want to at least be recognized as an author, and be able to say "I made this", the license opposes that.

    Waiver of Rights: You waive any rights to claim authorship of the contributions […]

    I don't know how they intend to accept contributions though. I guess code blocks in tickets or patch files? Forking is not allowed, so the typical fork + branch + create a pull request does not work.

  • I've been using TortoiseGit since the beginning, and it covers everything I need. Including advanced use cases. I can access almost all functionality from the log view, which is very nice.

    I've tried a few other GUIs, but they were never able to reach parity to that for me. As you say, most offer only a subset of functionalities. Most of the time I even found the main advantage of GUIs in general, a visual log, inferior to TortoiseGit.

    GitButler looks interesting for its new set of functionalities, new approaches. Unfortunately, it doesn't integrate well on Windows yet. Asking for my key password on every fetch and push is not an acceptable workflow to me.

  • That's less than I expected. If there's 141 commands that on average comes down to 10 per.

  • git has 17 million options

    proof needed /s

    I wonder how many it actually is.

  • I think using display: grid; as your default is the better default, so you're all set. :)

  • It's certainly something that looks better, but contrary to green washing, I see real, practical value.

    I would rather be able to see and inspect source code than not. And I would rather have the right to take and fork a two year old version than not. Or be able to wait two years to fork the current version.

    Those are real good value. Those bring certainty in infrastructure robustness and freedoms.

  • You posted the article link in the post content instead of linking it in the post. Was that deliberate?

    You can still edit the post and set the link. (Then people can open it from the post title.)

  • The conversion is part of the license. It does not require the company to take any action.

    The source is available with a restricted license, and e.g. two years later it relicenses itself to a FOSS license, automatically, as defined by the original license.

  • You are going to get lots of downvotes, and this comment will too.

    👀

  • Hahahahahahahahahahaha

    (Pause for breath)

    Hahahahahahahahahahaha

    Was that tone really necessary? I would have liked your comment more without this part.

  • I've not seen those kinds of issues. Apart from some dedicated pseudo-/farm-projects.

    But still, it has entirely lost its appeal or even viability to me.

    I participated many years, until - I presume - it got too big. I was not able to find good projects, the contributions I made most of the time were not reviewed nor labeled hacktoberfest-accepted. An an extrinsic motivator, it became more frustrating than motivating.

  • Using early returns and ternary conditional operator changes

     java
        
    private boolean meetsRiderPreferences(Rider rider, Driver driver) {
        if (driver.rating >= 4.5) {
            if (rider.preferences.includes('Premium Driver')) {
                  return driver.isPremiumDriver;
            } else {
                  return true;
            }
        } else if (driver.rating >= 4.0) {
            return true;
        } else {
            return false;
        }
    }
    
      

    to

     java
        
    private boolean meetsRiderPreferences(Rider rider, Driver driver) {
        if (driver.rating < 4.0) return false;
        if (driver.rating < 4.5) return true;
    
        return rider.preferences.includes('Premium Driver') ? driver.isPremiumDriver : true;
    }
    
      


    dunno if java has them, but in C# switch expressions could put more of a case focus on the cases

     cs
        
    private boolean meetsRiderPreferences(Rider rider, Driver driver) {
        return driver.rating switch {
            < 4.0 => false,
            < 4.5 => true,
            _      => rider.preferences.includes('Premium Driver') ? driver.isPremiumDriver : true,
        };
    }
    
      

    or with a body expression

     cs
        
    private boolean meetsRiderPreferences(Rider rider, Driver driver) => driver.rating switch {
        < 4.0 => false,
        < 4.5 => true,
        _      => rider.preferences.includes('Premium Driver') ? driver.isPremiumDriver : true,
    };
    
      


    The conditional has a true result so it can be converted to a simple bool condition as well.

     cs
        
    private boolean meetsRiderPreferences(Rider rider, Driver driver) => driver.rating switch {
        < 4.0 => false,
        < 4.5 => true,
        _      => !rider.preferences.includes('Premium Driver') || driver.isPremiumDriver,
    };
    
      
  • For me that's the wrong way around.

    I want to be able to fix the issues I see. I hate it when I can't.

  • I'm thankful I am full stack and can do my stuff across borders. I hate the interfaces, waiting for stuff, or being hindered by dissatisfactory (to me anyway) stuff from them. So I'm glad when I have control over the entire stack - from talking to the customer to running production.

    Anything I don't have control over - most if it doesn't get done, the rest can be okay or bothersome.

    I hate that I don't see what the admin set up and does on the infrastructure. It makes it harder to assess issues and potential issues and how they could correlate with infrastructure changes and activities..