My Lemmy Oracle
  • 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
43
fedilink
53

Tests are code too

lemmy.world

jroid8@lemmy.world to Programmer Humor@lemmy.ml · 2 years ago
message-square
43
fedilink
  • jjjalljs@ttrpg.network
    link
    fedilink
    arrow-up
    1
    ·
    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
      arrow-up
      0
      arrow-down
      1
      ·
      2 years ago

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

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

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.
Visibility: Public
globe

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

  • 122 users / day
  • 1.07K users / week
  • 3.21K users / month
  • 9.95K users / 6 months
  • 1 local subscriber
  • 36.9K subscribers
  • 1.75K Posts
  • 32.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org