Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

BSD or K&R?

  • 06-04-2010 8:16am
    #1
    Closed Accounts Posts: 5,482 ✭✭✭


    Hi all,

    Im trying to guage which style is used more in this country. A quick reminder of the styles...

    BSD:

    public static void main (String[] args)
    {
    //code goes here
    }


    curly braces are on seperate lines in BSD style

    K&R:

    public static void main (String[] args) {

    //code goes here

    }


    Opening curly brace is put right after the declaration...



    I personally prefer the BSD style. For me it makes readability so much better... Do you find that there is a "house style" in your jobs and do you guys find it hard to adapt when starting off...

    Regards,

    Kid.

    Which coding style do you use? 5 votes

    BSD
    0% 0 votes
    K&R
    100% 5 votes


Advertisement