• 0 Posts
  • 28 Comments
Joined 11 months ago
cake
Cake day: July 31st, 2023

help-circle




  • paholg@lemm.eetoProgrammer Humor@programming.devExam Answer
    link
    fedilink
    English
    arrow-up
    14
    ·
    3 months ago

    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)
    








  • paholg@lemm.eetoGaming@lemmy.worldThen vs Now
    link
    fedilink
    English
    arrow-up
    3
    ·
    5 months ago

    The “free shareware” thing is kind of back. I’ve been noticing more and more games producing demos; check out Steam Next fest, for example.

    I also remember playing a ton of games from a CD. I had a Mac at the time, but it was “dos compatible”, which meant it had a 486 in addition to the Mac processor at the time, so you could switch over into dos, though you could only allocate half the ram to it.

    We ended up installing Windows 95 to play a lot of the games, which ran great on the available 4 MB of RAM.







  • paholg@lemm.eetoGames@sh.itjust.worksSteam keeps on winning
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 months ago

    I agree. I would love to have an alternative, but there just isn’t one, and I don’t think it’s Valve’s fault.

    Valve also hasn’t really done what other monopolistic companies have done, which is use their advantages to expand into other areas and crush the smaller players there.