dormi.zone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@jroid8@lemmy.world to Programmer Humor@lemmy.ml • 2 years ago

Tests are code too

lemmy.world

message-square
80
fedilink
1.43K

Tests are code too

lemmy.world

@jroid8@lemmy.world to Programmer Humor@lemmy.ml • 2 years ago
message-square
80
fedilink
  • @jjjalljs@ttrpg.network
    link
    fedilink
    15•2 years ago

    Nothing to test? Lol what.

    def add(a: int, b: int) -> int: return a * b

    All types are correct. No side effects. Does the wrong thing.

    • @MyNameIsRichard@lemmy.ml
      link
      fedilink
      6•2 years ago

      Maybe it’s doing the right thing but is badly named

      • magic_lobster_party
        link
        fedilink
        6•2 years ago

        Maybe the it’s the English language that is wrong?

        • @dan@upvote.au
          link
          fedilink
          4•
          edit-2
          2 years ago

          Old and busted: Fix the function

          New hotness: Redefine enough words in the English language such that the function is now correctly implemented

Programmer Humor@lemmy.ml

!programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1.28K users / day
  • 1.68K users / week
  • 2.35K users / month
  • 10.2K users / 6 months
  • 35.6K subscribers
  • 1.71K Posts
  • 37.6K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org