r/shittyprogramming • u/z500 • Jul 21 '15
r/shittyprogramming • u/AsianFeng • Nov 11 '15
The dankest programming language: greentext
Hello shitty programmers, a few weeks ago I was inspired by this thread and decided to take it to the next level and make a memearrow-based language a real thing. (Shout outs to everyone in that thread for all those ideas ayy lmaoI swear I didn't steal them ) So here it is, my new programming language called greentext. Code and docs on Github
A basic rundown:
:^) = true, :^( = false
>mfw = print
>be foo like 1234 = variable assignment
>implying = if statement
>inb4 = for loop
>dank memes = main function
>wewlad foobar = function declaration
Yes you can write actual code in this language. Here's fizzbuzz:
>dank memes
>inb4 i from 0 to 100 by 1
>implying i % 15 is 0
>mfw "fizzbuzz", i
>or not
>implying i % 3 is 0
>mfw "fizz", i
>done implying
>implying i % 5 is 0
>mfw "buzz", i
>done implying
>done implying
>done inb4
>tfwLet me know what you guys think :^)
r/shittyprogramming • u/RenaKunisaki • Nov 09 '14
#ProTip #BestPracticings Protip: How to speed up your C++ programs
Just add this line at the beginning of main():
double speed;that will tell the compiler that you want it extra fast. It should produce a notable improvement in execution speed.
r/shittyprogramming • u/QuantumQuantonium • Jun 03 '18
If this post gets INT_MAX upvotes I will crash Reddit for a day
r/shittyprogramming • u/fwilson42 • Feb 19 '15
TIL that the string "Segmentation fault" is located at the very beginning of memory in C
Try it for yourself:
#include <stdio.h>
int main() {
char* myString = 0;
printf("%s\n", myString);
}r/shittyprogramming • u/Asmodis1 • Dec 20 '18
Sorting German list entries by their English names...
r/shittyprogramming • u/SumAlias • Aug 15 '17
Generating $0 cause you left the test ads on
r/shittyprogramming • u/LiamWonaTech • Apr 08 '21
I don't see what's wrong here, I did what's needed to be done
r/shittyprogramming • u/CopperPanMan • Apr 06 '20
Don't know if this counts, but fixed a problem that definitely didn't exist by using Python to make my microphone control my mouse and keyboard (via pitch and volume alone)
r/shittyprogramming • u/bchr • Oct 29 '22
Swift devs why do you goes from objc if you are coding not like this?
r/shittyprogramming • u/luca289 • Oct 06 '23
Why people use self? Can't they just use a cool name like martin? Are they stupid?
r/shittyprogramming • u/[deleted] • Dec 11 '16
If I put these on my computer, will it improve my algorithm efficiency at runtime?
r/shittyprogramming • u/hoochyuchy • Oct 29 '14