Submit Search
Upload
Clean code - smells and heuristics
•
0 likes
•
1,337 views
Thuc Le Dong
Follow
Clean code with practices and examples. The slide shows smells and heuristics in your code
Read less
Read more
Software
Report
Share
Report
Share
1 of 60
Download now
Download to read offline
Recommended
Chapter17 of clean code
Chapter17 of clean code
Kuyseng Chhoeun
Clean code
Clean code
Henrique Smoco
Clean code
Clean code
Mahmoud Zizo
Clean Code
Clean Code
Hendrik Ebel
Clean code and Code Smells
Clean code and Code Smells
Mario Sangiorgio
Clean code
Clean code
Alvaro García Loaisa
clean code book summary - uncle bob - English version
clean code book summary - uncle bob - English version
saber tabatabaee
OOP-Advanced Programming with c++
OOP-Advanced Programming with c++
Mohamed Essam
Recommended
Chapter17 of clean code
Chapter17 of clean code
Kuyseng Chhoeun
Clean code
Clean code
Henrique Smoco
Clean code
Clean code
Mahmoud Zizo
Clean Code
Clean Code
Hendrik Ebel
Clean code and Code Smells
Clean code and Code Smells
Mario Sangiorgio
Clean code
Clean code
Alvaro García Loaisa
clean code book summary - uncle bob - English version
clean code book summary - uncle bob - English version
saber tabatabaee
OOP-Advanced Programming with c++
OOP-Advanced Programming with c++
Mohamed Essam
TDD Flow: The Mantra in Action
TDD Flow: The Mantra in Action
Dionatan default
Practical Malware Analysis: Ch 9: OllyDbg
Practical Malware Analysis: Ch 9: OllyDbg
Sam Bowne
Introduction to Go programming
Introduction to Go programming
Exotel
Concurrency in action - chapter 7
Concurrency in action - chapter 7
JinWoo Lee
Introduction to Python for Security Professionals
Introduction to Python for Security Professionals
Andrew McNicol
Clean code
Clean code
Achintya Kumar
Function template
Function template
Kousalya M
깨끗한 코드 (클린 코드, Clean Code)
깨끗한 코드 (클린 코드, Clean Code)
Jay Park
Exception handling in java
Exception handling in java
Pratik Soares
Clean Code Principles
Clean Code Principles
YeurDreamin'
Coding conventions
Coding conventions
systemcrashed
예외처리가이드
예외처리가이드
도형 임
Ultimate Guide to Setup DarkComet with NoIP
Ultimate Guide to Setup DarkComet with NoIP
Pich Pra Tna
Clean code
Clean code
Arturo Herrero
Clean Code
Clean Code
ISchwarz23
BPF - in-kernel virtual machine
BPF - in-kernel virtual machine
Alexei Starovoitov
Deep Web
Deep Web
AbishaiDas
Exceptionhandling
Exceptionhandling
Nuha Noor
Clean code: meaningful Name
Clean code: meaningful Name
nahid035
Exception handling
Exception handling
Tata Consultancy Services
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
Evangelist Apps https://twitter.com/EvangelistSW/
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
bodapatigopi8531
More Related Content
What's hot
TDD Flow: The Mantra in Action
TDD Flow: The Mantra in Action
Dionatan default
Practical Malware Analysis: Ch 9: OllyDbg
Practical Malware Analysis: Ch 9: OllyDbg
Sam Bowne
Introduction to Go programming
Introduction to Go programming
Exotel
Concurrency in action - chapter 7
Concurrency in action - chapter 7
JinWoo Lee
Introduction to Python for Security Professionals
Introduction to Python for Security Professionals
Andrew McNicol
Clean code
Clean code
Achintya Kumar
Function template
Function template
Kousalya M
깨끗한 코드 (클린 코드, Clean Code)
깨끗한 코드 (클린 코드, Clean Code)
Jay Park
Exception handling in java
Exception handling in java
Pratik Soares
Clean Code Principles
Clean Code Principles
YeurDreamin'
Coding conventions
Coding conventions
systemcrashed
예외처리가이드
예외처리가이드
도형 임
Ultimate Guide to Setup DarkComet with NoIP
Ultimate Guide to Setup DarkComet with NoIP
Pich Pra Tna
Clean code
Clean code
Arturo Herrero
Clean Code
Clean Code
ISchwarz23
BPF - in-kernel virtual machine
BPF - in-kernel virtual machine
Alexei Starovoitov
Deep Web
Deep Web
AbishaiDas
Exceptionhandling
Exceptionhandling
Nuha Noor
Clean code: meaningful Name
Clean code: meaningful Name
nahid035
Exception handling
Exception handling
Tata Consultancy Services
What's hot
(20)
TDD Flow: The Mantra in Action
TDD Flow: The Mantra in Action
Practical Malware Analysis: Ch 9: OllyDbg
Practical Malware Analysis: Ch 9: OllyDbg
Introduction to Go programming
Introduction to Go programming
Concurrency in action - chapter 7
Concurrency in action - chapter 7
Introduction to Python for Security Professionals
Introduction to Python for Security Professionals
Clean code
Clean code
Function template
Function template
깨끗한 코드 (클린 코드, Clean Code)
깨끗한 코드 (클린 코드, Clean Code)
Exception handling in java
Exception handling in java
Clean Code Principles
Clean Code Principles
Coding conventions
Coding conventions
예외처리가이드
예외처리가이드
Ultimate Guide to Setup DarkComet with NoIP
Ultimate Guide to Setup DarkComet with NoIP
Clean code
Clean code
Clean Code
Clean Code
BPF - in-kernel virtual machine
BPF - in-kernel virtual machine
Deep Web
Deep Web
Exceptionhandling
Exceptionhandling
Clean code: meaningful Name
Clean code: meaningful Name
Exception handling
Exception handling
Recently uploaded
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
Evangelist Apps https://twitter.com/EvangelistSW/
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
bodapatigopi8531
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
ThousandEyes
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
kalichargn70th171
Professional Resume Template for Software Developers
Professional Resume Template for Software Developers
Vinodh Ram
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
kaushalgiri8080
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
SolGuruz
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Alberto González Trastoy
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
MyIntelliSource, Inc.
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
harshavardhanraghave
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
BradBedford3
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
Arshad QA
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
shikhaohhpro
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
AxelRicardoTrocheRiq
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
OnePlan Solutions
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
kalichargn70th171
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
ICS
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
aagamshah0812
Recently uploaded
(20)
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
Professional Resume Template for Software Developers
Professional Resume Template for Software Developers
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
Clean code - smells and heuristics
1.
Clean Code Smells and
Heuristics
2.
Agenda 1. Comments 2. Names 3.
Functions 4. Environments 5. General
3.
Comments
4.
Smell
5.
Inappropriate Information
6.
Smell
7.
Obsolete Comment
8.
Smell
9.
Redundant Comment
10.
Poorly Written Comment -
Choose your words carefully - Use correct grammar and punctuation - Don’t ramble. Don’t state the obvious. Be brief.
11.
Smell
12.
Commented-out code
13.
Names
14.
Smell
15.
Choose Descriptive Names
16.
Use Standard Nomenclature Where
Possible - Names are easier to understand if they are based on existing convention or usage
17.
Smell
18.
Smell
19.
Smell
20.
Functions
21.
Smell
22.
Smell
23.
Smell
24.
Dead functions Methods that
are never called should be discarded. Keeping dead code around is wasteful.
25.
Environments
26.
Environments - Build Requires
More Than One Step - Tests Require More Than One Step
27.
General
28.
Smell
29.
Smell
30.
Smell
31.
Overridden Safeties - Don’t
turn-off warning compiler - Don’t disable or remove fail test cases
32.
Smell
33.
Smell
34.
Smell
35.
Smell
36.
Smell
37.
Smell
38.
Artificial Coupling - General
enums should not be contained within more specific classes - Static function
39.
Smell
40.
Smell
41.
Smell
42.
Smell
43.
Smell
44.
Smell
45.
Smell
46.
Smell
47.
Smell
48.
Smell
49.
Smell
50.
Smell
51.
Smell
52.
Avoid Negative Conditionals
53.
Smell
54.
Functions Should Do
One Thing
55.
Smell
56.
Hidden Temporal Couplings
57.
Smell
58.
Encapsulate Boundary Conditions
59.
Smell
60.
Avoid Transitive Navigation
Download now