Message from @Legiondude
Discord ID: 391750716307275776
wat is a classic
Yeah
>javascript
kek
Basically the class was for making basic websites from scratch in ASP.NET, so we spent 2/3rds of it going over the basics of HTML and Javascript <:what:382980756139409409>
that was pretty good
you guys want to see some prolog code?
sure
sure
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);
}
}
^
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
ME🔫
jesus
Also, why not a switch statement for C++?
This is HelloWorld
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++.
This is in BrainFuck
```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);
}```
@Legiondude cuz I was lazy
\`\`\`cpp
code here
\`\`\`
```BrainFuck >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++. ```
```
cout<<"Prolog is Weird"<
Try "bf"
```bf >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++. ```
nope
probably doesn't exist for BrainFuck
it is just a meme language
\`\`\`bf
code here, new line you faggot
\`\`\`
```bf
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++.
```
shit
it does work
so what did you guys think of prolog?
cancer
exactly
It does its job, I don't think I'll ever use it.
```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
So is it time to poke JDM for a CompSci channel?
#geeks