<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Viamentis Blog &#187; Javascript</title>
	<atom:link href="http://blog.viamentis.com/articles/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.viamentis.com</link>
	<description>Curious About Everything</description>
	<lastBuildDate>Mon, 12 Jul 2010 11:16:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Introducing PrintFriendly.com</title>
		<link>http://blog.viamentis.com/articles/2009/05/15/introducing-printfriendlycom/</link>
		<comments>http://blog.viamentis.com/articles/2009/05/15/introducing-printfriendlycom/#comments</comments>
		<pubDate>Fri, 15 May 2009 00:44:43 +0000</pubDate>
		<dc:creator>Vamsee</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[printfriendly]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.viamentis.com/?p=215</guid>
		<description><![CDATA[Hi folks. I&#8217;m sure some of you might be wondering at my rather long absence from blogging here. The reason is partly unavailability of time, and partly was saving this announcement until everything is in reasonable shape. It has been a very interesting 6 months. I was contacted by Taylor Norrish, founder of Govit.com, to [...]]]></description>
			<content:encoded><![CDATA[<p>Hi folks. I&#8217;m sure some of you might be wondering at my rather long absence from blogging here. The reason is partly unavailability of time, and partly was saving this announcement until everything is in reasonable shape. It has been a very interesting 6 months. I was contacted by Taylor Norrish, founder of Govit.com, to work on a simple, nifty tool to clean up web pages for printing. He was frustrated to see how much paper and ink end up getting wasted due to printing this useless/needless junk from every webpage.</p>
<p>Enter PrintFriendly. It&#8217;s a simple-to-use tool (but was definitely not so simple to implement, but we&#8217;ll come to that later) which cleans up a page of all needless junk like ads, background colors, fancy graphics, etc. to print the most important part, the content. Of course, it&#8217;s definitely not the first tool which does this -Â  PrintFriendly takes a slightly different approach from others &#8211; we tried to make the tool dead simple to understand and use, without bogging down the user with too many options. Also, we made it easily installable, by just inserting a few lines of javascript code in your site if you are a publisher, or you could use our wordpress plugin if you are a blogger. Perhaps the most convenient from the user&#8217;s perspective &#8211; a browser bookmarklet, which you can just drag into your bookmarks folder and you&#8217;re good to go. You can even generate and save a PDF copy of the cleaned up content. Do give it a try. I&#8217;d love to hear your feedback.</p>
<p>Regarding what went into it, there&#8217;s been plenty of effort. Javascript wasn&#8217;t my strongest suites when it comes to programming languages, but it&#8217;s certainly different now. Writing cross-browser compatible javascript bookmarklet that has so much of functionality baked in, yet tries to make it very easy for the user, did teach me a lot. In the process, I learned the strengths and weaknesses of several javascript libraries (my favorite is YUI, I have to admit &#8211; though jQuery comes pretty close), learned a ton about javascript itself, got to know so many cool projects, and in the process understood why javascript will stay at the forefront of web innovation for a long time to come.</p>
<p>Working with so many browsers with something as finicky as DOM behavior, and the differences between their event models, was a relevation. Needless to say, Firefox has been the easiest to work with, and IE the toughest. Chrome and Safari behave pretty much the same way, due to their being powered by the WebKit engine. While development is a joy in Firefox due to the venerable Firebug and Web Developer plugins, it was the toughest to debug on IE7. Interestingly, IE8 has a very good developer mode. Both Safari and Chrome slightly disappoint &#8211; though powered by an open-source engine, yet not having really good developer tools to test and debug. YUI&#8217;s well-documented, rock-solid libraries helped immensely in smoothing over some of these differences.</p>
<p>All in all, it has been a very challenging yet fun project to develop, and a huge learning opportunity on so many levels. There were ups and downs, when we were able to deploy it as the default print tool on hubpages.com, which was a great experience for us. We were excited when we got invited to interview with YCombinator, but slightly disappointed when we couldn&#8217;t make it through the interview. But work continues apace, and as we always thought and PG wished, we will continue developing the tool, as the &#8220;world needs something like this&#8221;.</p>
<p>We&#8217;re still working furiously on bringing out more ways of distributing the tool &#8211; I&#8217;ll definitely keep you posted about the developments. Meanwhile, go check it out, and tell us what you think. If you want a quick demo, you can test it out on this blog itself &#8211; just click on the &#8216;PrintFriendly&#8217; button at the bottom of this article. You can mail in your feedback on support AT printfriendly DOT com or simply click on the feedback tab on the left side of the page. Thanks! Stay tuned for updates.</p>
<div id="pfButton"><a href="http://blog.viamentis.com/articles/2009/05/15/introducing-printfriendlycom/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.viamentis.com/articles/2009/05/15/introducing-printfriendlycom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If wishes were horses&#8230;</title>
		<link>http://blog.viamentis.com/articles/2008/11/18/if-wishes-were-horses/</link>
		<comments>http://blog.viamentis.com/articles/2008/11/18/if-wishes-were-horses/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 08:58:04 +0000</pubDate>
		<dc:creator>Vamsee</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Lisp]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://blog.viamentis.com/?p=205</guid>
		<description><![CDATA[As it happens, I wondered if I could get to work with jQuery in a previous post. Looks like I turned lucky, and I was contacted recently to work on a javascript-heavy project. Initially we started working with jQuery, but due to the nature of the project, where in jQuery needs to live together with [...]]]></description>
			<content:encoded><![CDATA[<p>As it happens, I wondered if I could get to work with jQuery in a previous post. Looks like I turned lucky, and I was contacted recently to work on a javascript-heavy project. Initially we started working with jQuery, but due to the nature of the project, where in jQuery needs to live together with several other js frameworks, and Prototype being one of them, we quickly ran into conflicts.</p>
<p>There are several tricks to make sure jQuery doesn&#8217;t conflict with other frameworks, but none of them actually worked satisfactorily. We ended up using <a href="http://developer.yahoo.com/yui/">YUI</a> instead because one of its&#8217; strong points is a non-conflicting namespace. Another stroke of luck &#8211; I have been meaning to work with YUI too, but finally got the chance. A pretty tight deadline meant I had to get up to snuff with a lot of JS concepts that I understood only hazily, and it was great fun working with JS again.</p>
<p>JS is a very powerful language, and it&#8217;s very true that it&#8217;s a language that wears the syntax of Java, but it&#8217;s actually a kind of Lisp. It is very much like functional languages in its&#8217; design, where functions are first class objects, of course with closures etc. Plus, YUI makes it even more fun &#8211; it has a complete set of controls which help you build very rich UIs. Also, if you&#8217;re interested in JS at all, I recommend reading <a href="http://yuiblog.com/">YUI Blog</a> &#8211; a veritable gold mine of JS-related info. A very enlightening blog.</p>
<div id="pfButton"><a href="http://blog.viamentis.com/articles/2008/11/18/if-wishes-were-horses/?pfstyle=wp" title="Print an optimized version of this web page"><img id="printfriendly" style="border:none; padding:0;" src="http://cdn.printfriendly.com/pf-button-both.gif" alt="Print"/></a></div>]]></content:encoded>
			<wfw:commentRss>http://blog.viamentis.com/articles/2008/11/18/if-wishes-were-horses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
