Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

API Suggestion: remove slang namings in methods

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    API Suggestion: remove slang namings in methods

    Hi,
    to make new NT8 API more professional,
    I would suggest to deprecate slang sugar/shortcuts in names of the (public) methods like this:

    MasterInstrument.Round2TickSize(price);

    I don't find it professional and would prefer simple:

    MasterInstrument.RoundToTickSize(price);
    Last edited by misova; 05-23-2015, 04:21 AM.

    #2
    I agree.

    I think I saw another new method in nt8 with '2'.

    Comment


      #3
      Tried browsing the docs real quick... thought I came across more before.

      This is a new one:

      RoundDown2TickSize()

      There are other methods though that do use "To".

      Comment


        #4
        Hey guys,

        Thank you for your suggestion.

        Comment


          #5
          Originally posted by misova View Post
          Hi,
          to make new NT8 API more professional,
          I would suggest to deprecate slang sugar/shortcuts in names of the (public) methods like this:

          MasterInstrument.Round2TickSize(price);

          I don't find it professional and would prefer simple:

          MasterInstrument.RoundToTickSize(price);
          While we are about it, how about we rename these methods in the Serialize namespace?
          • Brush2String()
          • Pen2String()
          • String2Brush()
          • String2Pen()

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          7 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          18 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          1 view
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          9 views
          0 likes
          Last Post Javierw.ok  
          Started by timmbbo, Today, 08:59 AM
          2 responses
          10 views
          0 likes
          Last Post bltdavid  
          Working...
          X