Schedule

Schedule

Monday, May 25

1432582200 iOS Today
1432589400 Coding 101
1432594800 Tech News 2Night

Tuesday, May 26

1432659600 Tech News Today
1432663200 MacBreak Weekly
1432672200 Security Now
1432681200 Tech News 2Night
1432684800 All About Android

Wednesday, May 27

1432740600 FLOSS Weekly
1432746000 Tech News Today
1432749600 Windows Weekly
1432756800 This Week in Google
1432767600 Tech News 2Night
1432769400 Android App Arena
1432774800 Ham Nation

Thursday, May 28

1432832400 Tech News Today
1432836000 Know How...
1432846800 Home Theater Geeks
1432854000 Tech News 2Night

Friday, May 29

1432918800 Tech News Today
1432922400 This Week in Law
1432933200 Before You Buy
1432940400 Tech News 2Night

Saturday, May 30

1433008800 The Tech Guy

Sunday, May 31

1433095200 The Tech Guy
1433109600 This Week in Tech

Monday, June 1

1433178000 Tech News Today
1433181600 Triangulation
1433187000 iOS Today
1433194200 Coding 101
1433199600 Tech News 2Night

Tuesday, June 2

1433264400 Tech News Today
1433268000 MacBreak Weekly
1433277000 Security Now
1433286000 Tech News 2Night
1433289600 All About Android

Wednesday, June 3

1433345400 FLOSS Weekly
1433350800 Tech News Today
1433354400 Windows Weekly
1433361600 This Week in Google
1433372400 Tech News 2Night
1433374200 Android App Arena
1433379600 Ham Nation

Thursday, June 4

1433437200 Tech News Today
1433440800 Know How...

Most Recent Episodes

This Week in Tech

Uses of VR, Key FOB security, new Spotify, @POTUS, and more.

The Tech Guy
The Tech Guy 1190 May 24th, 2015

Make your own media player.

The New Screen Savers

Delighting audiences for decades, our guest Martin Sargent

The Tech Guy
The Tech Guy 1189 May 23rd, 2015

Finding a low cost telephone line that works during power outages.

This Week in Enterprise Tech

Your SSDs are DOOMED!

Before You Buy

Myriam Joire reviews the HP Spectre x360 laptop.

This Week in Law

A California appeals court lifts ban on the "Innocence of Muslims" video on YouTube.

Tech News 2Night

Selena Larsen joins us to discuss accessibility, iOS9, and WWDC rumors.

Tech News Today

Apple Round-up, Google Scrambles, and Russia threatens.

Home Theater Geeks

HDR, High Frame Rate, virtual reality, and more.

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: