• 0 Posts
  • 686 Comments
Joined 11 months ago
cake
Cake day: January 7th, 2024

help-circle



  • dev_nulltoProgrammer HumorElvis
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 day ago

    It’s a shorthand for writing this:

    variable = if (input != null) input else default
    

    This is equivalent:

    variable = input ?: default
    

    The answers confusing it with the ternary operator are wrong.









  • People say “Pokemon with guns” as if that was some kind of core gameplay. You can play through the game without ever using them. It’s a small feature, that absolutely is there, but reducing the game to that is missing the forest for the trees.

    It’s an open world crafting base building game to enjoy with co-op, that has catchable creatures like Pokemon. There is no Pokemon game that fits this niche. The guns are not important to what the game is.



  • Fair enough. Yeah, I never thought of open and closed source as two exclusive options, but two of many.

    I myself publish an application which isn’t open source, but I publish the source code, as I believe my users have the right to know what runs on their computer, and have the freedom to audit, modify, and compile their own builds if they so wish. But I don’t want someone to take and resell my application. I have yet to encounter someone calling my app closed source, but I can see how someone could.





  • I use my credit card all the time, and it’s set to auto pay off all of it every month, so there is never any interest charged. It basically delays the time my money leaves my bank account from the time of purchase to up to a month later, with no downside, while building credit history. The interest may be 300%, I don’t care because I’m never charged it.