What do you use:?:

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

What do you use:?:

Notepad
3
12%
Editor
22
88%
 
Total votes: 25

User avatar
Hemeleen
Forum Newbie
Posts: 6
Joined: Mon Jul 07, 2003 10:58 am
Location: Groningen, the Netherlands
Contact:

What do you use:?:

Post by Hemeleen »

Hi :D ,
just a question from somebody who doesn’t know a whole lot of PHP and doesn’t need to know a lot, I know…… this you can’t imagine :wink:
I am responsible for organising the website and the automation of the foundation I work for…
:? I encountered a difference of opinion among the people doing the job….

The one swears by using notepad and typing the stuff himself , and the other wants to use a editor with all kind of extra benefits like syntax highlighting….
:?: what do you prefer to use to program with? notepad or some kind of editor?
If you use a different program language I’d like to know too..
:?: And do you split the PHP (or other language) as much as possible into different pages or exact the opposite?
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

Ask him this...
if he was building a house, would he use a stick to pound a nail in the roof or would he use a hammer?

Editors are tools, tools improve efficiency. Note pad is fine for little changes and learning, etc.. but once you get to higher level programming it becomes just a tool in a box of many.
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Re: What do you use:?:

Post by redhair »

Hemeleen wrote::?: And do you split the PHP (or other language) as much as possible into different pages or exact the opposite?
You mean formfields beeing posted to another (php) page.

I usually use one page...so dont post form values to a new php page, but the very same page the form was at (using $PHP_SELF in the form action). This reduces the amount of files needed to accomplish the same thing.

Benefits:
Pages are easier maintable.
Lesser files on the server.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

I'd be lost without syntax highlighting. IMO it's practically essential - makes debugging code MUCH easier.

A single script can start off in one file and then include any number of other php files.

With a big project, it definitely helps to "modularise" code. As an example, you might have an "includes" folder with a config.php which stores various settings (db user name eg) and a common.php which stores various commonly used, user-defined utility functions. These would be included in all scripts.

A large site might have different "modules", with various scripts in module folders. Say you have a forum module: in the "forum" folder you might have different files for different tasks like viewing a topic or posting a message. Perhaps you'll also have some classes etc which are shared between different forum tasks - these will be in separate files which you can include where needed to avoid duplicating code. If they are used in other modules as well as the forum, they'd maybe go into the "includes" folder.
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

McGruff wrote:I'd be lost without syntax highlighting. IMO it's practically essential - makes debugging code MUCH easier.
I agree 110%
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

i learned programming langs first. php is a scripting lang. the first time i programmed it was on a windows based machine and i used notepad. i never used a programming editor before. now i swear by xemacs.

notepad has a limitaton on charactgers per line. programming editors don't.

programming eeditors have an exceptionally helpful thing called syntax highlighting. this helps you figure out if you're using something built in.

programming editors have another extremely helpful tool: parenthesis matching.

try scheme once in notepad. once in a programming editor. and something a bit higher level than "ehllo world"

after that you'll only touch notepad for quick mods when you don't have a programming editot handy. trust me on that.
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post by redhair »

I use Edit +
Syntax Highlighting is, as mentioned before, something really usefull.
Look at this feature list what an editor like edit + can do above that feature.
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

See : viewtopic.php?t=6288

Regards,
User avatar
Hemeleen
Forum Newbie
Posts: 6
Joined: Mon Jul 07, 2003 10:58 am
Location: Groningen, the Netherlands
Contact:

Post by Hemeleen »

Thx :wink:

:) its clear to me that few people only use notepad....

about using the "$PHP_SELF in the form action"
are there reasons not to make one big php action going on?
:roll:
macewan
Forum Commoner
Posts: 97
Joined: Mon Jul 07, 2003 8:27 pm

Post by macewan »

vi used to be my fav* but now i just use something like gedit or beaver (beaver-project.org) because of the ability to use tabbed edits.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

mace, have you used xemacs? it has that, syntax highlighting, parenthesis matching, and you can (at least on a posix compliant system) choose to have the gcc utelyzed by it, or other compilers, as well as a debugger (if you ike them, personally i don't). emacs and xemacs are far and away the best two i have used. both are rather small in the most basic install but are rather powerful if you have the goodies that they can have
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

I used to use pure notepad for my pure HTML pages but when I started PHP I realized it would be much easier to use an editor. Right now I'm using Winsyntax which isn't bad. Could anyone suggest a good (and free :) ) editor that I could try out, I'm looking to find one that has a couple more features in it.
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

http://www.xemacs.org

xemacs: free. opensource. has more languages than i know. does syntax highlighting. does parenthesis matching.

more info there. it's my personal favorite.
macewan
Forum Commoner
Posts: 97
Joined: Mon Jul 07, 2003 8:27 pm

Post by macewan »

never got into using emacs too much. mostly just vi. lately beaver is my editor of choice.

testing bluefish some this evening though. =) thanks for the links to xemacs anyway.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Dreamweaver MX over here!
Post Reply