Know How to Use Command-Line Tools

Know How to Use Command-Line Tools

Carroll Robinson

TODAY, MANY SOFTWARE DEVELOPMENT TOOLS are packaged in the form of integrated development environments (IDEs). Microsoft’s Visual Studio and the open source Eclipse are two popular examples, though there are many oth- ers. There is a lot to like about IDEs. Not only are they easy to use, but they also relieve the programmer of thinking about a lot of little details involving the build process.

Ease of use, however, has its downside. Typically, when a tool is easy to use, it’s because the tool is making decisions for you and doing a lot of things auto- matically, behind the scenes. Thus, if an IDE is the only programming envi- ronment that you ever use, you may never fully understand what your tools are actually doing. You click a button, some magic occurs, and an executable file appears in the project folder.

By working with command-line build tools, you will learn a lot more about what the tools are doing when your project is being built. Writing your own make files will help you to understand all of the steps (compiling, assembling, linking, etc.) that go into building an executable file. Experimenting with the many command-line options for these tools is a valuable educational expe- rience as well. To get started with using command-line build tools, you can use open source command-line tools such as GCC, or you can use the ones supplied with your proprietary IDE. After all, a well-designed IDE is just a graphical frontend to a set of command-line tools.

??86 97 Things Every Programmer Should Know

?

???????????????In addition to improving your understanding of the build process, there are some tasks that can be performed more easily or more efficiently with command-line tools than with an IDE. For example, the search and replace capabilities pro- vided by the grep and sed utilities are often more powerful than those found in IDEs. Command-line tools inherently support scripting, which allows for the automation of tasks such as producing scheduled daily builds, creating multiple versions of a project, and running test suites. In an IDE, this kind of automation may be more difficult (if not impossible) to do, as build options are usually specified using GUI dialog boxes and the build process is invoked with a mouse click. If you never step outside of the IDE, you may not even realize that these kinds of automated tasks are possible.

But wait. Doesn’t the IDE exist to make development easier and to improve the programmer’s productivity? Well, yes. The suggestion presented here is not that you should stop using IDEs. The suggestion is that you should “look under the hood” and understand what your IDE is doing for you. The best way to do that is to learn to use command-line tools. Then, when you go back to using your IDE, you’ll have a much better understanding of what it is doing for you and how you can control the build process. On the other hand, once you master the use of command-line tools and experience the power and flexibility that they offer, you may find that you prefer the command line over the IDE.

时间: 2024-10-18 00:31:04

Know How to Use Command-Line Tools的相关文章

Xcode Command Line Tools(命令行工具)

OS X 10.9 Mavericks正式发布,免费更新,立即去更新看看效果. 不过升级后安装命令行工具(Command Line Tools)时发现官网没有clt的下载安装包了,原来改了,使用命令在线安装. 打开终端,输入命令:xcode-select --install                                                                                                           

logoff remote desktop sessions via command line tools

This trick I learned from my one of ex-college.  In Windows servers, only two remote desktop sessions allowed with administrative access. There are situations, you can't connect to the server via remote desktop because of two sessions already active.

OS X 10.9 Mavericks下如何安装Command Line Tools(命令行工具)

OS X 10.9 Mavericks正式发布,免费更新,立即去更新看看效果. 不过升级后安装命令行工具(Command Line Tools)时发现官网没有clt的下载安装包了,原来改了,使用命令在线安装. 打开终端,输入命令:xcode-select --install 选择“安装”,然后同意安装协议. OS X 10.9 Mavericks下如何安装Command Line Tools(命令行工具)

mac, xcode 6.1 安装command line tools 支持,autoconf,automake等

以下软件包 都去我的环境库找到 1 先安装 tcl库 2 安装macports /opt/local/bin/port 一般装到这里 安装autoconf时提示: Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build. Warning: Install them by running `xcode-select --install'.

the command line tools

PhpStorm 10.0.2 http://stackoverflow.com/questions/22572861/error-cant-use-subversion-command-line-client-svn-when-opening-android-proj The installer of TSVN has an option to include the command line tools. It seems it's off by default. Try to rerun

MAC 命令行工具(Command Line Tools)安装

不过升级后安装命令行工具(Command Line Tools)时发现官网没有clt的下载安装包了,原来改了,使用命令在线安装. 打开终端,输入命令:xcode-select --install 选择“安装”,然后同意安装协议.

scrapy系列教程二——命令行工具(Command line tools)

1.命令行工具(Command line tools) Scrapy是通过Scrapy命令行工具进行控制的.这里我们称之为 “Scrapy tool” 以用来和子命令进行区分. 对于子命令,我们称为 “command” 或者 “Scrapy commands”.Scrapy tool 针对不同的目的提供了多个命令,每个命令支持不同的参数和选项. 2.常用命令 官方命令行说明文档 http://scrapy-chs.readthedocs.org/zh_CN/latest/topics/comma

iOS - Xcode command line tools

1.Xcode command line tools 安装 如果你不是一名 iOS 或 OS X 开发者,可以跳过安装 XCode 的过程,直接安装 Xcode command line tools. 1)从 App store 或苹果开发者网站安装 Xcode. 2)紧接着,安装 Xcode command line tools,在终端中运行以下命令. # 安装 Xcode command line tools $ xcode-select --install 运行命令后,按照指引,你将完成

scrapy1.0手册--01--命令行工具(Command line tools)

命令行工具(Command line tools) 0.10 新版功能. Scrapy是通过 scrapy 命令行工具进行控制的. 这里我们称之为 "Scrapy tool" 以用来和子命令进行区分. 对于子命令,我们称为 "command" 或者 "Scrapy commands". Scrapy tool 针对不同的目的提供了多个命令,每个命令支持不同的参数和选项. 默认的Scrapy项目结构 在开始对命令行工具以及子命令的探索前,让我们首先

MAC OS 如何安装命令行工具:Command Line Tools

打开终端输入:xcode-select --install 回车 安装好了测试结果:gcc -v 显示如下: xcode-select: note: install requested for command line developer tools apple-1tekiiMac:~ apple-1$ gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-includ