SlideShare a Scribd company logo
Common MistakesCommon Mistakes
MVC ArchitechtureMVC Architechture
MVC Key FeaturesMVC Key Features
MVC Business logicMVC Business logic
Coding Guidlines For API Creation
Joomla MVCJoomla MVC
Coding RequirementsCoding Requirements
API WorkflowAPI Workflow
API RequirementAPI Requirement
Common Mistakes
● Avoid MVC architecture in code
● Code redundancy / repetition
● Complex and bulky code writing
● Continuous code
● Forget to write optimise code
● Forget comments
MVC Architecture
Controller
View Model
Key features
● Business logic
● DRY coding style
● Smart code
● Optimize
● Easy to maintain
● Uniqeness
Business logic
● Process of calculating logical process
● Process code
● Execution time
● Optimized code
Joomla:MVC frame Structure
● Componenet
- View
- Module
- Helpers
- Includer/libraries
- Tables
● Template
Coding Requirements
● Write upto 50-60 line
● Do not write same code in many files.
● If slighty diffrent code, use condition in code avoid
repeatation
● Avoid more complexity
● Make it simple
● Optimize code
● Writen code must be readable
● Place in proper place
- means queries in model
- common function in helpers/includes/libraries
● Avoid to return full data on view.
API work flow
App / Site
API Helpers
Models
Libraries
Database
API Requirements
● Core functions in use
– Helpers/Libraries/Includes
– Module
– Use controller code if requirement
– Write query to get data
Questions....?
Thanks

More Related Content

What's hot (20)

PPTX
Max Yekaterynenko: Magento 2 overview
Meet Magento Italy
 
PDF
Magento 2 Development Best Practices
Ben Marks
 
PPTX
MidwestPHP - Getting Started with Magento 2
Mathew Beane
 
PDF
Flamingo Carotene
i-love-flamingo
 
PDF
Graphql Overview By Chirag Dodia
vijaygolani
 
PPTX
Magento 2 overview. Alan Kent
MeetMagentoNY2014
 
PDF
Introduction to PWA Studio by Vijay Golani
vijaygolani
 
ODP
Phpbasics And Php Framework
shivas
 
PPTX
PHP framework difference
iScripts
 
PPTX
Vue storefront London PWA meetup
Filip Rakowski
 
PDF
Eugene Shakhsuvarov - Improving enterprise store scalability using AMQP and A...
Meet Magento Italy
 
PPTX
Vue Storefront Basics
Filip Rakowski
 
PDF
Magento Headless Commerce with Vue Storefront - Piyush Lathiya
Aureate Labs
 
PDF
How to choose frontend (head) for headless commerce.
Aureate Labs
 
PPTX
Flamingo presentation at code.talks commerce by Daniel Pötzinger
AOE
 
PDF
Headless E-commerce That People Love
DigitalOcean
 
PDF
Flamingo - Inspiring Commerce Frontend made in Go - Meet Magento 2019
AOE
 
ODP
How to build your own programming language
Kamal Mustafa
 
PPTX
ASP.NET 5 Overview - Post Build 2015
Shahed Chowdhuri
 
Max Yekaterynenko: Magento 2 overview
Meet Magento Italy
 
Magento 2 Development Best Practices
Ben Marks
 
MidwestPHP - Getting Started with Magento 2
Mathew Beane
 
Flamingo Carotene
i-love-flamingo
 
Graphql Overview By Chirag Dodia
vijaygolani
 
Magento 2 overview. Alan Kent
MeetMagentoNY2014
 
Introduction to PWA Studio by Vijay Golani
vijaygolani
 
Phpbasics And Php Framework
shivas
 
PHP framework difference
iScripts
 
Vue storefront London PWA meetup
Filip Rakowski
 
Eugene Shakhsuvarov - Improving enterprise store scalability using AMQP and A...
Meet Magento Italy
 
Vue Storefront Basics
Filip Rakowski
 
Magento Headless Commerce with Vue Storefront - Piyush Lathiya
Aureate Labs
 
How to choose frontend (head) for headless commerce.
Aureate Labs
 
Flamingo presentation at code.talks commerce by Daniel Pötzinger
AOE
 
