deploy: 81ffc9da10
This commit is contained in:
parent
158b902b20
commit
cb4e8e2194
131 changed files with 3191 additions and 3076 deletions
|
|
@ -2,19 +2,19 @@
|
|||
<head>
|
||||
<meta charset=utf-8>
|
||||
<meta name=viewport content="width=device-width,initial-scale=1">
|
||||
<meta name=generator content="Hugo 0.89.0">
|
||||
<meta name=generator content="Hugo 0.89.1">
|
||||
<meta name=description content>
|
||||
<title>Reusable Bugs :: BC AL Help</title>
|
||||
<link href=/css/nucleus.css?1636104708 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1636104708 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1636104708 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1636104708 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1636104708 rel=stylesheet>
|
||||
<link href=/css/theme.css?1636104708 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1636104708 rel=stylesheet>
|
||||
<link href=/css/variant.css?1636104708 rel=stylesheet>
|
||||
<link href=/css/print.css?1636104708 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1636104708></script>
|
||||
<link href=/css/nucleus.css?1636386789 rel=stylesheet>
|
||||
<link href=/css/fontawesome-all.min.css?1636386789 rel=stylesheet>
|
||||
<link href=/css/featherlight.min.css?1636386789 rel=stylesheet>
|
||||
<link href=/css/perfect-scrollbar.min.css?1636386789 rel=stylesheet>
|
||||
<link href=/css/auto-complete.css?1636386789 rel=stylesheet>
|
||||
<link href=/css/theme.css?1636386789 rel=stylesheet>
|
||||
<link href=/css/theme-blue.css?1636386789 rel=stylesheet>
|
||||
<link href=/css/variant.css?1636386789 rel=stylesheet>
|
||||
<link href=/css/print.css?1636386789 rel=stylesheet media=print>
|
||||
<script src=/js/jquery.min.js?1636386789></script>
|
||||
<style>:root #header+#content>#left>#rlblock_left{display:none!important}</style>
|
||||
</head>
|
||||
<body data-url=/navpatterns/2-anti-patterns/reusable-bugs/>
|
||||
|
|
@ -32,9 +32,9 @@ BC AL Help . dev
|
|||
<input data-search-input id=search-by type=search placeholder=Search...>
|
||||
<span data-search-clear><i class="fas fa-times"></i></span>
|
||||
</div>
|
||||
<script src=/js/lunr.min.js?1636104708></script>
|
||||
<script src=/js/auto-complete.js?1636104708></script>
|
||||
<script src=/js/search.js?1636104708></script>
|
||||
<script src=/js/lunr.min.js?1636386789></script>
|
||||
<script src=/js/auto-complete.js?1636386789></script>
|
||||
<script src=/js/search.js?1636386789></script>
|
||||
</div>
|
||||
<div class=highlightable>
|
||||
<ul class=topics>
|
||||
|
|
@ -213,7 +213,6 @@ BC AL Help . dev
|
|||
</div>
|
||||
<main id=body-inner>
|
||||
<h1>Reusable Bugs</h1>
|
||||
<h1 id=reusable-bugs>Reusable Bugs</h1>
|
||||
<p><em>By Bogdana Botez, Andreas Moth, Eric Wauters (waldo), Elly Nkya, Nikola Kukrika</em></p>
|
||||
<p><em>April 1st, 2015</em></p>
|
||||
<h2 id=abstract>Abstract</h2>
|
||||
|
|
@ -222,14 +221,11 @@ BC AL Help . dev
|
|||
<p><strong>Option Strings</strong></p>
|
||||
<p>One example of a reusable bug is to find a heavily used table, like table 36 Sales Header, and observe one of the more important fields of type Option, for example Document Type. The OptionString property has the following value: Quote,Order,Invoice,Credit Memo,Blanket Order,Return Order, which you should update to add one option, for example Transport Order in the beginning.</p>
|
||||
<p>The main benefit of this reusable bug is that code changed in one place, has impact in multiple sides on the application: document creation and handling, posting etc.</p>
|
||||
<p>**Application Management<br>
|
||||
**</p>
|
||||
<p><strong>Application Management</strong></p>
|
||||
<p>Codeunit 1, ApplicationManagement is a good place for creating reusable bugs. A simple INSERT on the RecRef on the first line of OnDatabaseInsert will create a sure and versatile bug that is reusable all over the application. Redundancy on database insertion ensures that data is surely conveyed to the data storage layer, twice.</p>
|
||||
<p>**God objects<br>
|
||||
**</p>
|
||||
<p><strong>God objects</strong></p>
|
||||
<p>We are considering to no longer make localization builds for countries. It consumes lab resources to keep running multiple country builds. Instead, we will merge everything into one single build. This is a bigger scale implementation of the <a href=http://en.wikipedia.org/wiki/God_object>“God object”</a>. Inside this unique build, we will use IF statements and sporadically CASE statements to select each country’s behavior. For more help on how to use IFs, see also the IF .. THEN|ELSE C/AL Coding Guideline.</p>
|
||||
<p>**Field length economy<br>
|
||||
**</p>
|
||||
<p><strong>Field length economy</strong></p>
|
||||
<p>When you post a document, make sure to transfer data to a field that is smaller than the field you are assigning from. This will not immediately be caught and will only hurt a subset of the customers who uses Microsoft Dynamics NAV to its fullest.</p>
|
||||
<h2 id=guidelines>Guidelines</h2>
|
||||
<p>When bug addition is not entirely obvious, there is a second way to approach the problem. By following some general coding best practices like the ones described below, reliable bug innovation is facilitated and can come naturally as a collateral effect.</p>
|
||||
|
|
@ -272,12 +268,12 @@ BC AL Help . dev
|
|||
<div style=left:-1000px;overflow:scroll;position:absolute;top:-1000px;border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px>
|
||||
<div style=border:none;box-sizing:content-box;height:200px;margin:0;padding:0;width:200px></div>
|
||||
</div>
|
||||
<script src=/js/clipboard.min.js?1636104708></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1636104708></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1636104708></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1636104708></script>
|
||||
<script src=/js/featherlight.min.js?1636104708></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1636104708></script>
|
||||
<script src=/js/relearn.js?1636104708></script>
|
||||
<script src=/js/clipboard.min.js?1636386789></script>
|
||||
<script src=/js/perfect-scrollbar.min.js?1636386789></script>
|
||||
<script src=/js/perfect-scrollbar.jquery.min.js?1636386789></script>
|
||||
<script src=/js/jquery.svg.pan.zoom.js?1636386789></script>
|
||||
<script src=/js/featherlight.min.js?1636386789></script>
|
||||
<script src=/js/modernizr.custom-3.6.0.js?1636386789></script>
|
||||
<script src=/js/relearn.js?1636386789></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue