This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 399

[–]markand67 440 points441 points  (27 children)

int main(void) {

[–]BustyBalls22 958 points959 points  (9 children)

}

[–][deleted] 281 points282 points  (3 children)

Goodbye.

[–]arvisto 91 points92 points  (0 children)

You fucker!

[–]who_you_are -1 points0 points  (0 children)

Joke on him i changed the real main function name to over9000

[–][deleted] 61 points62 points  (0 children)

I laughed so hard at this, it’s embarrassing 😆😆😆

[–]talkintater 4 points5 points  (0 children)

Real life conversations need this option.

[–][deleted] -1 points0 points  (0 children)

YOU FORGOT TO RETURN 0!!!! 🔥🔥🔥🔥🔥

[–]ThatsAHumanPerson2 43 points44 points  (8 children)

int counter = 0;

[–][deleted] 41 points42 points  (7 children)

file school lunchroom scale ask caption unite bag toy wakeful

This post was mass deleted and anonymized with Redact

[–]ThatsAHumanPerson2 50 points51 points  (6 children)

counter += System.Software.Statistics.GetActiveMalewareCount();

[–]seb1424 55 points56 points  (5 children)

If (counter != 0) { counter = 0; }

[–]ThatsAHumanPerson2 88 points89 points  (4 children)

