雖然這篇Raywenderlich鄉民發文沒有被收入到精華區:在Raywenderlich這個話題中,我們另外找到其它相關的精選爆讚文章
在 raywenderlich產品中有5篇Facebook貼文,粉絲數超過10萬的網紅BorntoDev,也在其Facebook貼文中提到, 🔥 "เรื่องอื่นอาจจะประนีประนอมได้ .. แต่เขียนโค้ดสไตล์มั่วซั่ว ประนีประนอมไม่ได้เด็ดขาดดด !" . หลายคนน่าจะเคยเจอปัญหากันมาบ้างไม่ว่าจะเป็น . 🤣 "เมื่อวั...
同時也有10000部Youtube影片,追蹤數超過2,910的網紅コバにゃんチャンネル,也在其Youtube影片中提到,...
raywenderlich 在 BorntoDev Facebook 的最佳貼文
🔥 "เรื่องอื่นอาจจะประนีประนอมได้ .. แต่เขียนโค้ดสไตล์มั่วซั่ว ประนีประนอมไม่ได้เด็ดขาดดด !"
.
หลายคนน่าจะเคยเจอปัญหากันมาบ้างไม่ว่าจะเป็น
.
🤣 "เมื่อวันก่อนตรูเขียนอะไรลงไปเนี่ยยย !?" จนไปถึง "งงจัด เมื่อเพื่อนร่วมทีมส่งงานมาให้ช่วยดู"
.
ปัญหานี้จะหมดไปถ้าเรารู้ และ เข้าใจสิ่งที่เรียกว่า Coding Style ซึ่งจริง ๆ แล้วในหลาย ๆ ภาษาก็มีให้เราได้อ่านอยู่
.
✅ โดยเจ้าสิ่งนี้จะเป็น "คำแนะนำ" ในการเขียนโค้ดที่ดีของแต่ละภาษา หรือ แต่ละองค์กร ที่ได้มีเกณฑ์ต่าง ๆ กำหนดไว้แล้วนั่นเอง
.
ไม่ว่าจะเป็นเรื่องทั่วไปอย่าง
.
▶️ ควรตั้งชื่อตัวแปรแบบไหน ? ชื่อฟังก์ชันควรเป็นอะไรดี ?
.
▶️ การ Import ของจากข้างนอกมาใช้ อะไรควรทำก่อน หลัง หรือ ไม่ควร ?
.
▶️ จนไปถึง การออกแบบเงื่อนไขการทำงานควรออกแบบอย่างไร ?
.
ซึ่งแน่นอนว่าคำแนะนำที่ดีเหล่านี้จะช่วยให้โปรเจคของเราผ่านไปได้โดยราบลื่นนั่นเอง หากนำมาใช้ในทีมด้วยก็ยิ่งทำให้พวกเราเข้าใจตรงกันได้มากขึ้น
.
"มันเลยเปรียบเสมือนข้อตกลงในการทำงานร่วมกันนั่นเอง <3"
.
แต่จะต้องบอกก่อนนะว่า ไม่ใช่ทุกงานที่เหมาะกับ Coding Style นั้น ๆ หรือ ไม่ใช่ทุกปัญหาจะมีใน Coding Style บอกว่าแก้ไขยังไง หลายครั้งเราอาจจะต้องเพิ่มเติมเอาเอง
.
⚠️ "แต่สิ่งที่เพิ่มเติมจะต้องคุยกันในทีมให้เคลียร์ก่อนเสมอนะ !"
.
ดังนั้นวันนี้เรามาดู Coding Style Guide ของแต่ละภาษาไปพร้อมกันเลยดีกว่า !! (บางภาษาอาจมีตัวน่าสนใจมากกว่า 1 ตัว แอดก็รวมไว้ให้แล้วจ้า)
.
👉 ภาษา Java
.
http://www.oracle.com/technetwork/java/codeconventions-150003.pdf
https://google.github.io/styleguide/javaguide.html
.
👉 ภาษา C
.
http://www.maultech.com/chrislott/resources/cstyle/indhill-annot.pdf
http://www.maultech.com/chrislott/resources/cstyle/Peter_CStyleGuide.pdf
.
👉 ภาษา C++
.
http://www.maultech.com/chrislott/resources/cstyle/Wildfire-C++Style.html
http://www.maultech.com/chrislott/resources/cstyle/CppCodingStandard.html
.
👉 ภาษา Python
.
https://www.python.org/dev/peps/pep-0008/
.
👉 ภาษา C#
https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/index
.
👉 ภาษา JavaScript
.
https://github.com/airbnb/javascript
http://google.github.io/styleguide/javascriptguide.xml
https://www.w3schools.com/js/js_conventions.asp
.
👉 ภาษา Dart
https://dart.dev/guides/language/effective-dart/style
.
👉 ภาษา PHP
http://www.php-fig.org/psr/psr-1/
http://pear.php.net/manual/en/standards.php
.
👉 ภาษา Objective-C
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html
.
👉 ภาษา Kotlin
https://kotlinlang.org/docs/reference/coding-conventions.html
.
👉 ภาษา Swift
https://github.com/raywenderlich/swift-style-guide
.
👉 ภาษา Visual Basic.NET
https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/index
.
👉 ภาษา Ruby
https://github.com/bbatsov/ruby-style-guide
https://github.com/airbnb/ruby
.
👉 ภาษา R
http://web.stanford.edu/class/cs109l/unrestricted/resources/google-style.html
.
👉 ภาษา Go
https://golang.org/doc/effective_go.html
.
"เรียบร้อย ครบจบทุก Guideline ใครที่อยากทำงานกับทีมง่าย ๆ แนะนำให้ลองใช้กันดูได้เลยจ้า" <3 <3 <3
.
#borntoDev - 🦖 สร้างการเรียนรู้ที่ดีสำหรับสายไอทีในทุกวัน
raywenderlich 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳解答
🐯 ตัวอย่างโค้ดอัลกอริทึม + โครงสร้างข้อมูล (Algorithm+Datastructure) มีประโยชน์ เอาไปใช้ได้ตามอัธยาศรัย
🔥 Python
https://github.com/TheAlgorithms/Python
https://github.com/keon/algorithms
🔥 JavaScript
https://github.com/trekhleb/javascript-algorithms
https://github.com/mgechev/javascript-algorithms
🔥 Java
https://github.com/TheAlgorithms/Java
https://github.com/phishman3…/java-algorithms-implementation
🔥 C++
https://github.com/TheAlgorithms/C-Plus-Plus
🔥 C
https://github.com/TheAlgorithms/C
🔥 C#
https://github.com/…/5.%20C%23%20Data%20Structures%20and%20…
https://github.com/aalhour/C-Sharp-Algorithms
🔥 PHP
https://github.com/mirahm…/PHP-Data-Structure-and-Algorithms
🔥 Swift
https://github.com/raywenderlich/swift-algorithm-club
✍เขียนโดยโปรแกรมเมอร์ไทย thai programmer
raywenderlich 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最讚貼文
🐯 ตัวอย่างโค้ดอัลกอริทึม + โครงสร้างข้อมูล (Algorithm+Datastructure) มีประโยชน์ เอาไปใช้ได้ตามอัธยาศรัย
🔥 Python
https://github.com/TheAlgorithms/Python
https://github.com/keon/algorithms
🔥 JavaScript
https://github.com/trekhleb/javascript-algorithms
https://github.com/mgechev/javascript-algorithms
🔥 Java
https://github.com/TheAlgorithms/Java
https://github.com/phishman3…/java-algorithms-implementation
🔥 C++
https://github.com/TheAlgorithms/C-Plus-Plus
🔥 C
https://github.com/TheAlgorithms/C
🔥 C#
https://github.com/…/5.%20C%23%20Data%20Structures%20and%20…
https://github.com/aalhour/C-Sharp-Algorithms
🔥 PHP
https://github.com/mirahm…/PHP-Data-Structure-and-Algorithms
🔥 Swift
https://github.com/raywenderlich/swift-algorithm-club
✍เขียนโดยโปรแกรมเมอร์ไทย thai programmer