Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Best practices for creating modular Web applications

3,440 views

Published on

In the talk we are discussing the best practices for creating modular Web applications. The talk focuses on practical advices and proven in the time methodologies for creating supportable and maintainable applications.

Published in: Engineering
  • Writing a good research paper isn't easy and it's the fruit of hard work. For help you can check writing expert. Check out, please ⇒ www.HelpWriting.net ⇐ I think they are the best
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Writing a good research paper isn't easy and it's the fruit of hard work. For help you can check writing expert. Check out, please ⇒ www.HelpWriting.net ⇐ I think they are the best
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Best practices for creating modular Web applications

  1. 1. Best practices FOR CREATING MODULAR WEB APPLICATIONS Iliyan Peychev HERE GmbH @ipeychev
  2. 2. CHALLENGES
  3. 3. CHALLENGES handling the Events Subscribing and unsubscribing to events Manipulating the dom Manually? Virtual DOM? Re-DOM? UNIT TESTS Mock everything? Staying as close to the reality as possible? maintaining the state State might be spread among different services or components    
  4. 4. CHALLENGES OPTIMIZE APPLICATION How to achieve maximum performance? Rendering on the server too? Integration and end2end tests How do we keep them in sync with the code? CONTINUOUS DEPLOYMENT AND DELIVERY How easy is to make releases? How do we keep the documentation in sync? MAKING CHANGES TO THE SYSTEM How to prevent the “Software rot”?    
  5. 5. There is no silver bullet Some of these challenges are technical, others aren’t (Technical challenges are easier to solve)
  6. 6. FRAMEWORKS Someone tells you how to write an application and gives you the tools for writing it
  7. 7. FRAMEWORKS and libraries 2006 2010backbone Model–view–presenter (MVP) application design paradigm YUI Powerful and rich, deprecated now jQuery Shaped the model for writing applications for years 2006
  8. 8. 2011 2013 2010 react Revolutionized the way Web applications were built ember Model–view–viewmodel (MVVM) pattern angular 1 Complete and rich, but complex and hard for maintenance and support FRAMEWORKS and libraries
  9. 9. 2017 2016angular 2 Complete and rich, better than Angular1 FRAMEWORKS and libraries ?
  10. 10. FUNDAMENTALS OF DESIGNING YOUR APPLICATION ARCHITECTURE COMPONENTS AND MODULES
  11. 11. WHAT IS A MODULE?
  12. 12. MODULE A “module” is a piece of functionality, which could be plugged to the application, replaced if needed and possibly reused a piece of functionality A module consists from one or more components One component should stay in one module
  13. 13. LET’S TAKE A LOOK AT THE REAL WORLD COMPONENTS AND MODULES
  14. 14. Components
  15. 15. Modules
  16. 16. Modules
  17. 17. INTERNATIONAL SPACE STATION
  18. 18. International space station
  19. 19. International space station
  20. 20. Apply the same model to your applications (This is where things go wrong usually)
  21. 21. PRACTICAL GUIDELINES
  22. 22. features as modules Separate the features of the application in modules One module may consist from multiple components The feature should be tested individually Then included to the application
  23. 23. COMPONENTS Prefer to create components, which only render data Create a few components to maintain the state They will provide data to the rendering components When testing, mock the external dependencies
  24. 24. Avoid framework dependencies when possible Try to make your classes framework agnostic Then “glue” them to you framework of choice
  25. 25. maintaining the state Maintaining the state properly is the key to keep the whole application maintainable Use Flux pattern and some implementation like Redux, MobX, or write your own
  26. 26. Do not follow blindly documentation/examples
  27. 27.
  28. 28. Test each component separately component 1 Module 2 Component 2 Component 3 Module 1 Component 4     } }
  29. 29. Then test the whole system component 1 Module 2 Component 2 Component 3 Module 1 Component 4 
  30. 30.   pack the module and distribute It might be NPM or any other module system
  31. 31. SHARE CODE Design the system with the idea to share code with other people
  32. 32. Module systems in JavaScript world
  33. 33. ES2015 Commonjs module systems amd Made popular by Node, in 2013 they said its dead Standard, not implemented in the browsers yet, but used widely with transpilers Originally split from CommonJS, the difference is the async loading
  34. 34. ES2015 features Re-exporting Export an imported module cyclic dependencies better handled than in CommonJS single default export export function circle(x, y) {} multiple named exports export const sqrt = Math.sqrt;
  35. 35. CREATING MODULAR Web applications IN PRACTICE
  36. 36. Could be part of an Indoor Positioning System Let’s create an application for monitoring iBeacons in range
  37. 37. PARTS OF AN indoor positioning system Venue maps Indoor Radio Mapping tool Detecting and monitoring Wi-Fi and Beacons Positioning API Location services/ End user applications
  38. 38.  iBeacons Location Services Indoor detect send Enrich Anchor Services
  39. 39. Monitoring beacons 1 2 3 4 5 6 1 2 3 4 5 6
  40. 40. Architecture Main parts of the system  Mobile application Mobile application created with ReactNative  Web Application Web application, created with React  Storage Data storage  Server NodeJS server to serve the Web application
  41. 41. Which parts could be reused?
  42. 42. The Communication with the server Isolate it in a module It could be implemented using WebSockets, WeDeploy, etc.  Location Services Indoor Location Services Indoor
  43. 43. Detecting the beacons on iOS and android Isolate the logic in modules with same API and expose it to React Native 1 2 3 4 5 6 1 2 3 4 5 6
  44. 44. rendering the beacons on the screen Isolate the logic in a module 1 2 3 4 5 6 1 2 3 4 5 6
  45. 45. More things to considerMake the Web application isomorphic  Replacing the communication part on the fly 
  46. 46. DEMO
  47. 47. Questions? Thanks! ipeychev ipeychev

×