So, I'm aware that there are previous similar
questions. However, I'm pretty sure I've narrowed it down to two - I just can't choose which!
I'd basically like to learn how to program, and in a way using best practices - I've heard object-oriented programming is good, for example, so would like to learn what it is and how to best program in that way. I've got a bit of experience with PHP, but have mostly forgotten it all by now (last time used? 6 months ago), and was never particularly proficient in the first place. Plus I've heard it's very difficult to write good code with PHP.
I'd mainly use whichever language on the web, although if it can do cool things with my computer (either my Mac (OSX) or PC), that would be a bonus. But learning good programming practices, writing clean code etc is my main priority. I'm not looking to learn a framework, I'd rather learn how to program and how to work with the language before doing so.
So, which one is best for me? And any recommended books for someone who will basically be an absolute beginner? Or is there a better language for what I want to do?