Schedule

Schedule

Tuesday, September 2

1409702400 All About Android
1409711400 Padre's Corner

Wednesday, September 3

1409758200 FLOSS Weekly
1409763600 Tech News Today
1409767200 Windows Weekly
1409774400 This Week in Google
1409785200 Tech News 2Night
1409787000 redditUP
1409792400 Ham Nation

Thursday, September 4

1409850000 Tech News Today
1409853600 Know How...
1409857200 The Social Hour
1409862600 Coding 101
1409866200 Home Theater Geeks
1409871600 Tech News 2Night
1409873400 The Giz Wiz
1409882400 OMGcraft

Friday, September 5

1409936400 Tech News Today
1409940000 This Week in Law
1409947200 Android App Arena
1409958000 Tech News 2Night

Saturday, September 6

1410026400 The Tech Guy

Sunday, September 7

1410112800 The Tech Guy
1410127200 This Week in Tech

Monday, September 8

1410195600 Tech News Today
1410199200 Triangulation
1410204600 iPad Today
1410217200 Tech News 2Night
1410219000 Marketing Mavericks

Tuesday, September 9

1410282000 Tech News Today
1410285600 MacBreak Weekly
1410292800 Security Now
1410300000 Before You Buy
1410303600 Tech News 2Night
1410307200 All About Android
1410316200 Padre's Corner

Wednesday, September 10

1410363000 FLOSS Weekly
1410368400 Tech News Today
1410372000 Windows Weekly
1410379200 This Week in Google
1410390000 Tech News 2Night
1410391800 redditUP
1410397200 Ham Nation

Thursday, September 11

1410454800 Tech News Today
1410458400 Know How...
1410462000 The Social Hour
1410467400 Coding 101
1410471000 Home Theater Geeks
1410476400 Tech News 2Night
1410478200 The Giz Wiz
1410487200 OMGcraft

Friday, September 12

1410541200 Tech News Today
1410544800 This Week in Law
1410552000 Android App Arena
1410562800 Tech News 2Night

Most Recent Episodes

OMGcraft

Enchanting in Minecraft 1.8

Tech News Today

Apple's iCloud is compromised and nude celebrity photos are stolen.

This Week in Tech

Virtual nausea, Uber vs. Lyft, smart phone kill switch, and more.

The Tech Guy
The Tech Guy 1114 August 31st, 2014

How reliable are SSDs?

The Tech Guy
The Tech Guy 1113 August 30th, 2014

Is a Chromebook a suitable replacement for an old computer?

Tech News 2Night

Facebook status updates are now searchable on mobile.

This Week in Law

Google receives 1 million DMCA takedown notices a day.

Android App Arena

A collection of games that are best played while wearing headphones.

Tech News Today

Microsoft's MSN Messenger is shutting down for good.

This Week in Computer Hardware

Haswell-E leak and 8TB hard drives.

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: