- Notifications
You must be signed in to change notification settings - Fork10
Code editors#113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Code editors#113
Changes fromall commits
Commits
Show all changes
2 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
52 changes: 28 additions & 24 deletions1-js/01-getting-started/3-code-editors/article.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,49 @@ | ||
| #เครื่องมือแก้ไขโค้ด (Codeeditor) | ||
| เครื่องมือแก้ไขโค้ด (Code editor) เป็นที่ที่นักพัฒนาโปรแกรมใช้เวลามากที่สุดในการทำงาน | ||
| โดยทั่วไปแล้วมีสองประเภทหลักของเครื่องมือแก้ไขโค้ดที่นิยมใช้คือ IDE และ lightweight editorโดยส่วนใหญ่ผู้ใช้งานจะใช้เครื่องมือจากทั้งสองประเภทเพื่อใช้งานในส่วนต่าง ๆ | ||
| ## IDE | ||
| คำว่า [IDE](https://th.wikipedia.org/wiki/สิ่งแวดล้อมสำหรับการพัฒนาแบบเบ็ดเสร็จ) (Integrated Development Environment)หมายถึงเครื่องมือแก้ไขโปรแกรมที่มีความสามารถและฟีเจอร์มากมาย โดยส่วนใหญ่จะใช้งานบนโปรเจกต์ใหญ่ๆ ไม่ใช่เพียงแค่เครื่องมือแก้ไขโปรแกรมเท่านั้น แต่ยังเป็นสภาพแวดล้อมการพัฒนาโปรแกรมอย่างครบวงจร โดยมีฟีเจอร์ต่างๆ อย่างเช่น การแก้ไขโค้ด การทดสอบโปรแกรม การสร้างเอกสาร การแก้ไขรูปภาพ และอื่นๆ อีกมากมาย | ||
| IDEจะโหลดโปรเจกต์ (ซึ่งอาจประกอบไปด้วยไฟล์หลายไฟล์) และช่วยให้ผู้ใช้สามารถเลือกไฟล์ต่าง ๆ ได้ง่ายขึ้น รวมไปถึงให้คำแนะนำด้วยระบบautocompletion โดยพิจารณาจากโปรเจกต์ทั้งหมดไม่ใช่เพียงไฟล์ที่เปิดอยู่เท่านั้น นอกจากนี้ยังรวมถึงระบบการจัดการเวอร์ชัน (เช่น [git](https://git-scm.com/)) รวมถึงการทดสอบโปรแกรมและฟังก์ชันอื่น ๆ ของโปรเจกต์ | ||
| หากคุณยังไม่ได้เลือก IDEที่เหมาะสมสำหรับคุณ ขอแนะนำสองตัวเลือกต่อไปนี้ | ||
| - [Visual Studio Code](https://code.visualstudio.com/) (สามารถใช้งานได้ทั้งบนแพลตฟอร์มหลายระบบ และฟรี) | ||
| - [WebStorm](http://www.jetbrains.com/webstorm/) (สามารถใช้งานได้ทั้งบนแพลตฟอร์มหลายระบบ แต่ต้องจ่ายค่าใช้จ่าย) | ||
| สำหรับ Windowsยังมี "Visual Studio" ซึ่งชวนให้สับสนกับ "Visual StudioCode" ตัว "Visual Studio" นี้ เป็นเครื่องมือแก้ไขโค้ดที่เหมาะสำหรับ.NETplatform แต่เราสามารถใช้มันสำหรับการเขียนโค้ดภาษาJavaScriptได้ นอกจากนี้ยังมีเวอร์ชันฟรีอย่าง [Visual Studio Community](https://www.visualstudio.com/vs/community/) อีกด้วย | ||
| ในทางปฏิบัติ หลาย ๆ IDE จะจ่ายเงินแต่มีระยะเวลาทดลองใช้ ค่าใช้จ่ายที่ต้องจ่ายต่อเดือนก็น้อยมากเมื่อเปรียบเทียบกับเงินเดือนนักพัฒนาที่มีความรู้ความสามารถ ดังนั้นเพียงแค่เลือก IDE ที่เหมาะสมกับที่คุณ | ||
| ## Lightweighteditor (เครื่องมือแก้ไขโค้ดที่มีขนาดเล็กและไม่ซับซ้อน) | ||
| โดยทั่วไปแล้ว"Lightweighteditor" ไม่มีความสามารถเทียบเท่ากับ "IDE" แต่มีความเร็ว สวยงาม และใช้งานง่ายมากกว่า IDE | ||
| โดยปกติแล้ว "Lightweight editor" จะใช้เพื่อเปิดและแก้ไขไฟล์ทันที | ||
| โดยไม่ต้องโหลดข้อมูลโปรเจกต์ใหญ่ ๆ เหมือน "IDE" ที่ต้องโหลดข้อมูลโปรเจกต์และวิเคราะห์โครงสร้างโปรเจกต์ก่อนที่จะเริ่มทำงาน ดังนั้น "Lightweight editor" จึงมีความเร็วกว่าเมื่อเราต้องการแก้ไขเพียงไฟล์เดียว แต่ถ้าเราต้องการแก้ไขไฟล์หลายไฟล์ในโปรเจกต์ จะต้องเปิดโปรเจกต์ใน "IDE" แทน | ||
| ในการปฏิบัติงาน "Lightweight editor" อาจมีปลั๊กอินหลายตัวที่สามารถวิเคราะห์ไฟล์และให้คำแนะนำตามไดเรกทอรีได้ ดังนั้นไม่มีขอบเขตที่ชัดเจนระหว่าง "Lightweight editor"และ"IDE" แต่ในทางปฎิบัติ "Lightweight editor" จะมีความเร็วมากกว่า "IDE" แต่ไม่มีความสามารถเทียบเท่ากับ "IDE" | ||
| มีตัวเลือกหลากหลายอย่างเช่น | ||
| - [Sublime Text](http://www.sublimetext.com) (สามารถใช้งานได้บนแพลตฟอร์มหลายระบบ และเป็นแชร์แวร์) | ||
| - [Notepad++](https://notepad-plus-plus.org/) (สำหรับ Windows เป็นฟรีแวร์) | ||
| - [Vim](http://www.vim.org/) และ [Emacs](https://www.gnu.org/software/emacs/) ก็เป็นตัวเลือกที่เยี่ยมยอดมาก หากคุณรู้จักใช้งานและมีความสนใจ | ||
| ##เรามาเลิกทะเลาะกันเถอะ | ||
| เครื่องมือแก้ไขโค้ดที่แนะนำไปข้างต้น คือตัวเลือกที่ผมและเพื่อน ๆ นักพัฒนาที่เก่ง ๆ ใช้งานมานานและพึงพอใจกับการใช้งาน | ||
| โลกของเรายังมีเครื่องมือแก้ไขโค้ดที่ยอดเยี่ยมมากมายอยู่ด้วย อย่าลืมเลือกตัวเลือกที่คุณชื่นชอบมากที่สุดนะ | ||
| การเลือกเครื่องมือแก้ไขโค้ดเช่นเดียวกับเครื่องมืออื่น ๆ ขึ้นอยู่กับแต่ละคน ขึ้นอยู่กับโปรเจกต์ ตวามเคยชิน และความชื่นชอบส่วนบุคคล | ||
| ความเห็นส่วนบุคคลของผู้เขียน: | ||
| - หากฉันพัฒนาโปรแกรมฝั่งเว็บโดยส่วนใหญ่ ฉันจะใช้ [Visual Studio Code](https://code.visualstudio.com/) | ||
| - แต่หากโปรแกรมภาษา/แพลตฟอร์มอื่นๆ มีส่วนผสมของโปรแกรมฝั่งเว็บ ฉันจะพิจารณาเลือกโปรแกรมแก้ไขโค้ดอื่นๆ เช่น XCode (สำหรับ Mac), Visual Studio (สำหรับ Windows) หรือ Jetbrains family (Webstorm, PHPStorm, RubyMine เป็นต้น) โดยขึ้นอยู่กับภาษาที่ใช้งาน |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.