| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:de11c38c-658b-89b4-7301-aa1e30899f41 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | E5E6:26E336:1BA694D:2650E46:6B06E167 |
| html-safe-nonce | b52e4f68b62a7669e5cf812105019762b7319ee47c8d8ab26d67d7257621ddf7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUU2OjI2RTMzNjoxQkE2OTREOjI2NTBFNDY6NkIwNkUxNjciLCJ2aXNpdG9yX2lkIjoiNDU0MTc5MTM3MTcxNTMzODU5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5694ec01c0bb1f918ccfad461f927479e6926db2847157410cabc94a76ec6aae |
| hovercard-subject-tag | repository:147353420 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | // |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/trungx/clean-code-php |
| twitter:image | https://opengraph.githubassets.com/5b7915b01f9cc006250dee8726562825ce8e665782266d98689632a90f3a486a/trungx/clean-code-php |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b7915b01f9cc006250dee8726562825ce8e665782266d98689632a90f3a486a/trungx/clean-code-php |
| og:image:alt | :bathtub: Clean Code dành cho ngôn ngữ PHP. Contribute to trungx/clean-code-php development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 351ea5ca38a5758919d44ee52c70fe9003c0c2dfa20f04effd7fac0c5330c16b |
| turbo-cache-control | no-cache |
| go-import | github.com/trungx/clean-code-php git https://github.com/trungx/clean-code-php.git |
| octolytics-dimension-user_id | 8992414 |
| octolytics-dimension-user_login | trungx |
| octolytics-dimension-repository_id | 147353420 |
| octolytics-dimension-repository_nwo | trungx/clean-code-php |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 117075578 |
| octolytics-dimension-repository_parent_nwo | henrybuidotdev/clean-code-php |
| octolytics-dimension-repository_network_root_id | 79111500 |
| octolytics-dimension-repository_network_root_nwo | piotrplenik/clean-code-php |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af8913cd0f2f77c41796be449ac66a9108825abc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/trungx/clean-code-php#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftrungx%2Fclean-code-php |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftrungx%2Fclean-code-php |
| Sign up | https://github.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=trungx%2Fclean-code-php |
| Reload | https://github.com/trungx/clean-code-php |
| Reload | https://github.com/trungx/clean-code-php |
| Reload | https://github.com/trungx/clean-code-php |
| trungx | https://github.com/trungx |
| clean-code-php | https://github.com/trungx/clean-code-php |
| Code | https://github.com/trungx/clean-code-php |
| Pull requests | https://github.com/trungx/clean-code-php/pulls |
| Actions | https://github.com/trungx/clean-code-php/actions |
| Projects | https://github.com/trungx/clean-code-php/projects |
| Wiki | https://github.com/trungx/clean-code-php/wiki |
| Security and quality | https://github.com/trungx/clean-code-php/security |
| Insights | https://github.com/trungx/clean-code-php/pulse |
| https://github.com/trungx/clean-code-php |
| clean-code-php | https://github.com/trungx/clean-code-php |
| henrybuidotdev/clean-code-php | https://github.com/henrybuidotdev/clean-code-php |
| Notifications | https://github.com/login?return_to=%2Ftrungx%2Fclean-code-php |
| Fork0 (0) | https://github.com/login?return_to=%2Ftrungx%2Fclean-code-php |
| Star0 (0) | https://github.com/login?return_to=%2Ftrungx%2Fclean-code-php |
| Readme | https://github.com/trungx/clean-code-php#readme-ov-file |
| MIT license | https://github.com/trungx/clean-code-php#MIT-1-ov-file |
| Activity | https://github.com/trungx/clean-code-php/activity |
| 0 forks | https://github.com/trungx/clean-code-php/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Ftrungx%2Fclean-code-php&report=trungx+%28user%29 |
| Branches | https://github.com/trungx/clean-code-php/branches |
| Tags | https://github.com/trungx/clean-code-php/tags |
| https://github.com/trungx/clean-code-php/branches |
| https://github.com/trungx/clean-code-php/tags |
| 269 Commits | https://github.com/trungx/clean-code-php/commits/master/ |
| https://github.com/trungx/clean-code-php/commits/master/ |
| .idea | https://github.com/trungx/clean-code-php/tree/master/.idea |
| .idea | https://github.com/trungx/clean-code-php/tree/master/.idea |
| .gitattributes | https://github.com/trungx/clean-code-php/blob/master/.gitattributes |
| .gitattributes | https://github.com/trungx/clean-code-php/blob/master/.gitattributes |
| .travis-build.php | https://github.com/trungx/clean-code-php/blob/master/.travis-build.php |
| .travis-build.php | https://github.com/trungx/clean-code-php/blob/master/.travis-build.php |
| .travis.yml | https://github.com/trungx/clean-code-php/blob/master/.travis.yml |
| .travis.yml | https://github.com/trungx/clean-code-php/blob/master/.travis.yml |
| LICENSE | https://github.com/trungx/clean-code-php/blob/master/LICENSE |
| LICENSE | https://github.com/trungx/clean-code-php/blob/master/LICENSE |
| README.md | https://github.com/trungx/clean-code-php/blob/master/README.md |
| README.md | https://github.com/trungx/clean-code-php/blob/master/README.md |
| README | https://github.com/trungx/clean-code-php |
| MIT license | https://github.com/trungx/clean-code-php |
| https://github.com/trungx/clean-code-php#clean-code-php |
| https://github.com/trungx/clean-code-php#mục-lục |
| Giới thiệu | https://github.com/trungx/clean-code-php#gi%E1%BB%9Bi-thi%E1%BB%87u |
| Biến | https://github.com/trungx/clean-code-php#bi%E1%BA%BFn |
| Sử dụng tên biến có ý nghĩa và dễ hiểu | https://github.com/trungx/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ến | https://github.com/trungx/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://github.com/trungx/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://github.com/trungx/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ểu | https://github.com/trungx/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://github.com/trungx/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://github.com/trungx/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 đọc | https://github.com/trungx/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ết | https://github.com/trungx/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ện | https://github.com/trungx/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ánh | https://github.com/trungx/clean-code-php#so-s%C3%A1nh |
| Sử dụng identical comparison | https://github.com/trungx/clean-code-php#s%E1%BB%AD-d%E1%BB%A5ng-identical-comparison |
| Hàm | https://github.com/trungx/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://github.com/trungx/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ăng | https://github.com/trungx/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àm | https://github.com/trungx/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ượng | https://github.com/trungx/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àm | https://github.com/trungx/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://github.com/trungx/clean-code-php#tr%C3%A1nh-t%C3%A1c-d%E1%BB%A5ng-ph%E1%BB%A5 |
| Đừng viết hàm global | https://github.com/trungx/clean-code-php#%C4%90%E1%BB%ABng-vi%E1%BA%BFt-h%C3%A0m-global |
| Đừng sử dụng Singleton pattern | https://github.com/trungx/clean-code-php#%C4%90%E1%BB%ABng-s%E1%BB%AD-d%E1%BB%A5ng-singleton-pattern |
| Đóng gói điều kiện | https://github.com/trungx/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ủ định | https://github.com/trungx/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ện | https://github.com/trungx/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://github.com/trungx/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://github.com/trungx/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 code | https://github.com/trungx/clean-code-php#x%C3%B3a-dead-code |
| Đối tượng và kiến trúc dữ liệu | https://github.com/trungx/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ói | https://github.com/trungx/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/protected | https://github.com/trungx/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ớp | https://github.com/trungx/clean-code-php#l%E1%BB%9Bp |
| Ưu tiên thành phần hơn kế thừa | https://github.com/trungx/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 interfaces | https://github.com/trungx/clean-code-php#tr%C3%A1nh-vi%E1%BA%BFt-fluent-interfaces |
| SOLID | https://github.com/trungx/clean-code-php#solid |
| Nguyên lý trách nhiệm duy nhất (SRP) | https://github.com/trungx/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://github.com/trungx/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://github.com/trungx/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://github.com/trungx/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://github.com/trungx/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://github.com/trungx/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ác | https://github.com/trungx/clean-code-php#c%C3%A1c-ng%C3%B4n-ng%E1%BB%AF-kh%C3%A1c |
| https://github.com/trungx/clean-code-php#giới-thiệu |
| Clean Code | https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882 |
| clean-code-javascript | https://github.com/ryanmcdermott/clean-code-javascript |
| https://github.com/trungx/clean-code-php#biến |
| https://github.com/trungx/clean-code-php#sử-dụng-tên-biến-có-ý-nghĩa-và-dễ-hiểu |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#sử-dụng-cùng-từ-vựng-cho-cùng-một-loại-biến |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#đặt-tên-sao-cho-dễ-tìm-kiếm-phần-1 |
| https://github.com/trungx/clean-code-php#đặt-tên-sao-cho-dễ-tìm-kiếm-phần-2 |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#đặt-tên-biến-dễ-hiểu |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tránh-lồng-nesting-quá-nhiều-và-nên-return-sớm-phần-1 |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tránh-lồng-nesting-quá-nhiều-và-nên-return-sớm-phần-2 |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tránh-hack-não-người-đọc |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#đừng-thêm-những-nội-dung-không-cần-thiết |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/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 hinting | http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#so-sánh |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| identical comparison | http://php.net/manual/en/language.operators.comparison.php |
| https://github.com/trungx/clean-code-php#sử-dụng-identical-comparison |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#hàm |
| https://github.com/trungx/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ục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#hàm-chỉ-thực-hiện-một-chức-năng |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tên-hàm-nên-thể-hiện-chức-năng-của-hàm |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#hàm-chỉ-nên-có-độ-trừu-tượng-một-cấp |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#đừng-sử-dụng-cờ-như-là-một-đối-số-của-hàm |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tránh-tác-dụng-phụ |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#đừng-viết-hàm-global |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#đừng-sử-dụng-singleton-pattern |
| anti-pattern | https://en.wikipedia.org/wiki/Singleton_pattern |
| single responsibility principle | https://github.com/trungx/clean-code-php#single-responsibility-principle-srp |
| coupling | https://en.wikipedia.org/wiki/Coupling_%28computer_programming%29 |
| Misko Hevery | http://misko.hevery.com/about/ |
| gốc rễ của vấn đề | http://misko.hevery.com/2008/08/25/root-cause-of-singletons/ |
| DSN | http://php.net/manual/en/pdo.construct.php#refsect1-pdo.construct-parameters |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#đóng-gói-điều-kiện |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tránh-điều-kiện-phủ-định |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tránh-dùng-điều-kiện |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tránh-kiểm-tra-kiểu-dữ-liệu-phần-1 |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tránh-kiểm-tra-kiểu-dữ-liệu-phần-2 |
| type declaration | http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#xóa-dead-code |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#đối-tượng-và-kiến-trúc-dữ-liệu |
| https://github.com/trungx/clean-code-php#sử-dụng-đối-tượng-đóng-gói |
| Open/Closed | https://github.com/trungx/clean-code-php#openclosed-principle-ocp |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tạo-đối-tượng-có-chứa-thuộc-tính-hoặc-phương-thức-privateprotected |
| Jenga | http://www.urbandictionary.com/define.php?term=Jengaphobia&defid=2494196 |
| blog post | http://fabien.potencier.org/pragmatism-over-theory-protected-vs-private.html |
| Fabien Potencier | https://github.com/fabpot |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#lớp |
| https://github.com/trungx/clean-code-php#ưu-tiên-thành-phần-hơn-kế-thừa |
| Design Patterns | https://en.wikipedia.org/wiki/Design_Patterns |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#tránh-viết-fluent-interfaces |
| Fluent interface | https://en.wikipedia.org/wiki/Fluent_interface |
| Method chaining | https://en.wikipedia.org/wiki/Method_chaining |
| PHPUnit Mock Builder | https://phpunit.de/manual/current/en/test-doubles.html |
| Doctrine Query Builder | http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/query-builder.html |
| Encapsulation | https://en.wikipedia.org/wiki/Encapsulation_%28object-oriented_programming%29 |
| Decorators | https://en.wikipedia.org/wiki/Decorator_pattern |
| mock | https://en.wikipedia.org/wiki/Mock_object |
| bài viết | https://ocramius.github.io/blog/fluent-interfaces-are-evil/ |
| Marco Pivetta | https://github.com/Ocramius |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#solid |
| S: Nguyên lý trách nhiệm duy nhất (SRP) | https://github.com/trungx/clean-code-php#single-responsibility-principle-srp |
| O: Nguyên lý Đóng/Mở (OCP) | https://github.com/trungx/clean-code-php#openclosed-principle-ocp |
| L: Nguyên lý thay thế Liskov (LSP) | https://github.com/trungx/clean-code-php#liskov-substitution-principle-lsp |
| I: Nguyên lý phân tách interface (ISP) | https://github.com/trungx/clean-code-php#interface-segregation-principle-isp |
| D: Nguyên lý đảo ngược dependencies (DIP) | https://github.com/trungx/clean-code-php#dependency-inversion-principle-dip |
| https://github.com/trungx/clean-code-php#nguyên-lý-trách-nhiệm-duy-nhất-srp |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#nguyên-lý-đóngmở-ocp |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#nguyên-lý-thay-thế-liskov-lsp |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#nguyên-lý-phân-tách-interface-isp |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#nguyên-lý-đảo-ngược-dependencies-dip |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#nguyên-lý-đừng-lặp-lại-chính-mình-dry |
| DRY | https://en.wikipedia.org/wiki/Don%27t_repeat_yourself |
| SOLID | https://github.com/trungx/clean-code-php#solid |
| Lớp | https://github.com/trungx/clean-code-php#l%E1%BB%9Bp |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| https://github.com/trungx/clean-code-php#các-ngôn-ngữ-khác |
| php-cpm/clean-code-php | https://github.com/php-cpm/clean-code-php |
| peter-gribanov/clean-code-php | https://github.com/peter-gribanov/clean-code-php |
| fikoborquez/clean-code-php | https://github.com/fikoborquez/clean-code-php |
| fabioars/clean-code-php | https://github.com/fabioars/clean-code-php |
| jeanjar/clean-code-php | https://github.com/jeanjar/clean-code-php/tree/pt-br |
| panuwizzle/clean-code-php | https://github.com/panuwizzle/clean-code-php |
| errorname/clean-code-php | https://github.com/errorname/clean-code-php |
| ⬆ Về mục lục | https://github.com/trungx/clean-code-php#m%E1%BB%A5c-l%E1%BB%A5c |
| Readme | https://github.com/trungx/clean-code-php#readme-ov-file |
| MIT license | https://github.com/trungx/clean-code-php#MIT-1-ov-file |
| Activity | https://github.com/trungx/clean-code-php/activity |
| 0 forks | https://github.com/trungx/clean-code-php/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Ftrungx%2Fclean-code-php&report=trungx+%28user%29 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |