u/irememberdigg - 2 Archived Voat Posts in v/programming
u/irememberdigg
  • home
  • search

u/irememberdigg

1 post · 1 comment · 2 total

Active in: v/programming (2)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Git Mirror Sync - A tool to mirror your github projects easily to bitbucket
1 0 comments 07 Jul 2015 16:10 u/irememberdigg (..) in v/programming
Comment on: What do you think is the best programming style?

I'm a big "C Style" fan, which I would describe as exactly what you have posted. It took me a very long time to get used to the "JS" style of

function a(int argc) {
      ...
}

But its growing on me... Now personally I much prefer variables in a camel case style with a description of the type so instead of

int argv;

it would be

int nArgv;

However that makes little sense in a loosely typed language which is why I am now starting to lean towards the GoLang approach of public variables starting with an upper case such as and private being lower then mix-in the type:

var ( 
   string sPhone
   int nAge
)
1 01 Jun 2015 17:51 u/irememberdigg in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.