Java Style Guidelines?

Where can I find an article that talks about coding conventions.
e.g.
if (statement) {
if (statement)
}

I'm a little fuzzy on breaking up this line
System.out.println(uniformResourceLocator.get (Integer.parseInt(s.substring(4))));
Something like this maybe?
System.out.println(uniformResourceLocator.get
(Integer.parseInt(s.substring(4))));
Or this?
System.out.println(uniformResourceLocator.get
(Integer.parseInt(s.substring(4))));

Similar Messages

  • Java style and coding conventions

    Hello All,
    Most of my programming experience is in Java, and as such, I try to conform to the style and coding conventions that are used in all of the Sun tutorials, and to my understanding, the specification. I'm enrolled in my final semester of a bachelor's of computer science and engineering, and one of my courses is "Software Engineering". Our course assignment is to make a website, written in PHP. I don't really care for PHP, so I volunteered for the Code Quality Assurance team, thinking, I'm fairly consistent when it comes to adhering to the Java conventions, it should be reasonable to determine similar conventions for this project, and give my classmates pointers on how to improve the readability and layout of their source listings.
    The problem is, my professor, absolutely, whole-heartedly hates Java. He despises everything about it. For example, I sent him a source listing that I felt was well written, readable, and adequately documented. Some of the things that I was "doing wrong" were:
    1. Naming Conventions
    All of the Classes were first-letter capitalized, subsequent first-letter of each word capitalized. FormLayoutManager was one particular example. All instance or primitive identifiers were first-letter lowercase, subsequent first-letter capitalized, so an instance of FormLayoutManager could be formLayoutManager, or menuLayoutManager, etc. All constants were all capitals, with underscores separating each word. MAXIMUM_POWER. All methods were first-letter lowercase, subsequent first-letter capitalized, showLoginComponents().
    My Professor insists that the convention I (and most of the Java community as far as I can see) is terribly unreadable, and that all instances variables and method names be first-letter capitalized. I tried explaining that this sacrifices the ability to easily distinguish between a class type or interface, and an instance, and was ignored.
    2. Declaration and Initialization
    Also, supposedly declaring a local identifier and initializing it in the same line is some sort of abomination of everything sacred in programming. So I found myself constantly doing things like
    public String info() {
      StringBuilder info;
      info = new StringBuilder(512);
      // append a bunch of information to info
      return info.toString();
    }3. 80 Character line widths
    He wants me to break any statement that is over 80 characters in width into multiple lines. I know a long statement wrapping around in your editor is a irritating, but 80 characters, seriously, who doesn't have an editor that can't handle more than 80 characters on a line?
    4. this and argument names
    In most of my constructors that accept arguments, I would usually do something like
    public Student(String name, int age) {
       this.name = name;
       this.age = age;
    }Which he thinks is horribly confusing, and should be
    public Student(String n, int a) {
      name = n;
      age = a;
    }5. singular collections / arrays identifiers
    I had something like:
    String[] keywords= new String[] { "new", "delete", "save", "quit" };
    for (int i = 0; i < keywords.length; i++) {
       System.out.println(keywords);
    And he insisted that "keywords" be renamed "keyword", as in, the i-th keyword, which I think is kind of stupid because the array is an array of keywords, and having a singular identifier makes that less obvious.
    It's driving me crazy. It's driving everyone else in the class crazy because they're all mostly used to Java style conventions as well. I've tried pleading my case and I can't even get him to acknowledge the benefits of the "alternative" styles that I've used in my programs up to this point.
    Have any of you had to deal with either professors or bosses who have this type of attitude, whether it be towards Java or any other language? This guy has been involved with computer science for a while. I think he's used to Pascal (which I know nearly nothing about).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    You will find people who will disagree about this stuff all the time. I had a similar course and we read "Code Complete" which offers some style suggestions. Fortunately, my professor was intelligent enough to allow a discussion of these styles and I had a chance to argue against the "bracket every if statement" idea and other little things I didn't agree with. It was insightful conversation, rather than a "I'm the professor, you're a student, so listen to me".
    Here's the important part: It doesn't matter what the standard is, only that there is one.
    Unless I misunderstand, he allowed you to take on the responsibility of QA, so it is ultimately your decision. If the project suffers because of poor quality of code, it will be on your head. If, on the other hand, you give in to him and use a style that makes no sense and the project suffers because of poor code, it will still be on your head.
    So he really has no position in this because he is not a stakeholder in this decision. Tell him that this is your responsibility and you need to make the choices that are right for your group, not right for him. If he's teaching you anything that can reasonably be called software engineering, he should understand that. Otherwise he's just teaching out of a book called "Software Engineering" and doesn't know anything (or so it seems from this small window you've given us).
    caveat: If he's reviewing the code and he's particularly snarky about his "styles", you might want to consider giving in to his demands for the sake of your grade. Sad reality.

  • Converting a Java style date into useful format

    If I am calling a web service that returns a Java style date as a numeric value, such as 1177651563767 (milliseconds since 1 Jan 1970), how can I display this as a human readable date (hh:mm:ss dd-mm-yyyy? I have looked at the <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/40/a228173435437394f54c56de571ca4/frameset.htm">SAP help pages on date functions</a> and the
    <a href="https://wiki.sdn.sap.com/wiki/display/VC/DateandTime+Formats">wiki page on date and time formats</a>, but neither seems to help.
    My Java date is a numeric.
    Thanks

    Hi Michael,
    you can call the webservice with another webservice or an RFC and then use Java or ABAP to convert the value into the right format. My opinion is as you mentioned that there is no way with VC. Maybe you can use a time function (DADD as it is described <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/40/a228173435437394f54c56de571ca4/frameset.htm">here</a> and sum up to 01/01/1970 your [value in seconds]/60 this should work, but I never tested it.      
    Maybe this works, but this isn't a good solution anyway.
    Best Regards,
    Marcel

  • [DONE] Suggested addition to Java Package Guidelines

    In the Java Package Guidelines there are shell scripts that run the java jar or class file. Shouldn't the $@ be added as a parameter, to feed parameters to the java application?
    For instance, I wrote the following for Logisim:
    #!/bin/sh
    "$JAVA_HOME/bin/java" -jar '/usr/share/java/logisim/logisim.jar' $@
    Last edited by Marcel- (2014-04-11 10:32:43)

    If you change that, I suggest to add an "exec", too. We don't need a useless shell in the background, right?
    #!/bin/sh
    exec "$JAVA_HOME/bin/java" -jar '/usr/share/java/logisim/logisim.jar' $@
    Incidentally, I'm not sure what the current policy on hashbangs is (#!/usr/bin/sh?, indifference?).
    I believe "/bin/sh" is required by POSIX and must provide a POSIX compliant shell, so /bin/sh is the portable hashbang. If you want bash, usr /usr/bin/bash I guess.
    Last edited by progandy (2014-04-09 23:14:10)

  • Java style in a document

    this may be the wrong place to ask so just tell me to move on if it is.
    but how would i go about writing java in word 2007 to say how could a change the formatting style
    to be more helpful like making tab 3 spaces long and not capitulating my words,
    if thats hard to understand i basicly want my word to do the useful things like in BlueJ. all the auto formatting things.

    Lostone wrote:
    this may be the wrong place to ask so just tell me to move on if it is.
    but how would i go about writing java in word 2007 to say how could a change the formatting style
    to be more helpful like making tab 3 spaces long and not capitulating my words,
    if thats hard to understand i basicly want my word to do the useful things like in BlueJ. all the auto formatting things.MS Word is not an appropriate editor for Java source files. TextPad, et al., offer syntax highlighting and formatting help for Java source files if you're looking for a simple editor. For more advanced IDE capabilities, NetBeans and Eclipse seem to be the most popular. But MS Word is right out.
    ~

  • Java-style buttons in Oracle Forms 6i

    Hey there,
    Does anyone know how to create buttons with curved edges in Oracle Forms 6i? Something like those Swing components in Java?
    Thanks
    Al

    Alex,
    for Forms on the web you can use PJCs. The Forms 10g demos (http://download.oracle.com/otn/other/general/forms10gdemos9_0_4_2.zip) and the Forms 9i demos have a sample Java class for this. The same solution should work in 6i as well.
    Frank

  • String "&nbsp" crap in 'Java' style code post

    <mx:Image xmlns:mx="http://www.adobe.com/2006/mxml" initialize="init()">
         <mx:Script>
              <![CDATA[
                   public function init():void {
                        this.addEventListener(Event.COMPLETE, loaded);
                   private function loaded(e:Event):void {
                        this.width = this.contentWidth;
                        this.height = this.contentHeight;
              ]]>
         </mx:Script>
    </mx:Image>
    Let's see if this bug repeats itself... there should be &nbsp strings in the above pasted text instead of spaces (now, watch it work correctly this time..).  Doing an EDIT of the post replaced them with spaces when I originally posted.  So to insert readable 'Java' syntax code, I guess we have to post and then update the post to remove the Jive droppings that this crap forum inserted. (pathetic, Jive...pathetic)

    Kath-H wrote:
    I'm sure they haven't really thought about it. I've thought for a long time that users here are not typical Jive users. At all. Adobe didn't think this through when picking new forum software.
    They didn't think anything through.
    Jive was selected for its pretty face and has totally failed to provide the forum experience needed for a user-to-user support service.
    Dual log-in was decided upon because it seemed like a good idea, but wasn't.
    I could go on, but would rather not become another Ansury or Jhabrix.

  • Does it give any java parser for java programming guidelines?

    i've got a parser for c/c++ programs (codecheck from abraxas) from 1996, i think. but i didn't find anyone for java. does anyone know where from i'm able to download one?

    http://www.experimentalstuff.com/Technologies/JavaCC/

  • Output in java style

    Hi Dear,
    i am new to this forum and ebs ,i have a question that can i use
    System.out.println("message to be displayed")to display a message(in CO).

    Hi,
    System.out.println("message to be displayed")The above will print the vaue when u will run the page locally from Jdeveloper But it wont print any value when u will move the same to the server. You need to replace above line with the below one to get the value printed in the Log.
    pageContext.writeDiagnostics(this,"message to be displayed"+num,2);Regards,
    Gyan

  • Telnettin' Java-Style

    Hello!
    Ok, here's a question, perhaps a dooozee for U ... ;-)
    I'd like to telnet a server, in the terminal, that's easy, enter
    "telnet my.server.org 1400" and you're in, type user and pass and rummage around. However, you are INTO the telnet session, entering commands. I'd like to use something like this:
    strCommand = new String("telnet 192.175.2.25 145");
         try
              Scanner scan = new Scanner(Runtime.getRuntime().exec(strCommand).getInputStream());
                   while(scan.hasNextLine())
                             System.out.println(scan.nextLine());
         catch(RuntimeException e)
                   System.out.println("Runtime exception" + e.getMessage());
         catch(Exception e)
                   System.out.println("Runtime (other) exception " + e.getMessage());
    That's all very nice if there's only one command to give and the reveiver (the telnet server in this case) does the rest, but in this case, more commands are to follow...
    Any hints?
    Tnx!
    Thor
    BTW, I dev on Linux, if it's important to know...
    Edited by: T01dev on 24-jan-2009 16:40 : wrong title

    Thanks 4 the help, people, the stake holder has (for now) pulled the plug on this one - it seems to be a "global crisis" thing with them...
    Eh, so what, big tnx!
    On to the next project!
    Thor

  • Style guideline advice needed

    "Make the block diagram window no larger than the screen size. " 
    ... I understand the idea, but this is rarely practical in the VI's I am writing:
    I am good at compressing my BD size with case structures, and keeping blocks close together. 
      but my main focus is always keeping the BD flowing left to right, parallel actions: Top to Bottom. 
    I am currently working on a user interface for machine control,  it will have 5-6 tab pages each with a different set of controls and indicators, which equates to at least 60 I/O s that need to be on the interface.  I can integrate many of them into SubVi's but this is never practical to me when I know the sub-vi will have more than 6 Inputs or outputs(12 connections on the preffered VI connection diagram)
    Any thoughts??
    cheers,  Kevin

    I haven't seen your code, but if you are using a case for each tab, you can also put the controls specific to a tab inside the case structure for that tab on the block diagram.  In other words, if "Boolean 6" is only used on the 6th tab, then you can put Boolean 6 inside the case for the 6th tab on the block diagram.  This way you don't have swarms of inputs into the entire structure while only using some in each case -- inputs would only appear in the case for which they are relevant.
    Also, don't forget about the handy "Create SubVI" tool.  It's on the Edit menu of the block diagram -- simply drag a selection box around the applicable code and select Create SubVI.  It doesn't reduce your I/Os, but it will save you the trouble of having to form SubVIs, choose a connector, and specify all the connections manually.  It is also handy if your code primary block diagram is becoming bloated.
    Hope that helps.
    Message Edited by NI David on 06-28-2007 10:57 AM
    David C
    Applications Engineering

  • Help with Java program and PKGBUILD

    Hey guys, I'm fairly new to Arch and very new to making packages. I write a lot of my stuff in Java, and I know that Java is normally a pain to package on Linux systems. I have had a good look at the Java Packaging Guidelines, http://wiki.archlinux.org/index.php/Jav … Guidelines and I see that it says about not bothering compiling from Java source and just provide the JARs (am I correct?). So my question is, if I were to make a PKGBUILD for my Java based program, would the build() block just basically create the folders in the filesystem and move the content (JARs etc) to the folders? And then create the shell script in the appropriate location?
    Forgive me I have the completely wrong idea...
    Many thanks

    Hey guys, I'm fairly new to Arch and very new to making packages. I write a lot of my stuff in Java, and I know that Java is normally a pain to package on Linux systems. I have had a good look at the Java Packaging Guidelines, http://wiki.archlinux.org/index.php/Jav … Guidelines and I see that it says about not bothering compiling from Java source and just provide the JARs (am I correct?). So my question is, if I were to make a PKGBUILD for my Java based program, would the build() block just basically create the folders in the filesystem and move the content (JARs etc) to the folders? And then create the shell script in the appropriate location?
    Forgive me I have the completely wrong idea...
    Many thanks

  • Style: reducing large diagrams, clearing wires, using subvis

    I've looked at the style guidelines by NI and read as many posts about LabVIEW style as I could find, but I'm still looking for more guidance on making clear, manageable diagrams for large programs.
    Any thoughts, common practices, or habits regarding this would be greatly appreciated, I'm interested to hear how each one of you styles your programs.
    I have not really developed any solid stylistic practices (beyond small vis), but if you don't want to say your own style guidelines, maybe could you respond to a couple of my thoughts on the subject that have some semblance to questions: When several parts of a program depend on the same data and they're big blocks of code (so they're quite separated on the diagram), do you just have long wires connecting them or do you make a local variable (and say "forget about it" to the memory waste)? In a situation where you have a large block of code that depends on many small pieces of data from the front panel, do you make it a subvi with lots and lots of inputs or do you leave it as a slab on the diagram? And, what about connecting those last two questions...in a situation where you have many pieces small pieces of data coming from files or controls and they go to several parts of the main program (if you make them subvis, they'll have an abundance of inputs; if you leave them on the main diagram, it's confusing as anything).
    If you have a question about style too, post it here I'd like to see other people's ideas.
    Message Edited by kaufman on 07-12-2006 02:44 PM
    Message Edited by kaufman on 07-12-2006 02:45 PM

    Talk about coincidence! I logged on to post this exact topic!!
    I do my best to group my controls/indicators closest to where I'm using them the most in my code. I know that most people say you should write your code to fit to the screen as much as possible, but with large projects, I don't find it all that easy. One of the projects I'm currently working on sits on 2 monitors, where I have a tab control on each one. The first tab control has 5 pages and the second has 9, so you can only imagine the number of controls within all those pages put together! And then the code (at least on the PC) does a lot of interface stuff.
    On the other hand, the code running on the RT system does kind of fit into that philosophy. The code is more modular, fits into subVIs, etc.
    But when you're creating an entire application (displays, setup files, automatic testing, charts, etc.), all those controls and indicators alone take up enough space on the diagram.
    Do minimize local variables and property nodes of course, and use subVIs, but also use them wisely, since calling them also adds to resource usage.
    If you've got a lot of controls that are going into the same function/subVI, consider a cluster.
    I'd love to hear how others manage large projects. Thanks for the post!Message Edited by Sima on 07-12-2006 03:04 PM

  • Old Mainframe Programmer has java question....

    I've looked at other formum suggestions however, I'm still having problems. What should I try specifically? I notice trying to use
    classpath in autoexec.bat file under win98 doesn't work. Therefore, I
    set classpath in my manifest file. Is this practical?
    1.
    javac CdCorp.java
    (compiles no errors)
    2.
    Execution of manifest file
    c:\jpgm\src\classes>jar cfm comp.jar comp.mf classes \jpgm\htm\.htm \jpgm\images\*.jpg
    note: all class files and jar file are stored under classes directory.
    3.
    c:\jpgm\src\classes>Appletviewer index.htm
    started applet not initialized
    NoClassDefFoundError: CdCorp (wrong name: src/classes/CdCorp)
    Environment:
    Content of manifest file: comp.mf
    Manifest Version: 1.0
    Main-Class: CdCorp
    Name: src/classes
    Class-Path: c:\jpgm\src\classes\comp.jar
    Structure of java Program: CdCorp.java
    package src.classes;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.net.*;
    import java.util.*;
    public class CdCorp extends Applet implements Runnable
    //instance variable
    boolean stopFlag;
    Image img[] = new Image[MAXIMAGES];
    int i=0;
    int choice = 0;
    int tracked;
    int state;
    int curX=250, curY=340;
    int mouseX = 0;
    int mouseY = 0;
    int pos = 0;
    int sw1=0;
    MediaTracker tracker;
    static final int MAXIMAGES = 20;
    static final int MAXITEMS = 20;
    String msg= " Providing Information Technology Solutions " +
    String msgm = "";
    String name[] = new String[MAXIMAGES];
    String url[] = new String[MAXITEMS];
    String target[] = new String[MAXITEMS];
    String urlPrefix, urlSuffix;
    Start of Html logic index.htm
    <html>
    <applet codebase="classes" code="CdCorp" archive="comp.jar" width=800 height=600>
    <param name="img" value="cdmenbk+cdmenbk2+cdlogo+cdlogo1+cdhp1+cdhouston+cdcitynight+
    cdmencmpny+cdmenservice+cdmenexpert+cdmenjpost+cdmenmisc">
    <param name="urlPrefix" value="http://comp-data.home.att.net">
    <param name="urlList" value="cdindex+cdoffice+cdcontacts+cdleaders+cdteam+cdcorpsummary+
    cdjobposting+cdinf-main+cdspp+cdnm-main+cdsai+careers+cdnews+cdhelp+cdpart+
    cdcorpov">
    <param name="targetList" value=""_self+self+self+self+self+self+self+self+self+_self+
    self+self+self+self+self+self">
    <param name="urlSuffix" value=".htm">
    </applet>

    The manifest classpath refers to other resources that your code needs, not to your classes themselves.
    http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html
    It doesn't make sense to have a classpath in a jar file that starts with c:\ anyway.
    I think your problem is that you're not referring to the full package name to the class file in your HTML applet tag. You need "src.classes.CdCorp", I believe. Also I thnk that CODEBASE and ARCHIVE attributes were mutually exclusive, though I could be wrong.
    The package name "src.classes" is terrible. "src" is traditionally the name of a directory holding source code. "classes" is traditionally the name of a directory holding compiled classes. Any project would involve both, so they add no info and only confuse people to use in a package.
    Package names should identify your company and the meaning or purpose or name of the project that created the code.
    Please read "The Elements of Java Style" for more info.
    http://www.amazon.com/exec/obidos/tg/detail/-/0521777682

  • Help improve my style and quality of LabVIEW coding

    Hello,
    I am thinking of doing the CLD certification for LabVIEW and have started preparing by reading some literature (code style guidelines, etc.) and also trying to implement the newfound knowledge into my coding habits. I have also read that local variables are bad, and that the best practice is to avoid them.
    However, I am having difficulty implementing all of the material I read about LabVIEW coding into my VIs - which are almost always coded in the same manner as the one I attached. Basically all of the LabVIEW applications I make at my company require reading DAQ inputs, processing the acquired data and doing some control algorithms, which send control signals to DAQ outputs, and writing all of the data to a file.
    I have attached a sample VI (with dummy DAQ subVIs). If you have the time - any ideas, comments, consideration or improvements on all areas of the VI are greatly appreciated and welcomed. I think this will be the best way for me to learn new LV tips and tricks.
    Thank you!
    Attachments:
    LabVIEW coding test.zip ‏375 KB

    Jeff Bohrer wrote:
    OK I've seen worse. (actually not too bad but...)
    Use wire labels especially when you have wires that don't fit on 1 screen
    You show a lack of understanding how timed loops differ from while loops  (event structure in TLoop with DT=0, Elapsed Timer in Timed Loop.   Someday you'll say WTH was I thinking spawing unique execution systems for those
    You could have saved a lot of locals and data duplication by enqueueing data from the DAQ loop to the Write File Loop instead of using a notifier
    Sometimes an Array of Clusters can be a good idea  clusters of clusters of same data type can often be harder to maintain- want to add a new element- maybe test a single point? just init the array of clusters (like from a file perhaps?)  Saves a lot of confusion
    Saving timestamps to file as strings is a pet peeve of mine.  Now how do you graph vs time?  Check out My Idea 
    There is no reason to avoid creating sub-vis and making the Main BD fit on one screen.  I fact it can help to show the code high level structure.
    Straighten them wires!
    Most of your issues would be solved by re-thinking your data structures- A good place to concentrate on to improve.
    Keep Slinging- you'll get there
    Ok, will do.
    Can you explain what the difference is? Or point me to some good literature on this topic? 
    How exactly can you do that? I tried sending data via notifier, but I could not send different data types.
    I do not quite understand what you mean.
    Also, I do not understand what the problem here is. The graph shows data vs time.
    Will try.
    Mark Yedinak wrote:
    OK, I did take a look at the code now. HEre are some additional points to consider.
    Document, document, document. None of your controls or indicators are documented. Also, document your code more to help someone looking at it to actually understand it better.
    Definitely avoid the use of all of the local variables. Thing of a design pattern that separates the processing tasks from the UI. If you have one task handling the UI you really don't need to use local variables.
    Avoid unnecessary bends in your wires.
    Definitely get your block diagram to fit on a smaller screen. These days it shouldn't be larger than 1600x1200 or close to that.
    Modularize your code. Use more subVIs
    You have a classic off by one error in your code. All of your loops use the stop button to exit. However you always check the value at the beginning of the loop iteration therefore you will execute the loop one more time than necessary.
    Avoid unnecessary frame structures. You have a frame structure in the second loop that does nothing for you. Everything down stream of it will execute in the correct order because of the data dependencies. The frame structure serves no purpose here.
    Try to avoid deeply nested case structures. Once I start to see that happening in my code I rethink my logic. At a minimum I would build an array of the various Boolean values and convert them into a number and use that to chose the appropriate case to execute rather than nesting three or more case structures.
    Will do.
    How can I accomplish all the tasks in my application without the use of local variables? I admit, this is the main reason I opened this thread ... because I have tried to imagine a design architecture that would work without local variable, but was unsuccessful. Can someone please explain in detail how to do this on this specific application.
    Will try to.
    I will try, but I make my block diagram to the width of my screen, but vertically I do not limit its size - so I can easily scroll up and down to move around.
    I try to create as many subVI as possible, but only on code that is reusable on other projects. Is also better to have a lot of single use subVIs with every project? Doesn't this add unnecessary overhead and slows the application?
    What would be the correct way to stop the application?
    Ok.
    Ok. I only do your proposed solution on nested case with a depth of at least 4. 3 nested structures were still acceptable for me, but I will listed to your proposal and try to improve on this.
    Thank you all for taking the time to look at the code and writing your comments.
    I already have the CLAD certification, but this was only a test. I think I will be able to try the CLD exam sometime next year, but I have to learn and implement different coding style in my everyday application (at work). With your help I am sure I will be able to accomplish this - reading literature is one thing, but actual projects are another.

Maybe you are looking for