0

I am always not able to follow Netbeans default coding conventions like the following

Function should be N lines only

Method Length is N Lines (M allowed)

Warning: Do not Access Superglobal $_POST Array Directly

// Using this
$username = filter_input(INPUT_POST, 'username');

// Instead of this
$_POST['username'];

And many more.

It seems really hard to follow all of the coding conventions. So, what can I achieve if I follow it 100 %?

Cary Bondoc
  • 161
  • 1
  • 10

1 Answers1

3

If you do not have your own coding standards in place, then either write it, or adopt one. I do not know what netbeans coding standard is, so I can not say whether it is good or bad.

This answer explains why a coding standard is impotant, and as Uncle Bob said :

  1. After the first few iterations, get the team together to decide.

meaning that you should get a standard, and change it acording to the needs of your team.

BЈовић
  • 13,981
  • 8
  • 61
  • 81