ในบางจุด โปรแกรมเมอร์ต้องคิดถึง integrated development environment (IDE) ของพวกเขา ในบทความนี้ เราจะแชร์ text editors และ Ruby IDE's ที่ทำงานดีที่สุดสำหรับ Ruby on Rails developers
Ruby IDEs vs Text Editors
Text Editors
ก่อนหน้านี้ text editor สร้างและแก้ไข plain text files ซึ่งถูก compile และ run โดย command-line interface (CLI) ใน terminal แม้ text editors บางส่วนยังทำงานแบบนั้น แต่มีหลายตัวที่อนุญาตให้ users ปรับแต่ง features ที่พวกเขามีใน text editors ของพวกเขา
Integrated Development Environments (IDEs)
IDE's ทั่วไปรวม text editing หลายตัวรวม features อื่นๆ เช่น automatic code completion, version control และความสามารถในการ compile และ debug code นั้นเป็นจริง แต่ several popular text editors สำหรับ Ruby developers มีความสามารถในการปรับแต่ง Developers สามารถเพิ่ม features ที่ไม่เคยมีให้ text editors ก่อนหน้านี้ได้
อันไหนเหมาะกับคุณ?
การเลือก text editor หรือ IDE โดยทั่วไปเป็นเรื่องของ personal preference 确保在做出最终决定前尝试免费或试用选项 如果您不知道从哪里开始 请询问开发者朋友他们喜欢用什么 我们将在下面分享七个最爱
7 Best Ruby IDEs and Text Editors for Developers (7 IDE และ Text Editor ที่ดีที่สุดสำหรับนักพัฒนา Ruby)
Everyone loves to share their favorite text editor, so ask your developer friends about theirs!
RubyMine IDE
RubyMine เป็น full-featured IDE พัฒนาโดย Jet Brains บริษัทที่สร้าง developer tools สำหรับ professional developers
Features รวมถึง:
- Support สำหรับ Ruby และ Rails, JavaScript และ CoffeeScript, ERB และ HAML, CSS, Sass, Less และอื่นๆ
- Syntax และ error highlighting, formatting suggestions, code completion และ seamless integration กับ version control systems
- Graphical UI (GUI) debugger สำหรับ Ruby, JavaScript และ CoffeeScript และความสามารถในการ set breakpoints เพื่อ debug โค้ดของคุณ
Aptana Studio IDE
Aptana Studio IDE สำหรับ building web applications มันเป็น open-source และฟรีในการใช้งาน ทำให้เป็นตัวเลือกยอดเยี่ยมสำหรับ new Rubyists
Features รวมถึง:
- Support สำหรับ HTML, CSS, JavaScript, PHP และ Ruby
- ความสามารถในการ automatically publish Ruby และ Rails applications ไปยัง hosting services อย่าง Heroku และ Engine Yard
- Git integration, built-in terminal, IDE customization และ integrated debuggers สำหรับ Ruby, Rails และ JavaScript
Emacs Text Editor
GNU Emacs ระบุตัวตนว่า "An extensible, customizable, free text editor—and more." Reviews มอง Emacs เป็น lightweight และ sophisticated system ที่เป็นตัวเลือกยอดเยี่ยมสำหรับ Ruby และ Rails development ผู้สร้าง Ruby, Yukihiro Matsumoto ชอบใช้ Emacs มากกว่า IDE
Features รวมถึง:
- Highly customizable appearance ใช้ Emacs Lisp หรือ GUI
- Functionality นอกเหนือจาก text editing รวมถึง tutorials สำหรับ new users, project planners, debugger interface และอื่นๆ
- Edit modes ที่รวม syntax coloring
Sublime Text
Sublime Text เป็น code editor ที่ยัง自夸เป็น lightweight, customizable และ high performing มันเป็นหนึ่งใน text editors ยอดนิยมที่สุดเนื่องจาก performance, user interface และ plug-ins ซึ่งสามารถทำให้มันเป็น full-featured IDE
Features รวมถึง:
- Goto Anything และ Goto definition features ที่ทำให้ user searches เรียบง่าย
- ความสามารถในการ split edit, instantly switch projects โดยไม่ต้อง save และ select และ change text ใน multiple places พร้อมกัน
- Customization และ performance เป็น highlights ของ text editor นี้
VIM
VIM เป็น free to use open-source text editor ถือว่า feature-rich, old-time และ beloved เว็บไซต์เตือนว่า "Vim isn't an editor designed to hold its users' hands. It is a tool, the use of which must be learned." นี่อาจเป็นการกัดมากกว่าที่ beginner developers บางคนรับมือได้
Features รวมถึง:
- Plugins ที่เสนอ option เพื่อ transform text editor นี้เป็น powerful Ruby development environment
- Keyboard-based ซึ่งทำให้ moving จาก file ไป file เร็ว
- Available as a Ruby IDE for Linux
Atom
Atom ก็เป็น free และ open-source text editor พัฒนาโดย GitHub ตอนนี้เป็น subsidiary ของ Microsoft มันมี several packages ที่คุณสามารถติดตั้งเพื่อปรับแต่งมันและทำให้มันกลายเป็น IDE หากคุณเลือก
Features รวมถึง:
- Teletype ซึ่ง developers สามารถทำงานใน document เดียวกันใน real-time
- Integration กับ Git และ GitHub สำหรับ version control
- Autocompletion, multiple panes, find and replace และอื่นๆ
Visual Studio Code
Visual Studio Code บางครั้งเรียกว่า VS Code เป็น source code editor พัฒนาโดย Microsoft และเป็น close competitor กับ Atom
Features รวมถึง:
- IntelliSense ซึ่ง提供基于变量类型、函数定义和导入模块的自动完成
- ความสามารถในการ debug จาก editor ใช้ breakpoints, call stacks และ interactive console
- Deploy 和 host React, Angular, Vue, Node, Python 等 网站 与 Microsoft Azure 从 VS Code 内部
สรุป: Ruby IDE ใดเหมาะกับคุณ?
ในบทความนี้ เราได้อภิปรายความแตกต่างระหว่าง text editor และ IDE เรายังแชร์ seven popular text editors และ IDE's สำหรับ Ruby developers หากคุณอยากเรียนรู้เพิ่มเติมเกี่ยวกับสิ่งที่คุณสามารถสร้างด้วย Ruby ดูบทความของเรา "What Is Ruby Code Used For?"