Comment on: Friendly Reminder: foreach keyword in C# allocates memory in Unity
1 19 Jun 2016 06:03 u/draco_nite in v/programmingComment on: Policheck - Remove the term "whitelist"
Remind me to replace "whitelist" with "aryanlist" and "blacklist" with "niggerlist" just to piss these fucks off.
Comment on: Why can't programmers... Program?
derp
Comment on: Why can't programmers... Program?
Python FizzBuzz
def fizzbuzzer(n):
if n % 3 == 0 and n % 5 == 0:
return "FizzBuzz"
elif n % 3 == 0:
return "Fizz"
elif n % 5 == 0:
return "Buzz"
else:
return n
nums = list(range(1, 100))
for i in range(0, len(nums)):
print(fizzbuzzer(nums[i]))
I have learned Python entirely on my own time. I think this took me about 10 minutes, maybe less, wasn't really counting.
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
If you can't create a scene that isn't in the global list, then one wonders what the point of the parameter is.
The point of the parameter is that pretty much everyone has told me "global vars are bad, mmkay?"
Seems a bit strange to use exception handling to know whether the command is recognized or not.
Thanks for finding that, I've been trying to get rid of them, I was mostly using them when I didn't really know any other way to fix the problem I was having at the time.
But I wasn't sure if spells were added elsewhere as well.
Unless I've misunderstood you, every single spell in the game (currently one) should be in spells.py
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
Also I do plan on making a simpler drug trading feature at some point
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
Is there an easy way to compile Python 3 to run on a calculator?
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
Just a small nitpick: new doesn't work in Python 3.
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
Oh also XP I need to add that
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
I'm guessing the lambdas somehow make it so I'm not just increasing the value in the dict? I tried it with a dict first, it only increased the dict value.
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
If someone buys me a devkit after I finish this, sure.
Comment on: Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
git bisect
Wow, that's convinced me to change how I use git.
Bored? Go over this text-based RPG I'm making. Tell me exactly how awful my coding is.
12 20 comments 25 Apr 2016 06:31 u/draco_nite (..) in v/programmingComment on: I've reached a point in my project where I think I could get my coding skills critiqued. Where (besides here) could I post my project to get feedback?
It's several different files
Comment on: I've reached a point in my project where I think I could get my coding skills critiqued. Where (besides here) could I post my project to get feedback?
Python, and I want to figure out a way to host it that's not links to multiple pastebins and not a .rar file.
I've reached a point in my project where I think I could get my coding skills critiqued. Where (besides here) could I post my project to get feedback?
9 12 comments 19 Apr 2016 21:57 u/draco_nite (self.programming) in v/programmingComment on: Creating an AI that writes and improves programs
I got high once and wrote a program that wrote part of itself. All it did was open a file, write a hello world program, then import itself and call the hello world function, but it was still funny as hell to me.
Comment on: When I expain to the customer that their SDK is broken
As someone who's been coding in Python using only standard libraries and shit I've made, how do I not become this guy when I learn to use whatever a SDK is?
Comment on: pyNES | Write NES games in Python
shit
I might just need to figure out how I can turn my text-based rpg into something non-text-based
Comment on: Sortingh.at is a tool that will guide you to get started making your first game, custom tailored to what you're actually want to create.
A tool by the Quinnspiracy
You...you know what site you're on, right?
Comment on: New subverse - /v/NoobProgramming
Good point. I guess start using it when this one gets overflowed with noob questions?
So...just use the good ole (int i; i < whatever; i++) then?