monyet.cc
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Destide to Programmer Humor@lemmy.mlEnglish • 12 days ago

Infallible Code

lemmy.ml

message-square
165
fedilink
460

Infallible Code

lemmy.ml

Destide to Programmer Humor@lemmy.mlEnglish • 12 days ago
message-square
165
fedilink
  • @OddMinus1@sh.itjust.works
    link
    fedilink
    3•
    edit-2
    11 days ago

    Could also be done recursive, I guess?

    boolean isEven(int n) {
      if (n == 0) {
        return true;
      } else {
        return !isEven(Math.abs(n - 1));
      }
    }
    
    • ⛓️‍💥
      link
      fedilink
      English
      1•10 days ago

      deleted by creator

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.
  • 93 users / day
  • 705 users / week
  • 2.82K users / month
  • 9.07K users / 6 months
  • 37.4K subscribers
  • 1.82K Posts
  • 39.1K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org