Re: [nyphp-talk] WAMP (minus the M) forking question - also open to other ideas

2009-04-27 Thread John Campbell
A quick google search for "windows run process in background" yielded: "In case anyone has this problem in future, I finally found out the solution. The START command in Windows command line allows you to start another command window running any command; and the /B option can start the command wit

[nyphp-talk] WAMP (minus the M) forking question - also open to other ideas

2009-04-27 Thread Michael J. Forte
Hi experienced and talented community of which I have been trolling for a few years! I have a question for all of you and I hope this makes sense. First, the background. I am coding a PHP Web application that has to call a external program, however, because only one instance of the program c

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Edward Potter
person -- person_id first_name last_name company_id company --- company_id company_name OR >>> employees -- id firstname <= generally for my field names I'll link words with _, just firstname and lastname I concatenate. lastname company_id companies - id compa

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Daniel Convissor
On Mon, Apr 27, 2009 at 06:55:15PM -0700, Kristina Anderson wrote: > > Lastly anyone who tries to impose THEIR conventions on you is to be > ignored. If you're working on your own, sure. But if you're on a team, then everyone on the team needs to follow the same convention. --Dan -- T H E

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Justin Hileman
Kristina Anderson wrote: Lastly anyone who tries to impose THEIR conventions on you is to be ignored. This is all about you, and what widget YOU think is easiest to use. Worrying about where to put a curly bracket is not worth it -- put it where you like it! As long as the code works you ar

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Kristina Anderson
Very interesting topic. My thoughts. Name functions and variables meaningfully so that you enhance readability. Don't be afraid of "too long" names, within reason. Indenting is important but not worth going insane over. Camelcase leads to frustrating typing errors and is just silly in most ca

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Daniel Convissor
On Mon, Apr 27, 2009 at 08:00:03PM -0400, Dan Cech wrote: > > Plural-names for tables are a pain... > > field: person > table: ??? > > Is it persons or people or something else? Yep. Plus it makes consistency very easy and makes life easier by allowing the use of USING. person -- person_

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Dan Cech
Edward Potter wrote: > Suggest pear style for your code. I stick with Ruby'ish style for naming my > sql stuff. > > table : locations > field: location Plural-names for tables are a pain... field: person table: ??? Is it persons or people or something else? Dan ___

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Edward Potter
Suggest pear style for your code. I stick with Ruby'ish style for naming my sql stuff. table : locations field: location Sticking with something that simple can save you DAYS of headaches~! seems to work out well. On Mon, Apr 27, 2009 at 7:07 PM, David Krings wrote: > li...@nopersonal.info

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread David Krings
li...@nopersonal.info wrote: Hi everyone, I've been making steady (if slow) progress with my understanding of PHP/MySQL, but now that I'm finally starting to do more complex things, I find that I really need to figure out a consistent naming convention & coding style. I've read several articles

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Ajai Khattri
On Mon, 27 Apr 2009, Anthony Wlodarski wrote: > I think this is more of a comfort issue then an issue with standards. If > you work for a company that you would fall back to the company's best > practice's. Often if you're using a framework, you might have to use the framework's naming conventi

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Justin Hileman
li...@nopersonal.info wrote: I've been making steady (if slow) progress with my understanding of PHP/MySQL, but now that I'm finally starting to do more complex things, I find that I really need to figure out a consistent naming convention& coding style. I've read several articles on the subject

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread li...@nopersonal.info
Anthony Wlodarski wrote: > I emphasize consistent because when you open up a file in VIM that was > edited with tabs one week vs. two spaces for indents another week it > becomes a real nightmare. Point well taken. Thanks. Bev ___ New York PHP User Gro

Re: [nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread Anthony Wlodarski
I think this is more of a comfort issue then an issue with standards. If you work for a company that you would fall back to the company's best practice's. If you are doing freelance/consulting work then you fallback to your own CONSISTENT practices. I emphasize consistent because when you open u

[nyphp-talk] Best practices for naming conventions & coding style?

2009-04-27 Thread li...@nopersonal.info
Hi everyone, I've been making steady (if slow) progress with my understanding of PHP/MySQL, but now that I'm finally starting to do more complex things, I find that I really need to figure out a consistent naming convention & coding style. I've read several articles on the subject and they all see

Re: [nyphp-talk] PHP hosting and standard tool-chain for newbie?

2009-04-27 Thread Hans Zaunere
> > The Protype vs JQuery debate strikes me as religious. Both are class acts, > > take your pick. > > The fact that JQuery doesn't have JSON encoding/decoding built in makes > me think Prototype has their act together a bit more. For what it's worth, I'm a YUI fan. http://developer.yahoo.com/yu

Re: [nyphp-talk] Facebook's LAMP Stack

2009-04-27 Thread Hans Zaunere
> > What I'd really like is a way to "statically link" a PHP application. While > > this is somewhat possible today, PHP's dynamic nature makes this difficult > > to fully realize. For example, it can be cumbersome on the developer to > > check in multiple places if APC is available, what files ar

[nyphp-talk] zend framework..multi forms.

2009-04-27 Thread Nicholas Hart
Thanks for the responses. I am looking at Zend Framework since it supports i5/OS. But what I really want is to easily handle multiple forms on one page. Any examples of this would be much appreciated. BTW Hans, I have posted to the zendframework forum but I think I'm the only one there. Thanks