HTML... for back-end developers?

Status
Not open for further replies.

Handor

Ars Tribunus Militum
2,513
I'm looking for some recommendations on learning resources for web development, but since what I'm looking for isn't the sort of thing most people who want to become web developers are looking for, I hope I can tap your collective intelligence to cut through the mountains of not-necessarily-related material.

A little background: I spent a number of years working in web-related technologies, but those years were in the late '90s and early 2000's (mostly with ColdFusion). Since the technologies have moved on considerably, and best practices have moved on arguably even more, I'm not going to assume much of what I knew is still applicable.

Here's my conundrum: mostly I work on back-end, framework, and server- and client-side applications (in C# and .NET, primarily, for the interested). That part I'm good at, and I intend to continue focusing on those areas for the foreseeable future. However, there are some projects on the horizon that may require web ports or interfaces to the stuff I'm already doing, which means that I may be responsible for at least prototyping web front-ends.

Now, I know that skilled web designers and developers can do wonders with CSS and related technologies, so my guess is that there are some specific ways I can output basic HTML in such a way that it would be easy for a designer to come in and make into a presentable and modern interface. Conversely, I am sure there are lots of ways I could step on his toes and make life difficult (outputting lots of tables to control layout is an example I've heard is Bad).

So my questions are, first, is this understanding of the situation correct? And, are there any learning resources that would be geared toward people in my situation? Again, my ambition is not to be a master HTML5/AJAX/etc guru, but A) to lay well-prepared groundwork to move in that direction in the future, and B) to be a good team player if we end up bringing others on to flesh these projects out.

Also, is there a recommended order to learn the many web technologies in such that I can gradually expand outward from, given that I'm currently the back-end guy?

Edit: It's probably clear, but I know that despite my title, HTML isn't the only skill I will need to use properly for this, even if I intend to leave most actual design work (for a non-prototype version of the project) to real designers. So information on JavaScript and other pieces of the puzzle is certainly welcome.
 
CSS is pretty flexible but there are limitations to CSS and browser support for it. If you output canonical semantic HTML, a web dev might need to rearrange the order of some elements, introduce the occasional "wrapper" element, or add "class" attributes to elements to get things looking right. However, a front-end dev who's good with CSS shouldn't need to drastically rip apart your HTML. So there could be a small amount of stepping on toes, which you could account for by introducing a "mutex" in your process: prototype the front end, then tell the front end dev that the page is ready to style, then if you need to make adjustments, make sure the front end dev isn't actively working on the page.

Regarding learning front end technologies, as a back end dev you probably know about the request/response cycle and how state is stored because it probably influences your APIs. Also, you probably would be able to learn JavaScript properly instead of via cheesy online tutorials. I would start by getting a solid understanding of HTTP and HTML, then learn the basics of CSS (common types of selectors, box model, common style commands), then learn JS as a language (be wary of online tutorials - I'm sure someone else can provide a good reference), then learn how JS can manipulate HTML via the DOM and AJAX, then optionally learn JQuery, which at its core is mainly just syntactic sugar for JS but there are many handy libraries using it.
 

DebtAngel

Ars Scholae Palatinae
1,027
This is probably not what you were looking for, but my advice is to partner with an HTML/CSS guru, and pair program your way through the front end. For the most part, HTML/CSS is not that difficult, and you will be able to pick up a lot just by watching the other guy work. The hard part is working around the differences between browsers, and having an experienced HTML guy stick handle around all that for you is going to save you a ton of frustration. Given some time, you'll be able to figure out what you can handle on your own, and where you need to bring your HTML buddy in.

I have had success doing something similar with graphic designers while they're working on their Photoshop mock-ups as well.
 

karmakaze

Ars Tribunus Militum
1,700
Subscriptor
The division I prefer is to have all your backend logic exposed as a Web Service returning either XML or JSON, and do all the transformation of that data into HTML on the front-end in Javascript. I've only done 1 project like this (and it's really my only full frontend-to-backend soup to nuts experience), but it worked well because the designers and I were never touching the same files, and it had the plus side of powering a completely different looking site with the same web service.
 

