Archive for the ‘Tools’ Category

Editor warfare: Textmate

project_window_with_tabsFor a long time I’ve been indeterminate on what makes a good editor. At These Days we’ve been trying out ALOT of them over the years, had and followed discussions on the net, posted polls even. Eventually I found the question ‘what makes a good editor for me‘ a more relevant one, since I figured it’s all about matching styles. Every developer has her/his way of doing things, and so does every editor. The match makes the editor.

Personally I’ve been working with Textmate (Mac OS) for a while now, and for the first time I’m hooked. I like features to be there when I need them, but I don’t want to be bothered with them if I don’t. I also like software functionalities to be customizable, and to make it perfect I should be able to add third party addons or even better, create my own. I find Textmate to be the representation of all that, perfect for both quick basic edits and projectbased development with useful “bundles” of  functionality behind the shortcuts that are limited to a particular scope, making all shortcuts relevant as they are enabled only for the types of scripting they can be applied to.

What else convinces me?

  • search and replace inside a project
  • perfect auto-indent mechanism
  • perfect auto-pairing of brackets etc
  • foldable code-blocks
  • integration with ftp clients as external editor (fe Transmit)
  • themeable synthax highlighting (I like to work with inverted colors)
  • Snipplr (down- en upload your code snippets, totally love this)

& there’s much much more

Check it out (Mac OS 10.4.2 PPC/Intel).

FDT Tips For The Lazy Coder

In response to Sam’s recent post on EditPlus, I thought I’d tell you something about my favorite development environment. Our Flash team at These Days all use more or less the same software package; Eclipse combined with the amazing power of FDT. For Flash development, there really is no better solution if you’re willing to spend some money. Because let’s not beat about the bush, FDT is pretty darn expensive for an Eclipse plug-in. For those among us that don’t have that kind of money to spend on software, FlashDevelop is still a very good runner-up, if perhaps not as complete as FDT.

So why do I like Eclipse so much… Well, say what you want about Eclipse, but in my experience it runs pretty smoothly and most of all, quite fast. Over time I’ve heard a lot of people moan about long loading times, but I would like them to come take a look at my screen, because for me Eclipse doesn’t even hint at slowness, whether I’m on my desktop or my laptop. Another added benefit for me are Eclipse’s multiple plug-ins, FDT being only one of them. Being a versatile developer, I’m often involved in PHP or mobile projects as well, and both the PDT and Aptana plug-ins have been a great asset in those. And if you’re an SVN user, definitely have a look at Subclipse or Subversive. Although I usually tend to go with an external tool like TortoiseSVN, both plugins are great for those that are interested in the all-in-one package. (Eclipse comes with default CSV support when you download/install Eclipse Classic)

Shortcuts

Eclipse and FDT both hold the potential to improve your productivity, and shortcuts are definitely one of the most helpful features.

Below is a list of shortcuts I use regularly (note that some of these might only work for FDT):

  • ALT + UP / DOWN: This will select the line your cursor is at (or just take the lines you selected) and move it up or down a line.
  • ALT + CTRL + UP / DOWN: Just like above, this takes the line(s) you selected, duplicates them and places them above or below your selection.
  • CTRL + F: Search and replace. Need I say more? An old mainstay…
  • CTRL + H: Search and replace, but on a project level. Easily search through all files in your project, or just the ones you select.
  • CTRL + 0: Quick Trace. Very handy. Instead of typing a trace statement, just select the variable you want to trace, press the magic buttons, et voilà.
  • CTRL + 1: Quick Fix. I often use this one to create getter and/or setter methods for my private or protected properties. Just select the property declaration and use the shortcut.
  • CTRL + 7: Quick Comment. Toggles comments for the lines you selected.
  • CTRL + Space: Probably the one you’ll use the most, this one either auto-completes your property or method names, gives you a context-aware list of possible choices or lets you insert a template (more on template a little further down)

This, of course is just a summarized list of commands I find useful, for a complete reference, open up Eclipse and press CTRL + SHIFT + L.

Templates

