Dorm Room
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
balderdash@lemmy.zip to Asklemmy@lemmy.ml · 2 years ago

What are some harmless ways to prank someone?

message-square
message-square
79
fedilink
95
message-square

What are some harmless ways to prank someone?

balderdash@lemmy.zip to Asklemmy@lemmy.ml · 2 years ago
message-square
79
fedilink
  • nothacking@discuss.tchncs.de
    link
    fedilink
    arrow-up
    84
    arrow-down
    8
    ·
    edit-2
    2 years ago

    Put #define true (rand()%1000 != 0) in some obscure C or C++ header file on their system/project. This makes true evaluate to false one in a thousand times, and will make them spend hours trying to figure out why things like infinite loops, aren’t quite infinite.

    Other languages should also allow you to do things like this, if not messing with constants, messing with standard library functions.

    • KoboldCoterie@pawb.social
      link
      fedilink
      English
      arrow-up
      113
      ·
      2 years ago

      They asked for harmless pranks - this would cause murders.

      • raubarno 🇱🇹@lemmy.ml
        link
        fedilink
        arrow-up
        33
        ·
        2 years ago

        This is why airplanes crash

    • balderdash@lemmy.zipOP
      link
      fedilink
      arrow-up
      68
      ·
      2 years ago

    • DocBlaze@lemmy.world
      link
      fedilink
      arrow-up
      39
      ·
      edit-2
      2 years ago

      deleted by creator

    • Tolookah@discuss.tchncs.de
      link
      fedilink
      arrow-up
      11
      ·
      2 years ago

      If your going that evil
      #define { {}{

      • DocBlaze@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        2
        ·
        edit-2
        2 years ago

        deleted by creator

        • Gurfaild@feddit.de
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          It should always cause a syntax error if the code contains } else.

          • DocBlaze@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            2 years ago

            deleted by creator

Asklemmy@lemmy.ml

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

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it’s welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

  • !lemmy_support@lemmy.ml
  • !fediverse@lemmy.ml
  • !selfhosted@lemmy.world

Looking for a community?

  • Lemmyverse: community search
  • sub.rehab: maps old subreddits to fediverse options, marks official as such
  • !lemmy411@lemmy.ca: a community for finding communities

Icon by @Double_A@discuss.tchncs.de

Visibility: Public
globe

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

  • 563 users / day
  • 3.14K users / week
  • 6.97K users / month
  • 19.6K users / 6 months
  • 4 local subscribers
  • 47.9K subscribers
  • 6.84K Posts
  • 352K Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • OrangeSlice@lemmy.ml
  • mekhos@lemmy.ml
  • tmpod@lemmy.pt
  • BE: 0.19.10
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org