Welcome Guest, Not a member yet? Register   Sign In
name conventions in CodeIgniter are not mainstream?
#1

[eluser]ajsie[/eluser]
i had a look at the user guide's style guide and realized that they are not following the mainstream.

often you use camelcase to name your variables, classnames and methodnames. CodeIgniter says you should use underscore.

often you type a function like this:

function foo($bar) {
// ...
}

they say you should do it like this:

function foo($bar)
{
// ...
}

i wonder if these are best practices since they go against others, eg. java/javascript conventions, which are quite mainstream.

share your cents!


Messages In This Thread
name conventions in CodeIgniter are not mainstream? - by El Forum - 04-11-2010, 05:43 PM
name conventions in CodeIgniter are not mainstream? - by El Forum - 04-11-2010, 06:24 PM
name conventions in CodeIgniter are not mainstream? - by El Forum - 04-11-2010, 06:28 PM
name conventions in CodeIgniter are not mainstream? - by El Forum - 04-11-2010, 06:43 PM
name conventions in CodeIgniter are not mainstream? - by El Forum - 04-11-2010, 09:07 PM
name conventions in CodeIgniter are not mainstream? - by El Forum - 04-12-2010, 02:52 AM
name conventions in CodeIgniter are not mainstream? - by El Forum - 04-12-2010, 03:01 AM
name conventions in CodeIgniter are not mainstream? - by El Forum - 04-12-2010, 03:53 AM
name conventions in CodeIgniter are not mainstream? - by El Forum - 07-12-2011, 01:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB