October 15, 201312 yr I have done a lot of studying on the basics of Javascript. It seems like a very good language to help you communicate with the user. It can also do calculations, give certain information when required and so on. I have created my own "help guide" on the basics of Javascript from a really good tutorial and I think I'm good on the basics. Now what I would like to do is to move on to the Object Oriented part of Javascript. Again I have done a lot of research and there is a mountain of tutorials, help guides, books etc on OOP within Javascript but I have yet to come accross any information on it's practical uses. I'm not talking about the general uses of Javascript but specifically on OOP. Before I jump in and start learning I would be interested to know what can be done in OOP. What can be made and what can be achieved. So my question is, what practical are the practical uses of OOP within Javascript? Any information would be appreciated, thanks.
October 15, 201312 yr Without getting into the details, you will benefit from most of the generic OOP benefits such as encapsulation, inheritance (though it is not strictly pure inheritance), code reuse etc. After the 'basics' of javascript I personally would start learning how to be a good functional programmer as Javascript is primarily a functional programming language - where functions are treated as first class citizens.
October 15, 201312 yr Author Thanks for your response. How then would I go about becoming a good functional programmer? Bearing in mind I'm a beginner where would be the best place to start?
October 15, 201312 yr Javascript is a front end language. That means that it processes on the users computer rather than the server, this could mean quicker site speed. The OOP stuff can include drag and drop elements on page and it is a useful part to learn
October 17, 201312 yr JavaScript doesnt have objects in the traditional sense. For that try looking at prototypes in regards to JavaScript. It may also help your learning if you study a more traditional OOP language like PHP to see how they differ. What can be done with OOP is really up to you but it really helps with code re-use I.e. Having a peoce of code that you can re-use in another project can be beneficial. Also JavaScript is not client side only now, it can be used server side with technology like Node.js.
Create an account or sign in to comment