Skip to content

Proxy objects are a handy way to intercept the regular behavarior of an object

Notifications You must be signed in to change notification settings

Nikodermus/bogotajs-proxies

Repository files navigation

Proxy Objects + Bonus: BEM

Repo with slides and code sample for a talk for BogotaJS

Proxy objects came with EcmaScript 6 and they are a handy way to intercept the regular behavarior of an object, even changing methods that haven't even been created!

This talk is provided thanks to the BogotaJS team, WesBos incredible ES6 for Everyone course and this DailyJS Article

Check out the slides for deeper follow through

Content

# Folder Content
01 Structure Basic example for making your own Proxy Object and what a handler is and how it can be used
02 Phone Proxy Phone numbers can be tricky to work with, what about if we just fix them before the even are stored within an object
03 Proxi API Handling dummy mistakes can make your own API so powerfull, there's not even need to modify just wrap what you already had!
04 API Methods Get a NODE API running with only one getter method, leave all the rest to the Proxy Handler
05 Tricky Question Can �(data.a === 1 && data.a === 2 && data.a === 3) return true? It can! See here how

Bonus

BEM is a simply methodology for naming objects in CSS, content provided thanks to MindBEMing and the Cuemby Team Front-end Guidelines

License by Nicolas M. Pardo, Nikodermus

Under the Beerware Software License @2018

The software is provided 'as is', without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

About

Proxy objects are a handy way to intercept the regular behavarior of an object

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages