Monday, September 8, 2008

Beware your editor!

So,
I have a new jorb! Doing Ruby on Rails work even! I quash bugs and recently had a little editor snafu that I didn't catch right away. You probably already know this, but don't make my mistakes.

Usually, when it comes to text editing I use Geany on Linux. It's a nifty little design, and it's pretty simple to add snippets and what not. Sometimes though, when I'm tired and not thinking straight, I'll use good ol gedit. Hey, it comes with Ubuntu, does some pretty good syntax highlighting, and I don't think it's bad, it just does some default actions I don't like. The dang thing automagically backs up whatever file you are using! That's not a bad thing when you are doing something in say the /etc/ or /boot/ directory, but when you are using git to manage source code on a rails application, and you accidentally gedit your config/database.yml file, you can quite easily add commit and push your automagickally generated config/database.yml~ file containing your topsekrit mysql passwd for all your team to see!

I know I did!
what a n00b/dweeb...

one day i has 1337 sk1lz.
GB Hoyt