home—lects—exams—hws
D2L—breeze (snow day)
lect42-wrap-up
retrospective
What did we talk about this semester, eh?
Web Programming:
What's not to like?
How cool is php? Nice, low-barrier entry
But it makes me feel kinda like I'm using assembly-language:
To make a site about kittens, I need to...
-
have a web form, w/ fields for kitten's name, vaccination date, #claws, cuteness level, ...
-
do javascript validation on each of those fields
-
print out a kitten's info as html
-
have php that validates each of those fields
-
(maybe: php objects)
-
define a database table for kittens
-
set up SQL types/constraints for each of those fields
-
(maybe also: a java program that interacts with the database:
class Kitten { ... } and the constructor with all its validation code for sanity-checking.)
Oh my goodness, I don't feel so enthused about writing all this code again, in so many different languages
and in each language remembering how to call substring
[method or static?; end-index vs length; neg.indices allowed?] !
Do we really need a different language for each different stage?
Many before have seen this problem, and sought for a better world.
-
JQuery:
These are higher-level functions that do common tasks that we're coming to expect (incl. nice visual effects of I/O)
-
Node.js: a library; meant for running .js both client and server-side.
-
More comprehensive approaches like: .NET, .asp, rails -- specify what info a Kitten has just once,
and let the platform will auto-generate html forms, client-side checking,
server-side validation, database def'ns, a java class, etc..
-
Another example: c# data annotations.
While XSLT and SQL and Java all have their own strengths,
I can also choose to use one language, and simply annotate what code is to
be performed client-side, and what to be done server-side.
Yay!
So the php/javascript in this class grounds you in the 'assembly-level' web programming:
you now know/appreciate the low-level work that needs to be done.
But don't think that just because most sites still use just php/javascript,
that it's web programming's highest level!
home—lects—exams—hws
D2L—breeze (snow day)