请选择 进入手机版 | 继续访问电脑版

技术控

    今日:50| 主题:54609
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] From JavaScript to ClojureScript: Which editor to choose?

[复制链接]
分手后S朋友 发表于 2016年10月2日 19:06
134 1

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
This short article is intended to help JavaScript developers who wants to start with ClojureScript, but doesn’t know which editor they should use. I would like to talk about code editors which are suited for ClojureScript development and at the time already known in JavaScript community.
  The problem

   One of the first things you’ll probably want to do when switching to a new language is to find an editor which will make you efficient at writing code. In Clojure community there’s a strong leader — Emacs . While Emacs is really powerful and flexible editor, it’s really hard to learn. Especially when you just started with the language and doesn’t know how to apply in practice all the cool features of the editor.
  The solution

   If you are JavaScript developer, like myself, you most likely already very proficient with some editor. So switching to Emacs straight from the beginning is obviously not an option. It’s going to be a huge pain since you probably doesn’t feel fluent enough with the language, and you’ll have to struggle with two things at the same time. The solution is to find an editor which is suited for both ClojureScript and JavaScript development. Ideally it should be popular in JavaScript community, so it can be one of those editors which you are already using.
         

From JavaScript to ClojureScript: Which editor to choose?

From JavaScript to ClojureScript: Which editor to choose?-1-技术控-beginning,developer,efficient,practice,features
       Atom

   Atom is a de facto the most popular editor in JavaScript community at the moment. I’m using it at everyday job and you probably also. That’s why I’m going to focus on this editor here.
   Atom is surprisingly good for writing ClojureScript code. With a couple of plugins it becomes just enough for beginners. I’m using this setup for like year and a half and I still doesn’t feel a need to get into more advanced stuff.
   Syntax highlighting and code snippets: language-clojure
  Syntax highlighting is already built-in into the editor, so you don’t have to worry about this. There are also a couple of useful code completion snippets.
         

From JavaScript to ClojureScript: Which editor to choose?

From JavaScript to ClojureScript: Which editor to choose?-2-技术控-beginning,developer,efficient,practice,features
         language-clojure code snippets in action       Handling parens: Parinfer , atom-parinfer
   Adjusting parens manually in Lisp code is very annoying and scary for beginners. Parinfer is an editor mode which does auto-adjusting parens when indentation changes and vice versa. It is developed by Shaun LeBron . You’ll appreciate this plugin for sure.
         

From JavaScript to ClojureScript: Which editor to choose?

From JavaScript to ClojureScript: Which editor to choose?-3-技术控-beginning,developer,efficient,practice,features
         Parinfer indent mode            

From JavaScript to ClojureScript: Which editor to choose?

From JavaScript to ClojureScript: Which editor to choose?-4-技术控-beginning,developer,efficient,practice,features
         Parinfer paren mode       Structured editing: lisp-paredit
   Lisp code is a structure made of lists. It means that the code can be navigated and manipulated with respect to its structure. lisp-paredit is a plugin for Atom which provides  Paredit  functionality. It allows you to navigate between s-expressions, instead of moving cursor manually. Deleting/copying an entire list under the cursor is also trivial. I personally use only a couple of its features, but there’ much more of them.



上一篇:Speaking in October 2016
下一篇:Python V.S R语言?在数据分析与挖掘方面该选哪一个?
迷失de时空 发表于 2016年10月30日 09:48
人的一生至少要有一次一见钟情,那看来我已经让很多人不枉此生了。
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读


回页顶回复上一篇下一篇回列表
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )

© 2001-2017 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表