Skip to content

Conversation

shepa006
Copy link

@shepa006 shepa006 commented Jul 7, 2014

Added Nautical Miles to Length and Area

Added Nautical Miles to Length and Area
@angularsen
Copy link
Owner

Thanks. I'm on vacation until July 19 but I'll try to review this in the next few days.

@shepa006
Copy link
Author

shepa006 commented Jul 8, 2014

No worries if you don't get to it right now. It will wait for you :)

Have a good vacation.

On Tuesday, July 8, 2014, Andreas Gullberg Larsen notifications@github.com
wrote:

Thanks. I'm on vacation until July 19 but I'll try to review this in the
next few days.


Reply to this email directly or view it on GitHub
#33 (comment).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use

xml documentation instead of comment. This way intellisense can show this info too.

@angularsen
Copy link
Owner

Could it be named just NauticalMile, or is the international part important to avoid ambiguity? I have not yet researched the different types of nautical miles, but to me with no experience with that unit I would guess one type of nautical mile was maybe considered the standard or most widely used?

@angularsen
Copy link
Owner

And could it be sufficient to explain in the xmldoc that this is the international variant? Granted that the international unit can be considered the default/standard one.

@angularsen
Copy link
Owner

I don't see any tests added. Did you follow those steps?

@shepa006
Copy link
Author

I'll look into it.

On Thu, Jul 10, 2014 at 6:36 AM, Andreas Gullberg Larsen <
notifications@github.com> wrote:

Could it be named just NauticalMile, or is the international part
important to avoid ambiguity? I have not yet researched the different types
of nautical miles, but to me with no experience with that unit I would
guess one type of nautical mile was maybe considered the standard or most
widely used?


Reply to this email directly or view it on GitHub
#33 (comment).

@angularsen
Copy link
Owner

Disregard that last one. I see the tests now.

The upgrade.htm file should not be included.

@angularsen
Copy link
Owner

Other than that, it looks good! Awaiting your feedback on the questions and the few fixes.

@angularsen
Copy link
Owner

Did you find out anything?

Some good news and some bad news. Inspired by you using VS Express I finally decided to move to a PowerShell and JSON templating system so having Visual Studio is no longer a requirement to add new units, but it's still probably easier than using notepad. Read more here: #34

The bad news, you will have to redo your work in the new templating system. Fortunately it should be much simpler and it would be great for me to get some feedback on any improvement for the the new templating system.

I haven't written a step-by-step wiki for it yet, but basically just edit the Length.json file and see how other units are defined, then run the GenerateUnits.ps1 powershell script, then fix the compile error in the test project for a missing property override, similar to the previous steps in the wiki. That should be it really. Look forward to your comments.

@shepa006
Copy link
Author

Sounds good. I'll give it a try. There was a family emergency so I haven't
had a chance to get back to it yet, hopefully next week.

On Friday, July 18, 2014, Andreas Gullberg Larsen notifications@github.com
wrote:

Did you find out anything?

Some good news and some bad news. Inspired by you using VS Express I
finally decided to move to a PowerShell and JSON templating system so
having Visual Studio is no longer a requirement to add new units, but it's
still probably easier than using notepad. Read more here: #34
#34

The bad news, you will have to redo your work in the new templating
system. Fortunately it should be much simpler and it would be great for me
to get some feedback on any improvement for the the new templating system.

I haven't written a step-by-step wiki for it yet, but basically just edit
the Length.json file and see how other units are defined, then run the
GenerateUnits.ps1 powershell script, then fix the compile error in the test
project for a missing property override, similar to the previous steps in
the wiki. That should be it really. Look forward to your comments.


Reply to this email directly or view it on GitHub
#33 (comment).

@angularsen
Copy link
Owner

Absolutely, take your time. For your reference, I recently added a new class of units in the new template system. Here is the pull request and its commits:
https://github.com/InitialForce/UnitsNet/pull/35/commits

@angularsen
Copy link
Owner

I just noticed this one still lingering. Do you still intend to give it another go or should I close this?

@shepa006
Copy link
Author

Go ahead and close it.
I would like to say that I'll work on it, but realistically I don't know
when I'll have time to.

On Wed, Oct 22, 2014 at 1:03 AM, Andreas Gullberg Larsen <
notifications@github.com> wrote:

I just noticed this one still lingering. Do you still intend to give it
another go or should I close this?


Reply to this email directly or view it on GitHub
#33 (comment).

@angularsen
Copy link
Owner

OK, no problem.

@angularsen angularsen closed this Oct 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants