Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Make everything a tree?

Make everything a tree?

Scheduled Pinned Locked Moved Design and Architecture
javascripthtmldata-structuresoopquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Leslie Sanford
    wrote on last edited by
    #1

    I've been using jQuery quite a bit lately, and I've enjoyed how easily it makes navigating and manipulating the DOM. When I think of other areas of my code, I sometimes wistfully wish it was as easily to mainpulate the data there as it is to manipulate the DOM with jQuery. This makes me wonder if I'm missing an abstraction. The DOM is really a tree at the heart of it. So maybe, where it makes sense, I could attempt to model the data in the domains I work in as trees. Then use a domain specific language to manipulate those trees.

    J 1 Reply Last reply
    0
    • L Leslie Sanford

      I've been using jQuery quite a bit lately, and I've enjoyed how easily it makes navigating and manipulating the DOM. When I think of other areas of my code, I sometimes wistfully wish it was as easily to mainpulate the data there as it is to manipulate the DOM with jQuery. This makes me wonder if I'm missing an abstraction. The DOM is really a tree at the heart of it. So maybe, where it makes sense, I could attempt to model the data in the domains I work in as trees. Then use a domain specific language to manipulate those trees.

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      Once one learns to use a hammer and practices with it quit a bit it is easy and fast to use it to join lumber in any number of different ways. That doesn't mean it is a replacement for a drill. And it certainly doesn't mean that one should use it when making a cake.

      RaviBeeR 1 Reply Last reply
      0
      • J jschell

        Once one learns to use a hammer and practices with it quit a bit it is easy and fast to use it to join lumber in any number of different ways. That doesn't mean it is a replacement for a drill. And it certainly doesn't mean that one should use it when making a cake.

        RaviBeeR Offline
        RaviBeeR Offline
        RaviBee
        wrote on last edited by
        #3

        "Once one learns to use a hammer ... it certainly doesn't mean that one should use it when making a cake." :thumbsup: /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups