Implementation of Oracle Coding Standards and Code Quality Checks

I wanted to implement a list of coding standards and code quality checks for my oracle packages,functions,views,tableetc .
for example
All variables with number datatype should start with N_ and charcter type with C_ in all my tables & views definition.
This can be identified during peer review & can be corrected, but i think this is a repeated process which i don want to burden the developers rather i wanted a tool which does all these kind of checks which can be automated.
Is there any tool which does this operation or can someone give me a little idea how can i automate these stuffs bu creating a generic oracle procedure which can run through all the tables,views and generate a error report for those which are deviating from the standards.
Thus we can reduce the manual effort spent on peer review, please suggest.
thanks in advance

maru wrote:
I wanted to implement a list of coding standards and code quality checks for my oracle packages,functions,views,tableetc .
for example
All variables with number datatype should start with N_ and charcter type with C_ in all my tables & views definition.Hungarian notation is dead. It has no place in modern programming languages. Has no place in PL/SQL. Anit ain't just me saying that.
+"Encoding the type of a function into the name (so-called Hungarian notation) is brain damaged—the compiler knows the types anyway and can check those, and it only confuses the programmer."+
Linus Torvalds
+"No I don't recommend 'Hungarian'. I regard 'Hungarian' (embedding an abbreviated version of a type in a variable name) a technique that can be useful in untyped languages, but is completely unsuitable for a language that supports generic programming and object-oriented programming—both of which emphasize selection of operations based on the type an arguments (known to the language or to the run-time support). In this case, 'building the type of an object into names' simply complicates and minimizes abstraction."+
Bjarne Stroustrup
2) Conditional Statements
IF (x = 1) --> Wrong
IF ((x = 1) AND (y = 2)) --> wrong
IF x = 1 AND y = 2 --> RightIdiotic rules. The simple rule should be readability of code. Not how many brackets to use, and when not to use brackets. Minute standards like detracts from designing and writing proper code, fast and efficiently.
There are many more rules (which is specific to ur application) which can be incorporated in the tool, there by giving consistency ,readability and easy to maintain for the developers.Bull. The more rules there are, the more difficult it becomes for programmers to write code. As it is no longer about writing readable and flexible and performing code - it is about double checking every single statement line against a huge list of rules about do's and dont's. It is not about getting the programmer focusing on solving the problem - it is about distracting the programmer with a complex and large rule list of how the code should look like.
Sorry - but this rubs me the wrong way. In that environment, I would be the first to tell you to shove your "+many more rules+".
I've developed systems in over a dozen languages over the years. I've seen all kinds of standards. The standards that work are those that are short, simple and sensible. Hungarian notation is not sensible. Writing reserved words in uppercase is not sensible. Dictating how brackets should be used is not sensible.
What is sensible is using the de facto naming standards in use today - as per .Net Guidelines for Names (MSDN) and Code Conventions for the Java Programming Language.
What is sensible is providing guidelines like bulk collection needs to be justified (not possible using SQL only) and use the limit clause to manage memory spend on the collection variable. Or how packages need to be used to modularise code, providing a public interface and private implementation.
Standards are about creating a sensible and easy-to-use framework for writing code. It is not about creating a list of a 1001 rules that a developer needs to remember and adhere to, as if the developer is now part of some weird religious sect that has rules for every single aspect of human behaviour.

