/explore
|
You are here |
beej.us | ||
| | | | |
manuel.kiessling.net
Let's talk about object-orientation and inheritance in JavaScript. The good news is that it's actually quite simple, but the bad news is that it works completely different than object-orientation in languages like C++, Java, Ruby, Python or PHP, making it not-quite-so simple to understand. But fear not, we are going to take it step by step. |
|
| | | | | ||
| | | | |
gameprogrammingpatterns.com
[AI summary] This chapter explores the use of prototypes and delegation in data modeling, particularly in game development. It discusses how traditional object-oriented approaches, such as class hierarchies and inheritance, can be compared to JavaScript's prototype-based model. The chapter also highlights the benefits of using delegation for reusing data, such as reducing duplication and improving maintainability. It provides examples of how prototypes can be used to create a more efficient and flexible data model for game entities, such as goblins and weapons. |
|
| | | | | ||
| | | | |
javascript.crockford.com
|
|
| | | | | ||
| | | | |
cstrnt.dev
Ever heard about Immutability and wanted to know why and how? Then you came to the right place! |
|
| | | |||