Slashdot Mirror


Head Rush Ajax

barryhawkins writes " Programmers are flooded with choices about which technologies to pursue in order to maintain a marketable skillset. Even in a particular area of programming like web applications, one must choose carefully where to invest time. Ajax, to the regret of some and delight of others, has emerged as a means of providing rich, responsive web applications that are highly cross-platform. However, when arriving home after a 10-hour day at the office programming, who has the energy to plow through yet another new facet of emerging technology? If a developer is going to invest their free time in self-driven career development, should it not be at least remotely enjoyable? Judging from the content of O'Reilly's new release Head Rush Ajax, their answer is yes." Read the rest of Barry's review. Head Rush Ajax author Brett McLaughlin pages 413 publisher O'Reilly Associates rating 9 reviewer Barry Hawkins ISBN 0-596-10225-9 summary A learner's introduction to Ajax, Asynchronous JavaScript and XML for web application programming

Like its forerunner the Head First series, the Head Rush line approaches learning a given technical topic with the principles derived from studies in cognitive science, neurobiology, and educational psychology. It comes as no surprise that the classic approach of turgid, monotonous, visually-fatiguing tomes is not the ideal way to have someone learn a topic. Learning is aided by having variation in the way content is presented. This book moves between presentation of information, application through interactive exercises, and review questions that stimulate the reader and invite them to continue in the book's journey through Ajax. Each exercise is also tied to a storyline, where the reader has a person with an application that needs to be enhanced by the application of the skills being learned.

Head Rush Ajax scales well. Ready-to-run scripts for the more technical components of the sample applications are provided so that a reader with only a background in HTML and CSS will not experience barriers to participation early in the book. This facility does not come at the expense of the experienced web developer; anyone who knows their way around a PHP script and databases is free to write the server-side code on their own. Some readers may look upon the choice of PHP for the back-end scripts as regrettable, particularly those with Java and .Net backgrounds. However, the focus is on Ajax itself, and not the particular back-end platform providing the HTTP responses. Those who look upon that sort of thing with scorn typically view Ajax as a novelty itself, so the number of complaints about using PHP should be relatively low; the dissenting voices will have probably passed over Ajax for the time being anyway.

The author never takes himself too seriously; the informal tone of the book is comfortable, like having a conversation with one's colleagues at the office. The balance of levity and solid technical content is refreshing, making this volume of some 400 pages reach its end surprisingly soon. Retro cartoon graphics and narrative comments like "Now, everyone hates you. You're an idiot, and all this Ajax stuff was a waste of time" when a URL caching error is uncovered make for a genuinely enjoyable read.

The Document Object Model, or DOM, has long had a reputation for being an unwieldy and problematic interface to manipulate. The tree metaphor used in this book along with the series of progressive exercises present the DOM in a refreshingly approachable manner. By the end of the DOM-specific coverage, an entire application has been created that is highly dynamic yet involves no Ajax-specific coding. The critical role of the DOM in effective use of Ajax is driven home without being heavy-handed.

The choice between using XML and JavaScript Object Notation (JSON) for receiving data via HTTP responses is another entertaining treatment of a topic that is often grounds for argument between practitioners of web development. The author comes across with a pragmatic viewpoint, preferring JSON as the simpler choice that is most often adequate and does not bear the high ceremony that accompanies proper handling of XML via the DOM. Two of the sample applications choose opposite means of receiving their data, once again fleshing out a topic in a concrete manner rather than pontificating about the virtues of either approach.

The progression of the book is masterful. The types of issues that typically plague web applications are addressed in the order they tend surface during the lifecycle of a real-world application. Proper functionality is the first stage, followed by enhanced functionality, then onto issues with synchronicity, security, and more complex domain model requirements. A reader can pass through an encapsulated representation of application lifecycles by working through the book from start to finish.

The goal of Head Rush Ajax is to have the reader learn Ajax, not master it. At the conclusion, the author appropriately offers topics for further exploration in the form of two appendices. The first appendix covers Ajax toolkits, user interface libraries, DOM utilities (most of which are built plugins for the browsers in use on desktops every day), and JSON libraries. Links to the project sites provide easy access to pick up where the book's coverage leaves off. The second appendix provides deeper insight on the internals of two JavaScript utilities provided for use in the exercises throughout the book. One is an Ajax-specific set of common infrastructure for typical Ajax applications, while the other provides convenient methods for DOM manipulation. Head Rush Ajax is a most enjoyable launchpad into the world of Ajax web applications, well worth the investment in time and money."

You can purchase Head Rush Ajax from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

