Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread ma...@behnke.biz
AmirBehzad Eslami hat am 24. September 2012 um 16:05 geschrieben: > What approach do you use in a similar situation? > Is there a systematic approach for this? > Is there reverse-engineering technique to understand the design of code? Hi Amir, my first start in such situations is -> phpDocument

[PHP] install PHP 5.4 by RPM

2012-09-24 Thread lx
Hello: I have installed the PHP and Apache by RPM, and the version of rpm packets is: httpd-2.2.3-63.el5.centos.1.x86_64.rpm apr-1.2.7-11.el5_3.1.x86_64.rpm apr-util-1.2.7-11.el5.x86_64.rpm postgresql-libs-8.1.18-2.el5_4.1.x86_64.rpm gmp-4.1.4-10.el5.x86_64.rpm php-common-5.1.6-27.el5.x86_6

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread tamouse mailing lists
On Mon, Sep 24, 2012 at 5:07 PM, Daevid Vincent wrote: > That is a good point. We do not do unit tests here. Nothing against them, > it’s just a bit overkill for our needs. We build lots of websites, not one > massive SaaS. > > But I’m not saying do not use OOP. I’m just saying not everything ha

RE: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread Daevid Vincent
That is a good point. We do not do unit tests here. Nothing against them, it’s just a bit overkill for our needs. We build lots of websites, not one massive SaaS. But I’m not saying do not use OOP. I’m just saying not everything has to be OOP. It’s a subtle but significant difference. We have

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread David OBrien
On Mon, Sep 24, 2012 at 3:06 PM, Daevid Vincent wrote: > > And for the love of [insert deity of your choice here] not EVERYTHING has > to be OOP. Use the best tool for the job!! Nothing pisses me off more than > having to instantiate a new class just to do some simple method that a > standard fun

RE: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread Daevid Vincent
> -Original Message- > From: AmirBehzad Eslami [mailto:behzad.esl...@gmail.com] > Sent: Monday, September 24, 2012 7:05 AM > To: PHP General Mailing List > Subject: [PHP] Joining a team, where no wiki or docs are available > > Hi, > > i'm going to join a mid-size company with a few PHP-dr

RES: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Samuel Lopes Grigolato
What about using visual code coverage instead of callstacks? I think the big picture is easier to digest. Maybe a combination of both, as code coverage won't provide the "time" axis of the monster. Something like http://phpcoverage.sourceforge.net/ -Mensagem original- De: Mihamina Rakot

Re: [PHP] Day after Friday

2012-09-24 Thread Tedd Sperling
On Sep 23, 2012, at 6:28 PM, Paul M Foster wrote: > On Sun, Sep 23, 2012 at 09:33:33AM -0400, Tedd Sperling wrote: >> >> It would be nice if administration decisions were made with respect to >> "what is best for the student" > > You know, I never had much respect for academia... Academia

Re: RES: [PHP] Day after Friday

