Tagged under ‘lateral code’

My problem with JavaScript libraries

Published by patrick on 08 Apr 2009 01:18 -0700. 3 Comments. Tags:

I have a problem with JavaScript libraries. My problem is this: I feel that, in a way, they begin to replace actual JavaScript for new web developers. Let’s say I teach a person to use jQuery. I teach him to use the various functions, and how to use plugins. Then, I see him working on a project one day and see this code:

<script type="text/javascript">
$(function() {
$("#hide").hide();
$("#show").show();
}
</script>

That’s right, he’s importing 20kb of pure JavaScript awesomeness for… two lines of code that could have just as easily been done using raw JavaScript:...

continue reading...

Blatant advertising and other random musings

Published by patrick on 16 Mar 2009 19:14 -0700. 8 Comments. Tags:

Hi everyone, wassup.

I haven’t posted in forever here, mostly because I’ve been busy doing one thing or another, one of which would be posting for Lateral Code. Visit the site, people. Thanks....

continue reading...

Article: GZip files with .htaccess and PHP

Published by patrick on 20 Dec 2008 23:44 -0800. 0 Comments. Tags:

I have written an article at Lateral Code entitled GZip files with .htaccess and PHP.

Many hosts have a set bandwidth clients can use. In this day and age, files are getting larger and heavier, but bandwidth costs aren’t getting much cheaper. So, one of the best and easiest things to do is to GZip.

From “The Definitive Post on GZipping your CSS”

CSS files for larger sites can become pretty large themselves. Gzipping or compressing these files has shown to provide a reduction in the neighborhood of 70-80% of the original file size, a fairly significant ‘weight loss’.

So obviously, GZipping CSS is great. But what about JS? JavaScript files are becoming increasingly huge, so what should we do about that?…

continue reading...

Site Launch: Lateral Code

Published by patrick on 06 Dec 2008 19:47 -0800. 0 Comments. Tags:

Lateral Code is a collaborative work (running Wordpress) between myself and Karthik Viswanathan. We’re sort of trying to decide what direction to take with it, so we’re just plodding along for now.

I must say, after a few weeks hacking at Habari, I have grown unused to working with Wordpress, I feel quite disgusted by how many files and functions I have to search through just to hack one part.

 1
Top ↑