taskease.js - Tasks: task #12097, Internal hooks/events for runtime...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

task #12097: Internal hooks/events for runtime analysis

Submitted by:  Mike Gerwitz <mikegerwitz>
Submitted on:  Sun 10 Jun 2012 03:34:48 AM UTC  
 
Should Start On: Tue 01 Jan 2013 05:00:00 AM UTCShould be Finished on: Fri 01 Mar 2013 05:00:00 AM UTC
Category: CorePriority: 4
Item Group: DevelopmentStatus: None
Privacy: PublicAssigned to: Mike Gerwitz <mikegerwitz>
Percent Complete: 0%Open/Closed: Open
Planned Release: None
Keywords: runtime analysis, hooks

Sun 10 Jun 2012 03:34:48 AM UTC, original submission:

ease.js (ironically, because of its OO nature) provides very little means to alter its internal functionality through hooks or plugins. This is intentional, to ensure that users to not write plugins that would make their code unportable to other systems without use of those plugins. It would cause inconsistencies and stifle adoption while providing very little befit other than a potential "cool" factor (who doesn't want a 'public selfdestructing foo' that would blow up the engine on use?).

However, certain events would be useful to watch for the purpose of analysis or enforcement of coding standards. For example, let's say a corporation wishes to disallow inheritance in favor of pure composition (which isn't a bad decision). If ease.js provided an event to be triggered on class creation, one could hook the event and throw an exception if the class is attempting to inherit from another.

  • The event will provide information but will not permit altering the internal data
  • As a consequence, classes cannot be modified through the use of hooks
  • This allows the creation of useful runtime analysis hooks without harming prospects of portability

Such hooks will be useful for runtime analysis, which may be necessary under certain circumstances due to the difficulties in statically analyzing JavaScript code.

Mike Gerwitz <mikegerwitz>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mikegerwitz (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup