13 Replies - 3082 Views - Last Post: 06 October 2009 - 10:55 AM

#1 noorahmad   User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Q & A With Dream.In.Code PHP Experts

Post icon  Posted 25 September 2009 - 10:58 PM

So, as you guys know, we have lots of experts in our PHP forum .we are opening a Q&A session with Dream.In.Code Experts,

We have this week open for collecting the questions from, you, the users of Dream.In.Code. At the end of this week, I will compile a list of the best questions and answers posted here.

Questions should be related to PHP

Please note, that I will only select the most interesting questions, so try avoiding trivial questions, answers on which can be found online. Also, please do not post programming questions on how to do something or to find issues with a piece of code.

Let the question asking begin!

Edit:
Here is the list of PHP Gurus:
CTphpnwb
BetaWar
PsychoCoder
akozlik
ShaneK
MageUK
Wimpy

:)

This post has been edited by skyhawk133: 01 October 2009 - 02:46 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Q & A With Dream.In.Code PHP Experts

#2 Wimpy   User is offline

  • R.I.P. ( Really Intelligent Person, right? )
  • member icon

Reputation: 159
  • View blog
  • Posts: 1,038
  • Joined: 02-May 09

Re: Q & A With Dream.In.Code PHP Experts

Posted 26 September 2009 - 12:14 PM

Not to be picky or anything but this topic, I think, should be placed in the regular PHP forum since topics placed in the PHP Programmers' forum is supposed to be ( I quote ) "advanced and non-help related"... :)
Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Q & A With Dream.In.Code PHP Experts

Posted 26 September 2009 - 02:10 PM

@noorahmad: Events like this have to be approved by the team first, so I'm closing this thread until I can confirm whether it's been approved or not :)
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Q & A With Dream.In.Code PHP Experts

Posted 26 September 2009 - 11:31 PM

After further review we, the DIC Team, decided that this is good idea to have.

@noorahmad: You need to list the PHP guru's that will be answering the users question and I suggest you look at this thread and this thread for a good format to carry this out with :)
Was This Post Helpful? 0
  • +
  • -

#5 noorahmad   User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: Q & A With Dream.In.Code PHP Experts

Posted 27 September 2009 - 12:18 AM

@PsychoCoder: thanks for the suggession, I sent message to DIC experts and will soon add the list.

This post has been edited by noorahmad: 27 September 2009 - 12:20 AM

Was This Post Helpful? 0
  • +
  • -

#6 noorahmad   User is offline

  • Untitled
  • member icon

Reputation: 209
  • View blog
  • Posts: 2,290
  • Joined: 12-March 09

Re: Q & A With Dream.In.Code PHP Experts

Posted 27 September 2009 - 09:18 PM

I added the list of PHP Gurus, now you can ask your question related to PHP, they will try thier best to answer the questions.

My Question:
@All PHP Users: why do you prefere PHP over other Web Languages.
Was This Post Helpful? 0
  • +
  • -

#7 Wimpy   User is offline

  • R.I.P. ( Really Intelligent Person, right? )
  • member icon

Reputation: 159
  • View blog
  • Posts: 1,038
  • Joined: 02-May 09

Re: Q & A With Dream.In.Code PHP Experts

Posted 28 September 2009 - 05:30 AM

@noorahmad, "why do you prefer PHP over other Web Languages":

Prefer and prefer, I like the way PHP behaves like I want it to instead of it telling me to do things in a particular way like ASP.NET/C# does. This makes it more pleasing for me to work with it because I can do things pretty much however I want to do it. But I must say that PHP has its backfires just like ASP.NET/C# has, and the good sides of PHP are also the bad ones. I think about return-type-hinting and type-safe variables that are currently missing, which at times comes very nice at hand when you want a generic function that could return who knows what(?!). At times though you want to say that a certain method of a class only should return a boolean, because your framework requires it to be a boolean. At the time being you have to make sure it actually is a boolean before treating it as one which requires more lines of code from what it would take to implement the same method in C#.

In short, I prefer PHP over other Web Languages because it is very pleasing to work with and you get nice results fast, but since I think that you should also have the alternative to make your code type-safe when the day comes and it is necessary for your system to work properly I must admit that I prefer ASP.NET/C# over PHP at some special occasions! :)

Thanks for considering me being a PHP Guru! haha :P

This post has been edited by Wimpy: 28 September 2009 - 05:32 AM

Was This Post Helpful? 0
  • +
  • -

#8 thehat   User is offline

  • awake ? web();
  • member icon

Reputation: 106
  • View blog
  • Posts: 951
  • Joined: 28-February 08

