Know Your IDE

Know Your IDE

Heinz Kabutz

iN THE 1980S, our programming environments were typically nothing bet- ter than glorified text editors…if we were lucky. Syntax highlighting, which we take for granted nowadays, was a luxury that certainly was not available to everyone. Pretty printers to format our code nicely were usually external tools that had to be run to correct our spacing. Debuggers were also separate programs run to step through our code, but with a lot of cryptic keystrokes.

During the 1990s, companies began to recognize the potential income that they could derive from equipping programmers with better and more useful tools. The Integrated Development Environment (IDE) combined the previ- ous editing features with a compiler, debugger, pretty printer, and other tools. During that time, menus and the mouse also became popular, which meant that developers no longer needed to learn cryptic key combinations to use their editors. They could simply select their command from the menu.

In the 21st century, IDEs have become so commonplace that they are given away for free by companies wishing to gain market share in other areas. The modern IDE is equipped with an amazing array of features. My favorite is automated refactoring, particularly Extract Method, where I can select and convert a chunk of code into a method. The refactoring tool will pick up all the parameters that need to be passed into the method, which makes it extremely easy to modify code. My IDE will even detect other chunks of code that could also be replaced by this method and ask me whether I would like to replace them, too.

Another amazing feature of modern IDEs is the ability to enforce style rules within a company. For example, in Java, some programmers have started making all parameters final (which, in my opinion, is a waste of time).

??90 97 Things Every Programmer Should Know

?

???????????????However, since they have such a style rule, all I would need to do to follow it is set it up in my IDE: I would get a warning for any non-final parameter. Style rules can also be used to find probable bugs, such as comparing auto- boxed objects for reference equality, e.g., using == on primitive values that are autoboxed into reference objects.

Unfortunately, modern IDEs do not require us to invest effort to learn how to use them. When I first programmed C on Unix, I had to spend quite a bit of time learning how the vi editor worked, due to its steep learning curve. This time spent up front paid off handsomely over the years. I am even typing the draft of this article with vi. Modern IDEs have a very gradual learning curve, which can have the effect that we never progress beyond the most basic usage of the tool.

My first step in learning an IDE is to memorize the keyboard shortcuts. Since my fingers are on the keyboard when I’m typing my code, pressing Ctrl+Shift+I to inline a variable prevents breaking the flow, whereas switching to navigate a menu with my mouse interrupts it. These interruptions lead to unnecessary context switches, making me much less productive if I try to do everything the lazy way. The same rule also applies to keyboard skills: learn to touch type; you won’t regret the time invested up front.

Lastly, as programmers we have time-proven Unix streaming tools that can help us manipulate our code. For example, if during a code review, I noticed that the programmers had named lots of classes the same, I could find these very easily using the tools find, sed, sort, uniq, and grep, like this:

find . -name "*.java" | sed ‘s/.*\///‘ | sort | uniq -c | grep -v "^ *1 " | sort -r

We expect a plumber coming to our house to be able to use his blowtorch. Let’s spend a bit of time to study how to become more effective with our IDE.

时间: 2024-08-30 13:56:17

Know Your IDE的相关文章

C# 最佳工具集合: IDE 、分析、自动化工具等

C#是企业中广泛使用的编程语言,特别是那些依赖微软的程序语言.如果您使用C#构建应用程序,则最有可能使用Visual Studio,并且已经寻找了一些扩展来对您的开发进行管理.但是,这个工具列表可能会改变您编写C#代码的方式. C#编程的最佳工具有以下几类: IDE VS扩展 编译器.编辑器和序列化 反编译和代码转换工具 构建自动化和合并工具 版本控制 测试工具和VS扩展 性能分析 APM 部署自动化 容器 使用上面的链接直接跳转到特定工具,或继续阅读以浏览完整列表.

集成开发环境(IDE)

集成开发环境(Integrated Development Environment,简称IDE,也称为Integration Design Environment.Integration Debugging Environment)是一种辅助程序开发人员开发软件的应用软件. IDE通常包括编程语言编辑器.自动构建工具.通常还包括调试器.有些IDE包含编译器/解释器,如微软的Microsoft Visual Studio,有些则不包含,如Eclipse.SharpDevelop等,这些IDE是通过

关于eclipse类IDE”删除已导入jar后总是提示项目出错“问题的解决办法

