Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

the-pi-guy

The problem isn't the connecting, the problem is trying to find when you're missing one.  A lot of time I spend helping my students debug their programs have to do with a missing bracket.  Having them lined up let's you know what's missing since they're lined up, you can just follow down and see where it's missing.
You can do the same thing with the other format.  You just match it with the start of the line that connects it.


Code: [Select]

public static void main(stuff){
      for(stuff){
             if(stuff){

             }


      }
}


A lot of IDEs still tell you if one is missing.  Not always accurately, albeit.