dank-memes
Discord ID: 372508286529961996
121,435 total messages. Viewing 100 per page.
Prev |
Page 75/1215
| Next
Was enums missing too?
but at least visual basic isn't html
no
enums are in C#
Like I said, if you don't throw *too* hard an anyeurism
But it sounds good to the technologically illiterate
it didn't have lambas, those are like the one thing in JavaScript I actually liked
I T W O N T S T O P
Programming in dank memes<:think_woke:378717098681171988>
it is dank
My college made me take VB and HTML before they let me into the class for magical Javascript and ASP.NET
https://www.destroyallsoftware.com/talks/wat Watch this lol
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
What's the tags to encapsulate code in Discord's formatting @DanielKO ?
\`\`\`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
```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))
}
}
```
This is the library Discord uses: https://highlightjs.org/static/demo/
cool
@JDM_WAAAT The votes have been cast! We need a #geeks channel
now you guys want some real cancer code?
Only a cuck would say that
heh
Maybe have a hobbies category and put stuff like <#385307110813990913> and #code in there
Fuck firearms, it's lame.
wow rude
Teamwork
๐
We need a #geeks and a #games channel.
^^^
Only soccer moms and the weak fear everyday tools like firearms.
And a #meta channel too.
Been saying that since I joined.
la $s5, ans6
addi $t8, $zero, 3
addi $t9, $zero, 2
div $t1, $t8
#addi $s5, $HI, 0
mfhi $s5
add $s5, $s5, $t7
mult $s5, $t8
#addi $s5, $LO, 0
mflo $s5
div $s5, $t5
#addi $s5, $LO, 0
mflo $s5
sub $s5, $t3, $s5
la $a0, answer6
li $v0, 4
syscall
la $a0, 0($s5)
li $v0, 1
syscall
la $a0, space
li $v0, 4
syscall
AND A MUSIC BOT
how is that code?
Looks like JDM already checked out
```MIPS
la $s5, ans6
addi $t8, $zero, 3
addi $t9, $zero, 2
div $t1, $t8
#addi $s5, $HI, 0
mfhi $s5
add $s5, $s5, $t7
mult $s5, $t8
#addi $s5, $LO, 0
mflo $s5
div $s5, $t5
#addi $s5, $LO, 0
mflo $s5
sub $s5, $t3, $s5
la $a0, answer6
li $v0, 4
syscall
la $a0, 0($s5)
li $v0, 1
syscall
la $a0, space
li $v0, 4
syscall
```
wow
I put this in a #nsfw channel
Or just join jdm's other discord
that fggot ha his own?
He has a youtube channel too
Getting back on topic
lol
fag only comes here to complain about people talking in <#377519392956874752>
lol
like JDM
any of you guys ever had to program in assembly?
Yes.
that was most cancer
Worst assembly I had to deal with was CUDA/PTX asm.
lol
Had to literally edit the assembly by hand because the compiler was generating wrong code.
wow
that sucks
Back in the CUDA 1.0 days.
121,435 total messages. Viewing 100 per page.
Prev |
Page 75/1215
| Next