r/shittyprogramming • u/beasthacker • Jun 21 '16
super approved Emotive programming in XCode
16
u/ILikeLenexa Jun 21 '16
if(๐() == ๐)Yeah, that's not verbose for the purpose of using "๐" and no other reason.
3
26
5
u/ghillerd Jun 21 '16
can anyone explain what this does? i've been trying to figure it out but i don't know C well enough to understand all the struct and template stuff, specifically the book<hand down<knife and fork>> line.
10
u/CaffeineExperiment Jun 21 '16
It looks to be purposefully complicated, but I'm pretty sure it returns the evaluation of the dice function, which itself returns a random number. The rest is fluff.
5
u/ghillerd Jun 21 '16
yeah i thought that was the case, but i also figured the struct stuff might have been some seed manipulation stuff but i guess not. it looks like it also prints out a bunch of fruit but im not sure if it does anything fancy with them or just lists them.
7
u/Lystrodom Jun 21 '16
Yeah just prints poop then a bunch of fruit then a random number, I believe.
2
3
Jun 21 '16
[removed] โ view removed comment
6
u/mnbvcxzlk Jun 21 '16
You're right. Returning a random number like this is the glaring problem. I didn't even notice the emojis until someone pointed it out /s
1
0
0
Jun 21 '16
[deleted]
2
u/ghillerd Jun 21 '16
i've used c++ quite a lot and i still don't really know the difference. i was under the impression it's something to do with c++ having a lot more standard libraries or something?
1
u/Kaerius Jun 21 '16
Those fun objects that you get to use in C++? Super fun and awesome and useful. Yeah, C doesn't have those.
1
u/BowserKoopa Jun 22 '16
Have you even written any C?
1
u/Kaerius Jun 22 '16
Yes. C is a function oriented language, where C++ is both object and function oriented. C was pretty fun to learn, but I like Java better.
1
151
u/kerbals_must_die Jun 21 '16
The sad thing is that this code is more comprehensible than my current project at work
34
2
u/tajjet Jun 21 '16
No define ๐ฌ "?
also define ๐ฒ ๐ต::rand()
2
u/beasthacker Jun 21 '16
Oooh! Great Idea! Very emotive. I'll be sure to put this into version 0.2a!
51
u/Rhed0x Jun 21 '16
There's a programming language that consists of emojis. I've forgotten the name.
47
Jun 21 '16
62
u/jpco Jun 21 '16
there's also ๐++, which is based on both emojis and the indomitable DH Khaled
4
19
u/Rhed0x Jun 21 '16
The one I meant is called EmojiCode.
25
Jun 21 '16
I don't know what's worse. The fact that someone made an emoji programming language, or that there are two of them.
7
4
3
3
u/fojam Jun 21 '16
Looking for something a little more powerful?
How is this "more powerful"? More powerful than what? C++? okay
13
Jun 21 '16
You went to a README from an emoji programming language designed by 4chan, and took it seriously.
8
3
Jun 21 '16
Best part is they didn't even bother with .MD files in the docs folder, just plain ol' .txt files.
51
u/GaianNeuron Jun 21 '16
We spent so long figuring out if we could, that we never stopped to ask if we should.
18
17
u/HildredCastaigne Jun 21 '16
sign me the FUCK up ๐๐๐๐๐๐๐๐๐๐ good shit goเฑฆิ sHit๐ thats โ some good๐๐shit right๐๐th ๐ ere๐๐๐ rightโthere โโif i doโฦฝaาฏ soโmy sel๏ฝ ๐ฏ i say so ๐ฏ thats what im talking about right there right there (chorus: สณแถฆแตสฐแต แตสฐแตสณแต) mMMMMแทะ๐ฏ ๐๐ ๐ะO0ะเฌ ๏ผฏOO๏ผฏOะเฌ เฌ Ooooแตแตแตแตแตแตแตแตแต๐ ๐๐ ๐ ๐ฏ ๐ ๐ ๐ ๐ ๐๐Good shit
16
u/Polantaris Jun 21 '16
Shit. The title text from this is now real...
11
u/xkcd_transcriber Jun 21 '16
Title: Code Quality
Title-text: I honestly didn't think you could even USE emoji in variable names. Or that there were so many different crying ones.
Stats: This comic has been referenced 80 times, representing 0.0693% of referenced xkcds.
xkcd.com | xkcdย sub | Problems/Bugs? | Statistics | Stopย Replying | Delete
1
u/the_noodle Jun 21 '16
This image is a lot order than that comic (from like a week ago?) and is almost certainly the original thing being referenced
Edit: maybe not this exact image, it's been done before
8
u/CaffeineExperiment Jun 21 '16
Unicode variables have their uses beyond jokes, I'm sure. I'll let you know if I ever find one. For now, there's this
https://github.com/adrianblp/taylor.swift/blob/master/taylor.swift
6
u/cguess Jun 21 '16
If you're working on a Russian or Arabic (or emoji, someday it'll happen) data set it can be useful to keep track of columns and such a bit easier. Transliteration can get confusing.
2
u/UselessBread Nov 26 '16
Yes:
d$ฮฮป <- d$ฮป10 - d$ฮป15everyone who does not have ฮป or ฮ on their keyboard will hate you, but who cares about other people?
3
3
2
1
1
1
0
Jun 22 '16
[deleted]
2
u/beasthacker Jun 22 '16
That bug has already been reported. Thank you for your emotional feedback, the fix will be in v0.2a release!
0
156
u/beasthacker Jun 21 '16
And yes, this compiles.