hey /g/, is this good enough for a first project or am I doomed to fail? https://github.com/footvaalvica/simfin
So basically a value that has history?
Seems easy enough, using json with python 3 is really easy and straightforward.
Some things that I think would be great for you to do OTOH:
-separate the different actions (add, remove etc.) to functions/methods
-add error handling with exceptions (what if someone inserts non-int values to the dialog of how much money one inserts/removes)
-remove possibility to go to negative funds, unless you implement a credit system of some sort.
-perhaps encapsulate your "bank" account as a class, so that you don't end up with a metric fuckton of variables. Also good practice for learning.
Then probably this picture dates back to the day when OS X still had paid updates, windows fucked your shit up 12 times a day and linux updates introduced new features instead of fixing old bugs.
christ stop fucking sperging, its just a picture.
people never actually complained about windows updates until windows 10 came and currysoft started putting it's brown unwashed dick in everyone's plate.
oslo it's "paid"
It's not an update, it's an entirely new OS. Snow Leopard and Lion are two different versions, just like Windows 95 and Windows 98. People paid for Windows 98, right?
OSX is literally perfect in every way. You will NOT win this.
It looks like the code fulfills its very basic requirements.
"var", "x", and "y" are shitty, non-descriptive variable names. Rename them to something that's actually descriptive and clear, like "action" and "amount", or something that's indicative of what they actually are.
Why are you converting the values to int? Shouldn't they be a float rounded to 2 decimal places, if we're talking about currency?
Follow the stylistic conventions for Python. Indentation should be done with 4 spaces, not hard tabs.
Add exception handling for when someone inputs something other than the basic actions you have here, possibly re-promting them for input maybe?
var = json.loads(open('simfin.json').read())
var = var["var"]
moneyaddrm = json.loads(open('simfin.json').read())
moneyaddrm = moneyaddrm["moneyaddrm"]
whenaddrm = json.loads(open('simfin.json').read())
whenaddrm = whenaddrm["whenaddrm"]
This is bad.
>All you guys think about is having a dick up your butt. You don't have brain capacity to make reasoned and informed choices
Arguing with you is pointless because the only thing you do is ad hominem.