Subject: -I'm coding in Notepad. ^_^
Author:
Posted on: 2016-07-14 10:16:00 UTC
1) And when I'm not, I'm cding in Webs.com's native HTML editor. And the reason I'm doing that is that I'm doing most of this on the computer at work, so I don't have my choice of coding editors. Also: laziness. ;)
2) and all points after: my coding knowledge is a bit haphazard. I've done curses in C++, Java, and C#, but most of the actual work I've done is cludging things together in VBA (for work) or Javascript (for fun). It's very much been a 'how do I do this thing I need to' process, so there's a lot of stuff I'm not at all familiar with.
Example: I understand the problem you're describing with the pokedex, but I don't understand your solution. I guess I need to read up on dictionaries? This is probably the change I'm most likely to make, since a) memory overhead, and b) I've had at least one incorrect entry in pokindex.
3) Wow, I don't understand at all what your functional-prgramming did there. ^^ One reason my code is so spaced out, particularly around 'digits', is that I was working out what it needed to do as I went. Which letter went where was changing frequently, so I needed to get into it easily. Note that with the Gym Code, I use the same technique but switch the order of the digits - I have no idea how I'd do that with your example.
3 repeated) ... yes, it should, and that should've occured to me.
4) Aha! I didn't knw that. Thanks!
5) The reason for at least some of my concats is that Chrome was treating + perators between numeral strings as addition. Which I didn't want in the least.
6) I... what did you just return? I have no idea what you did there. You're right that 'allowed' should be up in the top section; no reason to keep redefining it. (As to the style issue of the capital letter - yeah, I've no idea what correct styling is for Javascript or anything else; someday perhaps I'll learn.)
7) No, I'm a chemist. ^^ And most of the 1-based indexes happened by accident, where for-lops got a bit tangled up. I just didn't try to weed them out.
8) I've had problems with 'i' seeming to carry over from function to function, so tried to make all my loops use different letters; there's a loop in 'p' somewhere. 'n' showed up purely because I knew I hadn't used it yet.
9) And this comes about because I need to be able to see what a given piece is ding, I was tweaking it so much! (Technically for this I should probably have named every variable and function a random string of ten digits, to make it impossible to puzzle out what it was doing... but haha, no.)
10) ... ooh. I shall look into this immediately. Though on the flip-side, it means I'll need a 'clear team' button to make it easier to wipe clean... but I should have that anyway.
I'll reply to the HTML section later (because it means another pst to put Pokemon into), but thank you very much for this concrit! I can't promise I'll do all of it, but I'll certainly keep it in mind.
hS