KDE Social
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@SomeBoyo@feddit.de to Programmer Humor@programming.dev • 2 years ago

It gets better the longer it runs

feddit.de

message-square
37
fedilink
496

It gets better the longer it runs

feddit.de

@SomeBoyo@feddit.de to Programmer Humor@programming.dev • 2 years ago
message-square
37
fedilink
  • @average650@lemmy.world
    link
    fedilink
    28•2 years ago

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

    • Kogasa
      link
      fedilink
      26•2 years ago

      It’s important to test edge cases.

      • @two_wheel2@lemm.ee
        link
        fedilink
        2•2 years ago

        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@lemmy.one
          link
          fedilink
          3•2 years ago

          Wouldn’t that be 499 cases?

          • @two_wheel2@lemm.ee
            link
            fedilink
            3•2 years ago

            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
  • 1.98K users / day
  • 5.13K users / week
  • 8.99K users / month
  • 18.3K users / 6 months
  • 23.5K subscribers
  • 1.45K Posts
  • 53.2K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org