|
Christopher Duncan wrote: CSS3: The Missing Manual[^] (David Sawyer McFarland).
That looks great. I might be interested in the Javascript & jQuery book (and the HTML 5 one) as well. Thanks for pointing these out!
Marc
|
|
|
|
|
I got this one for JQuery: JQuery Compressed[^]. Haven't started it yet so I can't speak to the quality. Would be interested in what you come up with. A glance at the TOC seems to indicate that JQuery isn't a terribly deep subject.
|
|
|
|
|
Christopher Duncan wrote: A glance at the TOC seems to indicate that JQuery isn't a terribly deep subject.
It may not be terribly deep, but being rather clueless about it at the moment, it looks like a vast uncharted ocean.
Marc
|
|
|
|
|
Yeah, I can dig it. That's why I've had my nose buried in books for MVC, JQuery, CSS, etc. the past couple of weeks. After so many years in this business, it's kinda nice to start out knowing nothing, ain't it?
|
|
|
|
|
Christopher Duncan wrote: it's kinda nice to start out knowing nothing, ain't it?
To some extent. Unfortunately, my entry into this has been to work with other people's code in fairly large applications, which means walking into poorly designed and poorly documented vats of spaghetti code. One of the projects (a Ruby on Rails project) added the additional complexity layers of Slim (actually a very nice way of working with HTML and metadata) and SASS (actually also a very nice way of working with CSS.) It's been an incredibly frustrating experience.
On the other hand, I've started writing a RoR site for navigating SQL Server databases, I call it the "Spider UI", and decided to take on SASS and SLIM on my own. What I discovered is that it is CRITICAL to explain the intention behind the markup and the CSS. I'll give you an example:
SLIM (slimmed down HTML):
- # table navigation
.navigation
fieldset
legend Navigation:
br
= f.submit("Show All Records", name: 'navigate_show_all')
br
- # Separate div because 'Go' buttons are left padded.
.nav_options
br Navigate to parent:
= select_tag "cbParents", options_from_collection_for_select(@parent_tables, 'id', 'name')
= f.submit("Go", name: 'navigate_to_parent')
br Navigate to child:
= select_tag "cbChildren", options_from_collection_for_select(@child_tables, 'id', 'name')
= f.submit("Go", name: 'navigate_to_child')
SASS:
.navigation
float: left
width: 200px
height: 600px
padding-top: 23px
padding-left: 20px
fieldset
width: 240px
height: 592px
.nav_options
select
width: 80%
margin-bottom: 15px
input
margin-left: 5px
Notice that I put in a comment: /* Separate div because 'Go' buttons are left padded. */ in both to explain why I have a separate div . It's stuff like that that drives me nuts when taking on existing web-apps and there's absolutely no comments to convey the intention of the markup.
Another thing that has made working with legacy code complicated is the arcane and idiomatic usage of Ruby. For example, tell me what this does:
Hash[keys.zip values]
You probably have no clue, and neither would I. Now, tell me what this does:
# Given two arrays of equal length, 'keys' and 'values', returns a hash of key => value
def hash_from_key_value_arrays(keys, values)
Hash[keys.zip values]
end
OH! Now, sure, I've created a one line function, but it sure makes code like this:
def self.convert_to_array_of_hashes(fields, records)
array = []
records.each { |record|
dict = hash_from_key_value_arrays(fields, record)
array << dict
}
array
end
a lot more readable!
So, the moral of the story is, learing RoR, Javascript, Sass, Slim, and all the other players is a process of "unlearning" all the stuff I've been exposed to by bad programming practices and instead, developing my own best practices for these technologies. It's actually that "meta-learning" that I enjoy the most.
(yet another lengthy reply to Christopher - what is it about your posts that get me going???)
Marc
|
|
|
|
|
Marc Clifton wrote: For example, tell me what this does: I believe in some states it gives you legal grounds for homicide.
This is one of the reasons I prefer desktop or system programming to web development, even though I do mostly the latter these days. There's no reason you can't write pro quality code, but it's very common to see amateurish stuff in client side markup and scripting. Almost a web tradition. I guess because it was easy for people to fire up Front Page, go into the html to add a "blink" attribute and then say, "Look, mommy, I'm a programmer!".
Don't get me wrong, I've seen plenty of crappy application code too, but the guys who come up via the traditional route tend to have a lot more discipline and, in my opinion, professionalism. They've also lived long enough to know what happens to guys who write code like that.
Marc Clifton wrote: (yet another lengthy reply to Christopher - what is it about your posts that get
me going???)
Probably because we've both been through the wars.
|
|
|
|
|
Missing Manual is a really good series. My wife really liked CSS: the missing manual when she read it a few years back.
|
|
|
|
|
Yeah, it looks like the series got bought out by O'Reilly - or maybe they had it all along. Either way, they've always been a good tech publisher so the quality isn't surprising.
|
|
|
|
|
thx for sharing, I might just buy this book
I think it's the same for me, I just figure out how to get something to look like the way I want, and move on without caring about css organization, structure, maintainability, etc... pretty bad I know...
|
|
|
|
|
Yeah, I figured since MVC gives you so much more control over the markup I should, you know, maybe learn something about it.
|
|
|
|
|
Thanks for the heads-up on those. I'm going to order the CSS3 and HTML5 books.
I have a couple of the "missing manual" books at home. They're nice quality and unlike those sell-by-the-pound books we're use to seeing, it's nice to see books that don't buckle the bookshelf.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|
|
And of course, thanks to eBooks, my shelves don't creak nearly as much as they used to.
I have books on my shelves that have been there for 30 years, like Richard Bach's Illusions. I have zero confidence that an eBook I buy today will still be available to me three decades from now, so if it's something timeless I still buy it in paper.
Tech books, on the other hand, have a shelf life that can be measured with an egg timer. Can't count how many I've thrown out, or how much bitching and moaning I've endured from my non-geek friends about having to move boxes of heavy books. So, the geek stuff I buy on Kindle. Best of both worlds.
|
|
|
|
|
My problem with most computer books is they spend way too much time hyping the topic and assuming you are a moron, though I have found most O'Reilly books pretty good in general, with the Nutshell series being especially so.
|
|
|
|
|
Nutshell books are consistently good and it seems like that's the case with the missing manual series as well.
I just bought the worst tech book I've ever purchased in this batch as well, an html book that I thought was going to cover basics for techies from looking at the overview. Instead, it has lots of puppies and cutesy images for the "I know you think computers are scary, but here's how to make a web page" crowd. Makes me appreciate O'Reilly ever so much more.
|
|
|
|
|
His earlier book was great. I'll have to pick up the new version!
|
|
|
|
|
Too bad it's not on Books24x7.
|
|
|
|
|
If you prefer eBooks you can always just buy the Kindle version. That's the version I bought.
You don't have to own the device. The Kindle reader software is available free for pretty much every computer, tablet and smart phone out there.
|
|
|
|
|
This is true, but my employer pays for everyone to have a books24x7 subscription, so I was hoping to be able to read it at no cost to me.
|
|
|
|
|
Hey, if you can get someone else to pony up for your tech books that's an excellent gig.
That said, if you do end up adding it to your own collection, it's fifteen bucks well spent. I wouldn't recommend it if you're already strong in CSS and just want the CSS3 stuff as that's a very small portion of the book, but if like me you want to get a refresher on the basics, it's a solid read.
|
|
|
|
|
I do web UI stuff so infrequently that it sounds like a good book. Thanks for the recommendation.
|
|
|
|
|
|
Wikipedia Book Creator?
In the Wikipedia Main Page, on the left menu, click --> Print/export --> Create a book.
And then keep adding pages to the book as you browse the site. At the end, it allows you to create a book from the pages you added and neatly formats it into a book complete with Contents, References, etc. and allows you to export to PDF, e-Pub and other formats.
|
|
|
|
|
Cool, I can finally print this C# programming for bacon eaters book.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
I've been waiting a long time for that book.
C#: The Other White Meat
|
|
|
|
|
... and then you sell the book on eBay like so many unscrupulous elephants!
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|