StuartLemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
maris@lemmy.world to Programmer Humor@programming.dev · 1 day ago

Gambling with Lain

lemmy.world

message-square
29
fedilink
277

Gambling with Lain

lemmy.world

maris@lemmy.world to Programmer Humor@programming.dev · 1 day ago
message-square
29
fedilink
  • r00ty@kbin.life
    link
    fedilink
    arrow-up
    4
    ·
    17 hours ago

    Oh right. I thought it might work the same as range etc in python, where is does one less than you specify… Coming from, well every other language this really threw me off on my first python excursion.

    • shape_warrior_t@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 hours ago

      You can get the exclusive behaviour with random.randrange. (Relevant Stack Overflow question with a somewhat interesting answer)

    • ChaoticNeutralCzech@feddit.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      14 hours ago

      Any language… except MATLAB. Fuck MATLAB.

      (Their arrays even start at 1, what the fuck?!)

      • wheezy@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        13 hours ago

        Lua starts at 1 too. It’s infuriating. I believe for the same historical reason Matlab does.

        Both meant for non CS people.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 946 users / day
  • 4.23K users / week
  • 7.66K users / month
  • 18.4K users / 6 months
  • 1 local subscriber
  • 25.1K subscribers
  • 928 Posts
  • 17.3K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org