halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
balderdash to [email protected] • 2 years ago

What are some harmless ways to prank someone?

message-square
76
fedilink
95
message-square

What are some harmless ways to prank someone?

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

    • @[email protected]
      link
      fedilink
      English
      113•2 years ago

      They asked for harmless pranks - this would cause murders.

      • raubarno
        link
        fedilink
        33•2 years ago

        This is why airplanes crash

    • balderdashOP
      link
      fedilink
      68•2 years ago

    • @[email protected]
      link
      fedilink
      39•
      edit-2
      2 years ago

      deleted by creator

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

      If your going that evil
      #define { {}{

      • @[email protected]
        link
        fedilink
        2•
        edit-2
        2 years ago

        deleted by creator

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

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

          • @[email protected]
            link
            fedilink
            2•
            edit-2
            2 years ago

            deleted by creator

[email protected]

[email protected]

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]

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?

  • [email protected]
  • [email protected]
  • [email protected]

Looking for a community?

  • Lemmyverse: community search
  • sub.rehab: maps old subreddits to fediverse options, marks official as such
  • [email protected]: a community for finding communities

Icon by @[email protected]

  • 386 users / day
  • 2.32K users / week
  • 6.64K users / month
  • 19.2K users / 6 months
  • 48K subscribers
  • 7.03K Posts
  • 349K Comments
  • Modlog
  • mods:
  • Evan
  • mekhos
  • tmpod
  • OrangeSlice
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org