Grayrest

Ars Tribunus Militum
2,499
At bare minimum, you need to learn:

* HTML Syntax - You're pretty much covered if you know XML, just write XML without any namespaces and browsers will be okay with it
* HTML Forms - Be aware what controls are available natively and know that you always get text out of them. A decent front end developer can deliver whatever control you can come up with, but it's helpful to be aware of what the defaults are and roughly how they function.
* HTML Semantics - Look through the list of available tags and try to use a tag that means something rather than a div.
* CSS Selector syntax - It's a pretty simple tree-selection syntax but it's used heavily in both CSS and JS. Learning the rest of (common) CSS syntax is trivial, the language is selectors plus a bag of semicolon separated key: value pairs.

Beyond that, there's a fairly commonly accepted set of page conventions that slowly shift over time. I don't know of a good reference for this, so I'll just write it out.

The current set of conventions is to have a set of divs (or HTML5 elements if you want to be cool and polyfill) with ids header/footer/nav/sidebar/content. Stick them all in a div with id page and stick that in a div with id pageWrap. Add a class corresponding to the page name to the body/html tag. CSS references go in the header, js references at the bottom of the page. Finally, use an OL or UL for your list of navigation links. This looks roughly like:
Code:
<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>About Us</title>
    <link rel="stylesheet" href="/static/css/master.css" type="text/css" charset="utf-8">
</head>
<body id="AboutUs" class="layoutWide">
    <div id="pageWrap">
        <div id="page">
            <div id="header">
                <a href="/"><h1><img src="/static/logo.png" alt="XYZ Corp"></h1></a>
            </div>
            <div id="nav">
                <ul>
                    <li><a href="1.html">Page 1</a></li>
                    <li><a href="2.html">Page 2</a></li>
                    <li><a href="3.html">Page 3</a></li>
                </ul>
            </div>
            <div id="content">
                <!-- content here -->
            </div>
            <div id="sidebar">
                <!-- sidebar here -->
            </div>
            <div id="footer">
                <!-- footer here -->
            </div>
        </div>
    </div>
</body>
<script src="/static/js/main.js" type="text/javascript" charset="utf-8"></script>
</html>

You can read a bunch about this but basically know that the variations on this are roughly equivalent to where you put the braces in c-like languages or camel case vs underscore identifiers. I've included a few of my preferences where opinions vary but pretty much anybody you hand this to will be able to make the page look however you want though shuffling the various pieces around can make different types of layout techniques easier.

Here's roughly what the id/classes mean:

An id or class on body/html tag basically serves as an environment variable for style rules. Here I've used id for the specific page (e.g. oh, we want our mugshots on the about us page to be 400x400 but 50x50 everywhere else) and layoutWide for the page type (e.g. hide the sidebar when layout is wide). It's generally better to use something content-related (e.g. layoutArchive, layoutArticle, etc) but I've seen appearance-based classes work fine here.

An id anywhere else is basically an entry point into the page for both CSS and JS. In CSS, identifiers have very high priority and match quickly since they're page unique so you see things like `#content p` (content paragraphs) or `#nav a` (navigation links). In JS, ids have historically been the easiest way to grab a piece of a page using document.getElementById() but that's somewhat gone by the wayside in the three years or so. In either case, ids serve as page-unique hooks to hang styles or actions.

A class elsewhere, again, serves to classify/type elements. They generally work better when they're describing semantics ( .important, .warning ) instead of looks ( .boldText, .redText ). One thing you'll see commonly is people creating an additional class ( .importantWarning ) instead of just intersecting classes ( .important.warning ). This is because IE6 can't handle the latter. They also serve as weaker hooks. If, for example, you want to match the third paragraph in a div with a CSS selector, it's a lot easier/more compatible to just stick a class on that paragraph when you're templating.

