a typical day in code

Discussion in 'App Development' started by blueraincap, Jun 3, 2020.

  1. kandlekid

    kandlekid

    Add this somewhere ...

    if (pandemic)
    makeBabies();
     
    #11     Jun 5, 2020
  2. #12     Jun 5, 2020
    guru likes this.
  3. southall

    southall

    It is java coding styled but would probably compile fine in C#
    C# recommends Pascal convention for member names, eg books.Read().
    Java would be books.read() which is used in the opening post (camelcase)

    I only point this out as have been porting my Java based ATS to C sharp recently (like today).

    I last programmed with Pascal casing back in 1995. So it feels weird to use that style again.
     
    Last edited: Jun 8, 2020
    #13     Jun 8, 2020
  4. userque

    userque

    I see. Thanks.
     
    #14     Jun 8, 2020
  5. Or books.readBook() as a method name is often recommended to be a combination of a verb and a noun.
     
    #15     Jun 8, 2020
  6. userque

    userque

    You're correct, but they're referring to the casing. C# typically capitalizes the first letter after the period, I guess java doesn't.
     
    #16     Jun 8, 2020