Message from @DanielKO

Discord ID: 391751125147058177


2017-12-17 00:34:39 UTC  

https://cdn.discordapp.com/attachments/372508286529961996/391750004760641546/Null.png

2017-12-17 00:35:20 UTC  

so given:
int foo(int x, int y)
{
if (y <= 0)
{
return x;
}
if (x <= 0)
{
return y;
}
if (x >= y)
{
return x+foo(x - 3, y);
}
if (x < y)
{
return y+foo(x, y - 2);
}
}

2017-12-17 00:35:54 UTC  

^
above code is C++

foo(X,Y,Z) :-
(Y=0;Y<0),
Z is X, !.

foo(X,Y,Z) :-
(X<0;X=0),
Z is Y, !.

foo(X,Y,Z) :-
(X=Y;X>Y),
K is X-3,
foo(K,Y,S),
Z is S + X.

foo(X,Y,Z) :-
X

2017-12-17 00:36:09 UTC  

ME🔫

2017-12-17 00:36:15 UTC  

jesus

2017-12-17 00:36:22 UTC  

Also, why not a switch statement for C++?

2017-12-17 00:36:46 UTC  

This is HelloWorld

2017-12-17 00:36:47 UTC  

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

2017-12-17 00:36:52 UTC  

This is in BrainFuck

2017-12-17 00:37:04 UTC  

```cpp
int foo(int x, int y)
{
if (y <= 0)
return x;
if (x <= 0)
return y;
if (x >= y)
return x+foo(x - 3, y);
else
return y+foo(x, y - 2);
}```

2017-12-17 00:37:12 UTC  

@Legiondude cuz I was lazy

2017-12-17 00:37:29 UTC  

What's the tags to encapsulate code in Discord's formatting @DanielKO ?

2017-12-17 00:37:45 UTC  

\`\`\`cpp
code here
\`\`\`

2017-12-17 00:38:07 UTC  

```BrainFuck >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++. ```

2017-12-17 00:38:20 UTC  

```
cout<<"Prolog is Weird"<

2017-12-17 00:38:36 UTC  

Try "bf"

2017-12-17 00:38:49 UTC  

```bf >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++. ```

2017-12-17 00:38:51 UTC  

nope

2017-12-17 00:38:57 UTC  

probably doesn't exist for BrainFuck

2017-12-17 00:39:01 UTC  

it is just a meme language

2017-12-17 00:39:06 UTC  

\`\`\`bf
code here, new line you faggot
\`\`\`

2017-12-17 00:39:19 UTC  

```bf
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++.
```

2017-12-17 00:39:21 UTC  

shit

2017-12-17 00:39:23 UTC  

it does work

2017-12-17 00:39:37 UTC  

so what did you guys think of prolog?

2017-12-17 00:39:41 UTC  

cancer

2017-12-17 00:39:51 UTC  

exactly

2017-12-17 00:39:59 UTC  

It does its job, I don't think I'll ever use it.

2017-12-17 00:40:03 UTC  

```prolog
foo(X,Y,Z) :-
(Y=0;Y<0),
Z is X, !.

foo(X,Y,Z) :-
(X<0;X=0),
Z is Y, !.

foo(X,Y,Z) :-
(X=Y;X>Y),
K is X-3,
foo(K,Y,S),
Z is S + X.

foo(X,Y,Z) :-
X

2017-12-17 00:40:42 UTC  

So is it time to poke JDM for a CompSci channel?

2017-12-17 00:41:01 UTC  

#geeks

2017-12-17 00:41:50 UTC  

```scala
import scala.collection.mutable

object MyClass {
def main(args: Array[String]) {
val argsLength = args.length - 1
val m = mutable.LinkedHashMap[Int, String]()

for(i <- 0 to argsLength) {
m += (i -> args(i))

}
m.foreach((kv: (Int, String)) => println(kv._1 + ":\t" + kv._2))

}

}
```

2017-12-17 00:42:12 UTC  

This is the library Discord uses: https://highlightjs.org/static/demo/

2017-12-17 00:43:04 UTC  

cool

2017-12-17 00:43:41 UTC  

@JDM_WAAAT The votes have been cast! We need a #geeks channel

2017-12-17 00:44:05 UTC  

https://cdn.discordapp.com/attachments/372508286529961996/391752377662701571/1513460299299.png

2017-12-17 00:44:11 UTC  

now you guys want some real cancer code?

2017-12-17 00:44:12 UTC  

Only a cuck would say that

2017-12-17 00:44:22 UTC  

heh

2017-12-17 00:44:37 UTC  

Maybe have a hobbies category and put stuff like <#385307110813990913> and #code in there