Jump to content

question about reusing-copying pasting code


silverglade

Recommended Posts

hi, i have a registration form, and i have to do a regular form. the problem is, im not good enough to code the regular form from my head, and the registration form is already finished so i started copying and pasting parts of the registration into the form.php page. and im just getting a negative feeling about it. do you think i should just type the registration.php form over and over enough so that i have it memorized  so i can code the regular form  totally from my head without looking at other code? any advice from the gurus greatly appreciated. thanks. derek

No. Not at all. It's true that most experienced coders can code straight from their head, but the single most useful skill you can have is knowing how to find the code you want. You can't memorize every single piece of code, that's why we have a manual. But once you make enough projects, you remember them without having to parrot learn the code. Remember, a registration form is just a login form with differences, which is a comment for with differences, which is a blog post form with differences. Any form that enters things in the database is essentially the same, so as long as you do a few good sized projects, you'll get there

No. Not at all. It's true that most experienced coders can code straight from their head, but the single most useful skill you can have is knowing how to find the code you want. You can't memorize every single piece of code, that's why we have a manual. But once you make enough projects, you remember them without having to parrot learn the code. Remember, a registration form is just a login form with differences, which is a comment for with differences, which is a blog post form with differences. Any form that enters things in the database is essentially the same, so as long as you do a few good sized projects, you'll get there

 

totally agree with Garethp

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.