TIPS AND STORIES Skip to main content

Posts

Showing posts with the label CODING TIPS

TEMPLATE TIPS AND TRICKS

TEMPLATE TIPS AND TRICKS For example, the values for the bold property of a text element Sorts Use native sorts whenever possible. When you are copying a query from a schema that has the same name in both templates, but contains different attributes, a second schema is created in the template you are pasting the content into. You can click Customize and deselect the PUB Reference Search or JavaScript Search tabs to remove them from the Search window. Locating a query or attribute in the Data Source View from the template content editor You can locate a query or attribute in the Data Source View from the element it is applied to by right-clicking an element and selecting Search > Go to schema. You can either continue by using this default setting and click the Select element to return to your cursor, or you can change the preference for this setting to disable it. You cannot copy from one template and paste the elements into a template opened in another instance of the Document Studi...

BETTER CODING

                     10 Tips for Better Coding Consider if there are any applicable design patterns your code can follow. If you don’t organize everything from the start – especially for big projects — the coding processes and code management afterwards may end up not just time consuming, but also a big headache. Good code is maintainable, reusable, and testable. Believe it or not, you should be refactoring your code on a daily bases or your code is not in good health! Refactoring keeps your code healthy, but   what should you refactor and how? You should be refactoring everything, from your architecture to your methods and functions, variables names, the number of arguments a method receives, etc. How to refactor is more of an art more than a science, but there are a few rules of thumb that can shed some light on it: If your function or method is more than 20-25 lines, it’s more likely that you are including too much logic ins...