René's URL Explorer Experiment


Title: GitHub - Chengings/clean-code-php: :bathtub: Clean Code concepts adapted for PHP

Open Graph Title: GitHub - Chengings/clean-code-php: :bathtub: Clean Code concepts adapted for PHP

X Title: GitHub - Chengings/clean-code-php: :bathtub: Clean Code concepts adapted for PHP

Description: :bathtub: Clean Code concepts adapted for PHP. Contribute to Chengings/clean-code-php development by creating an account on GitHub.

Open Graph Description: :bathtub: Clean Code concepts adapted for PHP. Contribute to Chengings/clean-code-php development by creating an account on GitHub.

X Description: :bathtub: Clean Code concepts adapted for PHP. Contribute to Chengings/clean-code-php development by creating an account on GitHub.

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:1cb80a71-cf0a-958c-e10f-fb378a2a4aca
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id9CD4:2942DB:DE512F:11D8A79:699237DB
html-safe-nonceab43299ea629076870c3089296115cc5ec62f98934d88dd847f51530cc6bc91c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0Q0OjI5NDJEQjpERTUxMkY6MTFEOEE3OTo2OTkyMzdEQiIsInZpc2l0b3JfaWQiOiI2NzI0ODk4MTQ0MTYzODcwNjgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2ff93d6c1997bef6ee32de64395cfe06cbe53d6fb5fb3a9a635dfec23efa953a
hovercard-subject-tagrepository:200918706
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/Chengings/clean-code-php
twitter:imagehttps://opengraph.githubassets.com/7f54378c3e1363e2bb038cef646c60c347c5e8784b42b3dffb735ffb1933b5c8/Chengings/clean-code-php
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7f54378c3e1363e2bb038cef646c60c347c5e8784b42b3dffb735ffb1933b5c8/Chengings/clean-code-php
og:image:alt:bathtub: Clean Code concepts adapted for PHP. Contribute to Chengings/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
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/Chengings/clean-code-php git https://github.com/Chengings/clean-code-php.git
octolytics-dimension-user_id1482605
octolytics-dimension-user_loginChengings
octolytics-dimension-repository_id200918706
octolytics-dimension-repository_nwoChengings/clean-code-php
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id102632575
octolytics-dimension-repository_parent_nwopanuwizzle/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
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/Chengings/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%2FChengings%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%2FChengings%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=Chengings%2Fclean-code-php
Reloadhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php
Reloadhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php
Reloadhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php
Chengings https://patch-diff.githubusercontent.com/Chengings
clean-code-phphttps://patch-diff.githubusercontent.com/Chengings/clean-code-php
panuwizzle/clean-code-phphttps://patch-diff.githubusercontent.com/panuwizzle/clean-code-php
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FChengings%2Fclean-code-php
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2FChengings%2Fclean-code-php
Star 0 https://patch-diff.githubusercontent.com/login?return_to=%2FChengings%2Fclean-code-php
MIT license https://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/LICENSE
0 stars https://patch-diff.githubusercontent.com/Chengings/clean-code-php/stargazers
2.3k forks https://patch-diff.githubusercontent.com/Chengings/clean-code-php/forks
Branches https://patch-diff.githubusercontent.com/Chengings/clean-code-php/branches
Tags https://patch-diff.githubusercontent.com/Chengings/clean-code-php/tags
Activity https://patch-diff.githubusercontent.com/Chengings/clean-code-php/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2FChengings%2Fclean-code-php
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FChengings%2Fclean-code-php
Code https://patch-diff.githubusercontent.com/Chengings/clean-code-php
Pull requests 0 https://patch-diff.githubusercontent.com/Chengings/clean-code-php/pulls
Actions https://patch-diff.githubusercontent.com/Chengings/clean-code-php/actions
Projects 0 https://patch-diff.githubusercontent.com/Chengings/clean-code-php/projects
Security 0 https://patch-diff.githubusercontent.com/Chengings/clean-code-php/security
Insights https://patch-diff.githubusercontent.com/Chengings/clean-code-php/pulse
Code https://patch-diff.githubusercontent.com/Chengings/clean-code-php
Pull requests https://patch-diff.githubusercontent.com/Chengings/clean-code-php/pulls
Actions https://patch-diff.githubusercontent.com/Chengings/clean-code-php/actions
Projects https://patch-diff.githubusercontent.com/Chengings/clean-code-php/projects
Security https://patch-diff.githubusercontent.com/Chengings/clean-code-php/security
Insights https://patch-diff.githubusercontent.com/Chengings/clean-code-php/pulse
Brancheshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/branches
Tagshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/tags
https://patch-diff.githubusercontent.com/Chengings/clean-code-php/branches
https://patch-diff.githubusercontent.com/Chengings/clean-code-php/tags
239 Commitshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/commits/master/
https://patch-diff.githubusercontent.com/Chengings/clean-code-php/commits/master/
.gitattributeshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/.gitattributes
.gitattributeshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/.gitattributes
.travis-build.phphttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/.travis-build.php
.travis-build.phphttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/.travis-build.php
.travis.ymlhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/.travis.yml
.travis.ymlhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/.travis.yml
LICENSEhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/LICENSE
LICENSEhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/LICENSE
README.mdhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/README.md
README.mdhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/blob/master/README.md
READMEhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php
MIT licensehttps://patch-diff.githubusercontent.com/Chengings/clean-code-php
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#คลีนโค้ด-php
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#สารบัญ
บทนำhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%9A%E0%B8%97%E0%B8%99%E0%B8%B3
ตัวแปรhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3
ใช้ชื่อตัวแปรที่มีความหมายและอ่านออกเสียงได้https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%A1%E0%B8%B5%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B8%AB%E0%B8%A1%E0%B8%B2%E0%B8%A2%E0%B9%81%E0%B8%A5%E0%B8%B0%E0%B8%AD%E0%B9%88%E0%B8%B2%E0%B8%99%E0%B8%AD%E0%B8%AD%E0%B8%81%E0%B9%80%E0%B8%AA%E0%B8%B5%E0%B8%A2%E0%B8%87%E0%B9%84%E0%B8%94%E0%B9%89
ใช้ศัพท์เดียวกันสำหรับตัวแปรชนิดเดียวกันhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%A8%E0%B8%B1%E0%B8%9E%E0%B8%97%E0%B9%8C%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3%E0%B8%8A%E0%B8%99%E0%B8%B4%E0%B8%94%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%81%E0%B8%B1%E0%B8%99
ใช้ชื่อที่ค้นหาเจอได้ (ภาค 1)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%AB%E0%B8%B2%E0%B9%80%E0%B8%88%E0%B8%AD%E0%B9%84%E0%B8%94%E0%B9%89-%E0%B8%A0%E0%B8%B2%E0%B8%84-1
ใช้ชื่อที่ค้นหาเจอได้ (ภาค 2)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%84%E0%B9%89%E0%B8%99%E0%B8%AB%E0%B8%B2%E0%B9%80%E0%B8%88%E0%B8%AD%E0%B9%84%E0%B8%94%E0%B9%89-%E0%B8%A0%E0%B8%B2%E0%B8%84-2
ใช้ตัวแปรที่อธิบายตัวเองได้https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%81%E0%B8%9B%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%AD%E0%B8%98%E0%B8%B4%E0%B8%9A%E0%B8%B2%E0%B8%A2%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%AD%E0%B8%87%E0%B9%84%E0%B8%94%E0%B9%89
หลีกเลี่ยงโค้ดที่ซ้อนลงไปลึกเกินไปและคืนค่าตั้งแต่ต้น (ภาค 1)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AB%E0%B8%A5%E0%B8%B5%E0%B8%81%E0%B9%80%E0%B8%A5%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%87%E0%B9%82%E0%B8%84%E0%B9%89%E0%B8%94%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%8B%E0%B9%89%E0%B8%AD%E0%B8%99%E0%B8%A5%E0%B8%87%E0%B9%84%E0%B8%9B%E0%B8%A5%E0%B8%B6%E0%B8%81%E0%B9%80%E0%B8%81%E0%B8%B4%E0%B8%99%E0%B9%84%E0%B8%9B%E0%B9%81%E0%B8%A5%E0%B8%B0%E0%B8%84%E0%B8%B7%E0%B8%99%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%95%E0%B9%88%E0%B8%95%E0%B9%89%E0%B8%99-%E0%B8%A0%E0%B8%B2%E0%B8%84-1
หลีกเลี่ยงโค้ดที่ซ้อนลงไปลึกเกินไปและคืนค่าตั้งแต่ต้น (ภาค 2)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AB%E0%B8%A5%E0%B8%B5%E0%B8%81%E0%B9%80%E0%B8%A5%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%87%E0%B9%82%E0%B8%84%E0%B9%89%E0%B8%94%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%8B%E0%B9%89%E0%B8%AD%E0%B8%99%E0%B8%A5%E0%B8%87%E0%B9%84%E0%B8%9B%E0%B8%A5%E0%B8%B6%E0%B8%81%E0%B9%80%E0%B8%81%E0%B8%B4%E0%B8%99%E0%B9%84%E0%B8%9B%E0%B9%81%E0%B8%A5%E0%B8%B0%E0%B8%84%E0%B8%B7%E0%B8%99%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B8%95%E0%B8%B1%E0%B9%89%E0%B8%87%E0%B9%81%E0%B8%95%E0%B9%88%E0%B8%95%E0%B9%89%E0%B8%99-%E0%B8%A0%E0%B8%B2%E0%B8%84-2
หลีกเลี่ยงการต้องไล่ลำดับเองhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AB%E0%B8%A5%E0%B8%B5%E0%B8%81%E0%B9%80%E0%B8%A5%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%87%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B9%84%E0%B8%A5%E0%B9%88%E0%B8%A5%E0%B8%B3%E0%B8%94%E0%B8%B1%E0%B8%9A%E0%B9%80%E0%B8%AD%E0%B8%87
อย่าเพิ่มสิ่งที่ไม่จำเป็นhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B9%80%E0%B8%9E%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%AA%E0%B8%B4%E0%B9%88%E0%B8%87%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%88%E0%B8%B3%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99
ให้อาร์กิวเมนต์มีค่าเริ่มต้น แทนที่การใช้ทางลัดหรือใช้การเช็คเงื่อนไขhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B8%AD%E0%B8%B2%E0%B8%A3%E0%B9%8C%E0%B8%81%E0%B8%B4%E0%B8%A7%E0%B9%80%E0%B8%A1%E0%B8%99%E0%B8%95%E0%B9%8C%E0%B8%A1%E0%B8%B5%E0%B8%84%E0%B9%88%E0%B8%B2%E0%B9%80%E0%B8%A3%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%95%E0%B9%89%E0%B8%99-%E0%B9%81%E0%B8%97%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%97%E0%B8%B2%E0%B8%87%E0%B8%A5%E0%B8%B1%E0%B8%94%E0%B8%AB%E0%B8%A3%E0%B8%B7%E0%B8%AD%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%8A%E0%B9%87%E0%B8%84%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82
Comparisonhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#comparison
Use identical comparisonhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#use-identical-comparison
ฟังก์ชันhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%9F%E0%B8%B1%E0%B8%87%E0%B8%81%E0%B9%8C%E0%B8%8A%E0%B8%B1%E0%B8%99
อาร์กิวเมนท์ในฟังก์ชัน (2 ตัวหรือน้อยกว่าจะดีมาก)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AD%E0%B8%B2%E0%B8%A3%E0%B9%8C%E0%B8%81%E0%B8%B4%E0%B8%A7%E0%B9%80%E0%B8%A1%E0%B8%99%E0%B8%97%E0%B9%8C%E0%B9%83%E0%B8%99%E0%B8%9F%E0%B8%B1%E0%B8%87%E0%B8%81%E0%B9%8C%E0%B8%8A%E0%B8%B1%E0%B8%99-2-%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B8%AB%E0%B8%A3%E0%B8%B7%E0%B8%AD%E0%B8%99%E0%B9%89%E0%B8%AD%E0%B8%A2%E0%B8%81%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%88%E0%B8%B0%E0%B8%94%E0%B8%B5%E0%B8%A1%E0%B8%B2%E0%B8%81
ฟังก์ชันควรจะทำงานเพียงอย่างเดียวhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%9F%E0%B8%B1%E0%B8%87%E0%B8%81%E0%B9%8C%E0%B8%8A%E0%B8%B1%E0%B8%99%E0%B8%84%E0%B8%A7%E0%B8%A3%E0%B8%88%E0%B8%B0%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B9%80%E0%B8%9E%E0%B8%B5%E0%B8%A2%E0%B8%87%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7
ชื่อฟังก์ชันควรจะสื่อว่ามันทำอะไรhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%9F%E0%B8%B1%E0%B8%87%E0%B8%81%E0%B9%8C%E0%B8%8A%E0%B8%B1%E0%B8%99%E0%B8%84%E0%B8%A7%E0%B8%A3%E0%B8%88%E0%B8%B0%E0%B8%AA%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%A1%E0%B8%B1%E0%B8%99%E0%B8%97%E0%B8%B3%E0%B8%AD%E0%B8%B0%E0%B9%84%E0%B8%A3
ฟังก์ชันควรจะมีสาระสำคัญแค่ระดับเดียวhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%9F%E0%B8%B1%E0%B8%87%E0%B8%81%E0%B9%8C%E0%B8%8A%E0%B8%B1%E0%B8%99%E0%B8%84%E0%B8%A7%E0%B8%A3%E0%B8%88%E0%B8%B0%E0%B8%A1%E0%B8%B5%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%B0%E0%B8%AA%E0%B8%B3%E0%B8%84%E0%B8%B1%E0%B8%8D%E0%B9%81%E0%B8%84%E0%B9%88%E0%B8%A3%E0%B8%B0%E0%B8%94%E0%B8%B1%E0%B8%9A%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7
อย่าใช้แฟล็ก (Flag) เป็นพารามิเตอร์ของฟังก์ชันhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B9%81%E0%B8%9F%E0%B8%A5%E0%B9%87%E0%B8%81-flag-%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%9E%E0%B8%B2%E0%B8%A3%E0%B8%B2%E0%B8%A1%E0%B8%B4%E0%B9%80%E0%B8%95%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B8%9F%E0%B8%B1%E0%B8%87%E0%B8%81%E0%B9%8C%E0%B8%8A%E0%B8%B1%E0%B8%99
ระวังผลข้างเคียง (size effects)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%A3%E0%B8%B0%E0%B8%A7%E0%B8%B1%E0%B8%87%E0%B8%9C%E0%B8%A5%E0%B8%82%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B9%80%E0%B8%84%E0%B8%B5%E0%B8%A2%E0%B8%87-size-effects
อย่าเขียนฟังก์ชันแบบโกลบอลhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99%E0%B8%9F%E0%B8%B1%E0%B8%87%E0%B8%81%E0%B9%8C%E0%B8%8A%E0%B8%B1%E0%B8%99%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B9%82%E0%B8%81%E0%B8%A5%E0%B8%9A%E0%B8%AD%E0%B8%A5
อย่าใช้แพทเทิน ซิงเกิลตัน (Singleton)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B9%81%E0%B8%9E%E0%B8%97%E0%B9%80%E0%B8%97%E0%B8%B4%E0%B8%99-%E0%B8%8B%E0%B8%B4%E0%B8%87%E0%B9%80%E0%B8%81%E0%B8%B4%E0%B8%A5%E0%B8%95%E0%B8%B1%E0%B8%99-singleton
ซ่อนการทำงานของเงื่อนไขhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%8B%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82
อย่าใช้เงื่อนไขที่เป็นเชิงลบhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B9%80%E0%B8%8A%E0%B8%B4%E0%B8%87%E0%B8%A5%E0%B8%9A
เลิกใช้เงื่อนไขไปเลยhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%80%E0%B8%A5%E0%B8%B4%E0%B8%81%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B9%80%E0%B8%87%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%82%E0%B9%84%E0%B8%9B%E0%B9%80%E0%B8%A5%E0%B8%A2
หลีกเลี่ยงการตรวจสอบชนิดข้อมูล (ภาค 1) https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AB%E0%B8%A5%E0%B8%B5%E0%B8%81%E0%B9%80%E0%B8%A5%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%87%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%A3%E0%B8%A7%E0%B8%88%E0%B8%AA%E0%B8%AD%E0%B8%9A%E0%B8%8A%E0%B8%99%E0%B8%B4%E0%B8%94%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5-%E0%B8%A0%E0%B8%B2%E0%B8%84-1
หลีกเลี่ยงการตรวจสอบชนิดข้อมูล (ภาค 2) https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AB%E0%B8%A5%E0%B8%B5%E0%B8%81%E0%B9%80%E0%B8%A5%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%87%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%A3%E0%B8%A7%E0%B8%88%E0%B8%AA%E0%B8%AD%E0%B8%9A%E0%B8%8A%E0%B8%99%E0%B8%B4%E0%B8%94%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5-%E0%B8%A0%E0%B8%B2%E0%B8%84-2
เอาโค้ดที่ตายแล้วออกไปhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%80%E0%B8%AD%E0%B8%B2%E0%B9%82%E0%B8%84%E0%B9%89%E0%B8%94%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%95%E0%B8%B2%E0%B8%A2%E0%B9%81%E0%B8%A5%E0%B9%89%E0%B8%A7%E0%B8%AD%E0%B8%AD%E0%B8%81%E0%B9%84%E0%B8%9B
อ็อบเจคและโครงสร้างข้อมูลhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AD%E0%B9%87%E0%B8%AD%E0%B8%9A%E0%B9%80%E0%B8%88%E0%B8%84%E0%B9%81%E0%B8%A5%E0%B8%B0%E0%B9%82%E0%B8%84%E0%B8%A3%E0%B8%87%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5
ใช้การซ่อนเนื้อหาของอ็อบเจค (object encapsulation)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%8B%E0%B9%88%E0%B8%AD%E0%B8%99%E0%B9%80%E0%B8%99%E0%B8%B7%E0%B9%89%E0%B8%AD%E0%B8%AB%E0%B8%B2%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B8%AD%E0%B9%87%E0%B8%AD%E0%B8%9A%E0%B9%80%E0%B8%88%E0%B8%84-object-encapsulation
ให้อ็อบเจคมีองค์ประกอบแบบไพรเวทและโปรเทคhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B8%AD%E0%B9%87%E0%B8%AD%E0%B8%9A%E0%B9%80%E0%B8%88%E0%B8%84%E0%B8%A1%E0%B8%B5%E0%B8%AD%E0%B8%87%E0%B8%84%E0%B9%8C%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%81%E0%B8%AD%E0%B8%9A%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B9%84%E0%B8%9E%E0%B8%A3%E0%B9%80%E0%B8%A7%E0%B8%97%E0%B9%81%E0%B8%A5%E0%B8%B0%E0%B9%82%E0%B8%9B%E0%B8%A3%E0%B9%80%E0%B8%97%E0%B8%84
คลาสhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%84%E0%B8%A5%E0%B8%B2%E0%B8%AA
แนะนำให้ใช้การประกอบมากกว่าการสืบทอด (composition over inheritance)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B9%81%E0%B8%99%E0%B8%B0%E0%B8%99%E0%B8%B3%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B9%83%E0%B8%8A%E0%B9%89%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%81%E0%B8%AD%E0%B8%9A%E0%B8%A1%E0%B8%B2%E0%B8%81%E0%B8%81%E0%B8%A7%E0%B9%88%E0%B8%B2%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%B7%E0%B8%9A%E0%B8%97%E0%B8%AD%E0%B8%94-composition-over-inheritance
หลีกเลี่ยงฟลูเอนท์ อินเตอร์เฟสhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AB%E0%B8%A5%E0%B8%B5%E0%B8%81%E0%B9%80%E0%B8%A5%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%87%E0%B8%9F%E0%B8%A5%E0%B8%B9%E0%B9%80%E0%B8%AD%E0%B8%99%E0%B8%97%E0%B9%8C-%E0%B8%AD%E0%B8%B4%E0%B8%99%E0%B9%80%E0%B8%95%E0%B8%AD%E0%B8%A3%E0%B9%8C%E0%B9%80%E0%B8%9F%E0%B8%AA
Prefer final classeshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#prefer-final-classes
SOLIDhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#solid
Single Responsibility Principle (SRP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#single-responsibility-principle-srp
Open/Closed Principle (OCP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#openclosed-principle-ocp
Liskov Substitution Principle (LSP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#liskov-substitution-principle-lsp
Interface Segregation Principle (ISP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#interface-segregation-principle-isp
Dependency Inversion Principle (DIP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#dependency-inversion-principle-dip
Don’t repeat yourself (DRY)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#dont-repeat-yourself-dry
การแปลhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%81%E0%B8%9B%E0%B8%A5
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#บทนำ
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/Chengings/clean-code-php#ตัวแปร
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ใช้ชื่อตัวแปรที่มีความหมายและอ่านออกเสียงได้
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ใช้ศัพท์เดียวกันสำหรับตัวแปรชนิดเดียวกัน
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ใช้ชื่อที่ค้นหาเจอได้-ภาค-1
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ใช้ชื่อที่ค้นหาเจอได้-ภาค-2
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ใช้ตัวแปรที่อธิบายตัวเองได้
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#หลีกเลี่ยงโค้ดที่ซ้อนลงไปลึกเกินไปและคืนค่าตั้งแต่ต้น-ภาค-1
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#หลีกเลี่ยงโค้ดที่ซ้อนลงไปลึกเกินไปและคืนค่าตั้งแต่ต้น-ภาค-2
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#หลีกเลี่ยงการต้องไล่ลำดับเอง
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#อย่าเพิ่มสิ่งที่ไม่จำเป็น
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ให้อาร์กิวเมนต์มีค่าเริ่มต้น-แทนที่การใช้ทางลัดหรือใช้การเช็คเงื่อนไข
type hintinghttp://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#comparison
identical comparisonhttp://php.net/manual/en/language.operators.comparison.php
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#use-identical-comparison
⬆ back to tophttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#table-of-contents
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ฟังก์ชัน
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#อาร์กิวเมนท์ในฟังก์ชัน-2-ตัวหรือน้อยกว่าจะดีมาก
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ฟังก์ชันควรจะทำงานเพียงอย่างเดียว
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ชื่อฟังก์ชันควรจะสื่อว่ามันทำอะไร
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ฟังก์ชันควรจะมีสาระสำคัญแค่ระดับเดียว
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#อย่าใช้แฟล็ก-flag-เป็นพารามิเตอร์ของฟังก์ชัน
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ระวังผลข้างเคียง-size-effects
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#อย่าเขียนฟังก์ชันแบบโกลบอล
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#อย่าใช้แพทเทิน-ซิงเกิลตัน-singleton
แอนติ-แพทเทินhttps://en.wikipedia.org/wiki/Singleton_pattern
code smellhttps://en.wikipedia.org/wiki/Code_smell
หลักการความรับผิดชอบเดียว (single responsibility principle)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#single-responsibility-principle-srp
coupledhttps://en.wikipedia.org/wiki/Coupling_%28computer_programming%29
Misko Heveryhttp://misko.hevery.com/about/
ต้นตอของปัญหา (root of problem)http://misko.hevery.com/2008/08/25/root-cause-of-singletons/
DSNhttp://php.net/manual/en/pdo.construct.php#refsect1-pdo.construct-parameters
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ซ่อนการทำงานของเงื่อนไข
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#อย่าใช้เงื่อนไขที่เป็นเชิงลบ
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#เลิกใช้เงื่อนไขไปเลย
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#หลีกเลี่ยงการตรวจสอบชนิดข้อมูล-ภาค-1
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#หลีกเลี่ยงการตรวจสอบชนิดข้อมูล-ภาค-2
type declarationhttp://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#เอาโค้ดที่ตายแล้วออกไป
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#อ็อบเจคและโครงสร้างข้อมูล
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ใช้การซ่อนเนื้อหาของอ็อบเจค-object-encapsulation
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#ให้อ็อบเจคมีองค์ประกอบแบบไพรเวทและโปรเทค
เจงก้า เอฟเฟค (Jenga effect)http://www.urbandictionary.com/define.php?term=Jengaphobia&defid=2494196
บล็อกโพสนี้http://fabien.potencier.org/pragmatism-over-theory-protected-vs-private.html
Fabien Potencierhttps://github.com/fabpot
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#คลาส
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#แนะนำให้ใช้การประกอบมากกว่าการสืบทอด-composition-over-inheritance
Design Patternshttps://en.wikipedia.org/wiki/Design_Patterns
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#หลีกเลี่ยงฟลูเอนท์-อินเตอร์เฟส
ฟลูเอนท์ อินเตอร์เฟสhttps://en.wikipedia.org/wiki/Fluent_interface
การเรียกเมธอดเป็นลูกโซ่https://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
บล็อกโพสhttps://ocramius.github.io/blog/fluent-interfaces-are-evil/
Marco Pivettahttps://github.com/Ocramius
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#prefer-final-classes
compositionhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#prefer-composition-over-inheritance
Single Responsibility Patternhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#single-responsibility-principle-srp
the blog posthttps://ocramius.github.io/blog/when-to-declare-classes-final/
Marco Pivetta (Ocramius)https://ocramius.github.io/
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#solid
S: Single Responsibility Principle (SRP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#single-responsibility-principle-srp
O: Open/Closed Principle (OCP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#openclosed-principle-ocp
L: Liskov Substitution Principle (LSP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#liskov-substitution-principle-lsp
I: Interface Segregation Principle (ISP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#interface-segregation-principle-isp
D: Dependency Inversion Principle (DIP)https://patch-diff.githubusercontent.com/Chengings/clean-code-php#dependency-inversion-principle-dip
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#single-responsibility-principle-srp
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#openclosed-principle-ocp
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#liskov-substitution-principle-lsp
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#interface-segregation-principle-isp
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#dependency-inversion-principle-dip
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#dont-repeat-yourself-dry
DRYhttps://en.wikipedia.org/wiki/Don%27t_repeat_yourself
Classeshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#classes
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
https://patch-diff.githubusercontent.com/Chengings/clean-code-php#การแปล
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
viethuongdev/clean-code-phphttps://github.com/viethuongdev/clean-code-php
yujineeee/clean-code-phphttps://github.com/yujineeee/clean-code-php
⬆ กลับไปด้านบนhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php#%E0%B8%AA%E0%B8%B2%E0%B8%A3%E0%B8%9A%E0%B8%B1%E0%B8%8D
Readme https://patch-diff.githubusercontent.com/Chengings/clean-code-php#readme-ov-file
MIT license https://patch-diff.githubusercontent.com/Chengings/clean-code-php#MIT-1-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/Chengings/clean-code-php
Activityhttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/activity
0 starshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/stargazers
0 watchinghttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/watchers
0 forkshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FChengings%2Fclean-code-php&report=Chengings+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/Chengings/clean-code-php/releases
Packages 0https://patch-diff.githubusercontent.com/users/Chengings/packages?repo_name=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.