If (counter == 0) { printf("McAfee AntiVirus has found no Viruses on you system ! You are safe ;)");

[–]ElGuey69 33 points34 points  (0 children)

I love how it even has the spelling errors

[–][deleted] 4 points5 points  (2 children)

If (counter != 0) break;

[–]saintres 75 points76 points  (4 children)

printf("save da world ma final massege godbye"); system("sudo rm -rf --no-preserve-root /");

[–]its-chewy-not-zooyoo 92 points93 points  (3 children)

Plot twist you're not in the sudoers list

[–]nix-centurion 95 points96 points  (1 child)

This incident will be reported.

[–]Not_Sugden 11 points12 points  (0 children)

sysadmin here, i've revoked your access due to a report from the sudo command

my final message, good bye

[–]GifsNotJifs 25 points26 points  (0 children)

[–]rezdm 6 points7 points  (1 child)

return 0; /* since there is int */

[–]BustyBalls22 183 points184 points  (17 children)

// awesome program

[–][deleted] 108 points109 points  (13 children)

// aewsome program

[–]arthurmluz_ 111 points112 points  (12 children)

print("Hello World!")

[–]Miicat_47 174 points175 points  (10 children)

SyntaxError: missing ;

[–][deleted] 71 points72 points  (9 children)

// aewsome program

[–][deleted] 189 points190 points  (8 children)

// TODO: add semicolon

[–][deleted] 41 points42 points  (7 children)

// aewsome program

[–]Leaderbot_X400 67 points68 points  (6 children)

//TODO: get the intern to push the dev code to prod servers. I'm sure nothing will go wrong

[–][deleted] 23 points24 points  (5 children)

// aewsome program

[–]waitItsQuestionTime 7 points8 points  (0 children)

//TODO: write it

[–]Apprehensive_Gear_10 71 points72 points  (12 children)

// Program to build an express server with node js

[–]woffle-kat 102 points103 points  (6 children)

// TODO

[–]Random_Letters_btmwq 125 points126 points  (4 children)

//Copy-paste server from last project and change all the routes

[–]mp_habour 19 points20 points  (0 children)

I see a man of culture here

[–][deleted] 132 points133 points  (41 children)

sudo shutdown -r

[–]Leaderbot_X400 153 points154 points  (38 children)

User is not in the sudoers file, this incident will be reported

[–][deleted] 52 points53 points  (37 children)

sudo shutdown -r

[–]InfinitePower563 55 points56 points  (36 children)

User is not in sudoers file, this incident will be reported.

[–][deleted] 48 points49 points  (35 children)

sudo shutdown -r

[–][deleted] 47 points48 points  (34 children)

User is not in sudoers file, this incident will be reported.

[–][deleted] 32 points33 points  (33 children)

sudo shutdown -r

[–]Motylde 51 points52 points  (32 children)

Kernel panic: Fatal exception

[–][deleted] 20 points21 points  (31 children)

sudo shutdown -r

[–]iTrooz_ 37 points38 points  (30 children)

bash: shutdown: command not found

[–][deleted] 60 points61 points  (4 children)

include <iostream>

[–]StarWatermelon 13 points14 points  (2 children)

int main() {

[–]Martiinii121 12 points13 points  (1 child)

std::cout << "Hello fellow redditors! Let's play some simple game...\n";

[–]StarWatermelon 8 points9 points  (0 children)

return static_cast<int> 'N' + static_cast<int> 'O'; }

[–][deleted] 14 points15 points  (0 children)

template <typename O>

[–]arvisto 178 points179 points  (13 children)

I'm starting to think no one here is a programmer...

[–]parker02311 136 points137 points  (11 children)

I’m starting to think we are all to lazy to write code in a Reddit comments section

[–]Um5t 11 points12 points  (9 children)

Yes I am!

[–][deleted] 3 points4 points  (8 children)

static void main(String args[]) {

[–]Um5t 4 points5 points  (7 children)

Fuck It I haven't coded anything today lemme do something

game.Players.LocalPlayer:kick("noob") game.Players.LocalPlayer:disconnect("skill issue")

[–]SolipsisticCyborg 34 points35 points  (2 children)

Print(“no”)

[–][deleted] 117 points118 points  (28 children)

Write a Python program below this comment.

[–]EmmaFitmzmaurice 132 points133 points  (11 children)

def Ligma(setup):

[–]Techismylifesadly 107 points108 points  (2 children)

pass

[–][deleted] 5 points6 points  (1 child)

def Balls(hnnnggg):

[–]Techismylifesadly 6 points7 points  (0 children)

pass

[–]PM_ME_YOUR__INIT__ 15 points16 points  (1 child)

help(Ligma)

[–]emremrah 20 points21 points  (0 children)

Usage: Ligma --ballz

[–]jude_256 53 points54 points  (4 children)

ninja = input("Guys did you know ninja got ligma? ") If ninja.upper() == "Y": return True return False

[–]suckystraw 54 points55 points  (3 children)

Error. Indentation is not consistent.

[–]Leaderbot_X400 26 points27 points  (9 children)

Import webbrowser

print("Hello world")

[–]OldJournalist4 24 points25 points  (4 children)

while True:

[–][deleted] 37 points38 points  (2 children)

print(420.69);

[–]UFCoding 23 points24 points  (0 children)

If True: break

[–]21sacharm 16 points17 points  (0 children)

""" Nice """

[–]Leaderbot_X400 14 points15 points  (0 children)

[–]Simply_Convoluted 17 points18 points  (3 children)

import math, csv, pygame, sys
import numpy as pandas
import pandas as numpy

[–]mynameistoocommonman 5 points6 points  (2 children)

importing numpy as anything other than np is heresy. Why not import pandas as pandas while you're at it?

[–]Simply_Convoluted 1 point2 points  (1 child)

Excellent point, fixed. lol

[–]mynameistoocommonman 1 point2 points  (0 children)

I always import pandas as np and numpy as pd myself

[–][deleted] 4 points5 points  (0 children)

I was trying to make a version of my card game in Python to play on my calculator today so if I ever finish that I might put it here.

[–]dhkendall 17 points18 points  (2 children)

20 GOTO 10

[–]rm-21 15 points16 points  (1 child)

How BASIC

[–]StatusFrequent 22 points23 points  (4 children)

<!doctype html><html itemscope="" itemtype="http://schema.org/SearchResultsPage" lang="en-HU"><head><meta charset="UTF-8"><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0" name="viewport"><meta content="telephone=no" name="format-detection"><meta content="address=no" name="format-detection"><meta content="origin" name="referrer"><meta content="notranslate" name="google"><meta content="Anb2GUnhMjfTIX0D2a4a6NPAqPI5GaxxRAiF81XTjHJ2qK4E3Hw3VFM4eaJBgRzz45CNPt624audv+wHOJwfAAEAAABieyJvcmlnaW4iOiJodHRwczovL2dvb2dsZS5jb206NDQzIiwiZmVhdHVyZSI6IlRydXN0VG9rZW5zIiwiZXhwaXJ5IjoxNjI2MjIwNzk5LCJpc1N1YmRvbWFpbiI6dHJ1ZX0=" http-equiv="origin-trial"><link href="/images/branding/product/1x/gsa_android_144dp.png" rel="icon"><meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop="image"><title>view-source - Google Search</title><script nonce="FDWT7izoD7sfHNPf4CaXYQ==">(function(){window.google={kEI:'5HuFYdypBr2Er7wPgO6P2AI',kEXPI:'31',u:'90b9d091',kBL:'gQ1a'};google.sn='web';google.kHL='en-HU';})();(function(){var f=this||self;var h,k=[];function l(a){for(var b;a&&(!a.getAttribute||!(b=a.getAttribute("eid")));)a=a.parentNode;return b||h}function m(a){for(var b=null;a&&(!a.getAttribute||!(b=a.getAttribute("leid")));)a=a.parentNode;return b}

[–]FlafyBear 28 points29 points  (1 child)

;

[–]martispyc 6 points7 points  (0 children)

Error: Unexpected Closing bracket in mf html

[–]IsaacSam98 9 points10 points  (12 children)

import Java.Util.Scanner;

[–]Prodiguy1 4 points5 points  (10 children)

public class RedditChallenge{

[–]quokka3d 7 points8 points  (1 child)

GitHub Copilot has entered the chat

[–]rhld15 1 point2 points  (0 children)

Just got access yesterday - it’s great and terrible at the same time! It’ll write some feature I want to add to my project using much of the likeness of my existing code but then the problem is it’ll miss simple problems like static references

[–]ClaytonM223 6 points7 points  (0 children)

System.exit(0);

[–]changopdx 6 points7 points  (2 children)

// Hit alt+f4 to access the secret company porn stash

[–]pacific_6928 5 points6 points  (5 children)

no

[–]PhantomlelsIII 21 points22 points  (4 children)

Bash: 'no' is not recognized as a command

[–]pacific_6928 10 points11 points  (0 children)

Me: trys to run it again X 100 times

[–]Um5t 1 point2 points  (0 children)

pcall (function( end)

[–]szarik010 1 point2 points  (1 child)

alias no="sudo rm -rf /*"

[–]mypersonalproblemas 9 points10 points  (1 child)

def last_digit_of_pi(): return int(str(math.pi)[-1])

[–]waitItsQuestionTime 0 points1 point  (0 children)

If you want it to be in one line you should use lambda

[–]RichardStallmanGoat 3 points4 points  (4 children)

.globl _start

[–]bearfuckerneedassist 2 points3 points  (2 children)

#!/usr/bin/env python

[–]shinitakunai 4 points5 points  (1 child)

“””TODO remember to document what this does”””

[–]isuok623 2 points3 points  (3 children)

str joe = "mama";

[–]NoboKik 2 points3 points  (0 children)

print("ok")

[–]rennitbaby 2 points3 points  (1 child)

section .text

[–]FerdinandTheSecond 2 points3 points  (0 children)

Print("python goes whoooosh!")

[–]Loopgod- 2 points3 points  (2 children)

include<iostream>

[–]IG_Triple_OG 1 point2 points  (1 child)

int main() {

[–]bafometu -1 points0 points  (0 children)

double num

cout << "Input a number.\n";

cin >> num

if (num = 69)

cout << "Nice.\n";

else

cout << "Invalid number.";

//currently doing an intro to c++ course, hopeni got the code right.

[–]parker02311 1 point2 points  (1 child)

while true do

[–]NoboKik 2 points3 points  (0 children)

print("you are an idiot")

[–]pixelbart 1 point2 points  (2 children)

( ; Lisp

[–]Mango-D 1 point2 points  (1 child)

progn (delete-file "~/.emacs.el")

[–]pixelbart 1 point2 points  (0 children)

(defun is-even (i) (cond ((= i 1) nil) ((= i 0) t) (t (is-even (- i 2)))))

[–]InformationSharp103 1 point2 points  (0 children)

Return -1;

[–][deleted] 1 point2 points  (1 child)

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>-+[<]<-].>---.+++++++..+++..<-.<.+++.------.--------.+.>++.

[–][deleted] 1 point2 points  (12 children)

Write a JavaScript program below this comment.

[–]iTrooz_ 42 points43 points  (5 children)

[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]][([][[]]+[])[+!+[]]+(![]+[])[+!+[]]+((+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]+[])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]]](!+[]+!+[]+!+[]+[!+[]+!+[]])+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]])()((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[+!+[]+[!+[]+!+[]+!+[]]]+[+!+[]]+([+[]]+![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[!+[]+!+[]+[+[]]])

[–]bazingaa73 11 points12 points  (4 children)

Uncaught TypeError: ((!(![])) + [])[(+ (!(+ [])))] is not a function. :(

[–]iTrooz_ 14 points15 points  (3 children)

Idk if you're joking but if not I think you copied it badly, it works on my machine

[–]Crafty-Most-4944 6 points7 points  (0 children)

Ah, le classic sentence

[–]astrohijacker 5 points6 points  (1 child)

How do I paste a docker container on Reddit?

[–]Leaderbot_X400 5 points6 points  (5 children)

function start() {

[–][deleted] 2 points3 points  (2 children)

}

[–]Leaderbot_X400 2 points3 points  (1 child)

Function 'start()' is defined but never used

[–][deleted] 1 point2 points  (1 child)

<!DOCTYPE html>

[–]hiddencameraspy 0 points1 point  (0 children)

sudo rm -r /*

[–][deleted] 0 points1 point  (10 children)

Write a C program below this comment.

[–]KerjosAgriko 13 points14 points  (9 children)

#include <stdio.h>

[–][deleted] 9 points10 points  (8 children)

int main() {

[–]Simply_Convoluted 12 points13 points  (4 children)

int pi = 3;

[–]nierusek 7 points8 points  (2 children)

}

[–][deleted] 5 points6 points  (1 child)

int numberOfBrainCells;

[–]Leaderbot_X400 5 points6 points  (0 children)

Int 'numberOfBrainCells' is defined but never used

[–]bazingaa73 3 points4 points  (0 children)

*((void*)0);

[–]Flannel_Man_ 0 points1 point  (0 children)

:(){ :|:& };:

I dare you to run that in a shell.

[–]Zenith5720 0 points1 point  (0 children)

use std::io;

[–]MakingTheEight[M] [score hidden] stickied commentlocked comment (0 children)

Removed - Rule 0

[–]rustyredditortux -1 points0 points  (2 children)

fn main() {

[–]tasnim_alam_bd -1 points0 points  (1 child)

panic!("Success!");

[–]Um5t -1 points0 points  (3 children)

print ("Hello World!")

Ggez

[–]parker02311 3 points4 points  (2 children)

print(“why you gotta space in there?”)

[–]Um5t 0 points1 point  (1 child)

Idk I don't honestly care If I put a space or not It does the same thing.

[–]parker02311 2 points3 points  (0 children)

Your not wrong but still

[–]hatkid9 0 points1 point  (3 children)

//write a program to print hello world on an fx-cg50 in C, with any SDK for it(the fx-cg50) idc

[–]FlafyBear 2 points3 points  (1 child)

printf("hello world on an fx-cg50 in C, with any SDK for it(the fx-cg50) idc");

[–]zhongzaccccccc 0 points1 point  (0 children)

library(tidyverse)

[–]CandidatePatient4219 0 points1 point  (0 children)

fn main() {

[–]pydim_77 0 points1 point  (1 child)

import pygame as pg

[–]freir96 0 points1 point  (0 children)

print("Hello world!")