Home

Diet Coda: The iPad Text Editor That Satisfies

Comments | Todd Ogasawara, BYTE | May 30, 2012 12:45 PM

Category: Tablets

Diet Coda from Panic, Inc., is a must-have iPad app for Web developers and anyone who needs secure remote access to servers. The $19.99 app provides a contextual adaptive code editor along with powerful remote file management and an SSH terminal. The terminal component is also available as a separate $7.99 app named Prompt. The app's overall ease of use and the code editor's adaptive keyboard that tunes itself to programming languages makes it fast and easy to work with remote files.

Diet Coda can work with multiple servers. Remote code editing using FTP/SFTP and SSH terminal access are configured separately, even when using the same server. An identiying name can be assigned to identify each server. The usual information required for remote FTP access is provided in the rest of the configuration screen. Ports other than the standard TCP port 21 for FTP are supported.


Click here for a slideshow of Diet Coda that shows multiple views of the program.

Configuration for SSH terminal access is similar to FTP access. You also have the option to indicate a command that should be run during after the login, whether autocompletion is turned on or off, and define a custom prompt string. Configuring for a port other than the usual 22 for SSH access is also supported. Diet Coda provides color coded highlighting for CSS, HTML, JavaScript, PHP, and Ruby. It can edit any plain text file. However, code highlighting and other kinds of coding support for other popular languages such as Perl and Python are not available.

Diet Coda's keyboard (see below) adds several keys to the visual keyboard that are very important to programmers such as undo, indent, and left-and-right cursor movement keys. (For more screenshots, see our Diet Coda slide show.)

When in the mode to work with PHP code, it also displays additional keys such as "//" (line comment), ";", and "$" that are specificially useful for PHP coding. This eliminates the need to switch to the symbols-plus-numerals key view, helping maintain coding rhythm. The app also provides support for storing blocks of code in clips. Several are predefined for the PHP code mode.

The Diet Coda editor's JavaScript keyboard is slightly different from its PHP keyboard with the addition of keys for curly braces. Panic, Inc. should add curly braces to the PHP keyboard view, too, and it should replace the parentheses keys with ones for the angle brackets frequently used in HTML and JavaScript code. (More about code editing options later.) Diet Coda works in both landscape and portrait modes. It also supports iOS 5's split keyboard.

The SSH remote terminal component also has its own custom keyboard. Diet Coda works with Bluetooth wireless keyboards too, and this is a big advantage as it opens up a great deal of screen real estate for file contents. Note that Diet Coda is not limited for remote work with UNIX and Linux servers. Apple's Mac OS X includes an SSH server for remote access. And, there are free Open Source SSH servers that can be used with Microsoft Windows Server, too. freeSSHd is the one I use with Microsoft Windows. It has improved quite a bit since I first used it back in 2008. For example, you can work with Microsoft PowerShell from your iPad.

The app's document settings (gear icon in the upper right) provide options for individual syntax modes for CSS, HTML, JavaScript, PHP, and Ruby. Panic says there is "more to come." It also supports end-of-line character conventions for Linux, Mac OS X, and Windows as well as international character encoding options.

Once you are in the editor, Diet Coda interprets what you type and displays possible completions for code words and function names. If a recognized function is typed, Diet Coda displays the function's input variable type.

Panic promotes Diet Coda with the tag line "Make quick web fixes to go." However, I have found it to be potentially much more useful than that in the few days I have used it. The adaptive keyboard layouts, code completion, and Bluetooth keyboard support works well for coding sessions longer than just a quick fix. Pairing it with reference documentation on a companion smartphone or, somewhat ironically, an Amazon Kindle, might convince some developers to leave their notebook behind.

Name: Diet Coda
Price: $19.99

Diet Coda turns an iPad into a Web developer productivity machine. It provides a code editor that can work with files on remote servers, code highlighting, and a keyboard that displays important additional keys depending on which programming language is used (HTML, JavaScript, PHP, or Ruby). It also includes an SSH client that provides secure remote shell access.
Pro:
  • Onscreen keyboard displays special keys for PHP, JavaScript, and HTML.
  • Code completion suggestions provided.
  • Code snippets (clips) feature available.
  • SSH terminal provided for secure remote shell access.
  • Powerful file and directory management provided.

Con:

  • No direct support for Perl, Python, and other popular dynamic languages.
  • SSH terminal only allows access to one server. The iPad must be rebooted to access a different server.
  • Editor does not provide auto-indent.
  • Detects code type for Ruby but not PHP.
  • Does not provide preset code snippets for Ruby.
  • Does not provide special keys for Ruby.

Todd Ogasawara is a Contributing Editor for BYTE.

Follow Todd Ogasawara and BYTE on Twitter and Google+:



Related Reading


More Insights




Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

BYTE encourages readers to engage in spirited, healthy debate, including taking us to task. However, BYTE moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing/SPAM. BYTE further reserves the right to disable the profile of any commenter participating in said activities.

COMMENTS

Tune In to BYTE
Facebook Twitter LinkedIn Newsletter RSS
Whitepapers
whitepaper
In this paper you will learn the five trends shaping the future of enterprise mobility. Learn how the rise of social media as a business application, the lurring between work and home, the emergence of new mobile devices, the demand for tech savvy employees and changing expectations of corporate IT will fundamentally change the workplace.
whitepaper
In a survey of more than 1,700 information workers (iWorkers) in North America, notebooks, desktops, and smartphones were found to be “must-have” devices, while tablets, slates, and netbooks were relegated to “nice-to-have” status, according to a commissioned study conducted by Forrester Consulting on behalf of Dell and Intel.
Sponsored by: Dell
Upcoming Events