Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
SomeBoyo@feddit.de to Programmer Humor@programming.dev · 2 年前

It gets better the longer it runs

feddit.de

message-square
37
fedilink
512

It gets better the longer it runs

feddit.de

SomeBoyo@feddit.de to Programmer Humor@programming.dev · 2 年前
message-square
37
fedilink
  • average650@lemmy.world
    link
    fedilink
    arrow-up
    28
    ·
    2 年前

    Why not just test all even numbers greater than 2? It covers infinite numbers and passes 100% of the time.

    • Kogasa@programming.dev
      link
      fedilink
      arrow-up
      26
      ·
      2 年前

      It’s important to test edge cases.

      • two_wheel2@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        2 年前

        We’ll grab those in integration and E2E tests… let’s just stick with even numbers such that 2 < n < 1002… that’s 1000 cases, more than enough, and 100% test coverage

        • AVeryCleverName
          link
          fedilink
          arrow-up
          3
          ·
          2 年前

          Wouldn’t that be 499 cases?

          • two_wheel2@lemm.ee
            link
            fedilink
            arrow-up
            3
            ·
            2 年前

            Well shit. No more lemmy while drunk

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: !programmer_humor@programming.dev

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.

  • 1.92K users / day
  • 4.72K users / week
  • 8.11K users / month
  • 17.4K users / 6 months
  • 197 local subscribers
  • 23.5K subscribers
  • 1.43K Posts
  • 52.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org