That should pretty much cover what you need to know about HTML without really understanding the entire stack. More subtle details like when to wrap and how things should be ordered require knowing CSS and CSS is, honestly, the most difficult part of the stack because the language doesn't provide any abstraction, the rules for how things are laid out are not particularly intuitive, and every browser has its own set of quirks with IE6-8 having 95% of them.

It's during the learning CSS phase that most programmer friends ask me what to do and the answer is Sass with Compass. Sass provides a set of abstractions on CSS and Compass is a library of reusable,working style rules made by people who know what they're doing. My programmer friends then produce ugly web pages--design is a skill--but they generally can get what they want. I also suggest using the "make sass" flag when using compass rather than the default "make scss". SCSS is an alternative syntax that is a syntactic superset of CSS done in an attempt to get designers to like it more. I hate it. The main downside to sass is that a designer you bring in will probably not know sass and will take a while to warm up to the idea since they have a workflow in CSS that works for them.

For Javascript, I recommend eloquent javascript for a free online resource. The early chapters dry, so just skim through till you start hitting interesting stuff. From there, a lot of people like Crockford's good parts book for the language as a whole and I'll recommend jQuery in Action as a more hands-on approach as long as you read and understand the appendices. I actually primarily use yui3 as my js library instead of jQuery, but more people, particularly beginners, use jQuery so it's easier to google a random question and find a code snippet answer if you go that route. If you are building pure applications, then SproutCore is actually much easier than trying to build apps with html/jQuery.

For a slightly different/weird approach: I actually find CoffeeScript to be a much clearer presentation on how to write/think about js so you could also work your way through that intro page (the features exist for a reason) and then look up coffee projects on github and work your way backwards into JS from there. The only reason I'd even suggest it coffee is in the early adopter phase, so pretty much any code you find is written by someone really into javascript so it's pretty uniformly good and you can just copy/paste snippets into the "try coffee" console on the home page to see what JS it turns into. It lets you avoid some of javascript's screwiness while the different syntax might help you drop habits from C#/Java. The only particularly quirky thing about CS output versus hand coded js is the excessive use of the ternary operator for if/then/else.

For overall app design I agree with karmakaze's approach and have been doing it for years. I structure my own apps as restful JSON services and perform virtually all my logic client side. This keeps transient application state in one place instead of two that are synchronized by a stateless protocol. You do, however, have to have someone who actually knows programming working on the client side component if you're building a real app. For non-app sites, I use the same approach but keep it server side. The model produces dicts/objects (I do pylons/node.js server side) that the controller decorates with session data (in the rare case I have it) and passes into the templating engine as the context object. In both cases, it helps keep your business logic separate from the cruft of serving content over the web and makes it easy to service multiple frontends. If you're doing client side templating, I recommend the mustache templating language. It's easy to learn and implementations exist for most environments so you can cross environment template pretty easily.

I'd be happy to give feedback about frontend stuff in exchange for pointers on .Net web development. I'm learning F# this year and really enjoying the language, but I want something like node.js, pylons, tornado+monocle, sinatra, or aleph. I'm not at all interested in the standard MS web app setup and I have trouble finding stuff due to the noise.
 

Handor

Ars Tribunus Militum
2,513
Thanks for your replies, all, and sorry for the delay in a response. I've been spending some time looking at some of the things you've mentioned and thinking about how it might apply to what I think may be required of us.

@newwb and DebtAngel:

I think the idea of working with someone experienced in these technologies is a good one, and probably the way to go, but perhaps not yet in the scope of what I can do within the confines of my current organization. Most of the work we've done here is either a) not related to web technologies (i.e. client-server programming, services, frameworks, etc), or b) old enough that I wouldn't consider any of those skills directly applicable to modern web frontend development. As such, I don't have anyone I could really access in my day-to-day work that would really be suitable for such exercises.

However, we may end up taking on a new set of projects which will eventually incorporate web-based interfaces, which is why I'm interested. If people ask me for prototypes, I want to at least start in the right ballpark for what the frontend developers will need or want if we eventually bring them on board.