2012-09-24 Thread Tedd Sperling
On Sep 23, 2012, at 10:17 AM, Samuel Lopes Grigolato wrote: > Independent of programming language, good teaching skills will lead to > self-taught developers with a bunch of best practices under the hood. I hope > you are such a good teacher =). We need not PHP or Java developers, we need > g

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread shiplu
On Mon, Sep 24, 2012 at 9:09 PM, AmirBehzad Eslami wrote: > Shiplu, > For debugging, what else do you use beyond xdebug and var_dump() ? Netbeans for PHP and Eclipse PDT. Both has good debugger support. An all-in-one package will server your purpose. Otherwise configuring xdebug might be painf

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
Shiplu, For debugging, what else do you use beyond xdebug and var_dump() ? On Mon, Sep 24, 2012 at 6:07 PM, shiplu wrote: > If there is no wiki there could be inline comment. If not inline comments > and those are written by your peers, dont join that team. > Even there are inline comments you'l

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
Never worked with Emacs or genben. I'm a fan of vim ;) But thanks a ton, based on your suggestion, I just found vim-dbgp On Mon, Sep 24, 2012 at 6:27 PM, Mihamina Rakotomandimby wrote: > > #5 install xdebug + geben + emacs and have a look at the call stacks and > bottlenecks. > > > -- > RMA. > >

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
+Like. The idea of mapping the db-structure and logic behind each page is interesting. Thanks for sharing. On Mon, Sep 24, 2012 at 6:06 PM, admin wrote: > > > I would start by mapping their databases structure. > Now for each page I would map out any functions, statements or includes to

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Mihamina Rakotomandimby
On 09/24/2012 05:38 PM, AmirBehzad Eslami wrote: #1 Start using the software as an End-User (don't care about the code) to understand the business-value of the software #2 Take a look at the database scheme, try to understand the entities and their relations #3 As you use the software, you'll bec

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
That's like erasing the question from the paper, in order to give it a solution! I was thinking about this problem for a while, and I've ended-up with this approach: #1 Start using the software as an End-User (don't care about the code) to understand the business-value of the software #2 Take a l

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread shiplu
If there is no wiki there could be inline comment. If not inline comments and those are written by your peers, dont join that team. Even there are inline comments you'll need to understand the architecture fast. Inline comments will help to understand a small context but not the whole For this try

RE: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread admin
> -Original Message- > Hi, > > i'm going to join a mid-size company with a few PHP-driven projects written > in procedural PHP, million years old. > > At the moment, they don't have a wiki or any documentation about their > projects. For me, the first challenge in probation period is to

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Mihamina Rakotomandimby
On 09/24/2012 05:19 PM, AmirBehzad Eslami wrote: True, but based on my experience, most programmers are not good when it comes to explain stuff. So, I should rely on my own. Choose another team? -- RMA. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
Jim wrote: >> If you really are joining a team, I would expect that the teammates would >> be guiding you through their systems. True, but based on my experience, most programmers are not good when it comes to explain stuff. So, I should rely on my own.

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread Haluk Karamete
I would first start out with checking the code where user input is taken and then placed into SQL statements from a SQL Injection point of view, I would also take a look if user input is echoed back without any treatment to see if there are issues with XSS. If these checks yield that the previous

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
Thanks Samuel. Actually I'm not going to add features or fix bugs, they're trying a refactoring process, to improve the design of code. So, I really need to understand the current design at the outset. On Mon, Sep 24, 2012 at 5:41 PM, Samuel Lopes Grigolato < samuel.grigol...@gmail.com> wrote: >

[PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Jim Giner
On 9/24/2012 10:05 AM, AmirBehzad Eslami wrote: Hi, i'm going to join a mid-size company with a few PHP-driven projects written in procedural PHP, million years old. At the moment, they don't have a wiki or any documentation about their projects. For me, the first challenge in probation period

RES: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread Samuel Lopes Grigolato
I would recommend reading this article: http://www.infoq.com/articles/tips-to-developers-starting-on-large-apps It's targeted to Java developers, but the concepts are valid to any language. Hope it helps. Cheers, Samuel. -Mensagem original- De: AmirBehzad Eslami [mailto:behzad.esl...@g

[PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread AmirBehzad Eslami
Hi, i'm going to join a mid-size company with a few PHP-driven projects written in procedural PHP, million years old. At the moment, they don't have a wiki or any documentation about their projects. For me, the first challenge in probation period is to understand how their code works. * Consideri

Re: [PHP] Array & unset()

2012-09-24 Thread Ashley Sheridan
Ken Robinson wrote: >At 08:50 PM 9/23/2012, Ron Piggott wrote: > >>I am wondering if there is a way to remove from >>an array where the value is 0 (“zero”) >> >>Array example: >> >>$total_points_awarded = array( 1 => 17, 3 => 14, 4 => 0, 5 => 1, 6 => >0 ); >> >>In this example I would like