Re: Q & A With Dream.In.Code PHP Experts

Posted 28 September 2009 - 06:08 AM

Do the gurus work with frameworks like PEAR and Zend, and if so which is best?
Was This Post Helpful? 0
  • +
  • -

#9 CTphpnwb   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3813
  • View blog
  • Posts: 13,857
  • Joined: 08-August 08

Re: Q & A With Dream.In.Code PHP Experts

Posted 29 September 2009 - 04:57 AM

I'm ambivalent about frameworks. I think they're necessary because so many programmers use procedural techniques and therefore have no structure to their code. That becomes a nightmare when you have to go in after such a coder and make changes. Frameworks force you to use a structure, and that's a good thing.
Was This Post Helpful? 0
  • +
  • -

#10 akozlik   User is offline

  • D.I.C Addict
  • member icon

Reputation: 91
  • View blog
  • Posts: 798
  • Joined: 25-February 08

Re: Q & A With Dream.In.Code PHP Experts

Posted 29 September 2009 - 02:08 PM

Should we wait to answer all the questions until after they've been posted? That way we can all address questions and it keeps the same format like previous Q&As. If we all start answering questions it's going to get really confusing really fast.

Mods, any way we can get this pinned to the front page so the thread doesn't die? I'd like to see some questions come in.
Was This Post Helpful? 0
  • +
  • -

#11 tivrfoa   User is offline

  • D.I.C Head
  • member icon

Reputation: 9
  • View blog
  • Posts: 98
  • Joined: 25-January 09

Re: Q & A With Dream.In.Code PHP Experts

Posted 02 October 2009 - 07:06 PM

View Postnoorahmad, on 27 Sep, 2009 - 08:18 PM, said:

I added the list of PHP Gurus, now you can ask your question related to PHP, they will try thier best to answer the questions.

My Question:
@All PHP Users: why do you prefere PHP over other Web Languages.

I don't prefer PHP, but I think PHP is good language and the reason of its success it's because it is very easy to learn, many built in functions, great community, many open source projects.

The two things that I don't like about PHP are:
- To use the dollar sign every time
- Some things are case sensitive but others don't.
other thing:
- It's much better to use a dot "." than an arrow "->"

=)
Was This Post Helpful? 0
  • +
  • -

#12 ShaneK   User is offline

  • require_once("brain.php"); //Fatal error :/
  • member icon

Reputation: 240
  • View blog
  • Posts: 1,224
  • Joined: 10-May 09

Re: Q & A With Dream.In.Code PHP Experts

Posted 06 October 2009 - 08:07 AM

View Posttivrfoa, on 2 Oct, 2009 - 07:06 PM, said:

- Some things are case sensitive but others don't.
other thing:
- It's much better to use a dot "." than an arrow "->"


These two things I don't get...
I simply don't understand the first one...
The second one isn't even a comparison, the period is used for combining terms while the "arrow" is used to get methods/variables from an object...they're not even the same thing...<place good simile here (one that shows how not-even-close-to-related those things are)>

Yours,
Shane~
Was This Post Helpful? 0
  • +
  • -

#13 AdaHacker   User is offline

  • Resident Curmudgeon

Reputation: 463
  • View blog
  • Posts: 820
  • Joined: 17-June 08

Re: Q & A With Dream.In.Code PHP Experts

Posted 06 October 2009 - 09:54 AM

View PostShaneK, on 6 Oct, 2009 - 09:07 AM, said:

I simply don't understand the first one...

He may have been referring to the inconsistency in case sensitivity between variables and functions. That is, in PHP, variable names are case-sensitive (e.g. $Foo is not the same as $foo), but function names are not.

Quote

The second one isn't even a comparison

I believe he meant in comparison to other programming languages. That is, in PHP the arrow is the operator for accessing fields and methods on an object. By contrast, other languages, like Java and C#, use the dot operator for that purpose. Of course, it's a shallow criticism - it's more a matter of personal preference than the cause of any real readability issues. PHP has much deeper problems than that.
Was This Post Helpful? 0
  • +
  • -

#14 akozlik   User is offline

  • D.I.C Addict
  • member icon

Reputation: 91
  • View blog
  • Posts: 798
  • Joined: 25-February 08

Re: Q & A With Dream.In.Code PHP Experts

Posted 06 October 2009 - 10:55 AM

Lets let some more questions come in and then all of us answer one in their own individual threads. I can already tell it's going to be a pain in the butt to try to keep track of answers.

I agree with Shanek's comments. I felt the same about the '$' comment. It really seemed shallow and doesn't address PHP's benefits/downfalls. Those comments were more about the syntax of the language than the actual language itself.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1