That said, thanks for the study list, newwb-- it seems like a reasonable way to structure my dip back into the field.

karmakaze:

Your solution really appeals to me, since I usually live so deep in library and framework development. If I can have the server deliver something more "pure" and less related to presentation, it seems like a clean and efficient separation of concerns.

The details of how the data gets married to the presentation, though, is less clear to me. Suppose I have data that needs a complex presentation (to take a generic example, let's say it's a recipe card with ingredients and instructions, and maybe a picture, all formatted in an attractive fashion). Constructing one such card and using JavaScript to pull the data and push values into proper divs or spans or whatever seems straightforward. But suppose I need to display a list of such cards on a single page.

If I were generating the HTML server-side, I could probably just do a quick loop and output the HTML in each iteration. Would it be somehow similar in the JavaScript method? Or, do I (for instance) clone a pre-existing div and push that in? Is there a way to do an MVC-style architecture on the client side, and have a single page (with lots of script) generate all the screens/components of an application? And, what would that do to standard browser idioms like the back button?

I don't expect you to answer these questions (and I have some guesses about reasonable answers to these mysself), but it just goes to show you that while I like the idea, I'm not confident that's enough to race off and get the right implementation of such a scheme.

Grayrest:

Thanks for the in-depth and extremely informative post. It's exactly the sort of thing I was looking for. It gets me a whole lot closer to understanding how the various technologies are best interlaced. I've already started looking through some of the references, too (especially eloquent javascript, which I've skimmed several chapters of already). I don't really understand everything (the difference between divs and polyfilling HTML elements, for example), but I can probably get most of what I'd need by googling some of the specifics.

Where I start to get a little perplexed is the sheer number of frontend technologies that end up getting layered on the web frontend. HTML and CSS and JavaScript-- OK, no problem. But now you start (optionally) laying on Sass+Compass on top of CSS, yui3 or jQuery on top of JavaScript, mustache.js for templating, and suddenly it seems like bizarro world. (Maybe it's just that I've lived for too long in frameworks of my own design, and need to get into the habit of relying more on those of everyone else. It just seems like quite a lot of pieces to need to learn and stitch together, is all.)

Anyway, really thanks for all the thought that went into your reply. It was much appreciated, and I'm still digesting it.

As far as a knowledge swap goes, I'd be happy to help with anything that falls into the areas I feel qualified to talk about. F# (as a language) and the (modern) web development options in .NET (aside from WCF, which is only very loosely related) isn't really where I've spent a whole lot of time, though, so I'm not really sure I could be of much help. But when I have the time to look into anything in the "node.js, pylons, tornado+monocle, sinatra, or aleph" category enough to have more than a passing knowledge of what they are, I'll definitely let you know if I feel I have anything of value to add. Until then, I probably don't have enough of what you want to attempt a trade (but let me know if I'm mistaken). Sorry!
 

karmakaze

Ars Tribunus Militum
1,700
Subscriptor
Handor":287h01v3 said:
The details of how the data gets married to the presentation, though, is less clear to me. Suppose I have data that needs a complex presentation (to take a generic example, let's say it's a recipe card with ingredients and instructions, and maybe a picture, all formatted in an attractive fashion). Constructing one such card and using JavaScript to pull the data and push values into proper divs or spans or whatever seems straightforward. But suppose I need to display a list of such cards on a single page.

If I were generating the HTML server-side, I could probably just do a quick loop and output the HTML in each iteration. Would it be somehow similar in the JavaScript method? Or, do I (for instance) clone a pre-existing div and push that in? Is there a way to do an MVC-style architecture on the client side, and have a single page (with lots of script) generate all the screens/components of an application? And, what would that do to standard browser idioms like the back button?

The basic idea is that you'd do the same loop client-side. The specifics depend, as you said, on which of the myriad of client-side approaches you take. For my project, we used a js templating engine, but I wasn't too happy with it. Using a proper MVC framework (e.g. SproutCore, etc.) on the client would've been my preferred approach, but since this was an after-hours project we went with the quicker short-term solution.

To handle the back button, you usually have to add your own #anchor tags as the user drills into the page's DOM (see Gmail for an example).

And I went with this approach for the same reason you said it appeals to you: I'm a back-end dev that didn't want to change me work style just because most web frameworks focus on transforming HTML on the backend. For my next major project I'll do a little more upfront research to hopefully find a client-side framework that supports this (my grapevine understanding is that SproutCore does, but I didn't have time to learn it for this one).
 

Grayrest

Ars Tribunus Militum
2,499
Handor":oxj2lx7w said:
Where I start to get a little perplexed is the sheer number of frontend technologies that end up getting layered on the web frontend. HTML and CSS and JavaScript-- OK, no problem. But now you start (optionally) laying on Sass+Compass on top of CSS, yui3 or jQuery on top of JavaScript, mustache.js for templating, and suddenly it seems like bizarro world. (Maybe it's just that I've lived for too long in frameworks of my own design, and need to get into the habit of relying more on those of everyone else. It just seems like quite a lot of pieces to need to learn and stitch together, is all.)
So the first thing to know about web application development is that the technologies (mostly) weren't designed to support what we currently do with them. As such, web development is all about layers and layers of hacks. In order to keep the hacks manageable, people build abstractions on top of them. You either have to deeply understand the domain or rely on those abstractions. You certainly don't need all the pieces I mentioned. I'm probably the most tool-intensive dev you'll run across outside the GWT/Cappuccino crowd, who abstract client side development completely.

I highly recommend, however, that you use a javascript library. There's a very large surface area of specs involved in a modern browser and between different interpretations, bugs, and priorities, each browser has it's own set of issues. The various js libraries originally were about covering the differences between browsers and there's literally man-years of effort in finding and fixing edge cases in any major library. I used to do it without libraries (they didn't exist :/), and it's really not worth it. These days, everything but IE6-8 behaves pretty well and you can mostly do without one except that the newer js apis are generally written low level in the anticipation that they'll get a library put over them. The iphone/mobile libraries (e.g. zepto) basically do this since the mobile web is 95% webkit and so they're 2k instead of 50k. If it makes you feel better, think of them as javascript's missing stdlib but you have to choose which to use.

Handor":oxj2lx7w said:
when I have the time to look into anything in the "node.js, pylons, tornado+monocle, sinatra, or aleph" category
I'm basically looking for a relatively low level http server library (e.g. see the node.js example at the top of the homepage). There's a couple major pieces that make up a web stack and I mostly don't need them due to primarily building my apps as JSON services. Actually...guess I should look into how the .Net guys do rest services.
 

Grayrest

Ars Tribunus Militum
2,499
karmakaze":21tsalxc said:
Using a proper MVC framework (e.g. SproutCore, etc.) on the client would've been my preferred approach, but since this was an after-hours project we went with the quicker short-term solution.
Modular client side development really hasn't caught on yet. SproutCore, Dojo, Closure, and Ext JS are all options if you want relatively heavy client side development. The only reason I don't use SproutCore is because the widget system wants to control an area of the page and I tend to do a lot of custom work. SproutCore also only offers a limited set of widgets, so you'll have to be willing to do widget development if you want to do anything interesting. Dojo, Closure, and Ext are the most java-like frameworks (Closure is even typed) and people from static languages backgrounds tend to do well with one or with GWT. There are lower level jQuery-oriented frameworks that provide KVO (backbone.js), MVC (javascriptMVC), and MVVC (knockout) models but none has really gained a lot of traction.

karmakaze":21tsalxc said:
To handle the back button, you usually have to add your own #anchor tags as the user drills into the page's DOM (see Gmail for an example).
You can actually change the whole URL below the server in modern browsers. See github's repository browser pages in anything but IE for an example. My normal architecture is to package a url router client side that handles all clicks and automatically causes history to do the right thing.

karmakaze":21tsalxc said:
For my next major project I'll do a little more upfront research to hopefully find a client-side framework that supports this (my grapevine understanding is that SproutCore does, but I didn't have time to learn it for this one).
There isn't anything out there that handles everything. Sproutcore provides a visual builder, a minimal set of widgets, a build system, and KVO/bound views. Last time I looked (0.9.x) there wasn't a lot for wiring views together.

This is why I have trouble knowing where to start when people ask this question in the general case. If you know what you're building or want an opinion, I've used pretty much everything client side that isn't mobile-specific and most server side frameworks you'll hear of if it isn't Java or .Net.
 
D

Deleted member 43669

Guest
My suggestion:

1) Learn HTML. The HTML 4.01 Spec ( http://www.w3.org/TR/1999/REC-html401-19991224/ ) is a pretty good start.

Learn what well-formed HTML is. Learn what HTML elements are there.

Think about the content you want to show in a web page, and forget about layout, colors, fonts, etc. You should be able to write HTML that reflects the content

2) Learn some CSS. Basically you want to learn how you can select which HTML elements a style targets and what stuff you can do with CSS

3) Learn a bit of HTTP. You should know what goes in an HTTP request and its response. In particular, you should tie this with forms in HTML. Learn the difference between GET and POST. Learn about redirect-after-post. Learn about session-handling.

4) Think about tying this together. How will you generate the HTML in your app? How will you handle forms? Time to learn a server-side technology

5) The extra bit is Javascript. Learn the basics of Javascript. Particularly, learn how it's not OO in the traditional sense. Think how you can use Javascript to enhance the experience of what you can achieve with 1-4. And do that without breaking the experience for Javascript-less users.

edit: 6) Improve 1-5 in the following aspects:

* Be productive and minimize development time
* Prevent bugs
* Avoid security problems in your application (SQL injection, XSRF, etc.)
* Make this work in all browsers

(which probably means, find a suitable web stack).

Note: I've deliberately avoided any backend programming stuff...
 
If you want a general intro to front-end development, I can highly recommend Google's HTML/CSS/JS guide:
http://code.google.com/intl/nl-NL/edu/s ... avascript/

Be careful which resources you learn from, since many of the highly ranked tutorial sites in google are actually pretty awful. For example, http://w3fools.com/ is a site whose sole purpose is to complain about the low quality of W3Schools, one of the top-ranked google results. If you scroll down on the W3Fools site, you'll get a shortlist of reliable learning sites.

As far as strategies are concerned for picking front-end developers to work with, and how best to structure your app, this is almost impossible. The ecosystem diversity of front-end developer tools is too big. The developer that joins you will bring along tools that will determine the app's structure. For example, I develop in ExtJS and communicate with the web server only via JSON-RPC web services. The only HTML that the server outputs is the initial bootstrap page. If I joined you and proposed an ExtJS design, it would mean throwing away much of your work on HTML forms. Granted, that's an extreme the majority of front-end developers don't go to, but it indicates the range of possibility.

So, as a .NET developer, maybe you need to see how far you can take ASP.NET with its component model without needing outside help. I've toyed around with it a little bit, and got the impression that it does a reasonable job of abstracting away the complexities of front-end development. You'll be tied at the hip to the ASP.NET platform, but there are worse choices you could make. Or, you could just seek out a front-end developer with a solid portfolio and adapt to what they need from you. I can't make any predictions though, except to keep your business logic decoupled from your front-end code, but then you already knew that.

Whichever route you go technologically, realize that the web tools market is still shaking out contenders, and most of the tools in use now will be dead in a few years. That's why you need to bet on the big guys. You need to be sure that no matter what, finding people that can support it will be easy. Sproutcore is an example of a platform I would consider too small unless you felt confident you could maintain it yourself.
 

Grayrest

Ars Tribunus Militum
2,499
Joeri":2ao98wdu said:
If I joined you and proposed an ExtJS design, it would mean throwing away much of your work on HTML forms. Granted, that's an extreme the majority of front-end developers don't go to, but it indicates the range of possibility.
I suspect the majority of front end developers would want to throw away the frontend when brought into something complicated enough to justify a full-on Ext based frontend. Once you've committed to a component based framework, you're looking at a markup rewrite (unless it's yui) and usually JSON rest/rpc backends. It's only extreme because most frontend developers don't practice component-based development. This is both because it's not needed for content-oriented sites (which are far more common) and jQuery doesn't lend itself to component based development without additional libraries. This is my biggest complaint with jQuery because it is the best scripting library out there but it's usually not clear to people (or they don't know) when they're pushing scripting too far and need to go to components.

I think the sheer size of js allows a lot of the frameworks breathing room to coexist even at a commercial level. As for Sproutcore being too small, community size is roughly the same as Ext and I thought Jolley+co. incorporated last year to provide commercial support. The commercial support won't be as together as Sencha's with Ext but that's because Sencha has been doing it longer. Dojo is in roughly the same state with SitePen. YUI and Closure have the backing of Yahoo and Google respectively, so I expect them to stick around. There will be a shakeout in jQuery land between the various component approaches. I have trouble telling who's winning mindshare between the Knockout/JavascriptMVC/Backbone camps, but afaik none of those are commercial so they'll die when people get tired of working on them.

The mobile space is a lot more volatile and we'll definitely see shakeout there. jQuery mobile has the jQuery name attached. Sencha is making a push. HP/Palm will put out Enyo this year. 37Signals has something in the works for Coffeescript tied to Rails3. I've seen quite a few mentions of Zepto in the space. There's also mobl and a few less polished one-developer projects for the compiles-to-js set.

Joeri":2ao98wdu said:
So, as a .NET developer, maybe you need to see how far you can take ASP.NET with its component model without needing outside help.
Everything I've heard from the .Net community in the last few months is that ASP.NET was a mistake and the new hotness is ASP.NET MVC. I know the MS web tools group has decided to drop doing their own thing and go with jQuery. E.g. the new templating engine shipping in jQuery 1.5 is a MS/jQuery collaboration.
 
I only know of jQuery UI, which seems to be the dominant one.

You can use jQuery as core library for Ext (Ext wraps around jQuery, prototype, YUI or Ext Core).

My practical experience with the other libraries (including jQuery) remains limited to the comparison I did between the various approaches back in 2007/2008, when I made the decision to go with Ext. I can't really say I know a lot about the current pro's and con's of each library as I'm pretty strongly wedded to Ext at this point.
 

Grayrest

Ars Tribunus Militum
2,499
Joeri":31z59t6v said:
I only know of jQuery UI, which seems to be the dominant one.
jQuery UI isn't a component framework, it's a small collection of widgets. When I say component framework, I mean something that lets you split up your application into pieces that communicate through defined (hopefully loosely coupled) channels. You don't actually need someone else's library to do this, but you do need a plan and it's easier to use someone else's plan/library than to invent your own.

In jQuery land, the options I've heard about are:

* Knockout - declartive binding MVVC, pretty well described on the home page
* Javascript MVC - more railsish with code templates and whatnot
* backbone - lightweight option
* Project Amber - vaporware, sproutcore based integration with jquery

If you know of one I don't, I'd like to hear about it. I generally have avoided larger code bases in jQuery but I'm always trying to keep on top of things. Of the above set, I've used backbone for a smallish project and done a helloworld in knockout. None provide a sizeable set of widgets. The only large widget collections I know about are Ext, Dojo, and Closure. YUI2 has a decent collection and you can drive them with yui3, which is an improvement, but they're still pretty heavy. Sproutcore, Cappuccino, jQuery UI, and Scriptaculous/Scripty2 are smaller sets. There's also the aui collection for yui3, but I wasn't that impressed with the set last time I checked.
 
Status
Not open for further replies.