Yii Framework Forum: General plan about Yii2 - Yii Framework Forum

Jump to content

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

General plan about Yii2

#41 User is offline   Greg Molnar 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 47
  • Joined: 17-January 11

Posted 03 October 2011 - 10:30 AM

A quick question to the Dev Team. As far as I see You Guys decided to move to Github with Yii 2. Will you do the initial development on Github as well or you will move just when Yii 2 is in alpha or something?
0

#42 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,778
  • Joined: 17-January 09
  • Location:Russia

Posted 04 October 2011 - 02:37 AM

Alpha will be there. Initial development is in a private repo.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
2

#43 User is offline   CGeorge 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 27-May 10
  • Location:Spain

Posted 05 October 2011 - 05:12 AM

With namespaces, now it is possible to have multiple classes with the same name under differente namespaces. Are the classes going to be named still with the "C" prefix? I think that this prefix dirties the code.
0

#44 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,359
  • Joined: 12-October 09
  • Location:Croatia

Posted 05 October 2011 - 05:38 AM

CGeorge.. please read all the posts in the Design Section for Yii 2.0.0.... as the namespaces has already being discussed...
Find more about me.... btw. Do you know your WAN IP?
0

#45 User is offline   CGeorge 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 27-May 10
  • Location:Spain

Posted 05 October 2011 - 07:04 AM

View Postmdomba, on 05 October 2011 - 05:38 AM, said:

CGeorge.. please read all the posts in the Design Section for Yii 2.0.0.... as the namespaces has already being discussed...



I talked to mdomba and there have been a misunderstanding. I asked for the C prefix (not for the namespaces) because I saw these posts:

http://www.yiiframew...post__p__106176
http://www.yiiframew...gration-script/

mdomba just explained me that Yii 2.0 will not have the "C" prefix, thank you very much!
0

#46 User is offline   Thomas Jensen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 150
  • Joined: 01-August 09

Posted 11 October 2011 - 03:42 AM

View Postmacinville, on 01 October 2011 - 11:31 PM, said:

Its been 2 years since PHP 5.3 is released, and still not all shared web hosts support it. What more with 5.4? It will be either I use Yii 2.0 and purchase a VPS, or just stick with Yii 1.1.


I don't think that's a valid argument. Most professionals won't have any trouble updating their server, and by the time Yii 2.0 is released, it will be more than stable.

View Postsamdark, on 01 October 2011 - 06:21 PM, said:

We've checked PHP 5.4 features and decided to stick with 5.3. Traits aren't able to replace behaviors since these couldn't be configured and can't have their own variables and functions. The rest of 5.4 features are nice but have nothing to do with framework itself. If you'll have 5.4 you'll get these same way as you can use 5.3 closures in Yii 1.1.


I think you're right, there should be no problem keeping behaviors and developers can use PHP traits if they like. What I think is a problem, is the development time. I don't like the Yii team spending hours programming behaviors, if PHP supports the same functionality natively. To support variables in traits, what about implementing some getter and setter methods to cover an array of values?
0

#47 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 11 October 2011 - 11:08 AM

Dreamhost has PHP 5.2 currently. They will most probably upgrade to 5.3 by the time Yii 2 arrives.
Setting the bar for 5.4 without a really good reason would be Yii-killing IMO.
"Less noise - more signal"
0

#48 User is offline   GoofyX 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 172
  • Joined: 15-April 09
  • Location:Thessaloniki, Greece

Posted 11 October 2011 - 11:31 AM

View Postjacmoe, on 11 October 2011 - 11:08 AM, said:

Dreamhost has PHP 5.2 currently. They will most probably upgrade to 5.3 by the time Yii 2 arrives.
Setting the bar for 5.4 without a really good reason would be Yii-killing IMO.


Just because Dreamhost has 5.2 doesn't mean Yii shouldn't move to 5.3 (or 5.4)...
... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain...
0

#49 User is offline   Rodrigo Coelho 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 665
  • Joined: 05-August 10
  • Location:Rio de Janeiro, Brazil

Posted 11 October 2011 - 12:07 PM

Not what is in discussion, but FYI Dreamhost supports PHP 5.3: http://wiki.dreamhos...PHP.ini#PHP_5.3.
0

#50 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 11 October 2011 - 12:12 PM

It does.
So it was a too little coffee comment made by me. ;)
The cli still says 5.2 though, but I am probably able to change it.

However, if the bar is set too high, and people need to go VPS to use Yii, then people could move to Node.js instead.

One of the main reasons why I still use PHP is that it runs practically anywhere.
"Less noise - more signal"
0

#51 User is offline   GoofyX 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 172
  • Joined: 15-April 09
  • Location:Thessaloniki, Greece

