Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 2 years ago

It gets better the longer it runs

feddit.de

message-square
37
fedilink
503

It gets better the longer it runs

feddit.de

@[email protected] to Programmer [email protected] • 2 years ago
message-square
37
fedilink
  • @[email protected]
    link
    fedilink
    29•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.

      • @[email protected]
        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

        • @[email protected]
          link
          fedilink
          3•2 years ago

          Wouldn’t that be 499 cases?

          • @[email protected]
            link
            fedilink
            3•2 years ago

            Well shit. No more lemmy while drunk

Programmer [email protected]

[email protected]
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
  • 18 users / day
  • 396 users / week
  • 1.63K users / month
  • 4.29K users / 6 months
  • 3 subscribers
  • 1.54K Posts
  • 54.7K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org