2718.us blog » textpad http://2718.us/blog Miscellaneous Technological Geekery Tue, 18 May 2010 02:42:55 +0000 en hourly 1 http://wordpress.org/?v=3.0.4 Text Editors http://2718.us/blog/2008/11/12/text-editors/ http://2718.us/blog/2008/11/12/text-editors/#comments Wed, 12 Nov 2008 20:44:32 +0000 2718.us http://2718.us/blog/?p=113 When I was first learning structured programming, I used an IDE (TurboPascal).  Since then, I have rarely used an IDE outside of specialized language development environments like VisualBASIC.  Mostly, I use a text editor that I link up with a good sftp program to edit remotely or that I use in conjunction with subversion.  For a long time, when I was still programming heavily on PCs, I used TextPad.  It’s probably still toward the top of my list, but it’s been so long since I used a PC as one of my primary machines that it’s hard for me to know.

The lack of TextPad for mac has left me searching, on and off, almost constantly for the “right” mac text editor.  Most of the time now, that search leaves me right back at Komodo Edit, the free cross-platform text editor built on Gecko and Scintilla that I’ve been using for a logn time now.  Every other major editor just seems to be missing something I’ve come to really like in Komodo Edit, even as slow and clumsy as the interface can be sometimes.

I really wanted to like BBEdit, TextWranger, TextMate, skEdit, subEthaEdit, Coda, etc., but none of them seemed to have the simplicity of code-completion (including variable and constant name completion) and intelligent code auto-indenting that Komodo Edit does.  I wanted to like the integration of various resources in Coda, but having the reference materials in the one program versus in a web browser window over on that second monitor there just didn’t seem to make enough of a difference.  I wanted to think that having an editor that could do sftp and subversion was worthwhile, but it just didn’t seem to matter to my workflow.

It’s been so long since I’ve been away from TextPad that I’m not sure even it would compare to Komodo Edit.  Of course, the one tool that is poised at any moment to start eating into Komodo Edit’s share of my use time is MacVim (this is apparently a new port of vim).  Vi/vim is so unbelievably powerful… and so much more my style than Emacs.  Vi has been my text editor of choice at the command line for about a decade or so now.  See also Why, oh WHY, do those #?@! nutheads use vi? and the two graphics below.

Learning Curves

Real Programmers

]]>
http://2718.us/blog/2008/11/12/text-editors/feed/ 0
Why Didn’t Someone Tell Me About Subversion Sooner? http://2718.us/blog/2008/06/06/why-didnt-someone-tell-me-about-subversion-sooner/ http://2718.us/blog/2008/06/06/why-didnt-someone-tell-me-about-subversion-sooner/#comments Sat, 07 Jun 2008 02:26:09 +0000 2718.us http://2718.us/blog/?p=43 I’d gotten very used to editing some of my sites on the live running copy or editing a testbed server, then rsyncing it to the live server.  I really had the WinSCP+TextPad thing down, then moved to Transmit+KomodoEdit when I went Mac-only for programming.  It wasn’t bad at all, though every once in a while I really wished I could do one of those “search every file” actions from the editors, but that’s just not possible when editing one file at a time as a temporary copy via SFTP.

At the moment, I’m just starting to dig into one of the larger web projects I’ve done, migrating a large, data-driven site from PHP4 to PHP5, moving it from a commercial host to my own hosting, and rewriting large swaths of code—all at once.  The previous webmaster, who wrote the original code, said he’d used subversion to deal with making revisions and having the ability to roll back when things broke, so I decided to look into subversion.

While most of the documentation made it seem really complex, once I’d settled on https access (apache mod_dav_svn), in the context of an existing SSL site I had, things were very easy–just a few svnadmin commands to set up the directories and a few lines of tweaking in an apache config file.  About 10 minutes into playing with the repository, having imported the existing site and set up a working copy on my local machine, I wondered if there weren’t some nice GUI way to deal with checkout/checkin/status/etc.  Enter svnX.

Now I’ve got working copies on my desktop and laptop as well as a copy checked out to the new production server and I can easily edit locally, even searching all files (that makes it a lot easier to fix all the instances of some incompatibility with PHP5 or some assumption about the directory structure or other oddity).  Once I’ve edited, I can easily check what’s been revised (status) and save the changes to the repository (checkin/commit) using svnX.  A quick “svn up” on the server and everything’s live.

This setup is so wonderfully easy that I’m annoyed I didn’t know to do it sooner.

]]>
http://2718.us/blog/2008/06/06/why-didnt-someone-tell-me-about-subversion-sooner/feed/ 1
The Argument for a Mac http://2718.us/blog/2008/04/10/the-argument-for-a-mac/ http://2718.us/blog/2008/04/10/the-argument-for-a-mac/#comments Fri, 11 Apr 2008 02:16:53 +0000 2718.us http://2718.us/blog/?p=13 I have about as many WinXP machines as OS X machines around here (and a few OpenBSD boxes, but that’s beside the point), and yet I find it’s rare that I touch anything other than the Macs anymore.  Why?  Well, I suspect it’s the same reason I keep seeing little things here and there that suggest developers are increasingly working on Macs–if I want a Mac program, well, duh, I’m on a Mac; if I want a PC program, I’ve got Parallels, so I don’t even have to deal with dual-booting; if I want a ‘nix machine, I just look under the Mac GUI and there’s a BSD-type ‘nix (oh, and OS X can run a standard X11 server, too).  I can use virtually any tool out there and work in all three worlds with one machine.  I no longer need to have two or three machines on my desk at home, just my Mac desktop.  I probably won’t be taking more than one laptop on the road with me anymore (I have travelled with two on several occasions in the past), just my Mac laptop.

Why do I want all these different facets?  Well, much as I hate to use it, damn near everyone in “the business world” uses Microsoft Office, and the Mac versions suck (I don’t know about 2008, but I’m not optimistic) and I’d rather use the PC version (2003, since 2007 is a disaster best described as MS openly giving the finger to all its customers).  Graphics work and page layout are in various Adobe Creative Suite products under OS X (I suppose that there exist PC versions, but really, who does graphics work on a PC?).  I also prefer web and email on the Mac side.  Then, when I have to deal with network/server/etc. stuff, I dive into terminal and I’m off.  For actual programming, while I love using WinSCP + TextPad under Windows, LOVE it, I tend more toward Transmit + Komodo Edit nowadays (this is largely a side effect of having a huge project hosted on a server that only supports FTP, not SFTP, and for whatever reason, WinSCP can’t seem to maintain a stable FTP connection with that server, so editing led to all sorts of nasty corruption and whatnot when the connection would drop mid-edit).

Oh, and it doesn’t hurt that my day job is in an all-Mac office.

]]>
http://2718.us/blog/2008/04/10/the-argument-for-a-mac/feed/ 0