Results 1 to 6 of 6

Thread: Double qoutes or single qoutes

  1. #1
    Sencha Premium Member EPV's Avatar
    Join Date
    Dec 2010
    Location
    Sweden
    Posts
    361
    Answers
    37

    Default Answered: Double qoutes or single qoutes

    Are there any best practices regarding qoutes in Ext JS code?

    Generating a file from Sencha Cmd I get a mix and in the examples, like bar chart below, there's also a mix.

    http://docs.sencha.com/extjs/6.0/com..._charting.html

    Thanks / E

  2. I use single quotes in Ext and double quotes in PHP but it doesn't matter. It's just a convention.

  3. #2
    Sencha Premium Member
    Join Date
    Apr 2013
    Location
    Bratislava, Slovakia
    Posts
    31
    Answers
    1

    Default

    I'd say it's up to your company coding standards. The Ext JS core uses both double and single quotes.

  4. #3
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664
    Answers
    512

    Default

    I use single quotes in Ext and double quotes in PHP but it doesn't matter. It's just a convention.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  5. #4
    Sencha Premium Member EPV's Avatar
    Join Date
    Dec 2010
    Location
    Sweden
    Posts
    361
    Answers
    37

    Default

    Feels strange though if Sencha doesn't have a company standard.
    It's irritating that generated files and some examples have double qoutes as we always use single.

    / E

  6. #5
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425
    Answers
    20

    Default

    Quote Originally Posted by movys View Post
    I'd say it's up to your company coding standards. The Ext JS core uses both double and single quotes.
    Ext JS mostly uses single quotes which IMHO results in less visual clutter.

    Interestingly, jQuery recommends double quotes...

  7. #6
    Sencha Premium User suzuki1100nz's Avatar
    Join Date
    Apr 2011
    Location
    New Zealand
    Posts
    731
    Answers
    45

    Default

    I use single quotes - saves an extra character

Similar Threads

  1. Replies: 5
    Last Post: 2 Jun 2015, 5:49 AM
  2. Double single click and double click in editor grid problem
    By Zanisimo in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 22 Jan 2011, 12:05 PM
  3. Single and Double click not working
    By sajan in forum Ext Designer: Help & Discussion
    Replies: 6
    Last Post: 23 Jun 2010, 10:46 AM
  4. Single and Double click on grid rows
    By alessandro in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 28 Jan 2008, 7:59 PM
  5. Single vs Double Quotes??
    By Grimsk in forum Community Discussion
    Replies: 8
    Last Post: 30 Aug 2007, 3:57 AM

Tags for this Thread

Posting Permissions

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