你碰到过把Package Explore中的jar删除后,项目工程的LOGO出现一个感叹号,并且每次编译运行都会提示有错误是否继续吗?但实际上是没有错误的. 刷新项目.重启IDE都是没有用处的.这里我给出解决办法: 选择项目工程,右击菜单,[Build Path]->[Config Build Path] 然后选择Libraries选项卡,把多余的jar给remove掉就可以了.

Ubuntu16.04下使用sublime text3搭建Python IDE

本来是想用pycharm,但你看它的内存要求,我的虚拟机一共也就1G Vim太别扭了,就算有代码颜色,不能自动对齐,不能规范格式,跳转到函数定义,显示文档,要配置起来太费劲,所以就尝试着用sublime text3 来搭建Python IDE 安装sublime text3 目前最简单的方法是通过ppa安装,打开终端,输入以下命令: sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo ap

Java Fx-安装E(FX)CLIPSE IDE

安装E(FX)CLIPSE IDE 本文主要介绍如何在Eclipse Mars 4.5.0版本上安装e(fx)clipse. 本文中的介绍和截图使用了纯净安装的为RCP和RAP开发者准备的Eclipse 64位版本,你可以在这里下载(http://www.eclipse.org/downloads/packages/eclipse-rcp-and-rap-developers/marsr).操作系统是Windows 7 SP1.以下操作步骤不包含安装Eclipse Mars 4.5.0的过程.

java基础篇—java的集成开发环境(IDE)

从开始学习java,我们可能尝试过使用记事本编写我们的第一个java程序,比如打印"hello world!",但是慢慢的,随着对java功能的深入了解发现,面对图形,文件的输入和输出,web服务器和安卓应用程序开发等,使用集成开发环境更有助我们简单高效的编写各类java程序.目前有多种IDE支持Java 8(目前的java最新版),例如Intellij IDEA,开源软件Eclipse,NetBeans都是十分优秀的IDE.熟悉这些工具的使用对以后的学习和开发是有很大帮助的,但是作为

转载八个最佳Python IDE

八个最佳Python IDE 作者:chszs,转载需注明.博客主页:http://blog.csdn.net/chszs Python是一种功能强大.语言简洁的编程语言.本文向大家推荐8个适合Python开发的IDE. 1. Eclipse with PyDev http://pydev.org/ Eclipse+PyDev插件,很适合开发Python Web应用,其特征包括自动代码完成.语法高亮.代码分析.调试器.以及内置的交互浏览器. 2. Komodo Edit http://komod

eAndriod学习一:IDE、ADT、SDK、JDK

刚刚接触Android开发,一上来所有教程都是各种ADT.SDK的安装,给我整蒙了,这玩意是啥?怎么没有给说明的,就这么不重要吗?下面整理至网络: Android中IDE.ADT.SDK.JDK IED: Intelligent Development Environm的简称,智能开发环境,是一种开发工具.常用的IED是AndroidStudio,注意需要配置JDK[Visual Studio] JDK: Java的开发工具包.包括了Java运行环境.Java工具(java虚拟机,java编译器

好看的IDE配色方案让代码看起来不再那么凶猛了

写这篇小文的初衷是,笔者是原教旨主义者,一直坚持用IDE默认的配色方案.另外也觉得网上黑色系的配色方案太过bling bling了.但今天尝试用新的配色方案后,兴奋地发现对代码的好感度大幅提升. 嗯,如标题所述,好看的配色方案让代码看起来不再那么凶猛了! 这篇文章会介绍关于vs2015&eplices两大阵营配色方案的安装. 首先是资源: vs2015(需登入):https://studiostyl.es/ eplices:http://www.eclipsecolorthemes.org/ v

Python主流IDE对比:Eric VS. PyCharm

IDE, 全称是Integrated Development Environment,翻译过来就是集成开发环境.Python的开发从2010年5月算起,不知不觉中,到现在已经是第七个年头. 这六年里,舍得最常用的IDE是Eric6(一开始是5.x版本),也试用过圈内闻名的PyCharm.WingIDE和Eclipse(+PyDev插件),算是有些心得.今天,着重对Eric6和PyCharm 2016.3作一下简单的评测. 颜值 Eric6是基于PyQt开发的,程序运行甚至只用一个BAT文件来调用