Posted 11 October 2011 - 12:21 PM

At this point, I guess that 5.3 is a safe bet for most (if not all) providers, so in a couple of years from now (maybe when final 2.0 will be released), 5.3 is ok to be the minimum requirement.
... Morpheus: What is "real"? How do you define "real"? If you 're talking about what you can feel, what you can smell, what you can taste and see, then "real" is simply electrical signals interpreted by your brain...
0

#52 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,778
  • Joined: 17-January 09
  • Location:Russia

Posted 11 October 2011 - 06:40 PM

Quote

I don't like the Yii team spending hours programming behaviors, if PHP supports the same functionality natively. To support variables in traits, what about implementing some getter and setter methods to cover an array of values?

Analyzed that and can't say that traits are covering everything Yii 1.1 behaviors are affording.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#53 User is offline   macinville 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 268
  • Joined: 25-October 10
  • Location:Marikina City, Philippines

Posted 14 October 2011 - 10:34 PM

View PostThomas Jensen, on 11 October 2011 - 03:42 AM, said:

I don't think that's a valid argument. Most professionals won't have any trouble updating their server, and by the time Yii 2.0 is released, it will be more than stable.


How about the rest of those professionals and not-so professionals? ;)

As much as I would like Yii to take advantage of PHP 5.4 features, my vote will still be on PHP 5.3 :)
Tell your tail.
Don't be shy to upvote a post if it was able to help you
0

#54 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 15 October 2011 - 07:26 AM

I totally agree.
And it looks like the Yii team is sensible enough to pick 5.3.
A large portion of Yii users don't have the luxury of a vps.
"Less noise - more signal"
0

#55 User is offline   grigori 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 06-February 11

Posted 28 October 2011 - 06:53 AM

Convert private properties to protected please!
1

#56 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,778
  • Joined: 17-January 09
  • Location:Russia

Posted 28 October 2011 - 09:59 AM

grigori
We will definitely not go this way for ALL private properties since it's very extreme: once a variable or method is set to protected we can't change it anymore. That can mean framework development will be stucked because of backwards compatibility issues.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
2

#57 User is offline   CGeorge 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 27-May 10
  • Location:Spain

Posted 29 October 2011 - 06:42 PM

View Postsamdark, on 28 October 2011 - 09:59 AM, said:

grigori
We will definitely not go this way for ALL private properties since it's very extreme: once a variable or method is set to protected we can't change it anymore. That can mean framework development will be stucked because of backwards compatibility issues.


I prefer protected attribute instead backwards compatibility: with private attributes sometimes you need to clone the whole class in order to override an only one function.
0

#58 User is offline   Lukas Kahwe Smith 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 05-November 11

Posted 06 November 2011 - 04:06 PM

Yii is clearly focused as a RAD framework. With Yii's conventions it is possible for developers to quickly get apps up and running that cover a broad range of goals.

Symfony2 on the other hand is super explicit.

Now why not build Yii 2.0 on top of Symfony2, aka add all the conventions of Yii on top of Symfony2's modern architecture that already delivers all of the points mentioned my the original poster? This would turbo boost Yii 2.0 on many levels. For one a lot of the heavy lifting would already be done. Second it would give Yii 2.0 devs access to all the things the Symfony2 community has been building over the past months. Finally it would enable users to move between Symfony2 and Yii 2.0 depending on their current needs.

Surely there will be a lot of Symfony2 developers that will have projects where the Yii conventions make perfect sense. At the same time there will be cases where Yii 2.0 developers will want to throw out the conventions when they are doing something totally out of the ordinary where the conventions get in the way.
1

#59 User is offline   Lukas Kahwe Smith 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 05-November 11

Posted 08 November 2011 - 09:37 AM

View Postgrigori, on 28 October 2011 - 06:53 AM, said:

Convert private properties to protected please!


you might be interested in this blog post on the topic http://fabien.potenc...cted-vs-private
0

#60 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,778
  • Joined: 17-January 09
  • Location:Russia

Posted 08 November 2011 - 04:23 PM

Lukas, I doubt it will be a good move for Yii:

- Symfony2 has definitely higher learning curve and it will be added to learning Yii conventions (btw., there's not much in Yii you really shall follow).
- Symfony2 will add much more internal complexity.
- Symfony2 API is written in a slightly different style. I doubt we really need DI for nearly every framework part.
- We have a good set of components developers like and we don't want to just throw these away.
- Even current Yii 1.1 can load PSR-0 namespaced classes so one can use Symfony2 components if needed.

Fabien's post is a good one. Qiang did like that from the very beginning of Yii, as I remember.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
1

Share this topic:


  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users