Schedule

Schedule

Tuesday, January 27

1422381600 Tech News Today
1422385200 MacBreak Weekly
1422392400 Security Now
1422399600 Before You Buy
1422403200 Tech News 2Night
1422406800 All About Android
1422415800 Padre's Corner

Wednesday, January 28

1422462600 FLOSS Weekly
1422468000 Tech News Today
1422471600 Windows Weekly
1422478800 This Week in Google
1422489600 Tech News 2Night
1422491400 Android App Arena
1422496800 Ham Nation

Thursday, January 29

1422554400 Tech News Today
1422558000 Know How...
1422561600 Marketing Mavericks
1422567000 Coding 101
1422570600 Home Theater Geeks
1422576000 Tech News 2Night
1422577800 The Giz Wiz

Friday, January 30

1422640800 Tech News Today
1422644400 This Week in Law
1422662400 Tech News 2Night

Saturday, January 31

1422730800 The Tech Guy

Sunday, February 1

1422817200 The Tech Guy
1422831600 This Week in Tech

Monday, February 2

1422900000 Tech News Today
1422903600 Triangulation
1422909000 iPad Today
1422921600 Tech News 2Night

Tuesday, February 3

1422986400 Tech News Today
1422990000 MacBreak Weekly
1422997200 Security Now
1423004400 Before You Buy
1423008000 Tech News 2Night
1423011600 All About Android
1423020600 Padre's Corner

Wednesday, February 4

1423067400 FLOSS Weekly
1423072800 Tech News Today
1423076400 Windows Weekly
1423083600 This Week in Google
1423094400 Tech News 2Night
1423096200 Android App Arena
1423101600 Ham Nation

Thursday, February 5

1423159200 Tech News Today
1423162800 Know How...
1423166400 Marketing Mavericks
1423171800 Coding 101
1423175400 Home Theater Geeks
1423180800 Tech News 2Night
1423182600 The Giz Wiz

Most Recent Episodes

This Week in Enterprise Tech

Microsoft's new pricing strategy

Tech News 2Night
Episode #261: Sling TV Review January 26th, 2015

Google Gave FBI WikiLeak's Emails

iPad Today

Khan Academy on iPad, stylus rumors, Secret Siri commands

Triangulation

"The Cluetrain Manifesto" authors Doc Searls and David Weinberger.

Tech News Today
Episode #1182: Why Just WiFi? January 26th, 2015

WikiLeaks is mad at Google for not leaking something.

This Week in Tech

Windows 10 everywhere, App Neutrality, HoloLens, space net, and more.

The Tech Guy
The Tech Guy 1156 January 25th, 2015

Elon Musk wants to put the internet in space.

The Tech Guy
The Tech Guy 1155 January 24th, 2015

Is it safe to update Java on Windows XP?

Tech News 2Night
Episode #260: Box's Big IPO January 23rd, 2015

Skymall files for Bankruptcy

This Week in Law

Who should be responsible for determining international cyber law policies?

Coding 101 25

Perl: Creating Dynamic Web Pages

July 10 2014

Hosts: Fr. Robert Ballecer, SJ and Shannon Morse

Guest: Patrick Delahanty

The Code for today's show is availible at our: Github

Ivory Tower

Dynamic Web Pages
* When we think of the most basic of web pages, we think of a static .html file.

Example:

Hello World!

** This web page is simple, easy to create, and easy to upload... but because it's static, it's also not all that useful unless you WANT to display nothing but static text, graphics and rich media **

What we want is a way to DYNAMICALLY GENERATE the code of a web page so that we can do things like:
* Change the layout and template of the page without having to manually re-write the code
* Change the content contained within the page automatically
* Customize the content presented by a particular device depending on the device being used to view the content and the user consuming the content.
** In other words... the world of the Internet we use most often today is Dynamically Generated.

There are two methods to dynamically generate content: "Server Side" and "Client Side"

Client Side Dynamic Web Page:
* The browser processes the page using scripting AS it loads the HTML or XHTML document
* Usually, client-side scripts can be seen if one uses the "View Code" option on most browsers (The script is embedded within the HTML or XHTML document)
* Ocassionally a web designer will put the script into a seperate file that is referenced by the HTML file (The browser will interpret the page and see the reference, at which time the server will send the file with the script.)

Popular Client-Side Scripting Languages:
-- JavaScript (Including Ajax)
-- ActionScript (Most often used with Adobe Flash Player)
-- Dart
-- VBScript
-- Typescript

Server Side Dynamic Web Page:
* As one may guess, unlike a Client-Side Dynamically Generated Web Page - which is intepreted by the browser as it loads the document, a "Server-Side" page is interpreted and generated by the SERVER, and the finished document is sent to the browser.

Popular Serveri-Side Scripting Languages:
-- PHP
-- ASP .NET
-- Perl
-- Python
-- Ruby
-- Java
-- ColdFusion
-- JavaScript (Server Side)
* Usually, Server Side scripts CANNOT be seen by simply viewing a document's code.

There are advantages and disadvantages to both techniques.
* Client-Side gets a bad wrap for insecurity, but it's not INHERENTLY insecure... usually it's just sloppy scripting code... BUT while many will allow server-side scripts to run beyond the browser, that is usually not the case with client-side scripting.
* Server-Side scripting gives a more consistent look because the page is being interpreted by the server, rather than each individual (and often different) browser
* Client-Side scripting is usually MUCH easier to start using since there is no software that need to be installed on the server to make them run. (The script is interpreted in the Browser)
* Client-Side is dependent on the client machine: A bad browser or slow computer will affect the ability ot render the page.
In modern design, we use both!

Get in Touch With Us!

* Subscribe and get Coding 101 automatically at TWiT.tv!
* Follow PadreSJ and Snubs on Twitter.
* Watch the show live and join the chatroom every Thursday at 1:30pm PST.
* Email us at Padre@twit.tv and Shannon@twit.tv.
* Join our Google+ Community!
*Check out our transcripts.

Sponsors: