In a class-based language, first you describe a rectangle, describe a red rectangle as a type of rectangle, describe blue and big blue rectangles, and now that you have described them, you must create instances of them, and only then do you have the rectangles. Big blue rectangle? Copy blue rectangle and make it big. Want a blue one? Copy rectangle again give it a blue. Let's say you want a red rectangle, you copy the rectangle and give it the property red. For example, in a prototypical language, you think of a rectangle, and define it. Whereas other popular languages use classes, which focus on thinking in the abstract, Javascript's prototypes allow you to focus on thinking in the concrete. Being prototype based, it provides an intuitive approach to OOP. Prototype based Object Oriented System Being object oriented, it supports the predominate and powerful programming approach. After all, programming languages are just some utilities for the human mind to interface with the computers, and there are more suitable tools for different tasks, and you should master the "Pythonic way" (after you already have adequate experience in computer programming) instead of locking your mind too close to the "Pythonic way" as a first-time learner. ![]() ![]() Like any programming languages and/or frameworks, I'd recommend first-time learners to learn less opinionated ones first to open up your mind, then learn some of the more opinionated ones to increase productivity for specific fields of works. Both the language itself and its community have made it quite clear that you should do everything the "Pythonic way" to get the best results, that it feels more like an opinionated framework instead of a general-purpose programming language, which means if you are a first-time learner and getting too "tuned" to the "Pythonic way" it will be much harder for you to learn other less-opinionated languages compared to the other way around. Too opinionated for a general-purpose programming language While it's a good language to learn and use after you have mastered a couple of other less rigid programming languages, it's definitely not good for first-time learners.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |