Thread: Sorting and stuff

  1. #1
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897

    Sorting and stuff

    http://www.eternallyconfuzzled.com/tuts/sorting.html

    I just finished this one as a very minor update to the sorting tutorial in the FAQ. however, being the self-conscious person that I am, I need critiques before I'll consider it complete. Thanks to Dave Sinkula for suggesting a table of contents, since this is my longest one yet.

    Cheers!
    My best code is written with the delete key.

  2. #2
    Banned
    Join Date
    Jun 2005
    Posts
    594
    wow your a sorting pimp.

  3. #3
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Absolutely amazing tutorial, I only got about a quarter of the way through it so far but I'll definitely read the rest and make sure I understand as much as possible

    Oh...by the way: http://validator.w3.org/check?uri=ht...2Fsorting.html

  4. #4
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    Quote Originally Posted by jverkoey
    Oooh, burn!

    Frankly I don't see the deal with people and XHTML. Is good ol' HTML 4 that backwards?

  5. #5
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    XHTML is closer to XML, which is pretty much the direction we're moving in. It also forces you to close 97% of the tags, and HTML doesn't.

  6. #6
    aoeuhtns
    Join Date
    Jul 2005
    Posts
    581
    XHTML forces you to close all your tags, not 97%. And you can certainly close your tags in HTML if they can be closed. But there's nothing inherently wrong with not closing your tags anyway.

    The only benefit to using XHTML as opposed to HTML is if you ever intend on using something like XSLT with it.

    Another problem with XHTML is that it is not backwards compatible with HTML -- it's only backwards compatible with how browsers parsed HTML. For example, in HTML, technically, <b/>/ is equivalent to <b>&gt;</b>. But in XHTML it's equivalent to <b></b>/.

    Using XHTML does not help with forwards compatibility, either. For XHTML 2.0 is a complete break with XHTML 1.1, 1.0, and HTML.

    Also, you can't even send XHTML correctly -- IE barfs when you give it the proper Content-Type header -- you have to lie and say it's of type text/html.

  7. #7
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >> But there's nothing inherently wrong with not closing your tags anyway.

    Sure there is, its not valid markup. Which sorta defeats the purpose of having a markup language.


    >>Also, you can't even send XHTML correctly -- IE barfs when you give it the proper Content-Type header -- you have to lie and say it's of type text/html.

    erm, that would mean IE is a pice of .........., it has nothing to do with XHTML being bad.

  8. #8
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,534
    Quote Originally Posted by Rashakil Fol
    Also, you can't even send XHTML correctly -- IE barfs when you give it the proper Content-Type header -- you have to lie and say it's of type text/html.
    I think the point of having the standard is to move away from having a lot of different 'standards' from competing companies (ie., Netscape and Microsoft with the 'browser wars' of the 90's). If Microsoft does not keep up with a standards compliant browser, that is their problem. (Yes I realise that by virtue of majority of users, Microsoft's browser is somewhat of a standard, but I protest that.. )

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problems with greatest to least sorting
    By Mr_Jack in forum C++ Programming
    Replies: 2
    Last Post: 03-11-2004, 10:12 PM
  2. Sorting Program Problems
    By valar_king in forum C++ Programming
    Replies: 1
    Last Post: 03-04-2003, 04:38 PM
  3. Help with sorting a ListCtrl
    By *ClownPimp* in forum Windows Programming
    Replies: 12
    Last Post: 01-19-2003, 06:00 AM
  4. Sorting an array of structures with sort()
    By rmullen3 in forum C++ Programming
    Replies: 3
    Last Post: 01-03-2003, 03:02 PM
  5. Creating a linked list while sorting it
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 09-13-2001, 06:29 AM