Navision Programming Standards Book
Dave_Cintron
Member Posts: 189
In 1998 I was in possession of a printed book with Navision coding standards. This was NOT the C/SIDE Reference Guide. It was NOT lessons on how to develop. It was about 40 pages of instructions on how to write code to conform to Navision standards. This information does NOT appear in any other PDF manual I have seen.
So, excluding the CSIDE and Programming and Development manuals and courses, does anyone have a copy of this?
So, excluding the CSIDE and Programming and Development manuals and courses, does anyone have a copy of this?
0
Comments
-
I know what you mean, it came in the box of blue manuals. I'm pretty sure I've seen it as a PDF somewhere. I checked my collection of old manuals but could not find it. Have you checked old version product CD's?0
-
-
I believe this is what you are looking for
http://download.microsoft.com/download/ ... 0Guide.pdf
If not, let me know, I might still be able to help.0 -
This is not the exact same one (having Microsoft's name on it) but looks like an updated version of the original.
I believe this will do, thank you.
Every developer should be required to read this guide!
And if anyone one has an older copy, I'd be happy to have it too!!0 -
Hi David,
I know I have an old copy of it. Can send you by mail. But the new (MS) version and the old do not differ.0 -
Thank you Luc, but if they are the same it's just nostalgia0
-
Cool manual!It can help a lot when naming tables, fields etc. (one of the hardest works, sometimes) :-$
thanks for the link aseigle and thanks dave to put it in evidence!
EDIT: after a brief look at the pdf, i noticed thisTo use a parameter as an option field, define it in the function. When you call the function, use an integer as parameter in the call.
this is a "MUST READ" book for everyone :!:0 -
Belias wrote:this is a "MUST READ" book for everyone :!:0
-
=D> Thanks dave for bringing up this topic.
There is nothing worse than a self proclaimed "programmer" that thinks they can do it better. The idea of a standard, is that it may not be perfect, but so long as everyone does it the same way, it will be easy to work as a part of a team and deliver reliable code.
The worst thing to try and work on is code where someone does not follow the standards.
This is a great book, and it really should be mandatory for all NAV developers to follow this and stop inventing their own "better" development styles.
Sadly once these developers go off the beaten track, its often impossible to bring them back in line, so in the end sacking them is the only option. The key is to read this book BEFORE you start developing.
PS they do need to work on deciding the standard for CASE indentation and it attached ELSE. That is often used inconsistently in the BAD code.David Singleton0 -
Oh... good old days! This was one of my first reference guides. I don't know if it's the official name but it was called "style guide". But I lost it somehow.
Some years later someone told me that it's no longer valid because after takeover of Navision by MS they didn't follow this way. I was very astonished because standard still looked (and even looks) like they did.
Again after a while MS implemented the Tab feature for code lines. That gives you the possibility to shift blocks of code to the right alignment. Two blank spaces forward with Tab and back with Shift+Tab. My first thought was, why should they insert two blank spaces by one hit of Tab when the "style guide" isn't valid? But then I saw what will happen when you hit Shift+Tab. I was a little bit confused.
But I never stopped working this way and I always tell junior developers they need to format their code like in standard. Sometimes they don't heed my advice but then I let them do the task twice if it's not well formatted and named. So, they learned it the hard way.
Btw, weren't there plannings for some kind of auto-format like in Visual Studio?"Money is likewise the greatest chance and the greatest scourge of mankind."0 -
einsTeIn.NET wrote:Btw, weren't there plannings for some kind of auto-format like in Visual Studio?0
-
einsTeIn.NET wrote:Again after a while MS implemented the Tab feature for code lines. That gives you the possibility to shift blocks of code to the right alignment.
I think you made a typo there. Didn't you mean to say "Again after a while MS returned the Tab feature for code lines."
This was a feature of Navision from the very beginning but was removed at some stage and just took a long time to come back. :-#David Singleton0 -
David Singleton wrote:I think you made a typo there. Didn't you mean to say "Again after a while MS returned the Tab feature for code lines."
This was a feature of Navision from the very beginning but was removed at some stage and just took a long time to come back. :-#I didn't know about this feature before. Maybe I just didn't mention it or I didn't work with those early versions of NAV. But it's good to know to have someone here who knows about those good old days.
"Money is likewise the greatest chance and the greatest scourge of mankind."0 -
A little question...in the book they've written this
IF NOT SETCURRENTKEY( aaaaaaaaaa,bbbbbbbbbb,cccccccccc, dddddddddd,eeeeeeeeee) THEN SETCURRENTKEY(bbbbbbbbbb,aaaaaaaaaa);
so, am i supposed to indent my code like this?if not TBFASerialNo.get( ptbcreatefabatch."fixed asset no.",ptbcreatefabatch."Serial No. Summary",ptbcreatefabatch."posting date") then begin TBFASerialNo.validate("Fixed Asset No.",ptbcreatefabatch."fixed asset no."); TBFASerialNo.validate("Serial No. Summary",ptbcreatefabatch."Serial No. Summary"); TBFASerialNo.validate("Starting Date",ptbcreatefabatch."posting date"); TBFASerialNo.insert(true); end;
0 -
How else would you do it?
By the way those variable names need to be looked at, they don;t seem to conform to the standards. Makes the code hard to read.David Singleton0 -
David Singleton wrote:By the way those variable names need to be looked at, they don;t seem to conform to the standards. Makes the code hard to read.0
-
What makes you wonder about this?0
-
Belias wrote::-k what do you mean with "this"?
Honestly, I do not know. I recall I wrote this answer to another post, but I cannot find the post anymore. So just disregard my previous entry on this thread.0 -
Belias wrote:from the manual:FlowFields are calculated even when they are hidden.
This depends on the version. Its something that happens in various versions.David Singleton0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions