practical web design & development

Archive for the ‘Programming’ Category

In my last post I discussed creating a method to inject values into a javascript object in a specific order. However, it was brought to my attention that natively, the javascript standard (ECMA) never specifically says this is a supported feature, and that some browsers treat this differently. So knowing that and the fact that [...]

Its probably because I’m over thinking things, but is “else return ..something..” really necessary? Think about it. Shouldn’t both of these snippets give the same result? if(a == b){ return true; } else return false; And… if(a == b){ return true; } return false; In theory as well that would be a little less file [...]

Gedit Clientside Plugin

For all of the gedit nuts out there (like myself) who develop css and javascript, I have created a gedit plugin just for you. The Gedit Clientside Plugin. This plugin can minify and beautify javascript and css. Also for javascript you jsLint is included. Finally for good measure, I threw in a gzip method as [...]

Updated Gedit Minify Plugin

It didn’t take long to notice a couple changes which needed to be made to the minify plugin. With the amount of javascript development I’ve been doing I use it regularly. One change is the shortcut keys conflicted with other plugins which I use, so I changed them to the following: Minify JS: Ctrl+U Minify [...]

Gedit Minifier Plugin

I often find myself having to do a lot of jumping around to develop. I write the code, test, then minify, then copy files, etc.. I also have a strange interest in gedit, so I decided I’d create a quick little plugin to minify files for me. The plugin is dirt simple. While your file [...]