SlideShare une entreprise Scribd logo
1  sur  14
Design Pattern
Md. Rakib Trofder
Roll: BSSE 1129
Analytical
Heirarchy Process
Subcriteria’s are:
 Type [Uponnash, SciFi, Religion]
Borrow [Low, Low Medium, High Medium,
High]
Time [Latest, Recently New, Recently Old,
Old, Oldest]
Calculate Criteria and Subcriteria
Criteria’s are:
1. Type Criteria
2. Borrow Criteria
3. Time Criteria
2
Identify Code Smell
(Switch Case)
3
Solved using Pattern Matcher
4
Identify Code Smell (Long
Method)
5
Reduce method length
6
Previous Line Count: 60
Current Line Count: 20
Identify Code Smell
(Duplicate Code)
7
Similar Types of Functionality for
Count Criteria, Type Criteria and
Time Criteria AHP Methods
Make a method for
all similar methods
8
Make all the parameters private
instead of private in Data class
9
Use getter and setter instead of direct
variable use
10
Implement Strategy
Pattern
11
Implement Signleton
Pattern
12
Statistical Overview
13
• 1000+ lines
of code
• There are total 9
classes (2 data
classes)
• Implement 2
Design Pattern
• Remove Major
Code Smells
Thank
You
14

Contenu connexe

Plus de Md. Rakib Trofder

Twitter Timeline and Search Distributed System.pptx
Twitter Timeline and Search Distributed System.pptxTwitter Timeline and Search Distributed System.pptx
Twitter Timeline and Search Distributed System.pptx
Md. Rakib Trofder
 

Plus de Md. Rakib Trofder (20)

Software System Reconstruction using large language model
Software System Reconstruction using large language modelSoftware System Reconstruction using large language model
Software System Reconstruction using large language model
 
Daily Scrum, Sprint Review & Retrospective.pptx
Daily Scrum, Sprint Review & Retrospective.pptxDaily Scrum, Sprint Review & Retrospective.pptx
Daily Scrum, Sprint Review & Retrospective.pptx
 
Scrum & Sprint Planning.pptx
Scrum & Sprint Planning.pptxScrum & Sprint Planning.pptx
Scrum & Sprint Planning.pptx
 
Agricultural Business with Technology
Agricultural Business with TechnologyAgricultural Business with Technology
Agricultural Business with Technology
 
HTTP Caching.pptx
HTTP Caching.pptxHTTP Caching.pptx
HTTP Caching.pptx
 
Twitter Timeline and Search Distributed System.pptx
Twitter Timeline and Search Distributed System.pptxTwitter Timeline and Search Distributed System.pptx
Twitter Timeline and Search Distributed System.pptx
 
Artificial Intelligence in Gaming.pptx
Artificial Intelligence in Gaming.pptxArtificial Intelligence in Gaming.pptx
Artificial Intelligence in Gaming.pptx
 
Mechanism behind BlogBee Application
Mechanism behind BlogBee ApplicationMechanism behind BlogBee Application
Mechanism behind BlogBee Application
 
Massive Open Online Courses (MOOC)
Massive Open Online Courses (MOOC)Massive Open Online Courses (MOOC)
Massive Open Online Courses (MOOC)
 
BlogBee A Blog Based Social Media.pptx
BlogBee A Blog Based Social Media.pptxBlogBee A Blog Based Social Media.pptx
BlogBee A Blog Based Social Media.pptx
 
INTER-SYSTEMS EARNS ISO 9001-2008 CERTIFICATION
INTER-SYSTEMS EARNS ISO 9001-2008 CERTIFICATIONINTER-SYSTEMS EARNS ISO 9001-2008 CERTIFICATION
INTER-SYSTEMS EARNS ISO 9001-2008 CERTIFICATION
 
Web Technology Tag Presentation.pptx
Web Technology Tag Presentation.pptxWeb Technology Tag Presentation.pptx
Web Technology Tag Presentation.pptx
 
Video to text blog (blog bee)
Video to text blog (blog bee)Video to text blog (blog bee)
Video to text blog (blog bee)
 
Web tech tag explanation
Web tech tag explanationWeb tech tag explanation
Web tech tag explanation
 
Library assistant tool
Library assistant toolLibrary assistant tool
Library assistant tool
 
Http status code 416 vs 428, 503 vs 505
Http status code  416 vs 428, 503 vs 505Http status code  416 vs 428, 503 vs 505
Http status code 416 vs 428, 503 vs 505
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Page rank algorithm
Page rank algorithmPage rank algorithm
Page rank algorithm
 
Analytic hierarchy process
Analytic hierarchy processAnalytic hierarchy process
Analytic hierarchy process
 
Economy politics and city life
Economy politics and city lifeEconomy politics and city life
Economy politics and city life
 

Dernier

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MysoreMuleSoftMeetup
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
Elizabeth Walsh
 

Dernier (20)

How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdfUGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
UGC NET Paper 1 Unit 7 DATA INTERPRETATION.pdf
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Orientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdfOrientation Canvas Course Presentation.pdf
Orientation Canvas Course Presentation.pdf
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 

Design Pattern.pptx