Headless E-commerce That People Love
DigitalOcean
 
Flamingo - Inspiring Commerce Frontend made in Go - Meet Magento 2019
AOE
 
How to build your own programming language
Kamal Mustafa
 
ASP.NET 5 Overview - Post Build 2015
Shahed Chowdhuri
 

Viewers also liked (6)

PDF
3.여성이 새로 짜는 녹색자치 2001 전국연수, 첨부파일
여성환경연대
 
PPS
Ten Commandments For Those Over 40
Emmanuel Samson
 
PPS
Deussabe
FERNANDO CAPUZZI
 
PPS
Bora Bora
Mensagens Virtuais
 
PDF
Achten biofuel carbon debts
theREDDdesk
 
DOCX
2do examen parcial_841
andru010
 
3.여성이 새로 짜는 녹색자치 2001 전국연수, 첨부파일
여성환경연대
 
Ten Commandments For Those Over 40
Emmanuel Samson
 
Achten biofuel carbon debts
theREDDdesk
 
2do examen parcial_841
andru010
 
Ad

Similar to Api code requirement (20)

PPTX
Introduction to MVC Web Framework with CodeIgniter
Pongsakorn U-chupala
 
PDF
Deccan ruby-conf-talk
prchaudhari
 
PPT
Code igniter overview
umesh patil
 
PDF
Es2015 training material-syedawase
Dr. Awase Khirni Syed
 
PPTX
Mvc framework
Dhurham Fahem
 
PPTX
10 Reasons You MUST Consider Pattern-Aware Programming
PostSharp Technologies
 
PDF
MVC 3.0 KU Day 1 v 1.1
Lek Pongpatimet
 
PPTX
Weekly Session with the local .NET Developer Community
kazimanzurrashid
 
PDF
IDE and Toolset For Magento Development
Abid Malik
 
PDF
The working architecture of NodeJs applications
Viktor Turskyi
 
PPTX
Spring Test Framework
GlobalLogic Ukraine
 
PPTX
"Umbraco MVC - a journey of discovery" - Lotte Pitcher
lottepitcher
 
PPTX
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
PPTX
Generic Repository Pattern with ASP.NET MVC and EF
Md. Mahedee Hasan
 
PDF
Generic repository pattern with ASP.NET MVC and Entity Framework
Md. Mahedee Hasan
 
PPTX
Architecture in real
Michael Chen
 
PPTX
CodeIgniter
Nitin Reddy Katkam
 
PPTX
Ivy renderer
TejinderMakkar
 
PDF
How to Design a Good API and Why it Matters.pdf
SimranjyotSuri
 
PDF
powershell.pdf
Saurabh846965
 
Introduction to MVC Web Framework with CodeIgniter
Pongsakorn U-chupala
 
Deccan ruby-conf-talk
prchaudhari
 
Code igniter overview
umesh patil
 
Es2015 training material-syedawase
Dr. Awase Khirni Syed
 
Mvc framework
Dhurham Fahem
 
10 Reasons You MUST Consider Pattern-Aware Programming
PostSharp Technologies
 
MVC 3.0 KU Day 1 v 1.1
Lek Pongpatimet
 
Weekly Session with the local .NET Developer Community
kazimanzurrashid
 
IDE and Toolset For Magento Development
Abid Malik
 
The working architecture of NodeJs applications
Viktor Turskyi
 
Spring Test Framework
GlobalLogic Ukraine
 
"Umbraco MVC - a journey of discovery" - Lotte Pitcher
lottepitcher
 
Technoligent providing custom ASP.NET MVC development services
Aaron Jacobson
 
Generic Repository Pattern with ASP.NET MVC and EF
Md. Mahedee Hasan
 
Generic repository pattern with ASP.NET MVC and Entity Framework
Md. Mahedee Hasan
 
Architecture in real
Michael Chen
 
CodeIgniter
Nitin Reddy Katkam
 
Ivy renderer
TejinderMakkar
 
How to Design a Good API and Why it Matters.pdf
SimranjyotSuri
 
powershell.pdf
Saurabh846965
 
Ad

Api code requirement