YAPV (Yet Another Pickaxe Version)

G

Gavin Kistner

As promised in another thread, I am working on a new web version of the
Pickaxe book ("Programming Ruby - The Pragmatic Programmer's Guide").

Why?

* This is a framed version, which (with JavaScript enabled) keeps the
book chapters syncrhonized with the Wiki pages noting changes due to 1.8).

* This version is valid HTML4 markup, with consistent semantic markup.
(I kept the styles similar to the existing HTML versions, albeit
slightly cleaner...however, a single different CSS file could be used to
change the look near-completely.) [1]

* Unlike all other versions based on the 0.4 release of the HTML/XML,
this version has included in it some very important 25 missing pages
from the section "The Ruby Language"! [2]


So, please check out the work so far [3] at:
http://phrogz.net/ProgrammingRuby/
and give me feedback. (It seems to work and look correct in Safari 1.2,
Mozilla 1.4, and IE6Win. Does it fail for you? Does something about the
display frustrate you?)


(-, /\ \/ / /\/



[1] When I started out, I was just going to frame the existing HTML.
Then I saw how broken it was. So I thought "Hey, I have the XML, it must
be clean...I'll just throw a few regexp at it and voila! clean HTML."
Almost a week later, I'm a little over halfway done with all the pages. :|

[2] Dave kindly supplied me with some new XML, but only after I found an
HTML version of 0.3a on the web and started cleaning it. Sorry
Dave...I'll look through the XML soon and clean up the changes as needed.

[3] Only the following sections are done: "Introduction", "Facets of
Ruby", "Ruby in Its Setting", and "Ruby Crystallized"
I'm working on the Library Reference section now.
 
G

Gavin Kistner

Two things I forgot to add:

(1) I said I'm 'done' with most of the sections; that's not quite true.
As a proud new owner of a physical copy of the book, I will be going
through and finding all the spots where it says "see yyy on page 219"
and adding hyperlinks to the appropriate section/table.


(2) If you work on the Wiki to make changes, it would be great (since
the chapters are so long) if you could add in headers with an ID for the
section you're referring to. I've modified some of the Wiki pages
already, but for example:

If you have a comment about the aliasing section under "The Ruby
Language", put in the Wiki page
http://www.rubygarden.org/ruby?ProgrammingRubyTwo/TheRubyLanguage
code like:

<h3 id="aliasing">Aliasing</h3>
....my comment here...


Not only will this help make clear what you're talking about, but the JS
that synchronizes the sections passes the hash for the section to the
Wiki when you click on that section in the TOC:
http://www.rubygarden.org/ruby?ProgrammingRubyTwo/TheRubyLanguage#aliasing
which will cause clicks on subsections in the TOC to synchronize the
bottom frame to the appropriate section, if one exists.

(Look at the url in the TOC to see what the id should be.)
 
G

Gavin Kistner

Mark said:
Why HTML 4 rather than XHTML 1.1?

For various reasons. The two main ones are that
(a) XHTML doesn't get you anything over HTML, except perhaps the ability
to apply XSLT to it. It's no more semantic.

(b) Web Browsers are HTML UAs, not XHTML UAs. Some happen to know how to
pretend that XHTML is HTML when served properly, but that's not the same
thing at all. (For more on this topic, see an excerpt from the MacIE
mailing list from the illustrious Tantek Çelic at:
http://phrogz.net/tmp/TantekOnXHTML.txt )


I sense that my comments are likely to spark a heated debate, which
would be inappropriate for this newsgroup. Please send rants on why
XHTML will save the Universe to me personally, rather than to the newsgroup.
 
Z

Zachary P. Landau

--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
So, please check out the work so far [3] at:
http://phrogz.net/ProgrammingRuby/
and give me feedback. (It seems to work and look correct in Safari 1.2,= =20
Mozilla 1.4, and IE6Win. Does it fail for you? Does something about the= =20
display frustrate you?)

It looks really nice, and is a good idea. Hopefully this will get people
to update the ProgrammingRubyTwo wiki more often, too. It'll be much
easier to see where changes need to be made.=20

Thanks for setting this up.

--
Zachary P. Landau <[email protected]>
GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc

--zhXaljGHf11kAtnf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAIukiCwWyMCTlrZkRAoVwAJ9Fl/DZ9333rDpshhl23r4j1Mg78gCfSeLk
KG25J+eCZv3L91O39y40Yks=
=ydJL
-----END PGP SIGNATURE-----

--zhXaljGHf11kAtnf--
 
C

Charles Comstock

Gavin said:
As promised in another thread, I am working on a new web version of the
Pickaxe book ("Programming Ruby - The Pragmatic Programmer's Guide").

Why?

* This is a framed version, which (with JavaScript enabled) keeps the
book chapters syncrhonized with the Wiki pages noting changes due to 1.8).

* This version is valid HTML4 markup, with consistent semantic markup.
(I kept the styles similar to the existing HTML versions, albeit
slightly cleaner...however, a single different CSS file could be used to
change the look near-completely.) [1]

* Unlike all other versions based on the 0.4 release of the HTML/XML,
this version has included in it some very important 25 missing pages
from the section "The Ruby Language"! [2]


So, please check out the work so far [3] at:
http://phrogz.net/ProgrammingRuby/
and give me feedback. (It seems to work and look correct in Safari 1.2,
Mozilla 1.4, and IE6Win. Does it fail for you? Does something about the
display frustrate you?)


(-, /\ \/ / /\/



[1] When I started out, I was just going to frame the existing HTML.
Then I saw how broken it was. So I thought "Hey, I have the XML, it must
be clean...I'll just throw a few regexp at it and voila! clean HTML."
Almost a week later, I'm a little over halfway done with all the pages. :|

[2] Dave kindly supplied me with some new XML, but only after I found an
HTML version of 0.3a on the web and started cleaning it. Sorry
Dave...I'll look through the XML soon and clean up the changes as needed.

[3] Only the following sections are done: "Introduction", "Facets of
Ruby", "Ruby in Its Setting", and "Ruby Crystallized"
I'm working on the Library Reference section now.

Looks really nice, unfortuneatly I can only get it to render in IE,
Mozilla Firebird seems to dislike it. I have javascript enabled, is
this is a bug?

Charles Comstock
 
P

Paul William

sooo slllooowwww.

As promised in another thread, I am working on a new web version of the
Pickaxe book ("Programming Ruby - The Pragmatic Programmer's Guide").

Why?

* This is a framed version, which (with JavaScript enabled) keeps the
book chapters syncrhonized with the Wiki pages noting changes due to 1.8).

* This version is valid HTML4 markup, with consistent semantic markup.
(I kept the styles similar to the existing HTML versions, albeit
slightly cleaner...however, a single different CSS file could be used to
change the look near-completely.) [1]

* Unlike all other versions based on the 0.4 release of the HTML/XML,
this version has included in it some very important 25 missing pages
from the section "The Ruby Language"! [2]


So, please check out the work so far [3] at:
http://phrogz.net/ProgrammingRuby/
and give me feedback. (It seems to work and look correct in Safari 1.2,
Mozilla 1.4, and IE6Win. Does it fail for you? Does something about the
display frustrate you?)


(-, /\ \/ / /\/



[1] When I started out, I was just going to frame the existing HTML.
Then I saw how broken it was. So I thought "Hey, I have the XML, it must
be clean...I'll just throw a few regexp at it and voila! clean HTML."
Almost a week later, I'm a little over halfway done with all the pages. :|

[2] Dave kindly supplied me with some new XML, but only after I found an
HTML version of 0.3a on the web and started cleaning it. Sorry
Dave...I'll look through the XML soon and clean up the changes as needed.

[3] Only the following sections are done: "Introduction", "Facets of
Ruby", "Ruby in Its Setting", and "Ruby Crystallized"
I'm working on the Library Reference section now.
--

.''`. Paul William
: :' : Debian admin and user
`. `'`
`- Debian - when you have better things to do than fixing a system
<h1><b><a href="http://www.debian.org">debian.org</a></b></h1>
 
T

Timon Christl

Gavin said:
As promised in another thread, I am working on a new web version of the
Pickaxe book ("Programming Ruby - The Pragmatic Programmer's Guide").

Why?

* This is a framed version, which (with JavaScript enabled) keeps the
book chapters syncrhonized with the Wiki pages noting changes due to 1.8).

* This version is valid HTML4 markup, with consistent semantic markup.
(I kept the styles similar to the existing HTML versions, albeit
slightly cleaner...however, a single different CSS file could be used to
change the look near-completely.) [1]

* Unlike all other versions based on the 0.4 release of the HTML/XML,
this version has included in it some very important 25 missing pages
from the section "The Ruby Language"! [2]


So, please check out the work so far [3] at:
http://phrogz.net/ProgrammingRuby/
and give me feedback. (It seems to work and look correct in Safari 1.2,
Mozilla 1.4, and IE6Win. Does it fail for you? Does something about the
display frustrate you?)

Works well with Moz 1.6, but the left frame seems to load very slowly.

One things buggers me, though: There are no figures in the text as
opposed to the real, printed thing. Just "figure x.yy not available".
This was already the case in the online copy of the pickaxe book for
Ruby 1.6.7. This is annoying because some important details are
contained within the figures, such as the Exception class hierarchy
(figure 8.1), or some pieces of code in the "extending Ruby" chapter.

It would be really nice if the figures could be added to your work.
Thanks in advance.
 
G

Gavin Kistner

Charles said:
Looks really nice, unfortuneatly I can only get it to render in IE,
Mozilla Firebird seems to dislike it. I have javascript enabled, is
this is a bug?

It may have been at the time. It now should be rendering perfectly in
Mozilla and Safari, and 'well-enough' in IE.
 
G

Gavin Kistner

Paul said:
sooo slllooowwww.

Glad you like it :)

Seriously, are you referring to the site's transmission speed (which
should be relatively speedy) or the loading of the 60k TOC frame?

If the latter:

(a) It has now been set to cache by the server, and

(b) If you're using IEWin and have it set to check for newer versions of
files "Every Time" it will hit the server for *each* image in the nav.
Every time. Nearly 1,000 image instances. Regardless of the fact that
the server is sending HTTP caching headers.

Tip: change the setting back to "Automatically" :)
 
G

Gavin Kistner

Timon said:
Works well with Moz 1.6, but the left frame seems to load very slowly.

See my previous post in response to Paul William.

One things buggers me, though: There are no figures in the text as
opposed to the real, printed thing. Just "figure x.yy not available".
This was already the case in the online copy of the pickaxe book for
Ruby 1.6.7. This is annoying because some important details are
contained within the figures, such as the Exception class hierarchy
(figure 8.1), or some pieces of code in the "extending Ruby" chapter.

If I had any legal way to do these, I would. But I don't have access to
anything more than the XML everyone else uses, which doesn't include any
figures. :/
 
C

Charles Comstock

Gavin said:
It may have been at the time. It now should be rendering perfectly in
Mozilla and Safari, and 'well-enough' in IE.

I'm running mozilla firebird .7, and it still has trouble. I shoudln't
have said it wouldn't render actually, but when you click on the link it
says "ERROR! Cannot find object for Sync" in a javascript error. It
links fine in IE, but firebird doesn't seem to like it. I plan on
updating to .8 soon, so that might fix it, but .7 shouldn't have any
particular problem with javascript.

Charles Comstock
 
H

Harpo

It may have been at the time. It now should be rendering perfectly in
Mozilla and Safari, and 'well-enough' in IE.

It also renders well in Opera.

It's a good improvement of the book, I changed my bookmark to point to
your site.
 
H

Harpo

It also renders well in Opera.

Well ... I spoke too quick, It does not render so well.
There is something which looks like a little problem in Opera.

It happens in the examples given when you document the methods of a class,
let's take an example for short :

In module kernel

//
Array

Array( arg ) -> anArray

Returns arg.to_a.

Array(1..5)
-> [1, 2, 3, 4, 5]
//

The line "Array( arg ) -> anArray" appears very fine.

"-> [1, 2, 3, 4, 5]" in on the line below "Array(1..5)", behaviour which
is probably not expected.

It is not always important, especially when there is only one line in the
example, when there are 2 lines or more, they may be overprinted (I don't
know if it is the good english term but 2 characters are displayed at the
same place, mixed, thus difficultly understandable) !

I have a minimalistic knowledge of html, it may be (probably it is) a
problem in Opera. I can't even make a good cute&paste to show you this
disaster :)

If you ever wish to get rid of this problem and you don't have an Opera
working by your side, you can send me emails for further informations or
tests.

My true email address is ji_gme.pe_ma<at>free.fr
.... not exactly, you'll have to remove underscores and the dot and change
"<at>" to "@"
thus aa_bb.cc_dd<at>whatever gives aabbccdd@whatever (which I hope not to
be a real email adddress !)
You might say I'm paranoid but I usually use rot13 too !
 
H

Harpo

It also renders well in Opera.

Well ... I spoke too quick, It does not render so well.
There is something which looks like a little problem in Opera.

It happens in the examples given when you document the methods of a class,
let's take an example for short :

In module kernel

//
Array

Array( arg ) -> anArray

Returns arg.to_a.

Array(1..5)
-> [1, 2, 3, 4, 5]
//

The line "Array( arg ) -> anArray" appears very fine.

"-> [1, 2, 3, 4, 5]" in on the line below "Array(1..5)", behaviour which
is probably not expected.

It is not always important, especially when there is only one line in the
example, when there are 2 lines or more, they may be overprinted (I don't
know if it is the good english term but 2 characters are displayed at the
same place, mixed, thus difficultly understandable) !

I have a minimalistic knowledge of html, it may be (probably it is) a
problem in Opera. I can't even make a good cute&paste to show you this
disaster :)

If you ever wish to get rid of this problem and you don't have an Opera
working by your side, you can send me emails for further informations or
tests.

My true email address is ji_gme.pe_ma<at>wanadoo.fr
.... not exactly, you'll have to remove underscores and the dot and change
"<at>" to "@"
thus aa_bb.cc_dd<at>whatever gives aabbccdd@whatever (which I hope not to
be a real email adddress !)
You might say I'm paranoid but I usually use rot13 too !
 
P

Paul Brannan

Seriously, are you referring to the site's transmission speed (which
should be relatively speedy) or the loading of the 60k TOC frame?

I'm using Mozilla and the loading of the TOC frame does take about 10
seconds on my P3/850. Once it's loaded, navigation is quick, so I don't
think this is a problem.

One minor nit: the background isn't set in the main frame, so on my
browser it comes out grey. This would be fine if the TOC frame were
also using the default background color, but as it is I get one frame
white and one frame grey.

Paul
 
G

Gavin Kistner

Paul said:
One minor nit: the background isn't set in the main frame, so on my
browser it comes out grey. This would be fine if the TOC frame were
also using the default background color, but as it is I get one frame
white and one frame grey.

Thanks. Fixed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top