René's URL Explorer Experiment


Title: GitHub - henryonsoftware/clean-code-php: :bathtub: Clean Code dành cho ngôn ngữ PHP

Open Graph Title: GitHub - henryonsoftware/clean-code-php: :bathtub: Clean Code dành cho ngôn ngữ PHP

X Title: GitHub - henryonsoftware/clean-code-php: :bathtub: Clean Code dành cho ngôn ngữ PHP

Description: :bathtub: Clean Code dành cho ngôn ngữ PHP. Contribute to henryonsoftware/clean-code-php development by creating an account on GitHub.

Open Graph Description: :bathtub: Clean Code dành cho ngôn ngữ PHP. Contribute to henryonsoftware/clean-code-php development by creating an account on GitHub.

X Description: :bathtub: Clean Code dành cho ngôn ngữ PHP. Contribute to henryonsoftware/clean-code-php development by creating an account on GitHub.

Opengraph URL: https://github.com/henryonsoftware/clean-code-php

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:505f05bf-4845-80f4-b003-c37cd43b36fc
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idD2EA:30AF41:3032EE:40ED70:696F1B59
html-safe-nonce26dc1ce864c3485b0b57d234d33e5e5ac3633ff92f374fe04ab3ace87f1ad0e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkVBOjMwQUY0MTozMDMyRUU6NDBFRDcwOjY5NkYxQjU5IiwidmlzaXRvcl9pZCI6IjIxODg1NDQ0NDMzNTY3NDg2MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6a2756190db15280b741c0021afab586d1276f330334883e560ac2f101bb3cd2
hovercard-subject-tagrepository:117075578
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/henryonsoftware/clean-code-php
twitter:imagehttps://opengraph.githubassets.com/643adacd337d8e1a77696018ab8eff7fc93f4f865f0a1e3ca383f90d8e87d8ef/henryonsoftware/clean-code-php
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/643adacd337d8e1a77696018ab8eff7fc93f4f865f0a1e3ca383f90d8e87d8ef/henryonsoftware/clean-code-php
og:image:alt:bathtub: Clean Code dành cho ngôn ngữ PHP. Contribute to henryonsoftware/clean-code-php development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
go-importgithub.com/henryonsoftware/clean-code-php git https://github.com/henryonsoftware/clean-code-php.git
octolytics-dimension-user_id12124934
octolytics-dimension-user_loginhenryonsoftware
octolytics-dimension-repository_id117075578
octolytics-dimension-repository_nwohenryonsoftware/clean-code-php
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id79111500
octolytics-dimension-repository_parent_nwopiotrplenik/clean-code-php
octolytics-dimension-repository_network_root_id79111500
octolytics-dimension-repository_network_root_nwopiotrplenik/clean-code-php
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhenryonsoftware%2Fclean-code-php
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhenryonsoftware%2Fclean-code-php
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=henryonsoftware%2Fclean-code-php
Reloadhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
Reloadhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
Reloadhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
henryonsoftware https://patch-diff.githubusercontent.com/henryonsoftware
clean-code-phphttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
piotrplenik/clean-code-phphttps://patch-diff.githubusercontent.com/piotrplenik/clean-code-php
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fhenryonsoftware%2Fclean-code-php
Fork 36 https://patch-diff.githubusercontent.com/login?return_to=%2Fhenryonsoftware%2Fclean-code-php
Star 63 https://patch-diff.githubusercontent.com/login?return_to=%2Fhenryonsoftware%2Fclean-code-php
MIT license https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/LICENSE
63 stars https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/stargazers
2.3k forks https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/forks
Branches https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/branches
Tags https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/tags
Activity https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2Fhenryonsoftware%2Fclean-code-php
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fhenryonsoftware%2Fclean-code-php
Code https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
Pull requests 0 https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/pulls
Actions https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/actions
Projects 0 https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/projects
Wiki https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/security
Please reload this pagehttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
Insights https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/pulse
Code https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
Pull requests https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/pulls
Actions https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/actions
Projects https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/projects
Wiki https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/wiki
Security https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/security
Insights https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/pulse
Brancheshttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/branches
Tagshttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/tags
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/branches
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/tags
269 Commitshttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/commits/master/
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/commits/master/
.ideahttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/tree/master/.idea
.ideahttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/tree/master/.idea
.gitattributeshttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/.gitattributes
.gitattributeshttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/.gitattributes
.travis-build.phphttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/.travis-build.php
.travis-build.phphttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/.travis-build.php
.travis.ymlhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/.travis.yml
.travis.ymlhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/.travis.yml
LICENSEhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/LICENSE
LICENSEhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/LICENSE
README.mdhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/README.md
README.mdhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/blob/master/README.md
READMEhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
MIT licensehttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#clean-code-php
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#mục-lục
Giới thiệuhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#gi%E1%BB%9Bi-thi%E1%BB%87u
Biếnhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#bi%E1%BA%BFn
Sử dụng tên biến có ý nghĩa và dễ hiểuhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#s%E1%BB%AD-d%E1%BB%A5ng-t%C3%AAn-bi%E1%BA%BFn-c%C3%B3-%C3%BD-ngh%C4%A9a-v%C3%A0-d%E1%BB%85-hi%E1%BB%83u
Sử dụng cùng từ vựng cho cùng một loại biếnhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#s%E1%BB%AD-d%E1%BB%A5ng-c%C3%B9ng-t%E1%BB%AB-v%E1%BB%B1ng-cho-c%C3%B9ng-m%E1%BB%99t-lo%E1%BA%A1i-bi%E1%BA%BFn
Đặt tên sao cho dễ tìm kiếm (phần 1)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%90%E1%BA%B7t-t%C3%AAn-sao-cho-d%E1%BB%85-t%C3%ACm-ki%E1%BA%BFm-ph%E1%BA%A7n-1
Đặt tên sao cho dễ tìm kiếm (phần 2)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%90%E1%BA%B7t-t%C3%AAn-sao-cho-d%E1%BB%85-t%C3%ACm-ki%E1%BA%BFm-ph%E1%BA%A7n-2
Đặt tên biến có dễ hiểuhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%91%E1%BA%B7t-t%C3%AAn-bi%E1%BA%BFn-d%E1%BB%85-hi%E1%BB%83u
Tránh lồng (nesting) quá nhiều và nên return sớm (phần 1)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tr%C3%A1nh-l%E1%BB%93ng-nesting-qu%C3%A1-nhi%E1%BB%81u-v%C3%A0-n%C3%AAn-return-s%E1%BB%9Bm-ph%E1%BA%A7n-1
Tránh lồng (nesting) quá nhiều và nên return sớm (phần 2)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tr%C3%A1nh-l%E1%BB%93ng-nesting-qu%C3%A1-nhi%E1%BB%81u-v%C3%A0-n%C3%AAn-return-s%E1%BB%9Bm-ph%E1%BA%A7n-2
Tránh hack não người đọchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tr%C3%A1nh-hack-n%C3%A3o-ng%C6%B0%E1%BB%9Di-%C4%91%E1%BB%8Dc
Đừng thêm những nội dung không cần thiếthttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%90%E1%BB%ABng-th%C3%AAm-nh%E1%BB%AFng-n%E1%BB%99i-dung-kh%C3%B4ng-c%E1%BA%A7n-thi%E1%BA%BFt
Sử dụng đối số mặc định thay vì phải kiểm tra bằng biểu thức điều kiệnhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#s%E1%BB%AD-d%E1%BB%A5ng-%C4%91%E1%BB%91i-s%E1%BB%91-m%E1%BA%B7c-%C4%91%E1%BB%8Bnh-thay-v%C3%AC-ph%E1%BA%A3i-ki%E1%BB%83m-tra-b%E1%BA%B1ng-bi%E1%BB%83u-th%E1%BB%A9c-%C4%91i%E1%BB%81u-ki%E1%BB%87n
So sánhhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#so-s%C3%A1nh
Sử dụng identical comparisonhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#s%E1%BB%AD-d%E1%BB%A5ng-identical-comparison
Hàmhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#h%C3%A0m
Đối số của hàm (ít hơn hoặc bằng 2 là lý tưởng)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%90%E1%BB%91i-s%E1%BB%91-c%E1%BB%A7a-h%C3%A0m-%C3%ADt-h%C6%A1n-ho%E1%BA%B7c-b%E1%BA%B1ng-2-l%C3%A0-l%C3%BD-t%C6%B0%E1%BB%9Fng
Hàm chỉ thực hiện một chức nănghttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#h%C3%A0m-ch%E1%BB%89-th%E1%BB%B1c-hi%E1%BB%87n-m%E1%BB%99t-ch%E1%BB%A9c-n%C4%83ng
Tên hàm nên thể hiện chức năng của hàmhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#t%C3%AAn-h%C3%A0m-n%C3%AAn-th%E1%BB%83-hi%E1%BB%87n-ch%E1%BB%A9c-n%C4%83ng-c%E1%BB%A7a-h%C3%A0m
Hàm chỉ nên chứa một cấp trừu tượnghttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#h%C3%A0m-ch%E1%BB%89-n%C3%AAn-ch%E1%BB%A9a-m%E1%BB%99t-c%E1%BA%A5p-tr%E1%BB%ABu-t%C6%B0%E1%BB%A3ng
Đừng sử dụng cờ như là một đối số của hàmhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%90%E1%BB%ABng-s%E1%BB%AD-d%E1%BB%A5ng-c%E1%BB%9D-nh%C6%B0-l%C3%A0-m%E1%BB%99t-%C4%91%E1%BB%91i-s%E1%BB%91-c%E1%BB%A7a-h%C3%A0m
Tránh tác dụng phụhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tr%C3%A1nh-t%C3%A1c-d%E1%BB%A5ng-ph%E1%BB%A5
Đừng viết hàm globalhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%90%E1%BB%ABng-vi%E1%BA%BFt-h%C3%A0m-global
Đừng sử dụng Singleton patternhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%90%E1%BB%ABng-s%E1%BB%AD-d%E1%BB%A5ng-singleton-pattern
Đóng gói điều kiệnhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%90%C3%B3ng-g%C3%B3i-%C4%91i%E1%BB%81u-ki%E1%BB%87n
Tránh điều kiện phủ địnhhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tr%C3%A1nh-%C4%91i%E1%BB%81u-ki%E1%BB%87n-ph%E1%BB%A7-%C4%91%E1%BB%8Bnh
Tránh dùng điều kiệnhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tr%C3%A1nh-d%C3%B9ng-%C4%91i%E1%BB%81u-ki%E1%BB%87n
Tránh kiểm tra kiểu dữ liệu (phần 1)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tr%C3%A1nh-ki%E1%BB%83m-tra-ki%E1%BB%83u-d%E1%BB%AF-li%E1%BB%87u-ph%E1%BA%A7n-1
Tránh kiểm tra kiểu dữ liệu (phần 2)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tr%C3%A1nh-ki%E1%BB%83m-tra-ki%E1%BB%83u-d%E1%BB%AF-li%E1%BB%87u-ph%E1%BA%A7n-2
Xóa dead codehttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#x%C3%B3a-dead-code
Đối tượng và kiến trúc dữ liệuhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C4%90%E1%BB%91i-t%C6%B0%E1%BB%A3ng-v%C3%A0-ki%E1%BA%BFn-tr%C3%BAc-d%E1%BB%AF-li%E1%BB%87u
Sử dụng đối tượng đóng góihttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#s%E1%BB%AD-d%E1%BB%A5ng-%C4%91%E1%BB%91i-t%C6%B0%E1%BB%A3ng-%C4%91%C3%B3ng-g%C3%B3i
Tạo đối tượng có chứa thuộc tính hoặc phương thức private/protectedhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#t%E1%BA%A1o-%C4%91%E1%BB%91i-t%C6%B0%E1%BB%A3ng-c%C3%B3-ch%E1%BB%A9a-thu%E1%BB%99c-t%C3%ADnh-ho%E1%BA%B7c-ph%C6%B0%C6%A1ng-th%E1%BB%A9c-private/protected
Lớphttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#l%E1%BB%9Bp
Ưu tiên thành phần hơn kế thừahttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#%C6%AFu-ti%C3%AAn-th%C3%A0nh-ph%E1%BA%A7n-h%C6%A1n-k%E1%BA%BF-th%E1%BB%ABa
Tránh viết fluent interfaceshttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tr%C3%A1nh-vi%E1%BA%BFt-fluent-interfaces
SOLIDhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#solid
Nguyên lý trách nhiệm duy nhất (SRP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguy%C3%AAn-l%C3%BD-tr%C3%A1ch-nhi%E1%BB%87m-duy-nh%E1%BA%A5t-srp
Nguyên lý Đóng/Mở (OCP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguy%C3%AAn-l%C3%BD-%C4%91%C3%B3ng/m%E1%BB%9F-ocp
Nguyên lý thay thế Liskov (LSP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguy%C3%AAn-l%C3%BD-thay-th%E1%BA%BF-liskov-lsp
Nguyên lý phân tách interface (ISP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguy%C3%AAn-l%C3%BD-ph%C3%A2n-t%C3%A1ch-interface-isp
Nguyên lý đảo ngược dependencies (DIP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguy%C3%AAn-l%C3%BD-%C4%91%E1%BA%A3o-ng%C6%B0%E1%BB%A3c-dependencies-dip
Nguyên lý đừng lặp lại chính mình (DRY)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguy%C3%AAn-l%C3%BD-%C4%91%E1%BB%ABng-l%E1%BA%B7p-l%E1%BA%A1i-ch%C3%ADnh-m%C3%ACnh-dry
Các ngôn ngữ kháchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#c%C3%A1c-ng%C3%B4n-ng%E1%BB%AF-kh%C3%A1c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#giới-thiệu
Clean Codehttps://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882
clean-code-javascripthttps://github.com/ryanmcdermott/clean-code-javascript
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#biến
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#sử-dụng-tên-biến-có-ý-nghĩa-và-dễ-hiểu
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#sử-dụng-cùng-từ-vựng-cho-cùng-một-loại-biến
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đặt-tên-sao-cho-dễ-tìm-kiếm-phần-1
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đặt-tên-sao-cho-dễ-tìm-kiếm-phần-2
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đặt-tên-biến-dễ-hiểu
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tránh-lồng-nesting-quá-nhiều-và-nên-return-sớm-phần-1
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tránh-lồng-nesting-quá-nhiều-và-nên-return-sớm-phần-2
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tránh-hack-não-người-đọc
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đừng-thêm-những-nội-dung-không-cần-thiết
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#sử-dụng-đối-số-mặc-định-thay-vì-phải-kiểm-tra-bằng-biểu-thức-điều-kiện
type hintinghttp://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#so-sánh
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
identical comparisonhttp://php.net/manual/en/language.operators.comparison.php
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#sử-dụng-identical-comparison
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#hàm
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đối-số-của-hàm-ít-hơn-hoặc-bằng-2-là-lý-tưởng
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#hàm-chỉ-thực-hiện-một-chức-năng
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tên-hàm-nên-thể-hiện-chức-năng-của-hàm
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#hàm-chỉ-nên-có-độ-trừu-tượng-một-cấp
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đừng-sử-dụng-cờ-như-là-một-đối-số-của-hàm
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tránh-tác-dụng-phụ
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đừng-viết-hàm-global
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đừng-sử-dụng-singleton-pattern
anti-patternhttps://en.wikipedia.org/wiki/Singleton_pattern
single responsibility principlehttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#single-responsibility-principle-srp
couplinghttps://en.wikipedia.org/wiki/Coupling_%28computer_programming%29
Misko Heveryhttp://misko.hevery.com/about/
gốc rễ của vấn đềhttp://misko.hevery.com/2008/08/25/root-cause-of-singletons/
DSNhttp://php.net/manual/en/pdo.construct.php#refsect1-pdo.construct-parameters
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đóng-gói-điều-kiện
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tránh-điều-kiện-phủ-định
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tránh-dùng-điều-kiện
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tránh-kiểm-tra-kiểu-dữ-liệu-phần-1
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tránh-kiểm-tra-kiểu-dữ-liệu-phần-2
type declarationhttp://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#xóa-dead-code
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#đối-tượng-và-kiến-trúc-dữ-liệu
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#sử-dụng-đối-tượng-đóng-gói
Open/Closedhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#openclosed-principle-ocp
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tạo-đối-tượng-có-chứa-thuộc-tính-hoặc-phương-thức-privateprotected
Jengahttp://www.urbandictionary.com/define.php?term=Jengaphobia&defid=2494196
blog posthttp://fabien.potencier.org/pragmatism-over-theory-protected-vs-private.html
Fabien Potencierhttps://github.com/fabpot
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#lớp
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#ưu-tiên-thành-phần-hơn-kế-thừa
Design Patternshttps://en.wikipedia.org/wiki/Design_Patterns
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#tránh-viết-fluent-interfaces
Fluent interfacehttps://en.wikipedia.org/wiki/Fluent_interface
Method chaininghttps://en.wikipedia.org/wiki/Method_chaining
PHPUnit Mock Builderhttps://phpunit.de/manual/current/en/test-doubles.html
Doctrine Query Builderhttp://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/query-builder.html
Encapsulationhttps://en.wikipedia.org/wiki/Encapsulation_%28object-oriented_programming%29
Decoratorshttps://en.wikipedia.org/wiki/Decorator_pattern
mockhttps://en.wikipedia.org/wiki/Mock_object
bài viếthttps://ocramius.github.io/blog/fluent-interfaces-are-evil/
Marco Pivettahttps://github.com/Ocramius
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#solid
S: Nguyên lý trách nhiệm duy nhất (SRP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#single-responsibility-principle-srp
O: Nguyên lý Đóng/Mở (OCP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#openclosed-principle-ocp
L: Nguyên lý thay thế Liskov (LSP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#liskov-substitution-principle-lsp
I: Nguyên lý phân tách interface (ISP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#interface-segregation-principle-isp
D: Nguyên lý đảo ngược dependencies (DIP)https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#dependency-inversion-principle-dip
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguyên-lý-trách-nhiệm-duy-nhất-srp
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguyên-lý-đóngmở-ocp
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguyên-lý-thay-thế-liskov-lsp
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguyên-lý-phân-tách-interface-isp
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguyên-lý-đảo-ngược-dependencies-dip
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#nguyên-lý-đừng-lặp-lại-chính-mình-dry
DRYhttps://en.wikipedia.org/wiki/Don%27t_repeat_yourself
SOLIDhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#solid
Lớphttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#l%E1%BB%9Bp
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#các-ngôn-ngữ-khác
php-cpm/clean-code-phphttps://github.com/php-cpm/clean-code-php
peter-gribanov/clean-code-phphttps://github.com/peter-gribanov/clean-code-php
fikoborquez/clean-code-phphttps://github.com/fikoborquez/clean-code-php
fabioars/clean-code-phphttps://github.com/fabioars/clean-code-php
jeanjar/clean-code-phphttps://github.com/jeanjar/clean-code-php/tree/pt-br
panuwizzle/clean-code-phphttps://github.com/panuwizzle/clean-code-php
errorname/clean-code-phphttps://github.com/errorname/clean-code-php
⬆ Về mục lụchttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c
Readme https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#readme-ov-file
MIT license https://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php#MIT-1-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
Activityhttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/activity
63 starshttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/stargazers
7 watchinghttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/watchers
36 forkshttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fhenryonsoftware%2Fclean-code-php&report=henryonsoftware+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php/releases
Packages 0https://patch-diff.githubusercontent.com/users/henryonsoftware/packages?repo_name=clean-code-php
Please reload this pagehttps://patch-diff.githubusercontent.com/henryonsoftware/clean-code-php
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.