My First Design Patterns
6 lectures 45:25
The Course Overview
This video will offer an overview of the course.
The Problem with the Global Scope
Before we can confront the actual problem at the global level, we need to first build the core application that is going to be used throughout this section. In this video, we are going to work to develop a pseudo chat application between a user and computer to see how design patterns rescue with application issues.
- Build a fake chat application
- Use the global scope freely
- Set up the application for the rest of the section
Moving to One Object and Namespace
With over 11 global scope references, we have 11 possibilities to get our code overwritten by other code. Let’s condense our code into an object and move it into a unique namespace protecting it from mistaken overrides.
- Reduce the global scope footprint (this can be done using Object Literal Pattern)
- Condense the code into one large object
- Use the Namespace design pattern
The Module Design Pattern
One of the biggest issues with our design using the Constructor Design pattern was that in current versions of javascript there is no way to create private members of an object. The Module Design Pattern enables us to have a separation between our private and public API – protecting the code from external resources.
- Create a real privacy control
- Having a clear public API
- True encapsulation
The Module Reveal Pattern
While the Module design pattern is very powerful, it has a few limitations and they are related mainly to the fact that we have to treat public and private members differently. Moreover, this split has made it hard for us to call and use the public members from the private areas of our code. The Module Reveal Pattern comes to our rescue to solve this issue.
- See how we treat private and public members differently
- Ensure private members can't interact with public ones
- Add complexity to our core structure
Controlling the Global Access Completely
Let’s now turn our attention to the global scope. Our goal in this video is to remove access altogether to the global scope and define and control how and who has access to our objects.
- Use the Module concept to make everything private
- Conditionally add elements to the global scope
- Send things from the global scope to our Mega Module
My First Design Patterns.
6 lectures 45:25
The Course Overview
This video will offer an overview of the course.
The Problem with the Global Scope
Before we can confront the actual problem at the global level, we need to first build the core application that is going to be used throughout this section. In this video, we are going to work to develop a pseudo chat application between a user and computer to see how design patterns rescue with application issues.
- Build a fake chat application
- Use the global scope freely
- Set up the application for the rest of the section
Moving to One Object and Namespace
With over 11 global scope references, we have 11 possibilities to get our code overwritten by other code. Let’s condense our code into an object and move it into a unique namespace protecting it from mistaken overrides.
- Reduce the global scope footprint (this can be done using Object Literal Pattern)
- Condense the code into one large object
- Use the Namespace design pattern
The Module Design Pattern
One of the biggest issues with our design using the Constructor Design pattern was that in current versions of javascript there is no way to create private members of an object. The Module Design Pattern enables us to have a separation between our private and public API – protecting the code from external resources.
- Create a real privacy control
- Having a clear public API
- True encapsulation
The Module Reveal Pattern
While the Module design pattern is very powerful, it has a few limitations and they are related mainly to the fact that we have to treat public and private members differently. Moreover, this split has made it hard for us to call and use the public members from the private areas of our code. The Module Reveal Pattern comes to our rescue to solve this issue.
- See how we treat private and public members differently
- Ensure private members can't interact with public ones
- Add complexity to our core structure
Controlling the Global Access Completely
Let’s now turn our attention to the global scope. Our goal in this video is to remove access altogether to the global scope and define and control how and who has access to our objects.
- Use the Module concept to make everything private
- Conditionally add elements to the global scope
- Send things from the global scope to our Mega Module
The Course Overview
This video will offer an overview of the course.
The Course Overview
This video will offer an overview of the course.
The Course Overview
This video will offer an overview of the course.
The Course Overview
This video will offer an overview of the course.
This video will offer an overview of the course.
This video will offer an overview of the course.
The Problem with the Global Scope
Before we can confront the actual problem at the global level, we need to first build the core application that is going to be used throughout this section. In this video, we are going to work to develop a pseudo chat application between a user and computer to see how design patterns rescue with application issues.
- Build a fake chat application
- Use the global scope freely
- Set up the application for the rest of the section
The Problem with the Global Scope
Before we can confront the actual problem at the global level, we need to first build the core application that is going to be used throughout this section. In this video, we are going to work to develop a pseudo chat application between a user and computer to see how design patterns rescue with application issues.
- Build a fake chat application
- Use the global scope freely
- Set up the application for the rest of the section
The Problem with the Global Scope
Before we can confront the actual problem at the global level, we need to first build the core application that is going to be used throughout this section. In this video, we are going to work to develop a pseudo chat application between a user and computer to see how design patterns rescue with application issues.
- Build a fake chat application
- Use the global scope freely
- Set up the application for the rest of the section
The Problem with the Global Scope
Before we can confront the actual problem at the global level, we need to first build the core application that is going to be used throughout this section. In this video, we are going to work to develop a pseudo chat application between a user and computer to see how design patterns rescue with application issues.
- Build a fake chat application
- Use the global scope freely
- Set up the application for the rest of the section
Before we can confront the actual problem at the global level, we need to first build the core application that is going to be used throughout this section. In this video, we are going to work to develop a pseudo chat application between a user and computer to see how design patterns rescue with application issues.
- Build a fake chat application
- Use the global scope freely
- Set up the application for the rest of the section
Before we can confront the actual problem at the global level, we need to first build the core application that is going to be used throughout this section. In this video, we are going to work to develop a pseudo chat application between a user and computer to see how design patterns rescue with application issues.
- Build a fake chat application
- Use the global scope freely
- Set up the application for the rest of the section
Moving to One Object and Namespace
With over 11 global scope references, we have 11 possibilities to get our code overwritten by other code. Let’s condense our code into an object and move it into a unique namespace protecting it from mistaken overrides.
- Reduce the global scope footprint (this can be done using Object Literal Pattern)
- Condense the code into one large object
- Use the Namespace design pattern
Moving to One Object and Namespace
With over 11 global scope references, we have 11 possibilities to get our code overwritten by other code. Let’s condense our code into an object and move it into a unique namespace protecting it from mistaken overrides.
- Reduce the global scope footprint (this can be done using Object Literal Pattern)
- Condense the code into one large object
- Use the Namespace design pattern
Moving to One Object and Namespace
With over 11 global scope references, we have 11 possibilities to get our code overwritten by other code. Let’s condense our code into an object and move it into a unique namespace protecting it from mistaken overrides.
- Reduce the global scope footprint (this can be done using Object Literal Pattern)
- Condense the code into one large object
- Use the Namespace design pattern
Moving to One Object and Namespace
With over 11 global scope references, we have 11 possibilities to get our code overwritten by other code. Let’s condense our code into an object and move it into a unique namespace protecting it from mistaken overrides.
- Reduce the global scope footprint (this can be done using Object Literal Pattern)
- Condense the code into one large object
- Use the Namespace design pattern
With over 11 global scope references, we have 11 possibilities to get our code overwritten by other code. Let’s condense our code into an object and move it into a unique namespace protecting it from mistaken overrides.
- Reduce the global scope footprint (this can be done using Object Literal Pattern)
- Condense the code into one large object
- Use the Namespace design pattern
With over 11 global scope references, we have 11 possibilities to get our code overwritten by other code. Let’s condense our code into an object and move it into a unique namespace protecting it from mistaken overrides.
- Reduce the global scope footprint (this can be done using Object Literal Pattern)
- Condense the code into one large object
- Use the Namespace design pattern
The Module Design Pattern
One of the biggest issues with our design using the Constructor Design pattern was that in current versions of javascript there is no way to create private members of an object. The Module Design Pattern enables us to have a separation between our private and public API – protecting the code from external resources.
- Create a real privacy control
- Having a clear public API
- True encapsulation
The Module Design Pattern
One of the biggest issues with our design using the Constructor Design pattern was that in current versions of javascript there is no way to create private members of an object. The Module Design Pattern enables us to have a separation between our private and public API – protecting the code from external resources.
- Create a real privacy control
- Having a clear public API
- True encapsulation
The Module Design Pattern
One of the biggest issues with our design using the Constructor Design pattern was that in current versions of javascript there is no way to create private members of an object. The Module Design Pattern enables us to have a separation between our private and public API – protecting the code from external resources.
- Create a real privacy control
- Having a clear public API
- True encapsulation
The Module Design Pattern
One of the biggest issues with our design using the Constructor Design pattern was that in current versions of javascript there is no way to create private members of an object. The Module Design Pattern enables us to have a separation between our private and public API – protecting the code from external resources.
- Create a real privacy control
- Having a clear public API
- True encapsulation
One of the biggest issues with our design using the Constructor Design pattern was that in current versions of javascript there is no way to create private members of an object. The Module Design Pattern enables us to have a separation between our private and public API – protecting the code from external resources.
- Create a real privacy control
- Having a clear public API
- True encapsulation
One of the biggest issues with our design using the Constructor Design pattern was that in current versions of javascript there is no way to create private members of an object. The Module Design Pattern enables us to have a separation between our private and public API – protecting the code from external resources.
- Create a real privacy control
- Having a clear public API
- True encapsulation
The Module Reveal Pattern
While the Module design pattern is very powerful, it has a few limitations and they are related mainly to the fact that we have to treat public and private members differently. Moreover, this split has made it hard for us to call and use the public members from the private areas of our code. The Module Reveal Pattern comes to our rescue to solve this issue.
- See how we treat private and public members differently
- Ensure private members can't interact with public ones
- Add complexity to our core structure
The Module Reveal Pattern
While the Module design pattern is very powerful, it has a few limitations and they are related mainly to the fact that we have to treat public and private members differently. Moreover, this split has made it hard for us to call and use the public members from the private areas of our code. The Module Reveal Pattern comes to our rescue to solve this issue.
- See how we treat private and public members differently
- Ensure private members can't interact with public ones
- Add complexity to our core structure
The Module Reveal Pattern
While the Module design pattern is very powerful, it has a few limitations and they are related mainly to the fact that we have to treat public and private members differently. Moreover, this split has made it hard for us to call and use the public members from the private areas of our code. The Module Reveal Pattern comes to our rescue to solve this issue.
- See how we treat private and public members differently
- Ensure private members can't interact with public ones
- Add complexity to our core structure
The Module Reveal Pattern
While the Module design pattern is very powerful, it has a few limitations and they are related mainly to the fact that we have to treat public and private members differently. Moreover, this split has made it hard for us to call and use the public members from the private areas of our code. The Module Reveal Pattern comes to our rescue to solve this issue global scope to our Mega Module
Let’s now turn our attention to the global scope. Our goal in this video is to remove access altogether to the global scope and define and control how and who has access to our objects.
- Use the Module concept to make everything...