11.08.2017 Views

codebright

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Basic Routing<br />

You are on a long, straight mud path out in the wilderness of… What country has a wilderness?<br />

Australia! That will do.<br />

Don’t freak out! This section requires a little imagination, so work with me on this one. I suppose<br />

our main character should have a name because books seem to do that. Hmm… let’s call him Browsy<br />

Mc’Request.<br />

Browsy Mc’Request is walking along a straight, muddy, path somewhere in kangaroo country.<br />

Browsy isn’t a native to this land and has found himself lost with no idea where he is heading.<br />

He does, however know where he wants to be. A friend had earlier told him about “Jason Lewis’<br />

Shelter for Moustached Marsupials”. He knows that Movember is fast approaching and the Kangaroo<br />

stylists will need all the help they can get.<br />

All of a sudden, Browsy spots what looks like a fork in the road way off in the distance. Excited at<br />

seeing anything other than his old familiar straight, muddy path, he sprints towards the fork hoping<br />

he might find some kind of direction.<br />

Upon reaching the fork, he searches high and low for any indication of which path might lead to<br />

the shelter, but finds nothing.<br />

Fortunately for Browsy, at that exact moment, a wild web developer appears. The strong and<br />

handsome web developer slams a signpost into the tough, dry dirt with ease, and dashes away<br />

in the blink of an eye.<br />

Browsy is left dumbfounded by both the speed and rugged handsomeness of the web developer. Did<br />

I mention he was handsome? The web developer… not Browsy. Browsy looks kind of like THAT<br />

GUY from THAT BOOK who keeps saying ‘my precious’ a lot. At least that’s how I see it.<br />

After catching his breath, Browsy begins to study the signpost.<br />

To the left you will find “Bob’s Bobcat Riding Stables”, and to the right… ah! Here we go. To the<br />

right you will find “Jason Lewis’ Shelter for Moustached Marsupials”.<br />

Browsy eventually found his way to the Marsupial Shelter and lived a long and happy life learning<br />

to groom the many types of moustaches that kangaroos are able to grow.<br />

You see, the moral of the story is that without a (HANDSOME) developer showing him the way,<br />

Browsy Mc’Request wouldn’t have found his way to our applic… to the Marsupial Shelter.<br />

Just like in the story, a web browser request wouldn’t be directed to your application logic without<br />

some form of routing.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!