<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by akshaye on Medium]]></title>
        <description><![CDATA[Stories by akshaye on Medium]]></description>
        <link>https://medium.com/@akshaye?source=rss-c96a32745ce8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*EoAh4Kh0dRHBjFco.jpeg</url>
            <title>Stories by akshaye on Medium</title>
            <link>https://medium.com/@akshaye?source=rss-c96a32745ce8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:02:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akshaye/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[You need to stop doing this]]></title>
            <link>https://medium.com/learning-to-write/you-need-to-stop-doing-this-6e388e775e76?source=rss-c96a32745ce8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e388e775e76</guid>
            <dc:creator><![CDATA[akshaye]]></dc:creator>
            <pubDate>Wed, 26 Feb 2014 06:58:06 GMT</pubDate>
            <atom:updated>2014-02-26T07:19:23.799Z</atom:updated>
            <content:encoded><![CDATA[<h4>What’s with all the “recommend” requests?</h4><p>Medium is changing the way we write online. I get immense value from almost every article i read. But recently, i’ve started to notice this trend where almost all otherwise brilliantly written, thought provoking articles end with a “Click on recommend/Follow me on Twitter/or something to similar effect”. As you’re scrolling down, suddenly it feels like you fell off Medium into a teenager’s MySpace or something.</p><p>If you’re writing good content, if the reader is finding value in spending a couple of minutes reading your content, they are likely to be inclined to recommend anyway. So, please stop doing this, it’s really annoying.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e388e775e76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learning-to-write/you-need-to-stop-doing-this-6e388e775e76">You need to stop doing this</a> was originally published in <a href="https://medium.com/learning-to-write">Learning to Write</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginning Node.js]]></title>
            <link>https://medium.com/learning-to-write/beginning-node-js-4c91917be507?source=rss-c96a32745ce8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c91917be507</guid>
            <dc:creator><![CDATA[akshaye]]></dc:creator>
            <pubDate>Fri, 24 May 2013 03:55:26 GMT</pubDate>
            <atom:updated>2013-05-25T19:00:48.717Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aYA_T18O7LG7j2RO.jpeg" /><figcaption>photo by akshay vasudev</figcaption></figure><h4>Quintessential blog application using Node.js and Express </h4><h4>JavaScript on Server</h4><p>Node.js takes JavaScript from browser to the server. Node platform is built on Chrome’s V8 engine which makes it pretty fast.It uses an event-driven, non-blocking IO model which is disruptively different from regular web development paradigm.</p><h4>Installing Node</h4><p>Node.js packages are available at the <a href="http://nodejs.org/">official site</a>. Once Node is installed, open terminal and run <em>node —version or node —help</em> to verify that everything is working fine.</p><h4>Writing your first Node.js program</h4><p>Node provides <a href="http://nodejs.org/api/">several modules</a> which can be included in your programs. Following is the “Hello World” equivalent in node world:</p><pre>var http = require(“http”);</pre><pre>var server = function(req, res) {<br> res.writeHead(200, {“Content-Type”: “text/plain”});<br> res.write(“Hello World”);<br> res.end();<br>}</pre><pre>http.createServer(server).listen(8888);</pre><p>Save this file as, say, <em>helloworld.js</em> and then from terminal run this program as <em>node helloworld.js</em>. Congratulations, you just wrote your first web server.</p><h4>Enter Express</h4><p><a href="http://expressjs.com/">Express</a> is a web application framework inspired by <a href="http://www.sinatrarb.com/">Sinatra</a>. Node has this concept of packages or modules similar to ruby’s gems. To get started with express, define a package for your app which is essentially a <em>package.json</em> file in the app directory. Think of gemfile. Define express as one of the dependencies for your app:</p><pre>{<br> “name”: “express”,<br> “description”: “express blog”,<br> “version”: “0.0.1&quot;,<br> “private”: true,<br> “dependencies”: {<br> “express”: “3.2.5&quot;<br> }<br>}</pre><blockquote>To check the latest version of express, use <strong>npm info express version</strong>.</blockquote><p>Now that we’ve defined the package, we can use NPM (Node Package Manager) to install the dependencies, a la Bundler. Just run</p><pre>npm install</pre><p>Once npm finishes, all dependencies are available in ./node_modules directory. (<em>Since express is itself a package, it has its own package.json and all dependencies rolled into node_modules folder.</em>)</p><p>Ok, let’s start using express. Require express and define an application instance:</p><pre>var express = require(‘express’);<br>var app = express();</pre><p>Now you can use <em>app.VERB()</em> to define a route. Also, you can use app.listen() to start the server.</p><pre>app.get(‘/’, index);<br>app.listen(8888);</pre><p>Using our earlier code, here’s our first complete express app.</p><pre>var express = require(‘express’);<br>var app = express();</pre><pre>var index = function(req, res) {<br>	res.writeHead(200, {“Content-Type”: “text/plain”});<br>	res.write(“Hello World”);<br>	res.end();<br>}</pre><pre>app.get(‘/’, index);<br>app.listen(8888);</pre><p>Express augments node objects to add some extra syntactic sugar. For example, above code can be made more succinct by using <em>res.send()</em>:</p><pre>var express = require(‘express’);<br>var app = express();</pre><pre>var index = function(req, res) {<br>	res.send(“Hello World”);<br>}</pre><pre>app.get(‘/’, index);<br>app.listen(8888);</pre><p><em>work in progress…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c91917be507" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learning-to-write/beginning-node-js-4c91917be507">Beginning Node.js</a> was originally published in <a href="https://medium.com/learning-to-write">Learning to Write</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>