122 comments

  1. Head first series is great. by iplayfast · · Score: 2, Interesting

    I've no need of learning ajax at the moment, but if it's done by the same people who did the head first series, I may just spend the money. I know that it won't be a waste, because it will be useful somewhere down the line.

    1. Re:Head first series is great. by nojomofo · · Score: 2, Informative

      I agree... sort of. I have one of the Head First books (something about CSS and HTML - needed to learn CSS). As far as teaching goes, it's good. I skimmed the book pretty quickly (because I had some familiarity with the subject matter to begin with). However, the book is now useless. The index is absolutely atrocious (of the HTML/CSS book, that is - I have no experience with the Ajax book). It is completely unusable as a reference - the only way to refer to anything in the book is to go back and read the whole thing again, because there's no other way to find a piece of content. Any book about CSS whose index doesn't have an entry for "text-align" has a real problem.

    2. Re:Head first series is great. by $1uck · · Score: 1

      I've read most of the Head First Java books and they do a really good job. Reading them was easy not the least bit tedious. I was already familiar with the topics and that might have helped, but I've yet to read any other books that make reading them as much "fun". If I ever taught programming to beginners (I used to think teaching programming to highschool students might be interesting) I'd definitely use these books.

    3. Re:Head first series is great. by Anonymous Coward · · Score: 0

      You are right - the Head First / Head Rush books are not meant as a reference, and not very useful for that. If you want a reference, get a "...in a nutshell" kind of book.

      However, as a teaching tool to learn a new subject, they are absolutely wonderful - I don't know anything else that even comes close to that combination of accessible presentation and thourough teaching.

    4. Re:Head first series is great. by JulesLt · · Score: 2, Insightful

      It's taken me a few years and a lot of tech books to appreciate what they're doing; most books make the mistake of trying to mix tutorial with reference.

      That means you end up with a very bloated reference book, and a poorly structured learning experience - i.e. my general experience is that authors will try and structure a book so that they start with simple concepts - primitive types, basic conditional control - before building up to collections, iteration, etc - but suffering from needing to introduce some features too early in order to get full coverage.
      Do you cover iterating over a collection in the chapter on collections? Or iteration?

      Perhaps a neat marketing idea would be if they sold them with a matching slim reference volume.

      --
      'Capitalists of the world, unite! Oh ... you have' (League Against Tedium)
  2. Ajax web framework support by FecesFlingingRhesus · · Score: 4, Interesting

    I would like to see more web frameworks include a mature AJAX framework to facilitate more dynamic interaction. To date the best I have seen so far is Echo2 which incorporate an event driven architecture that allows for seamless integration of client side events transmitted to the server side architecture.

    1. Re:Ajax web framework support by 0110011001110101 · · Score: 5, Funny

      could you re-post your comment, but incorporate more techie buzzwords into that?? I was low for the day, but your post has just about pushed me to my quota.

      --
      Don't anthropomorphize computers: they hate that.
    2. Re:Ajax web framework support by FecesFlingingRhesus · · Score: 4, Informative

      Actully my description depicts exactly what the framework does it allows communication between the client and server to make a web application more dynamic. Now if I had said "creating synergy between the client and server, with bleeding edge technology, that creates a new development paradigm" I could see your complaint.

    3. Re:Ajax web framework support by omega9 · · Score: 0, Flamebait
      Look. We fucking get it already. You're a lame shill for NextApp. I don't think I could stand to look at Echo2 again after seeing you comment

      --
      I'm against picketing, but I don't know how to show it.
    4. Re:Ajax web framework support by Anonymous Coward · · Score: 0
    5. Re:Ajax web framework support by Anonymous Coward · · Score: 0

      An interesting option is ICEfaces. It leverages the standard J2EE JavaServer Faces (JSF) component framework to develop AJAX-enabled web apps using standard Java IDEs. You just use their components directly, no JavaScript development required. It also supports a really nifty "server-push" feature where the server-based application can asynchronously update the browser UI.

    6. Re:Ajax web framework support by TodLiebeck · · Score: 3, Funny
      Look. We f***ing get it already. You're a lame shill for NextApp. I don't think I could stand to look at Echo2 again after seeing you comment


      My apologies, but "FecesFlingingRhesus" is not on our list of paid shills. My best guess is that he might be a member of the cult.

      Best regards
      --Tod Liebeck (Director of Shills and Level 6 Cult Leader)
          NextApp, Inc.
    7. Re:Ajax web framework support by Anonymous Coward · · Score: 0

      Is there something wrong with a feces flinging Rhesus monkey wanting to facilitate dynamic interaction, or is it just me? I guess it's just me.

    8. Re:Ajax web framework support by FecesFlingingRhesus · · Score: 1

      I will say it again, as I have said it a thousand times before. I use Echo2, I like Echo2, when an article about Ajax comes up I am going to take the opportunity to say why I like Echo2. It is no different that the RoR guys highlighting their framework. I do not work for NextApp but I do like their product and I think it would be beneficial to others as well. It's called grassroots development, you find something you like and then you tell others about it. If these guys can take their time to build a framework for free then the least I can do is tell someone else about it. If you don't like it then foe me and don't read my posts it is as simple as that.

    9. Re:Ajax web framework support by dubl-u · · Score: 1

      creating synergy between the client and server, with bleeding edge technology, that creates a new development paradigm

      As buzzwords go, those are low-hanging fruit. If you were more proactive, you would have incentivised yourself to think outsize the box.

    10. Re:Ajax web framework support by spoco2 · · Score: 1

      I have mentioned this language/product before here on Slashdot, but that's because I program in it everyday... but Laszlo does what you want. The biggest thing that scares 'tech heads' away from it is that it's output currently is Flash. Now I personally think it's a excellent thing, huge penetration of plugin, almost completely guaranteed same result in all browsers/operating systems, supurb animation an interaction ability. It makes for a great user experience.

      However they now have a pre-beta DHTML runtime option as well. So you can have the same source code (written in the Laszlo language which is XML + Javascript) delivery either Flash OR DHMTL.

      Check it out (including a demo of DHMTL vs Flash from the one source) at OpenLaszlo.

      And my PR for my current programming language is done for today! :P

    11. Re:Ajax web framework support by kap1 · · Score: 1

      Not one of our shills; they're all accounted for.

      -Dietrich

    12. Re:Ajax web framework support by Anonymous Coward · · Score: 0

      Unfortunately for many, Laszlo uses the GPL-incompatible CPL

      It is a really nice package, though.

    13. Re:Ajax web framework support by FecesFlingingRhesus · · Score: 1

      It's pretty apparent, that I am not too good at this buzzword thing. My original post was accused of being buzzword riddled when I though it was to the point and then my retort was accused of being amateur at best.

    14. Re:Ajax web framework support by dubl-u · · Score: 1

      No, actually your buzzword retort was excellent, and I thought your original post was fine, too. I was just playing along. Sorry to confuse.

    15. Re:Ajax web framework support by FecesFlingingRhesus · · Score: 1

      No I know I was just making a joke of it at my expense.

  3. Tree metaphor by msuarezalvarez · · Score: 5, Funny
    The Document Object Model, or DOM, has long had a reputation for being an unwieldy and problematic interface to manipulate. The tree metaphor used in this book along with the series of progressive exercises present the DOM in a refreshingly approachable manner.

    Wow. A tree metaphor for the DOM! Now that's a new idea!

  4. Invest in People, Not Skills by neuraljazz · · Score: 4, Insightful

    Reviewer says:
    Programmers are flooded with choices about which technologies to pursue in order to maintain a marketable skillset.

    A better skillset is the standard:
    - Bathe frequently
    - Show up on time
    - Learn people skills (don't assume less experience is stupidity)
    - Learn how to LEARN

    Buy the book if you need to learn AJAX, not because you're afraid you're no longer on the bleeding edge of programming languages.
    -nj

    1. Re:Invest in People, Not Skills by Anonymous Coward · · Score: 0

      Hail to that - I never belived in learning dry the best practice is eeeee practice :) The small problem is always to convince the the prospective customer and then not to blow it. Learning skill is in my view the most important.
      A bit raugh smell has never harmed although there are always people that are ready to inform you about inventions like shower etc that are now available to people earning your amouont of money (never tried that however I was informed many time about existence of barber shops when I stopped trimming my
      beard for a year or so :) //

    2. Re:Invest in People, Not Skills by jbellis · · Score: 4, Insightful

      Like it or not, the majority of employers do at least some screening by skill-set. You could be God's Own Lead Developer, but if all you know is COBOL, you won't be getting a call.

    3. Re:Invest in People, Not Skills by Anonymous Coward · · Score: 0

      Actually, pookie-kins, there's a shortage of COBOL programmers expected in the years to come, as many a COBOL programmer working now will be a-retiring soon.

      Btw, would you like to sniff my farts?

    4. Re:Invest in People, Not Skills by syousef · · Score: 1

      You could be God's Own Lead Developer, but if all you know is COBOL

      You're right, I don't think I'd hire Azreal, angel of death to program my system in COBOL.

      --
      These posts express my own personal views, not those of my employer
    5. Re:Invest in People, Not Skills by tehcyder · · Score: 0
      There are still companies with software created in COBOL, so there must be a niche even for a COBOL-only programmer.

      --
      To have a right to do a thing is not at all the same as to be right in doing it
    6. Re:Invest in People, Not Skills by Anonymous Coward · · Score: 0

      All the banks in the world use COBOL... Maybe 95%
      All the Stock exchanges use COBOL... Maybe 95%
      All ATM/Credit/Debit txns at one time or another pass through COBOL systems..

      I do not defend COBOL, it can sometimes get tiresome, but it will _not_ be replaced by Java, thats for sure.

      If you want a good paying job. Learn HP Nonstop... BASE 24... COBOL, TAL

  5. Save $14.80 by buying the book here! by Anonymous Coward · · Score: 0, Redundant

    Save yourself $14.80 by buying the book here: Head Rush Ajax. And if you use the "secret" A9.com Instant Reward discount, you can save an extra 1.57%! That's a total savings of $15.20, or 38.58%!

    1. Re:Save $14.80 by buying the book here! by stonecypher · · Score: 2, Insightful

      Yes, let's all click your shop link, kaleidojewel-20. Did you know that Amazon's terms of service explicitly prohibit forum spamming?

      --
      StoneCypher is Full of BS
  6. Re:I was wondering by barryhawkins · · Score: 1

    As I understand it, you can choose between by-the-word and per-review compensation, but since they're both a rate of 0, you're not penalized by choosing one over the other. 8^)

    --
    Barry Hawkins site: www.alltc.com weblog: www.yepthatsme.com
  7. No monster.com activity for AJAX by Spinlock_1977 · · Score: 3, Interesting

    I "learned" Ajax last month. Well, ok, "enough" to produce a small GUI that did some cool things, asynchronously.

    I beefed up my resume on Monster.com expecting a flood of Ajax inquiries. Although 2 recruiters have contacted me recently, neither was interested in my Ajax stuff. Just PHP, Oracle, SQL server, etc.

    I'm quite surprised - either I suck (alway a possbility), or Ajax jobs are not the hot thing right now.

    --
    - The Kessel run is for nerf herders. I can circumnavigate the entire Central Finite Curve in a lot less than 12 parse
    1. Re:No monster.com activity for AJAX by CastrTroy · · Score: 5, Insightful

      I don't think you'll find a lot of jobs that will employ you just for your ajax skills. If you're a web developer, than you'd better learn how Ajax works. Just like it's probably a good idea to know HTML, Javascript, PHP, ASP.Net and other web technologies. Getting into that rut where you only know one thing is where a lot of people go wrong. There isn't a whole lot to learn about AJAX. If you know Javascript, and understand XML, Stylesheets, and HTML, you pretty much know everything you need to know. You just have to learn how to put them together.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    2. Re:No monster.com activity for AJAX by p!ssa · · Score: 0

      or..., maybe it was your 1 month experience in AJAX creating your plaything that kept them away...

    3. Re:No monster.com activity for AJAX by Spinlock_1977 · · Score: 1

      I doubt it. It was a GUI for a call center with 50 operators (more than a toy), and I didn't advertise that it took only 3 months to build. Something else is watering down the Ajax demand, I suspect.

      --
      - The Kessel run is for nerf herders. I can circumnavigate the entire Central Finite Curve in a lot less than 12 parse
  8. Enjoy Yourself by cerelib · · Score: 2, Insightful

    If Ajax does not seem enjoyable to you, don't try to learn it as a career skill. If somebody hires you because you know Ajax then you might get stuck doing something that you don't enjoy. I do not have a large interest in web apps, but I do have interest in digital audio. So I do digital audio and MIDI stuff on my spare programming time and hope to make a career out of it some day. Follow your interests.

    1. Re:Enjoy Yourself by Anonymous Coward · · Score: 0

      If Ajax does not seem enjoyable to you, don't try to learn it as a career skill. If somebody hires you because you know Ajax then you might get stuck doing something that you don't enjoy. I do not have a large interest in web apps, but I do have interest in digital audio. So I do digital audio and MIDI stuff on my spare programming time and hope to make a career out of it some day. Follow your interests.

      I was given this advice by a teacher at school. "There's a lot of computer stuff to learn out there. Spend the most amount of time learning about stuff you like doing and you'll end up getting a job doing it."

      I think it was the best advice I've ever gotten.

    2. Re:Enjoy Yourself by Lord+Ender · · Score: 1

      Follow your interests to pick a career/job? Are you a HS guidance counselor?

      Terrible advice. Follow the market. Let your interests influence the decision.

      I kinda like computers and really like girls. But, due to market forces, I didn't make enough money to retire in a reasonable time when I was a bikini inspector. So I followed the market and became a coder. Now I have financial security and its not THAT much wors than being a BI. The paperwork's a bitch in both.

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
    3. Re:Enjoy Yourself by cerelib · · Score: 1

      I think that being happy with your work is very important. There are some people, you might be one of them, who really do not care what they do as long as they make good money doing it because that is something that makes them happy. Each of these is a valid viewpoint. I am not saying everybody is going to get what they want in a job, I am not naive. But, given free time to pursue other subjects I believe that it is important to do something you enjoy. If possible find something you enjoy that is also a marketable skill.

    4. Re:Enjoy Yourself by MightyMartian · · Score: 1
      I was given this advice by a teacher at school. "There's a lot of computer stuff to learn out there. Spend the most amount of time learning about stuff you like doing and you'll end up getting a job doing it."

      I think it was the best advice I've ever gotten.

      Now what would you like on your hot dog?

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    5. Re:Enjoy Yourself by Lord+Ender · · Score: 2, Interesting

      Actually, I think the best strategy is to get into the most lucrative career you can, live cheap, invest heavily, and retire while in your 30's. Then, for the rest if your life, you really can do whatever the hell you want. It's what I'm trying to do. At the rate I'm investing (100% stocks) it looks like it will happen.

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
  9. Other Ajax Books by Sixty4Bit · · Score: 2, Informative

    If you are in the market for some Ajax knowledge, you should check out Relevance LLC's reviews of Ajax books. A couple of smart guys. They have reviewed 7 books so far.

    --
    This is not the sig you are looking for...
  10. Ajax is kinda cool but.. by Kranfer · · Score: 3, Insightful

    While I tend to agree that you need to keep your skillset up, as not to appear at the bottom of the development ladder, I must say from what we have used of AJAX here at work, it is something that I would have to recommend to any developer out there that works with web applications. However, jumping on the bandwagon and learning AJAX just because its the newest and greatest thing does seem rather stupid. Keep your skill setup by Learning to learn new and exciting things while incorporating it into work. Why learn something on your own time when it can make you more productive at work, while learning it on the job?

    --
    -- Josh
    "Whoopie! Man, that may have been a small one for Neil, but that's a long one for me!" - Pete Conrad
  11. 10 hour days? by truthsearch · · Score: 4, Funny

    ...when arriving home after a 10-hour day at the office programming...

    Dude, if you had just developed it in AJAX you'd get it done in half the time. ;)

    1. Re:10 hour days? by grazzy · · Score: 1

      Not really. Developing in AJAX doesnt exactly speed the process of coding up.

    2. Re:10 hour days? by truthsearch · · Score: 1

      Oh I know it doesn't. It was purely a joke since so many people are talking about AJAX like it solves all you problems and washes your windows, too.

    3. Re:10 hour days? by kfg · · Score: 1

      I work in HECTOR and get done before I start, leaving plenty of free time to get dragged around the city.

      KFG

    4. Re:10 hour days? by grazzy · · Score: 1

      It doesnt wash your windows? :/

      I've got mine set up todo that asyncronously while i browse slashdot.

  12. excuses by Anonymous Coward · · Score: 0

    "However, when arriving home after a 10-hour day at the office programming, who has the energy to plow through yet another new facet of emerging technology? "

    me

    anyone who doesn't is just making an excuse. get busy living or get busy dying. the choice is yours.

    1. Re:excuses by engwar · · Score: 1

      Hmmm. Let me guess. You're childless right? You're a dumbass who can't think outside of his own life experience. Now get busy growing up.

  13. Amazon has it much cheaper. by heffel · · Score: 3, Informative

    Amazon has it about $10 cheaper than BN.

    1. Re:Amazon has it much cheaper. by mustafap · · Score: 1

      Thanks for the tip. This is definately a book I'm going to buy.

      --
      Open Source Drum Kit, LPLC deve board - mjhdesigns.com
    2. Re:Amazon has it much cheaper. by Anonymous Coward · · Score: 0

      If you don't mind giving your money to low lifes that might be helpful. I personally have not forgiven Amazon for what they did, unlike the FSF. Once a bad apple always a bad apple.

    3. Re:Amazon has it much cheaper. by Anonymous Coward · · Score: 1, Insightful

      Nice affiliate link you troll. Come up with your own original idea for earning quick bucks. You are less worthy than the lowly disgusting piece of slime at the bottom of my shoe.

  14. AJAX online tutorials [LINK] by fak3r · · Score: 4, Informative

    Here's a list of 20 AJAX online tutorials:
    http://121space.com/index.php?showtopic=1875&st=0& p=2212&#entry2212

    It's moving so fast I'd be hesitant to grab a book yet -- YMMV.

  15. 10-hour day? by blair1q · · Score: 1

    TEN

    HOUR

    DAY??

    is that what passes for exhausting to the new crowd of code monkeys?

    1. Re:10-hour day? by Anonymous Coward · · Score: 0

      If you don't feel exhausted at the end of a 10 hour day, your job is too easy. The kind of job robots will be doing soon.

      (Comment shamelessly stolen from here).

    2. Re:10-hour day? by Zarf · · Score: 3, Funny

      TEN HOUR DAY?? is that what passes for exhausting to the new crowd of code monkeys?

      I know what you mean. I put in a 10 hour day when I'm on vacation. Geesh. Slackers.

      --
      [signature]
    3. Re:10-hour day? by gravyface · · Score: 1

      How did we get into this rut, this "I work harder than you do" bullshit that permeates the programmer culture? When did it become "ok" to work 80 hours a week?

      My company realised along time ago that all this unpaid overtime is a waste -- sloppy code and unhappy employees are worthless bi-products of this mentality.

      You are not permitted to stay after hours unless it is absolutely necessary for maintenance work, in which case, you can either come in late that day or take off those hours the next day.

      Nobody works more than 40 hours a week.

      --
      body massage!
    4. Re:10-hour day? by Anonymous Coward · · Score: 0

      somehow people still think its cool to work 10+ hours a day. The rest of us have a life outside of work.

    5. Re:10-hour day? by blair1q · · Score: 1

      unpaid overtime

      UNPAID

      OVERTIME???

      go hourly. you'll find yourself smiling through 100-hour weeks and 4-month vacations.

    6. Re:10-hour day? by gravyface · · Score: 1

      salary = slavery

      --
      body massage!
    7. Re:10-hour day? by Cryptimus · · Score: 1

      Well, this has a lot to do with the fact that modern codemonkeys tend to have two things which earlier codemonkeys did not.

          They're known as:

          A) A life

          B) A girlfriend.

    8. Re:10-hour day? by Anonymous Coward · · Score: 0

      Vacation!?!
      Back in my day we used to write code in a coal mine for 36 hours a day...

    9. Re:10-hour day? by blair1q · · Score: 1

      You left out

      c) no hope of ever making more than $29.50/hour...

    10. Re:10-hour day? by Anonymous Coward · · Score: 0

      Ten hour days in the adult business are very exhausting.

    11. Re:10-hour day? by jonadab · · Score: 1

      Vacation? You get vacation? Why, back in my day we were expected to write code 365 days a year. One year they decided to be nice and give us twenty minutes off for Christmas and an extra crust of bread. We might've gotten that every year, but the young whippersnappers had the nerve to *complain*. Ingrates. Spoiled it for all of us.

      --
      Cut that out, or I will ship you to Norilsk in a box.
    12. Re:10-hour day? by electrongunner · · Score: 1
      Jeez. You people work waaaay too hard. There are times when long days are warranted and I can certainly sympathize with the desire to know more than everyone else, and have lived the late-night hacker-wannabe lifestyle for years on end trying to learn more than my competition in the job market, raising the bar for them. But it shouldn't be your goal to keep living like that. People in the US need to stop looking at working themselves to death as some kind of badge of honor. Those people have lost sight of the goal. Tehnology is supposed to help us work less, not more. If you find yourself working more than 8 hours a day to make someone else rich, you probably need to better organize your time or your project or find a new job that doesn't suck so much. I used to think it was cool to work 12 and 14 hour days until I finally learned that if you do too much of anything you end up not enjoying it and then you end up producing uninspired crap, not to mention that you end up taking longer to do the job...leading to longer, less productive days at work, more sick days, etc. I've watched companies implode for this simple reason. People who glamorize coding for 14 hours a day are a lot like the people who idolize self-destructive rock stars whose lifestyles end up killing them.

      You: "Dude, I coded for 14 hours straight last night and fixed that bug. I'm a hardcore programming man!"
      Me: "Cool. I finished up early last night, cooked pasta, drank wine, watched B-Star with friends and had sex my girlfriend."

      Which one of us do you think will be better prepared to get something done at the office tomorrow? Which one of us do you think will live longer? Which one of us do you think will die with the fewest regrets?

      Mmmmm hmmmm.
      <?php //insert random flame code here ?>
  16. Keep your basics polished by debiansid · · Score: 1

    That is the best one can do. Chasing a new skillset as soon as you enter the market can be dangerous for some.

    Once you have understood how programming languages work (the usual combo of C/C++/Java ought to teach you most of it) you will have a fair idea of what to expect from other programming environments. Once you have that you can pick up any new programming language /environment with fair ease.

    I haven't done much Ajax programming at all (I've used a combo of javascript and iframes once. Does that count?) but from what I've heard it is simply a pickle of javascript+xml+iframes. So I guess as far as the code language is concerned it shouldn't be a problem.

    1. Re:Keep your basics polished by drinkypoo · · Score: 1

      AJAX is what replaces using iframes+js. You still use the js but instead of using iframes for communication (which allows only pull, no push) you have a more friendly connection.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    2. Re:Keep your basics polished by unity100 · · Score: 1

      Isnt iframe was something to be avoided, a no-no, a security risk ?

  17. Perfect timing. by Anonymous Coward · · Score: 0

    Odd you should mention this on exactly the day the company you're constantly shilling for delivered their latest release.

  18. Ajax? Head Rush? by Aqua_boy17 · · Score: 2, Funny

    Just don't try to snort it! "Look, it's turning blue!" (I forget what movie that was from.)

    --
    What if the Hokey Pokey really is what it's all about?
    1. Re:Ajax? Head Rush? by Anonymous Coward · · Score: 0

      Cheech and Chong, Up In Smoke...

  19. Web development is simple... by reebmmm · · Score: 3, Insightful

    ... and just about any paradigm will do. However, the problem is that most developers don't have the basic skills in the basic tools of their trade:

    • html
    • javascript
    • css

    If you need a new book every time some new acronym for a combination of those three things, you'd better check your skill set.

  20. waiting for the next bunch of reviews from barry by ranjix · · Score: 1

    when the reviews for
    1. allergy SOAP
    2. mental block SOA
    3. fractured XML cast XSL
    4. on rails Ruby
    ?

    --
    I had another sig before, but this one is better
  21. Basic AJAX by boristdog · · Score: 3, Informative

    I realize this will remove 20 points from my geek rating to say "wow, this stuff is really easy" because we're the wizards with the black boxes that do magic stuff that confuses mortals...but jeez, this AJAX stuff is pretty simple. Do a 10 minute tutorial and say "Huh, so that's it..."

    And basic AJAX skills CAN be acquired with a 10 minute tutorial if you know a little javascript and a little of any CGI-type backend (PERL, ASP, PHP, PLONE etc.)

    Don't be afraid of the hype if you feel you don't have the time to learn. Any web programmer needs to know this, and it's pretty simple. Sure, you can do some weird cool stuff and get complex, but the concept is simple and you don't need to learn anything really new.

    Take a tutorial now. At work. I mean, the stuff on the screen is still just magic inscriptions and incantations to the non-geeks and PHBs anyway.

    1. Re:Basic AJAX by gbjbaanb · · Score: 1

      indeed. How much for the book? IBM's giving the information away for free: http://www-128.ibm.com/developerworks/java/library /wa-ajaxintro1.html

  22. Not everyone has the intelligence ... by Anonymous Coward · · Score: 0
    after a 10-hour day at the office programming, who has the energy to plow through yet another new facet of emerging technology?

    Someone who's stupid enough to give his/her employer 10 hours of time, when the employer has paid only for 8, probably isn't smart enough to learn new stuff anyway.

  23. Better Ajax by somethinghollow · · Score: 4, Informative

    I tried Ajax when I first heard about it, which I think was when it was first gathering mass. Initially, the responseXML DOM object was a pain in the ass and that made me stay away from it. After I accepted that it would be difficult, I moved on to sending values back with responseText. That proved to be very easy. Then, I found that constantly creating XMLHttpRequest objects and setting up the proper parameters for IE vs. Everyone Else was a pain in the ass and that made me not like it. Eventually I found out about prototype.js, which was nice. I ended up ditching it because it was a little bloated to be used for Ajax-only stuff. So, I wrote my own JavaScript Ajax "class" to handle all the sending, waiting, receiving, and callbacks. I even have it create an associative array representation of the XML and "trace" so it looks like a print_r'd array in PHP. All I have to do is set the Ajax object to a variable, call a function in the object (that specifies the file to query, the post string, and the callback function), write the callback function, and write some php. It makes Ajax painless.

    My point is: If you want to "learn" Ajax, learn how it works, write a class that does the stuff you will typically do, then use the class. It'll save you tons of time, code, and frustration in the end. Ajax is actually worth using now and has helped my company separate PHP code and HTML in our intranet web apps without using a template engine, which makes our PHP guy happy that I'm not fudging with his code and makes me happy that our PHP guy isn't fudging with my design.

    1. Re:Better Ajax by cerebralpc · · Score: 1

      How a about you give me that code

    2. Re:Better Ajax by cyclomedia · · Score: 1

      i agree. i've written my own wrapper in my own uber hacky way and it's about 500 times smaller and simpler than the frameworks i've seen out there. as anything i've done via AJAX so far (aside from a top secret spreadsheet type app i'm working on, oops, now it's not so top secret, dammit!) is of the form

      "get content and put it in this div"

      and via the cunning use of innerHTML instead of XML/DOM parsing all i need to do with my basic ajax framework is

      fAJAXRequest( sTargetID , sURL , sPost , sWait , sError );

      where

      sTargetID is the id of the div (or whatever) to dump the returned html into
      sURL is the url to call (e.g. ajax_randomthumbnail.asp)
      sPost is the form data to, er, post
      sWait is innerHTML to show whilst waiting for response
      sError is friendly error message to show in case of, um, an error

      so all ajax_randomthumbnail.asp would return is something like:

      <a href="bigphoto.jpg"><img src="thumbnail.jpg"></a>

      like i said, check the response header, and dump it into the target div with innerHTML. bish bash bosh. nice

      ---
      http://www.cyclomedia.co.uk/ - ASP, CSS and AJAX demos, examples and tutorials with free source code download

      --
      If you don't risk failure you don't risk success.
  24. Javascript still sucks. by Anonymous Coward · · Score: 0

    Totally unreliable, why waste your time?

  25. AJAX message board. by caluml · · Score: 1

    Oooh! Ooooh! AJAX reference. That means I can legitimately mention my AJAX message board and viewer counter, that's to be found at calum.org!

    Please try it out before you mod me. It's not bad, if I do say so myself.

    1. Re:AJAX message board. by jdbartlett · · Score: 1

      Nice concept, but you could do a few things to improve end user experience:

      1.) New messages don't appear on new lines in Safari. Someone on there (not sure if it was you) told me it works fine in other browsers, though.

      2.) Change the 'add' hyperlink to an input type submit and add its onclick event to the onsubmit handler for the form and change the form action to an anchor reference on the current page. That way, when the user hits enter, the current message will submit to the handler without having to click 'add'.

      3.) Flag messages as 'belonging' to IP addresses so it's easier to follow conversations.

      Nice and light, though.

    2. Re:AJAX message board. by caluml · · Score: 1

      1. Yes it was me. Can you load /rpc/messages.php and see what the formatting looks like there?
      2. I'll look that up. As I said, I'm not too good with JS currently. More a server-side man.
      3. Every post prefixes the first 2 octets of the IP - is that not what you want?

    3. Re:AJAX message board. by jdbartlett · · Score: 1

      Looks the same. Looking at the source of the php output, I worked out what's happening. You're relying on an innerHtml or other HTML injector to render the HTML you're providing. While Firefox and IE are correctly rendering that as part of the current document, Safari is having trouble rendering it.

      To be blunt, Safari has such a small audience, I'm not sure the fix is worth the trouble, especially when you're new to JavaScript. If you do want to fix it, you could research DOM methods to inject new elements into the document instead of re-rendering the message portion each time the messages are gathered. Although you could include a timestamp when requesting new messages and possibly save bandwidth, it may take longer to render (in my experience, adding elements through JavaScript DOM controls is always slower than HTML rendering).

    4. Re:AJAX message board. by caluml · · Score: 1

      I actually worked it out - I messed up the table - I swapped a /td with a td, and it obviously "broke" more in Safari.
      Check back now. It now greys out peoples messages that have left.

    5. Re:AJAX message board. by jdbartlett · · Score: 1

      Ooh, well spotted, I missed that one. Yep, it looks fine in Safari! Woot! Much better! And now I can see those IP IDs!

  26. Ah, a new member of the club by Catbeller · · Score: 2, Insightful

    However, when arriving home after a 10-hour day at the office programming, who has the energy to plow through yet another new facet of emerging technology?

    It's called aging, kid. Welcome to the club!

    1. Re:Ah, a new member of the club by barryhawkins · · Score: 1

      Thanks, at 35 I am so rarely referred to as kid! ;-)

      --
      Barry Hawkins site: www.alltc.com weblog: www.yepthatsme.com
  27. Re:waiting for the next bunch of reviews from barr by barryhawkins · · Score: 1

    Sorry, that'll be a long wait. I don't have that much free time that's not already allocated to work, family, or F/OSS participation. Thanks for being interested though; glad to hear you apparently enjoyed the review. 8^)

    --
    Barry Hawkins site: www.alltc.com weblog: www.yepthatsme.com
  28. New Pink Floyd album? by Warg!+The+Orcs!! · · Score: 1

    is Head Rush Ajax like Atom Heart Mother?

    --
    Travelling forward in time at a rate of 1 second per second.
  29. Examining AJAX by Xenophon+Fenderson, · · Score: 1

    The AJAX technique appears to be pretty simple. To me, it looks just like RPC. I've been pouring over the Google Maps JavaScript. It appears to marshall (unmarshal) native data types to (from) XML, which it exchanges with the back-end server over HTTP. The hard parts, I imagine, are in developing the XML style sheet (i.e. the RPC protocol itself) and in creating the user interface (i.e. the RPC client). The only documented samples out there mimic Google Suggest, which is pretty straightforward when compared to Google Maps. I wish better public documentation and tutorials existed.

    --
    I'm proud of my Northern Tibetian Heritage
  30. It's not enough. by stonecypher · · Score: 2, Insightful

    Ajax doesn't matter until we get raw headers and server push. Until then, it's limited to server-pull, polling, and web servers.

    --
    StoneCypher is Full of BS
    1. Re:It's not enough. by QuestionsNotAnswers · · Score: 1

      You don't have to poll with Ajax/HTTP - you can keep a connection open: http://www.ajaxian.com/archives/comet-a-new-approa ch-to-ajax-applications

      The issue is that existing web server frameworks generally don't support keeping connections open to clients, or perhaps they just can't scale if they do.

      Of course, this technique is yet another hack (like most everything in the browser world ;) but it does work.

      --
      Happy moony
  31. Don't like retraining yourself every 6 months? by irishkev · · Score: 1

    Find something else to do.

    I got out of IT completely because of the constant pressure to learn a new skillset every few months. And for what? Increasingly criminal PHBs and diminishing returns.

    I'm a farmer now.

  32. Deobfuscated Google by cerelib · · Score: 1

    I have to know. Were you able to deobfuscate the Google Maps js code? I looked at that before and it looked like they turn every line into a new function with cryptic names.

  33. Bullshit by porneL · · Score: 1
    web applications that are highly cross-platform.

    Working on Firefox and IE6 only isn't highly cross-platform (and that's the case with most of these apps). That's Medieval Internet ruled by NN+IE.

    Google's apps turn out to be more challange than Acid2 test (Safari and Opera are constantly screwed by not-so-standard and not-so-valid "OMG AJAX" code).

  34. Re:No monster.com activity for AJAX - Dead right by sien · · Score: 1
    This is dead right. I've been keeping tabs on the local (Melbourne, AU) market. AJAX is not even on the list of buzzwords people put in job adds. If you check one of the two major sites you get, rounding and averaging for the past few months:

    180 SQL
    100 Java
    50 C++
    40 C#
    5 AJAX
    20 PHP
    2 Python

    To tell some Programmer that they need to learn AJAX is internet meme following BS. If you want a job now, or in the next year or so, solid Java and SQL skills are the main thing you want followed by C++.

    In 5 years it may be AJAX - but AJAX may happily go the way of SOAP and Web Services and become a buzzword that didn't take off and is now just a small segment of the market.

  35. Great Review by unity · · Score: 1

    Thanks for the excellent review. This type of article is what made /. great.

  36. Re:excuses. Kids are not a hindrance to learning.. by jerkyjunkmail · · Score: 1

    Kids are no excuse. If you are driven to want to learn new things you will find ways to make the time. I have two kids and the ol' lady works swing shift so I am on my own taking care of them for the evening after work. After they are sleeping it's possible to find time to do lots of thing and depending on what it is you want to do you can do it with them. In spite of not being childless, I manaage to find time to read books(mostly technical but sometimes more recreational), go for walks with the kids, take the kids for a bike ride in the bike trailer, I recently took up the guitar(I've never played an instrument before), mess around with new things in my home lab, play with the kids, clean up around the house and throw a fuckin' on the wife at every opportunity(or maybe two on a good day) and sometimes we'l even get a chance to go and hang out with some of our friends or see their band play or whatever. You won't get much done sitting in front of the boob tube(or constantly reading Slashdot) but there shouldn't be any reason you can't learn new things unless you aren't motivated. Oh yeah and sleep is overrated. You might not be able to all of those things everyday but if you spread it out, finding a little time few days a week isn't unrealistic. The key is to not sit still, keep moving.


    Jerky

    --

    --
    What is pirate software? Software for inventory of stolen treasure?
  37. AJAX is a bandaid over a dying platform by dsgfh · · Score: 1
    Ajax, to the regret of some and delight of others, has emerged as a means of providing rich, responsive web applications that are highly cross-platform.
    Is it just me, or are highly cross-platform & browser based javascript mutually exlusive concepts? I attended the Sun Dev days here in Melb a few weeks back, where one of Sun's evangilists described AJAX as an exciting emerging technology providing rich clients to the web. I'm sorry, but it's neither exciting, nor emerging. AJAX is a bandaid over the top of standards that have long since outlived their useful lives. Browsers & HTML aren't a platform for building rich, interactive applications. They're a platform for publishing static documents in a simple fashion, or for mildly interactive server-based systems. AJAX is a stop-gap until the major players bite the bullet & standardises on a new platform for massively multiplayer online rich-client apps. Anyone who's had to build this stuff from scratch knows the pain of building it, especially in making it cross-platform using 10 year old cross-browser kludges.
    1. Re:AJAX is a bandaid over a dying platform by Viol8 · · Score: 1

      "Browsers & HTML aren't a platform for building rich, interactive applications."

      True. Unfortunately try telling that to gullible middle management who listen
      sheep fashion to all the marketing evangelists from various vested interests
      trying to flog them WebBaseAppOfTheWeek and then think virtually anything can
      be done easily or efficiently with a browser.

  38. Beyond AJAX by aCapitalist · · Score: 1

    I hope we're making headway towards "web 3.0" because although AJAX is nice for document-centric pages with some app functionality, it's still HTML underneath and you can dress up a pig, but....

    AJAX is like a house of cards, and when a browser vendor screws up on a revision it'll all come tumbling down. Div tricks are nice and all, and I expect that there will be a couple javascript frameworks that rise above the rest, but if I'm going to do an app in a browser then I'll just bypass all those headaches and use Flash.

    Once WPF/E makes it into the vast majority of browsers, things are going to change.

    1. Re:Beyond AJAX by carlislematthew · · Score: 1
      The thing that bothered me about Flash was that I wanted to program in a "real" programming language. Actionscript just didn't do it for me. At the same time, I really like Flash for its capabilities. So, I was pleased to see a new product called Neoswiff come out, from a company called GlobFX. Do a Google search for it...

      In brief, the product allows you to code Flash in C# from Visual Studio, and you get access to a reasonable selection of the .NET framework, ported to Flash. Anyway, it made the difference for me and I jumped right in. It's new, has a few problems, but it'll get there.

      I have no association with GlobFX except for liking their product and technology...

  39. MOD PARENT UP by carlislematthew · · Score: 1
    THANK YOU! I've been saying the same thing myself...

    AJAX *can* accomplish some cool things, there's so doubt. But to pretend it's NEW and COOL and the FUTURE is sad. I won't add too much to your post - you said it very well.

  40. Apply that idea more generally by Asmor · · Score: 1

    I think that idea can and should be applied much more generally. For example, I can't speak for others, but I find file reading and writing to be a pain in the ass in Java (the only non-web based programming language I know at the moment). So what did I do? Made a class for opening and saving text files painlessly as arrays of strings. Maybe not the most efficient thing option, but it's a hell of a lot easier and it's really not that bad.

    I think that should apply to pretty much anything. Whenever you encounter a moderately complex piece of programming that doesn't work the way you'd intutively expect it to, make a library so that it DOES work the way you'd intuitively expect it to.

  41. Re:excuses. Kids are not a hindrance to learning.. by Viol8 · · Score: 1

    Man , you're just Mr Fuckin-Amazing arn't you. Do you wear a cloak and stand
    around with your fists on your hips a lot while surveying us lesser mortals
    and just shaking your head in disbelief that some people just like to relax
    after working their arses off in an office for 10 hours?

    "Oh yeah and sleep is overrated. "

    Yeah , whatever. Idiot.

  42. Ugh , not flash by Viol8 · · Score: 2, Insightful

    Flash might make your life easier but its a pain for us users. Slow to low and
    startup , usually with some irritating intro the spotty faced adolescent who
    programmed it thought look "Kool", not to mention the fact that flash on certain
    platforms has bugs that stop it working properly and worst of all , NO HISTORY!
    If I've spent 10 mins navigating something I DO NOT want to end up back at the
    start just because I pressed the back button!

    Flash is fine for games, for grown up stuff its garbage.

    1. Re:Ugh , not flash by WWE-TicK · · Score: 1

      The point of using Flash in this context is to create an application that is deployable via the web that feels like a regular desktop application and not like a web site. Flash is indeed good for this, or at least better than AJAX in my opinion. Your complaints "i.e. NO HISTORY" aren't very relevant here.

    2. Re:Ugh , not flash by aCapitalist · · Score: 1

      You're confused. Flash and WPF/E are for applications, not document-centric websites.

      Flash is fine for games, for grown up stuff its garbage.

      AJAX is monkey feces for grown-up applications.

    3. Re:Ugh , not flash by rkulla · · Score: 1

      Flash can actually be better for accessibility, when done right (shared objects, etc)

  43. Re:excuses. Kids are not a hindrance to learning.. by tehcyder · · Score: 0
    "Oh yeah and sleep is overrated. "

    Is Chuck Norris posting to slashdot now?

    --
    To have a right to do a thing is not at all the same as to be right in doing it
  44. Re:No monster.com activity for AJAX - Dead right by Spinlock_1977 · · Score: 1

    Great post sien - thanks for the real data!

    --
    - The Kessel run is for nerf herders. I can circumnavigate the entire Central Finite Curve in a lot less than 12 parse
  45. Re:excuses. Kids are not a hindrance to learning.. by WWE-TicK · · Score: 1

    Chuck Norris doesn't sleep. He waits.

  46. Re:excuses. Kids are not a hindrance to learning.. by jerkyjunkmail · · Score: 1

    Well I don't have a cloak(or cape), didn't you see what happened to those poor chaps with their capes in the incredibles. It's just asking for trouble. It is flame and heat resistant, though.

    Get it straight next time fucko, it's Mr. Unbelievable not Mr Fuckin-Amazing. That's my cousin's name.

    Cheers

    --

    --
    What is pirate software? Software for inventory of stolen treasure?
  47. flash by rkulla · · Score: 1

    Not another ajax book =/ Macromedia (now Adobe) "Flash", has been doing RIA's long before AJAX ever became a buzzword and is still a better option than javascript trickery if you ask me