r/shittyprogramming • u/[deleted] • Oct 28 '21
r/shittyprogramming • u/zeugma25 • Jun 06 '16
I've been told to expect some penetration testing by a third party over the next few weeks. I've never even had a girlfriend. How worried should I be?
r/shittyprogramming • u/GeneReddit123 • Feb 26 '18
Help... I wrote FizzBuzz, implemented iterative Fibonacci, defined a binary tree, and installed Node. My website still isn't making any money. What am I doing wrong?
r/shittyprogramming • u/the_real_agnostic • Dec 19 '16
Help! I'm looking for a regular expression that will match a JPEG file if it contains a picture of a dog
Surely you shouldn't parse HTML with regex, but this is JPEG.
r/shittyprogramming • u/irbilldozer • Feb 20 '16
I poured this all over my laptop and I'm still not able to use some of my variables in my method, should I try another flavor?
r/shittyprogramming • u/phaeilo • Jul 30 '14
This piece of quality code just popped up on my Facebook feed.
r/shittyprogramming • u/[deleted] • Apr 15 '16
My server is in a church. Can I still use daemons?
r/shittyprogramming • u/ilmbc15 • Oct 02 '16
I don't think I'm ready for programming yet. Does anyone have any tutorials on amateur gramming?
r/shittyprogramming • u/ILikeLenexa • Jan 29 '16
Trumpscript - A programming language based on Donald Trump
r/shittyprogramming • u/[deleted] • Dec 02 '15
Pls critique my code style
Of late I've become dissatisfied with statements like
x += 5;because they seem to me to be insufficiently self-documenting. So I've begun factoring all my operations like this into self-documenting functions, so the above, for example becomes
int giveMeAnIntegerAndIllAddFiveToIt(int x)
{
return x + 5;
}But in the end, is
x = giveMeAnIntegerAndIllAddFiveToIt(x);any better? There's still far too much going on here that isn't (self-)documented. Clearly further factorization is needed:
void giveMeAPointerToAnIntegerAndIllAssignANewValueToItItBeingTheVariableNotThePointerAlsoPleaseProvideTheNewValueYouWishToAssign(int *x, int newValue)
{
*x = newValue;
}So now the original statement would look like:
giveMeAPointerToAnIntegerAndIllAssignANewValueToItItBeingTheVariableNotThePointerAlsoPleaseProvideTheNewValueYouWishToAssign(&x, giveMeAnIntegerAndIllAddFiveToIt(x));Much clearer. But I'm still worried that there might be something going on here that isn't self-documented. I don't want someone else to run my code and say, "Whoa, I wasn't expecting that to happen!" Is there anything else I can do to avoid such ambiguities?
r/shittyprogramming • u/[deleted] • May 05 '18
I have ascended in managing git on a phone.
r/shittyprogramming • u/devtimi • Apr 20 '18
From an actual programming forum, users totally ignorant of source control software making up answers
r/shittyprogramming • u/_ewar • Dec 12 '14
Pseudo-random is not good enough, we need TRUE randomness
r/shittyprogramming • u/novalex • Jul 23 '15
I guess that's one way to do it, W3Schools...
r/shittyprogramming • u/[deleted] • Nov 21 '18
Who even needs the " + " simbol
Sum ( a , b) {
if( a == 1 && b == 2){
return 3;
}else if ( a == 1 && b==3) {
return 4;
}else
print("Unable to sum numbers not found")}