Another great Eclipse/FDT feature are templates.  Through the use of variables, these templates can be tailored to your needs and used in a lot of different situations. Templates can be created by going into the Window menu and clicking on Preferences. Then navigate down to FDT > Editor > Templates and you will get a list of available templates. If you click on New… you will be able to create your own templates and use them in your projects. Once you’ve created your new Templates, just use CTRL + Space in a class to insert it.

One template I often use is the one below. It’s for a simple AS3 singleton class file.


package ${enclosing_package} {

/**
* @author ${user}
* @date ${date}
*/
public class ${enclosing_type} {

private static var _instance:${enclosing_type} = new ${enclosing_type}();

public function ${enclosing_type}() {
if(_instance){
throw new Error("${enclosing_type}Model can only be accessed via the getInstance() method.");
}
}

public static function getInstance():${enclosing_type} {
return _instance;
}

${cursor}

}
}

So now that you’ve heard some of the main reasons why I like Eclipse as a development tool, I hope I was able to persuade some people to give it a (second) chance. It has come a long way in these last few years.

Cloud storage

Cloud computing, Tools Sam | 9 Aug. 2009 | 3 comments

Who says we can only post development related stuff here? Hell no! :-)

This weekend I’ve been testing and researching the cloud storage possibilities and one in particular caught my attention with it’s simplicity and efficiency.

Gladinet Cloud Desktop is a piece of software that mounts a local drive to any cloud storage resource that you want. The beauty of the software is that it can connect to a wide area of cloud storage services:

  • EMC Atmos Online
  • EMC Atmos Storage
  • Box.net
  • Google Picasa
  • Google Docs
  • Google Docs (apps)
  • Windows live skydrive (25GB space for free!)
  • Amazon S3
  • Any Webdav Server
  • Any FTP Server

It handles the file uploading in a background process, so for you it seams that the file is uploaded instantly but actually the software is still handling this in your background processes but even then the file transfer speed is super. I’m using this with Windows Skydrive and I can’t tell the difference between my local wifi NAS drive or this online storage. I even can run programs from this drive.

I also use Google picasa for my photo storage and I can very easily browse all my 16000 pictures on this drive. (thumbnail view, open files, copy, move, …)

So when I say that this is a cool piece of software I really mean a cool piece of software.

BTW .. Starter edition is free! (and it has all the features we need)

gg @ the gladinet people. 

gladinet_addresource

gladinet_drive

Editor warfare: Editplus

Hi all,

Just like everyone else out there we, also have our favourite editors, so I encouraged my collegues to post about their favourite editor. To help them on their way I’ll do the first one.

First a little about my editor use. As you may know I’m production director here at These Days, part of my involvement in projects  is rather on a troubleshooting, code reviewing basis, than in any hard core development. For this purpose, I need an editor that’s super duper fast and very easy to dig deep in projects without losing to much time, one editor can do such things …. (Godlike voice) – EditPlus – I’ve used it for over 10 years now, it’s fast, it’s simple and yet tweakable for the more advanced user. I’ve tried many other editors in hopes of finding one that’s even better than editplus but I’ve had no luck so far. Only when I’m involved for ‘real’ coding on bigger development projects I use netbeans for the OO support features. (But that doesn’t happen a lot, we have code monkey’s for the ‘real’ development work :-) )

To show off the niftyness of editplus I will shortly describe the features I use most.

  • It’s fast. Not a feature but one of the most important keypoints for me. If a software is slow, I dump it.
  • There are tons of user contributed syntax, template and CTL files available for editplus.
  • Smart FTP upload (you can set a local base directory and remote base directory, if you then upload a file that’s located in a sub folder the FTP service will keep this structure)
  • ANSI to HTML entity & HTML entity to ANSI conversion (love it)
  • Find in files (one of the features I use most to debug code that’s not my own)
  • User tools: For a small, simple text editor this feature is way cool. You can do a full SVN configuration with editplus so you can commit single files, directories, do winmerge on open files and so forth. (Many other user configurations are possible)
  • Record keystrokes: also one of the features I use a lot. I can’t remember how often this tool has rescued me from unusual situations & monkey jobs.
  • Uber file encoding support. I’ve been in situations that no editor (dreamweaver, notepad+, notepad, ..) could properly save a chinese or czech file while editplus did this with ease. (editplus supports over 150 encoding types)