Skip Navigation

Posts
3
Comments
298
Joined
3 yr. ago

Just a small frog hopping from post to post. Because it may be Wednesday my Dudes!

Sometimes in German, sometimes in English.

  • Two years later he admitted that maybe there was something about climate change nowadays…

    At least they changed their mind (a little bit). I think this is a huge part of the problem: admitting an error and being supported for that admission is something that is frowned upon in certain groups. I think toxic masculinity plays one big factor here. Admitting errors is seen as "not masculine", especially within conservative groups.

  • According to Google Lens:

    . ة ص اخ ل ا ة ه ارش لا ة أطو تحت اه سفن ري مدت ل برغ ل ا ح ام سل او ن آلا رتنن

    The ship is located in the south of the country. It is located in the south of the country. It is located in the south of the country.

  • One person on X who said they were there reported a confused-sounding scene of police "running" near the museum's famous pyramid "and trying to enter... from glass side doors but they were locked and they could not enter".

    "Everyone inside was running and banging on glass doors to get out, but could not open. Police and military police arrived," they added.

    That's a way more newsworthy part than some random rich-people jewelery IMHO. Had they never heared of The Station nightclub? I hope the responsible parties of the Louvre get some jail time.

  • My wish is more basic

  • Same in Germany. The same applies to nonfunctional camera dummy bodies because you can swap them to be an actual camera without anyone noticing anytime. And I am really glad that it is regulated like this.

  • It is actually quite easy to do nothing wrong. Just don't be:

    • not white
    • not heteronormative
    • not neurodivergent
    • a defender of democracy and human rights
    • not a fascist's bootlicker

    sad \s

  • A mickey7 post that is not cheap, dense boomer humor? What a time to be alive

  • This is basically one of the core ideas of Ruby: that you can read it like a story. Once you are used to reading it as "do X unless Y", you will miss it in other languages. Note that I wrote Y, not Y is true. Because often Y is a statement that has meaning in itself.

    Example:

     ruby
        
    # imagine that given_name is some text from user input
    
    # this is of course valid:
    user.name = given_name if !user.is_locked
    
    # but this reads more fluently:
    user.name = given_name unless user.is_locked
    
      

    Ruby also allows using ? as last character in method names, which is a convention for methods that return either true or false.

    Same goes for ! (the bang operator), that is commonly used to tell developers that there exists a non-bang version of the same method as well. The bang method is often the more strict version (e.g. raises an error instead of returning nil; or having side effects compared to the non-bang version).

    So the above example may be more commonly written like this:

     ruby
        
    user.name = given_name unless user.locked?
    
    
      

    and the question mark makes you automatically adding is or has while reading: Set the user's name to the given_name unless the user is locked

    Of course this is all by convention and you may also do it different. But that's how most Ruby code is written.

    To stay consistent, lots of projects use RuboCop, which warns you on inconsistency based on your project's settings.

  • Ruby has it as well:

     ruby
        
    a ||= b
    
    # which means
    a = a || b
    # wich is the same as
    a = b if !a
    # which rubyists like to write as
    a = b unless a
    # or as ternary
    a = a ? a : b
    
      
  • I don't see it ;(

  • Honest question: what else can they do anyway? They cannot fight this war alone.

  • Everyone makes errors, but not everyone reflects and learns from them. I feel like that the Ubuntu team(?) did the right thing here.

  • badass

    Jump
  • Wait what? Tab groups? Didn't knew that!

  • Little bit disappointed that its not

    Arch

  • Please mark this as NSFW ( not safe for Windows)

  • Deleted

    Permanently Deleted

    Jump
  • Where did you get this information from?

  • Title

    Jump
  • I mean a bow kind of sits in top of your shirt. So it should be

     
        
     
    <°√}
      \ \
       \ \
        \ \
        { = }
       /\   /\