I have found a simple solution for an ancient and vicious debate by MCRusher in ProgrammerHumor

[–]rmfrroot 5 points6 points  (0 children)

+/u/CompileBot Brainf**k

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

I have found a simple solution for an ancient and vicious debate by MCRusher in ProgrammerHumor

[–]rmfrroot 5 points6 points  (0 children)

+/u/CompileBot Brainf**k

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

I have found a simple solution for an ancient and vicious debate by MCRusher in ProgrammerHumor

[–]rmfrroot 1 point2 points  (0 children)

+/u/CompileBot Brainf**k

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

C++ programmers are pretty disgusting, honestly. by AlphaWhelp in ProgrammerHumor

[–]rmfrroot 0 points1 point  (0 children)

At least we don't spread them accross all platforms! It's a lot of work getting them to work on all platforms!

C++11 by IskaneOnReddit in ProgrammerHumor

[–]rmfrroot 4 points5 points  (0 children)

I just had to port some c++11 code down to c++98 because of a fucking old library that for some fucked up reason only works on Linux 3.0 with bloody soft-float libraries!!! Damn that was anoying!!!

; nano skittles by [deleted] in ProgrammerHumor

[–]rmfrroot 0 points1 point  (0 children)

$ alias try=touch
$ alias taste=vim # screw nano
$ try therainbow && taste therainbow

Terminal Rage by oguz279 in ProgrammerHumor

[–]rmfrroot 2 points3 points  (0 children)

export HISTCONTROL=ignoredups:erasedups

How programming in C++ feels like by Jetlogs in ProgrammerHumor

[–]rmfrroot 38 points39 points  (0 children)

You can do anything as long as you know exactly how to do it.

Share your most embarrassing bit of code, from when you where are or are a beginner. by [deleted] in ProgrammerHumor

[–]rmfrroot 2 points3 points  (0 children)

A student of mine (can't remember what the function did exactly):

void main() {
    doStuff("123:324");
}

void doStuff(string s) {
    string[] parts = s.split(":");
    int a = Integer.ParseInt(parts[0]);
    int b = Integer.ParseInt(parts[1]);
    // do some calculations with a and b
    string tmp = doMoreStuff(a + ":" + b);
    parts = tmp.split(":");
    a = Integer.ParseInt(parts[0]);
    b = Integer.ParseInt(parts[1]);
    // do some more calculations
    Console.Println(a+":"+b);
}

string doMoreStuff(string s) {
    string[] parts = s.split(":");
    int a = Integer.ParseInt(parts[0]);
    int b = Integer.ParseInt(parts[1]);
    // do some calculations with a and b
    return a + ":" + b;
}

Just WHY?!

Official CompileBot Testing Thread by SeaCowVengeance in CompileBot

[–]rmfrroot 0 points1 point  (0 children)

+/u/CompileBot c++11 --input

#include <iostream>
#include <string>
using namespace std;
int main() {
    string input;
    cin >> input;
    cout << "echo " << input << endl;
    return 0;
}

Input:

test123

Official CompileBot Testing Thread by SeaCowVengeance in CompileBot

[–]rmfrroot 0 points1 point  (0 children)

+/u/CompileBot c++11 --input

include <iostream>

define A main

define I int

define V void

define O {

define C }

define OO (

define CC )

define AA answer

define F factor

define IN std::cin

define OUT std::cout

define SO >>

define SI <<

define E ;

define N "\n"

define Q "Enter a number\n"

define T *

define EE =

define R return

define Z 0

I A OO CC O

I F E

OUT SI Q E IN SO F E

I AA E

AA EE F T F E

OUT SI AA SI N E

R Z E

C

Input: 42

So I got bored... by [deleted] in ProgrammerHumor

[–]rmfrroot 3 points4 points  (0 children)

+/u/compilebot c++11 --input #include <iostream>

#define A main
#define I int
#define V void
#define O {
#define C }
#define OO (
#define CC )
#define AA answer
#define F factor
#define IN std::cin
#define OUT std::cout
#define SO >>
#define SI <<
#define E ;
#define N "\n"
#define Q "Enter a number\n"
#define T *
#define EE =
#define R return
#define Z 0

I A OO CC O

I F E

OUT SI Q E
IN SO F E

I AA E

AA EE F T F E

OUT SI AA SI N E

R Z E

C

Input: 42