Syndicate

Feed

A brick came into the mail yesterday

I received in the mail my pre-ordered copy of Pro Drupal Development Second Edition yesterday.

The book is a brick. 667 pages with the index.

I am a little disappointed already... To be fair, I had high expectations. The treatment JavaScript and Ajax would receive was the first thing I'd look into.

AHAH is covered but the example provided is lame. It does not cover modifications to a form... Well it does, but you only inject some text in a field of type markup, so you do not need to fiddle with the cached form, or even read anything from it in the callback function. (The callback function is the PHP function that 'writes' the JSON that's returned to the browser...).

The chapter on jQuery provides one additional example module, besides PlusOne. That other module only attaches an additional JavaScript file to the page, using HOOK_init() and a registered theme function. No Ajax.

PlusOne still doesn't does degrade in this Drupal 6 version (see comments below). The book Learning Drupal 6 Module Development provides an example that does degrade. Meaning: without JavaScript, things won't look broken, as they do with the PlusOne module.

The chapter on jQuery explains how to add a function to Drupal.behaviors, but it does not explain how to pass a variable from Drupal PHP to the client-side Drupal.settings namespace. Learning Drupal 6 Module Development does explain this. It becomes important to use drupal_add_js to pass PHP variables over to our JavaScript to always avoid hard-coding certain values in our scripts.

We learned that in Drupal 6 our JavaScript is themable. Example, please? The book provides none.
(Any module's JavaScript file that produces HTML content must now provide default theme functions in the Drupal.theme.prototype namespace.)

The book does not even show one case where Drupal.t() is used. That function should have been mentioned at least.

Coverage of JavaScript best coding practices (such as... use camelCase for 'variable' and function names, etc.) should have found its place somewhere in that second edition, because the Drupal community and this very book are pushing hard for coding standards.

The book Learning Drupal 6 Module Development has its own shortcomings in its treatment of JavaScript due to the timing of its publication probably. By the way, the author of Learning Drupal 6 Module Development, Matt Butcher, has encouraged Drupal.org to update its handbook JavaScript coding standards page, to extend it based on a more thorough definition. Kuddos to him. JavaScript and Ajax are that important. Contributed modules developer (I am part of them) need to follow some conventions.

Last edited by Caroline Schnapp about 8 years ago.

Comments

Drupal

I didn't find any other informative blog like this,thanks for adding.

definitely will try

i will definitely try this application.

The post contains really

The post contains really beneficial information that will satisfy readers and can clarify things upon. You have you a nice way of presenting certain issue and seems to be so qualified.Peptides Peptide Synthesis

The Panorama is also near

The Panorama is also near elite schools such as Chatsworth International School and Lycee Francais De Singapour. Nanyang Polytechnic and Anderson Secondary School are also around in the area. The Panorama

great share..

this is nice share, i appreciate your hard work. your story is awesome

The Inflora Condo will be

The Inflora Condo will be accessible via the future Tampines East MRT Station (DT33) on Downtown Line. Commuting to Tampines as well as the city area is therefore very convenient. It is also near to Changi Airport as well as Changi International Business Park. Inflora Condo

Excellent Posting. I wish

Excellent Posting. I wish that there could be more blogs like this to keep us posted. Jurong West EC

Your post is excellent. I've

Your post is excellent. I've been looking for this stuff for many days. I really appreciate your work.luminesce

Drupal Architecture

Drupal has a very good architecture, when i start a new application development i look into Drupal first.

Hair trimming of dogs is

Hair trimming of dogs is necessary. If trimming is not done, the dog's coat will never be throughly cleaned. Nail trimming is also necessary as if the nails are allowed to be grown too long, the nails will curl up and this will make walking for the pet dog unnecessary painful. pet care singapore

Riverbank at Fernvale has

Riverbank at Fernvale has full and unique facilities, which includes a guard house, clubhouse, Function Room & Indoor Gym Tennis Court, 50m Freeform Pool Pool Deck, Wading Pool, Splash Pool & Family Pool Jacuzzi & Hydro Spa, BBQ Area Dining and Play Fountain, Fitness Alcove & Children’s Playground and Garden Trail. Sengkang West Way Condo

Boardwalk Residences in Sengkang Fernvale Close

Several buses are available near Boardwalk Residences along with shopping centers and restaurants. Boardwalk Residences is also near Waterway Point, the shopping, dining and entertainment hub which is scheduled to open in 2 years time. Also, it is right beside Punggol Waterfront. Entertainment for your loved ones and friends are therefore at your fingertips with the full condo facilities as well as the amenities near Boardwalk Residences. Boardwalk Residences fernvale

The condo’s facilities

The condo’s facilities provide full family entertainment needs for your family and loved ones. Indulge in a serene and tranquil lifestyle right in the heart of Sengkang. Rivertrees Residences in Fernvale Sengkang

Pet Grooming Centres in Singapore

dog grooming singapore esentially refers to maintaining the hygiene and cleaning of a dog. dog grooming singapore is necessary as it is important in keeping the dog comfortable and healthy. Pet Grooming Singapore

Pet Grooming Centres in Singapore

There are many different instruments in dog grooming singapore to groom dogs. Among them is the Curry Brush, Shedding Blade, Stripping Knives, Slicker Brushes and Rakes. These tools are very common among dog groomers and every pet shop should be able to supply. Pet Grooming Singapore

The Interlace is also near

The Interlace is also near elite schools such as Blangah Rise Primary School, ISS International School (Preston Campus) and ISS International School (Preston Campus). The Interlace 3 bedroom

Commonwealth Towers

Commonwealth Towers facilities provide full family entertainment needs for your family and loved ones. Indulge in a serene and tranquil lifestyle right in the heart of Queenstown commonwealth towers condo floor plan

Revision Jönköping

Stockholm, otherwise called "Nordens Venedig" importance the Venice of the North, is the capital and the biggest city of Sweden. Stockholm is found in the eastern some piece of the nation on the Baltic Sea.if you are a travel Revision Jönköping bound and need to know and go for what Stockholm brings to the table then go along with us as we demonstrate to you the magnificence that is Stockholm. Stockholm is the capital and the biggest city of Sweden.

Awesome website

I’m thoroughly enjoying the appearance and arrangement of your website.
Happy Valentine's Day Wishes

Well glad I found this

I was planning on buying it. I don't need 667 pages on my shelf especially if it's not that good and helpful.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <css> <html> <javascript> <mysql> <php> <span> <a> <b> <i> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <sup> <sub> <dd> <del> <blockquote> <img> <q> <p> <div>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <css>, <html>, <javascript>, <mysql>, <php>, <rails>, <ruby>.

More information about formatting options

CAPTCHA
I have to wonder if you're a human spammer or a machine, or less likely someone who cares to leave his or her thoughts behind.