Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up JS2DX - simplified UI programming

    I am developing a domain-specific programming language written in JavaScript called JS2DX. It is aimed at simplifying code of UI pages deployed using DHTMLX platform. For example the following is code of a page containing two frames with navigation grid and Google Maps:

    Code:
    layout: {
       id     : 'A'
      ,pattern: '2U'
      ,cells  : [{
         caption: 'Vehicles'
        ,width:   200
        ,grid : {
           id:          'list'
          ,columns:     [{name:' '}]
          ,url:         './xml/2_list.xml'
          ,onRowSelect: function(id) {
             js2dx.load('map','xml/2_track_'+id+'.xml');
          }
        }
      },{
         caption: 'Map'
        ,map: {
           id: 'map'
          ,url:'./xml/2_all.xml'
         }
      }]
    }
    The entire page is coded using key-value pairs inside a JSON object. More at http://js2dx.com/

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,366
    Thanks
    11
    Thanked 590 Times in 571 Posts
    what is the question?

    imho, these sorts of things always hinge on one thing: quality of documentation. If you're going to simplify stuff that's great, but it also requires learning new and non-standard skills to implement and customize. We need to be spoon fed that process information, but not too quickly or not too slowly; a tall order.

    The further from html/css/js you go, the more there is to learn. for example, what if i want to make an interface field require that a capital letter be used as the first letter, how hard is that to adjust? What if i want a field visible only if a weekend-day is selected in another field? In plain html land, i can tack that capability on pretty easily. If it's an equation that produces html, it's more ambiguous when and where that patch would be applied, either as config, convention, or code.

    In short, there must be a handsome payoff between learning and achieving or coders won't feel comfortable enough to use it.
    Last edited by rnd me; 01-02-2014 at 08:19 PM.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%

  • Users who have thanked rnd me for this post:

    Gonki (01-03-2014)

  • #3
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    When JS2DX is initialized it loads standard js components used by DHTMLX. Any functionality outside of JS2DX scope can be programmed using classic js without need for patching.

    There are several reasons why I think JS2DX is a good idea. It shortens UI page code. While it depends on coding style I've seen approx 70% reduction in code size. Another advantage is in its key-value format which makes possible storing UI components in XML or Entity Attribute Value database.

    With full backward compatibility any function like capitalizing first letter of a field may be coded using standard HTML/JS combination.

  • #4
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi All,

    Updates to the project site have been made with expanded description, docs, demo, product pipeline and more. Check it out at JS2DX - JavaScript Library Programming


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •