Code Generators

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Mixcreations
Forum Newbie
Posts: 2
Joined: Thu Jul 22, 2010 9:29 am

Code Generators

Post by Mixcreations »

why learn php when there's these php generators? Surely i must be wrong, but please advise me as im on the tutorials @ the moment.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Code Generators

Post by Eran »

If code generators could build everything, you wouldn't need software developers. And yet, those are still in high demand
atsa1
Forum Newbie
Posts: 20
Joined: Wed Dec 09, 2009 9:11 am

Re: Code Generators

Post by atsa1 »

You can always use premade script in PHP but every webpage is different and uses custom variables. This means you have to modify it anyway.

Script is generated with default variables: But you want to use variablenames that suit you. You don't want to mess around with: $tomato when you deal with beer. So you need $beer variable.
Mixcreations
Forum Newbie
Posts: 2
Joined: Thu Jul 22, 2010 9:29 am

Re: Code Generators

Post by Mixcreations »

So you feel this answer i recieved from my tutor is spot on:


Code generators can only do so much so you may need to tweak the generated code, also people need to program these generators therefore they need to learn php. Also if the code breaks or an update changes how the code works, you will need to be able to provide some form of patch.

A good web designer will always do his/her own code, at the end of the day, the code is only as good as the programmer, so if the programmer has bad habits that affect security etc then the code will be riddled with these errors.

As a programmer you would be able to spot and fix these errors but as a programmer you would likely develop your own code.

// I should do the code myself?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Code Generators

Post by Eran »

As a programmer, you should be able to program. There are very few scenarios in web development where code generation is a good idea
Post Reply