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.

Less is More by Matt Christensen

991 views

Published on

"Less is More" leverage core before adding or building 3rd party extensions

Published in: Software
  • Be the first to comment

  • Be the first to like this

Less is More by Matt Christensen

  1. 1. JoomlaDay 2017 Chicago Less is More Matt Christensen @the_real_mattc
  2. 2. Who am I? ● Developer ● Offense and defense ● PHP - WordPress - Joomla - .Net ● Analytics ● Freelancer
  3. 3. Introduction ● Look - learn and grow before adding/buying unknown code ● What do you need to accomplish? ● Do you need external code? ● Is it too complicated? ● Time
  4. 4. Introduction ● Security - you own the code - you know the source ● If not you - your team ● Duplication of code - multiple copies of the same library
  5. 5. Speed ● Not always a time saver to add third party code ● Last 20% ● Need to weigh the options ● Trust your team
  6. 6. Outline ● MVC ● Forms ● Libraries
  7. 7. Components - MVC ● Not true MVC ● MVVM-C ● Explain (code sample)
  8. 8. Model ● Interacts with data ● Returns data to the caller (view - maybe controller) ● Logic and processing can be done ● Business rules ● Calling the database
  9. 9. View ● Calls model(s) ● Naming can be accessed by default - see example ● Prepares display
  10. 10. Template(tmpl) - View-Model ● Acts like a view-model ● Displays to the screen ● Calling View ● NO LOGIC HERE
  11. 11. Controller ● Traffic cop ● Executes functions based on task parameter
  12. 12. Code
  13. 13. Forms
  14. 14. Forms ● Demo - contact form
  15. 15. Adding Form Fields ● Inside Models ● See com_contact
  16. 16. Validation ● Add rule path ● Classes act as rules ● com_contact
  17. 17. Libraries ● jQuery ● jQuery UI ● Bootstrap ● Take a look
  18. 18. jQuery ● No conflict mode (jQuery vs $) ● Version difference
  19. 19. Bootstrap ● Version issues ● 2 vs 3
  20. 20. Extras ● Update / stay up to date ● Use version control ● Backup
  21. 21. Conclusion ● Try before you buy ● Trust your team ● Inspect code ● Know versions ● Update/backup/source control

×