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/)PA
Posts
0
Comments
147
Joined
2 yr. ago

  • If you were as confused by this as I was:

    Shortly after the vote, the U.S. Chamber of Commerce said it would sue the FTC to block the rule

    The US Chamber of Commerce is a right-wing lobbying group for businesses, unrelated to the US Department of Commerce which is an actual government agency.

    https://en.m.wikipedia.org/wiki/United_States_Chamber_of_Commerce

  • One of my favorite lines in the game is (paraphrasing):

    The problem with the bugs is that they're relentless expansionists. We've found them on almost every planet in their territory that we've colonized.

    It's also pretty clear that we've been farming the bugs for space oil.

  • Works even better in Ruby, as the code as given is valid, you just need to monkey patch length:

     
        
    #!/usr/bin/env ruby
    
    module DayLength
      def length
        if ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].include? self
          "24 hours"
        else
          super
        end
      end
    end
    
    class String
      prepend DayLength
    end
    
    day = "Monday"
    
    x = day.length
    
    print(x)
    
      
  • It could be Ruby; puts is more common, but there is a print. With some silly context, the answer could even be correct:

     
        
    #!/usr/bin/env ruby
    
    module DayLength
      def length
        if ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].include? self
          "24 hours"
        else
          super
        end
      end
    end
    
    class String
      prepend DayLength
    end
    
    day = "Monday"
    
    x = day.length
    
    print(x)
    
      
  • Ah yes, I'll just replace all my power sockets, get rid of all my electronics, and only buy imported European electronics from now on.

    It's so obvious, why didn't I think of it before.

    Oh yeah, and rewire my whole house to 240 V. Easy peasy.

  • I'm sorry to hear that. I think at one point in my past, about half my job was tracking down nil dereference errors in Ruby. And probably a quarter was writing tests for things a good type system would catch at compile time.

  • The only selling point of blockchain is that it's trustless. This becomes a less-useful property when it comes to things in the real world, as you tend to need to trust at least one party.

    For example, anything they achieved there with blockchain, they could have achieved with a simple government-run web service and a traditional database.

  • That is not a use for blockchain.

    Say I want to say that I created an image. I could post that image's hash to a block chain, and point to it as something anyone can check.

    But you already have to trust me for that to be valuable. So I can just host that hash in any of a myriad of conventional methods that are simpler, more performant, and less wasteful.