Results 1 to 5 of 5

Thread: Naming conventions

  1. #1
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,199

    Default Naming conventions

    This is sometimes a naming inconsistency mistake I make myself, but for the framework it should better be consistent.

    Ext.form.field.Checkbox
    Ext.form.field.ComboBox

    Ext.form.Checkbox
    Ext.form.ComboBox

    Would it be possible to have a capital B(ox) for the checkbox as well, and use an alternative classname for backward compatibility?

  2. #2
    Ext JS Premium Member
    Join Date
    Sep 2009
    Location
    Cypress, Kalifornia
    Posts
    304

    Default you can use an alias

    I know Sencha used aliases for their classes when migrating for 3.x to 4.x. We use them for shorthand. It's possible you can extend those classes then just use your own alias. But if that's the only reason then not worth it probably. Otherwise, given the girth of the EXTJS library you're bound to find some inconsistencies.

    e.g.

    Code:
    alternateClassName: ['stuff.MyManager']

  3. #3
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,199

    Default

    I know, I can use alternative classnames. No problem even to use the current names.

    I think the naming of classes in the API should be consistent. A small thing which helps developers not to have recheck the naming of classes in the API.

  4. #4
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,372

    Default

    This doesn't exactly shake my confidence in the framework, but here's my own list of inconsistencies:

    Ext.Array.equals
    Ext.Object.equals

    Ext.Date.isEqual
    Ext.Number.isEqual

  5. #5
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,199

    Default

    I did not mention anything about my confidence of the framework

    Only had the urge to focus on some tiny minor details

Similar Threads

  1. Application & Models naming conventions
    By XASD in forum Ext:Bugs
    Replies: 0
    Last Post: 31 Jul 2011, 1:58 AM
  2. Ext JS 4 :naming conventions
    By thorben in forum Ext: Discussion
    Replies: 1
    Last Post: 31 May 2011, 1:22 AM
  3. Naming Conventions and Case?
    By hobophobik in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 5 Oct 2010, 10:59 AM
  4. naming conventions: id, xtype
    By mjlecomte in forum Community Discussion
    Replies: 3
    Last Post: 3 Sep 2008, 1:06 PM

Posting Permissions

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