So I’ve been programming for a little under a year now, and I’ve taught myself parts of Python, PHP, and Javascript. I’m really trying to become a better programmer and understand the theory behind programming (which seems, in essence, manipulation of information).
Basically it seems to write good code – it must be modular – this reduces complexity of programs, which in turn makes them easier to read and reproduce similar effects. This uses functions and classes.
What is the difference between a function and a class? It seems like they are both something that can have an argument passed through to it – I understand that a class is “higher” than a function.
What is a namespace? How does it differ from a variable? A data structure? Where can I find resources on this sort of information? I’ve looked on the internet, but a lot of it seems like gobblygook. I also already have my bachelor’s, so I am not looking to go back for a second degree. I just want to become a better programmer at this point. I’ve done enough “hacking” that I get the basic concept, but the theoretical underpinnings still aren’t all there.
Any advice would be helpful.
Part of the problem with the question (which the relevancy police will probably be closing shortly) is that a lot of the terms you’re using have different meanings depending on the language paradigm you’re using. A function in PHP is a different beast from a function in JavaScript.
I recommend starting with “JavaScript: the Good Parts” for an understanding from the particular perspective of someone working in JS.