Simplifying JavaScript : writing modern JavaScript with ES5, ES6, and beyond /
Annotation
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Raleigh, North Carolina :
The Pragmatic Bookshelf,
2018.
|
Colección: | Pragmatic programmers.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Table of Contents; Introduction; How To Use This Book; Whom This Book Is For; Online Resources; Acknowledgments; 1. Signal Intention with Variable Assignment; Tip 1. Signal Unchanging Values with const; Tip 2. Reduce Scope Conflicts with let and const; Tip 3. Isolate Information with Block Scoped Variables; Tip 4. Convert Variables to Readable Strings with Template Literals; 2. Manage Data Collections with Arrays; Tip 5. Create Flexible Collections with Arrays; Tip 6. Check Existence in an Array with Includes(); Tip 7. Mold Arrays with the Spread Operator
- Tip 8. Avoid Push Mutations with the Spread OperatorTip 9. Avoid Sort Confusion with the Spread Operator; 3. Maximize Code Clarity with Special Collections; Tip 10. Use Objects for Static Key-Value Lookups; Tip 11. Create Objects Without Mutations Using Object.assign(); Tip 12. Update Information with Object Spread; Tip 13. Update Key-Value Data Clearly with Maps; Tip 14. Iterate Over Key-Value Data with Map and the Spread Operator; Tip 15. Create Maps Without Side Effects; Tip 16. Keep Unique Values with Set; 4. Write Clear Conditionals; Tip 17. Shorten Conditionals with Falsy Values
- Tip 18. Check Data Quickly with the Ternary OperatorTip 19. Maximize Efficiency with Short Circuiting; 5. Simplify Loops; Tip 20. Simplify Looping with Arrow Functions; Tip 21. Write Shorter Loops with Array Methods; Tip 22. Create Arrays of a Similar Size with map(); Tip 23. Pull Out Subsets of Data with filter() and find(); Tip 24. Apply Consistent Actions with forEach(); Tip 25. Combine Methods with Chaining; Tip 26. Transform Array Data with reduce(); Tip 27. Reduce Loop Clutter with for ... in and for ... each; 6. Clean Up Parameters and Return Statements; Tip 28. Create Default Parameters
- Tip 29. Access Object Properties with DestructuringTip 30. Simplify Key-Value Assignment; Tip 31. Pass a Variable Number of Arguments with the Rest Operator; 7. Build Flexible Functions; Tip 32. Write Functions for Testability; Tip 33. Reduce Complexity with Arrow Functions; Tip 34. Maintain Single Responsibility Parameters with Partially Applied Functions; Tip 35. Combine Currying and Array Methods for Partial Application; Tip 36. Prevent Context Confusion with Arrow Functions; 8. Keep Interfaces Clear with Classes; Tip 37. Build Readable Classes; Tip 38. Share Methods with Inheritance
- Tip 39. Extend Existing Prototypes with ClassTip 40. Simplify Interfaces with get and set; Tip 41. Create Iterable Properties with Generators; Tip 42. Resolve Context Problems with Bind(); 9. Access External Data; Tip 43. Retrieve Data Asynchronously with Promises; Tip 44. Create Clean Functions with Async/Await; Tip 45. Make Simple AJAX Calls with Fetch; Tip 46. Maintain State Over Time with LocalStorage; 10. Gather Related Files with Component Architecture; Tip 47. Isolate Functionality with Import and Export; Tip 48. Leverage Community Knowledge with npm