Similar Messages

  • Peer reviews,coding standards and audit norms

    hi,
    what is meant by peer reviews, coding standards and audit norms in development project of ABAP.
    regds:
    balakrishna.

    Hi Bala,
    Peer review: The code which is written by the developer will be cross checked by one of the team member if the code fulfills the technical spec or not.
    Coding Standards: In a project the client and the software service provider will have an understanding regarding naming convention of all variables, constants, internal table, select-options, etc.
    Example: if it is a select-options the field should be named with the first letter S_ then you will write S_Matnr, and for variables you have to follow V_ then V_maktx.
    Audit norms: Audit norms will depend on the organization so it does not have any standard answer.
    Regards,
    Lakshmikanth

  • Oracle Data Profiling and Data Quality

    Hi,
    How to create metabase for Oracle Data Profiling and Data Quality.Is metabase and repository are same.

    Hi,
    You can create a metabase in the Metabase Manager:
    - Expand Control Admin
    - Click on Metabases
    - in the Metabases window, right-click on the white area and select Add...
    - go through the wizard to create your metabase
    This is documented in the ODQ/ODP tutorial (http://www.oracle.com/technology/products/oracle-data-quality/pdf/oracledq_tutorial.pdf) and in the Documentation (in Metabase Manager or Oracle Data Quality go to Help and then Manuals).
    Thanks,
    Julien

  • Oracle Forms Messages and  Codes

    Dear friends, will you, please, tell me, where can I find "Forms messages and codes manual"?

    <p>In the documentation, my friend.</p>

  • Correlation between compliance standards and code audits

    Hi,
    can anybody map (any of) the following compliance standards to (secure) coding requirements?
    1. FDA
    2. Basel II
    3. SOX
    4. Solvency II
    5. HIPAA
    6. EUROSOX
    Basically, I am looking for legal requirements to conduct code reviews and the kind of code tests must be performed.
    For PCI/DSS this is straight-forward as it is explicitly written in the standard.
    Any ideas are welcome, so we can try build up a knowledge-base for this topic.
    Thanks,
    Andreas

    Hi Michelle
    where can I see how the two buttons were handled in code?You can open the Controller of the page & check in that how these buttons are handled there...
    Generally,
    pageContext.getParameter("btnId");//btnId is the ID of your Save/Apply Buttonis used for capturing the button.
    AJ

  • Coding standards and naming convention

    Hi,
    Can anyone please provide any documentation available for BPM development.
    Would really appreciate for any pointers.
    Edited by: 905033 on Oct 23, 2012 2:54 AM

    we are using Oracle BPM 11.1.1.3

  • Any standard transaction code to check Batch Creation Date of a batch?

    Please let me know if you know any transaction to check batch creation date of a batch , preferably with valuation information.

    Hi
    You can try with MB5B. It wont give batch creation date, but it will give posting date (most of the cases posting date may be batch creation date)
    Otherwise you can try to pull the information at table level MCHA-ERSDA and develop query.
    regards
    Srinivas

  • Good Practices and Code Conventions

    Hi All,
    What are the good practices in java? Are there coding convention to be followed?
    I would like to improve my coding standards and write better code. Please help me.
    Thanks
    Diana

    Diana12 wrote:
    Then how to make it excellent?Are you serious? Do you expect us to give you a 2-line summary of how to make "excellent" code?
    It takes some time to learn to write excellent code and it can't easily be summarized into 1-2 sentences. If it could, then it would be much easier to learn (that would be nice!).
    Experience, making mistakes, realizing they were mistakes, not making the same mistakes later on. Having your code criticized by someone who writes better code than you. That's how you learn to write excellent code.
    Write simple code, keep it clean, make each method do one thing, write code that doesn't need documentation, document where you must, adhere to the open-close principle, adhere to the KISS principle, adhere to the YAGNI principle, ...
    Grab [The Pragmatic Programmer|http://www.pragprog.com/the-pragmatic-programmer] and read it. Then read it again. Do some more exercises and read it a third time.

  • Differences between standard and enterprise ??

    Hello everyone,
    Where could i find an exhaustive list of all the differences between Oracle 9i standard and Oracle 9i enterprise. Recently, i wanted to use a function based index but it is forbidden in Oracle 9i standard... Are there a lot of other "surprises" like this one ?

    This http://otn.oracle.com/products/oracle9i/pdf/o9i_family_features.pdf is a reasonably exhaustive list of the feature differences between Enterprise and Standard. I believe it is complete, but can't guarantee it.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • RAC Differences for Standard and Enterprise Editions of 10g

    Are there any differences between RAC implementations for Oracle 10g SE and RAC option for Oracle 10g Enterprise Edition (except CPU numbers limitations and CRS&ASM necessity)? I heard some buzz what RAC for SE have only HA abilities.

    We havent seen any differences. 10g is still 10g.
    One noted requirements is for SE support you must use the ASM software. Functionally the RAC portion appears to be the same ..

  • Is a JSP Tag Library providing Oracle Financial look and feel available

    We are going to use Oracle Financial as part of our future application.
    That is why other parts of it (which we plan to develop using JDeveloper)
    have to have the same Look and Feel.
    Is a JSP Tag Library that provides Oracle Financial Look and Feel available?

    Oracle Applications use BC4J, UIX, and JDeveloper.
    The UIX framework implements the Oracle "Browser Look And Feel" (BLAF) that our Oracle Applications self-service applications use.
    The UIX JSP tag library lets JSP developers do the same.

  • How to know whether database(oracle) is up and running at OS level

    how to know whether database(oracle) is up and running at OS level...!!!

    depends on the O/S you are using, Unix or Windows? I would use Korn shell script to monitor the Oracle background process and scripts to check of Oracle is accepting connections.
    This UNIX command will show the number of processes for your instance:
    ps -ef|grep $ORACLE_SID|grep -v grep|grep -v ora_|wc u2013l
    In Windows I would look into services.msc

  • Background job for Standard (T-code F.80) and Background Job via Submit (for same standard program) provides separate spool layout

    Hello Experts,
    I am using SUBMIT Program to execute a standard T-code (F.80).
            SUBMIT sapf080 WITH SELECTION-TABLE rspar
                                         AND RETURN.
    When I execute the program in background and compare it with F.80 and execute it in background too, spool layout for both are different.
    For F.80, It is more detailed with every info like doc number, company code and fiscal year with messages, but for my program only messages are displayed in the spool which is getting unconvinient as I don't know for which document number that message was generated.
    Can you please suggest why am I getting 2 different spool layouts for the same program executed in 2 different ways.
    Thanks,
    Ankit Khanna

    Hello,
    Thanks for your replies.
    I have added a list option along with SUBMIT statement to get similar spool layouts.
    Below piece of code will solve the issue.
              DATA list_tab TYPE TABLE OF abaplist.
            SUBMIT sapf080 WITH SELECTION-TABLE rspar EXPORTING LIST TO MEMORY
                          AND RETURN.
            CALL FUNCTION 'LIST_FROM_MEMORY'
              TABLES
                listobject = list_tab
              EXCEPTIONS
                not_found  = 1
                OTHERS     = 2.
            IF sy-subrc = 0.
              CALL FUNCTION 'WRITE_LIST'
                TABLES
                  listobject = list_tab.
            ENDIF.

  • Standard Preview size/quality Lightroom 1.1. (how and what)

    I'm working on a Macbook pro, with hi-res 17" screen 1920x1200. In most manuals, tutorials etc. it says that you can "set the standard preview size fitting for your screen".
    I'm looking for some more background info on the standard preview, to decide which setting to use(if somebody has other criteria to keep in mind please do say so):
    1) What is the difference in size of files for the different combination of options (pixel/quality). Does somebody have a list.
    2) What is the actual difference in the quality options
    3) In which modules is the preview size used (also in development and slide show?)
    4) Are they also used to generate the thumbnails from? If so, does a higher standard preview size reduce the performance in library mode because it as to shrink bigger files for these thumbnails?
    5) what happens if I would use the smaller, let's say 1440 preview and then decide to view the picture full-size, in library or slide show
    6) What would be the size (in pixels) on the normal main window in lightroom on my 1920x1200 screen. if it is about 1440 (might take that one)
    Last question of course: What standard preview size / quality should I use on my 1920x1200 screen??
    Thanks in advance for all your thoughts!

    As to standard preview size and quality, try 1440 and 1680 and Med and High quality and see what you like best. You will probably choose 1680 size for your screen running at 1920x1200. That will let you run LR full screen where the image size will be close to the full size of your monitor. You can try 1440 too but I doubt that you will see any performance improvement. I have tried both sizes on my 1600x1200 monitor and I see no difference in quality or speed.
    Try both Med and High quality and see if you notice any difference in your preview quality or speed. High will make your preview folders bigger which might be a factor if you have limited hard drive space.
    Don't think preview size has anything to do with thumbs. Standard previews are separate from 1:1 previews so you can always zoom in and LR will generate a full size preview.
    In short feel free to experiment with various settings in LR. Good way to learn the program and you will know what works best on your particular computer.

  • Data objects and code objects in oracle application

    Hi,
    can any one please help me out with following question?
    1. what are data objects and code objects in oracle apps and why is that difference?
    2. How does the objects gets created in Oracle Applications, like during the installation which part is responsible for creating objects and after the installtion later point of time, how the new objects gets created in oracle applications?
    3. what are the ways to find out if my 11i application is OATM enabled ?
    Thanks in advance

    Hello,
    I managed to find answer for question 1, yet to find answer for 2 and 3.
    Answer for question 1 --
    Data objects : store and access business data (tables, indexes, sequences, index-organized tables, etc);
    Code objects : process data objects but them don't contains business data (functions, procedures, packages, views, synonyms);
    Now, here i have a question - under which objects queues are considered ?

Maybe you are looking for

  • How can i get the random values from database?

    Hi, i want to get random values from database. I try my best find no solution plz give solution in either sql query or java method. thanks in advance.

  • Probook 4510s,I have lost sound for no apparent reason.

    I have lost sound on my ProBook 4510s running Windows 7 pro. for no apparent reason.All checks say sound card is working correctly.I have downloaded latest drivers and installed them and tried all possible solutions I have searched,all to no avail.An

  • Solution Manager's system landscape

    Guys, I have one very basic question. I believe I read somewhere that we need at least two systems for Solution Manager, DEV environment and PRD environment. Is this correct? If so, how do we transport the SMSY and Solution definitions from DEV to PR

  • CS3 Check Spelling dialog problem

    There seems to be a bug with the Dialog box for Check Spelling. If you right click on the blue bar at the top of the dialog and choose Minimize or Maximize. The dialog box will always keep that setting. I have not been able to find a way to Restore t

  • Season Out of Order

    I am having a weird issue. The seasons of one show in my iTunes appear out of order. It only happens to one show, all the other display fine. I have been through the tags and everything is tagged correctly (right title, year, season, episode, etc). I