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

Jump to content

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

General plan about Yii2

#1 User is offline   samdark 

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

Posted 18 July 2011 - 02:17 PM

*
POPULAR

— Minimum PHP version required: 5.3
— Backwards compatibility: no
— 5.3 features that will be used heavily: namespaces, anonymous functions
— Version control: Git (most probably GitHub)
Yii 1.1 Application Development Cookbook

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

#2 User is offline   PoL 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 506
  • Joined: 05-November 08
  • Location:Buenos Aires, Argentina

Posted 18 July 2011 - 03:35 PM

+1 for git.
+1 for php 5.3
Don't say what you think, think what you say
The problem is communication! Excess of communication!
2

#3 User is offline   andy_s 

  • Random Member Title
  • Yii
  • Group: Moderators
  • Posts: 1,526
  • Joined: 22-June 09
  • Location:Russia, Kostroma

Posted 18 July 2011 - 04:19 PM

Namespaces is a powerful thing, but I hope it won't make additional difficulties when accessing classes. I prefer to write less code, e.g. simply CHtml instead of long Yii\Helpers\CHtml. I don't use namespaces in any of my projects and feel fine. But I believe Yii developers will make things easier and not more complicated :)
1

#4 User is offline   jacmoe 

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

Posted 18 July 2011 - 04:35 PM

Namespaces will only make things easier as it gives end-users more freedom, which can only be a good thing.
I believe that PHP allow you to 'use' / 'import' a namespace ?
If so, it would be just as easy as it is now.
The benefit is that it won't clash if we use classes from other libraries or our own code prefixed with 'C'.

Anonymous functions sounds exciting. Can't wait to see what you come up with. :)
"Less noise - more signal"
0

#5 User is offline   mindplay 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 397
  • Joined: 03-September 09
  • Location:New York

Posted 21 July 2011 - 01:07 PM

Good choices!
0

#6 User is offline   petra 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 218
  • Joined: 20-June 10

Posted 06 August 2011 - 09:56 AM

Agree with anonymous function. Somewhat, I don't like using "PHP expression" in CDataColumn::value.
I prefer something like below, or if you have better one :P
'columns' => array(
   array(
      'value' => function($data){
                    return strtoupper($data->attribute);
                 }
   )
),

0

#7 User is offline   samdark 

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

Posted 06 August 2011 - 01:10 PM

petra
Actually it works in current Yii 1.1 ;)
Yii 1.1 Application Development Cookbook

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

#8 User is offline   petra 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 218
  • Joined: 20-June 10

Posted 06 August 2011 - 03:47 PM

View Postsamdark, on 06 August 2011 - 01:10 PM, said:

petra
Actually it works in current Yii 1.1 ;)

oh my...
it actually works.. my bad :(
0

#9 User is offline   mindplay 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 397
  • Joined: 03-September 09
  • Location:New York

Posted 12 August 2011 - 07:58 AM

Closures. Rawk :-)
0

#10 User is offline   grigori 

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

Posted 16 August 2011 - 12:17 PM

How about 5.4 instead of 5.3? traits are good ... and looks like the scalar type hinting is back again
3

#11 User is offline   Chris83 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 440
  • Joined: 27-February 10
  • Location:Helsinki, Finland

Posted 17 August 2011 - 01:19 AM

Good choices. I can't wait to see what Yii2 brings. :)
Best regards,
Chris

My contribution to the Yii community:
Account | Yiistrap | Auth | Bootstrap | NordCms | Rights | LESS | SEO | Img

Follow me:
Twitter | GitHub | Bitbucket
0

#12 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 525
  • Joined: 10-October 08
  • Location:European Union

Posted 24 August 2011 - 04:20 PM

View Postsamdark, on 18 July 2011 - 02:17 PM, said:

— Version control: Git (either GitHub or Google Code)

Why not Mercurial on Google Code?
Yii user #37
0

#13 User is offline   jacmoe 

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

Posted 24 August 2011 - 04:27 PM

Because Git and Github is the l33t webdev way - apparently. ;)

Personally, I use NetBeans, Mercurial, Google.code / Bitbucket for everything. ;D

<edit>
But that's probably due to me not only being a php programmer, but also a C++ coder.
Web development these days is still all about Git/Github.
</edit>

I think it all boils down to what Samdark and the rest of the Yii team really wants to use.

It would be refreshing to see Yii go Mercurial/Bitbucket - but Git/Github is the expected (conservative?) move for a PHP framework. And that's great. :)
"Less noise - more signal"
0

#14 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 525
  • Joined: 10-October 08
  • Location:European Union

Posted 24 August 2011 - 04:40 PM

In my opinion, on the Windows platform, Mercurial is easier to setup than Git. Just install TortoiseHG. TortoiseGIT is trickier and it requires things like msysgit. Moreover, I don't see any reason to use Git over Mercurial. Mercurial is just as powerful, easier to setup and easier to use.
Yii user #37
0

#15 User is offline   samdark 

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

Posted 24 August 2011 - 04:53 PM

The main reasons are GitHub infrastructure and community. btw., you can use Mercurial to work with Git repos if you prefer it.
Yii 1.1 Application Development Cookbook

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

#16 User is offline   jacmoe 

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

Posted 24 August 2011 - 05:01 PM

Personally, I really prefer the Bitbucket community:
https://bitbucket.org/explore
And the features. :)
(And since it was bought by Atlassian, it has some strong backing)

Well, as I've said: it matters what you - the Yii team - likes.
"Less noise - more signal"
0

#17 User is offline   samdark 

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

Posted 24 August 2011 - 05:41 PM

1. There are less than 1000 PHP-related repositories at BitBucket while at GitHub there are more than 15000 of these.

2. BitBucket community largest PHP projects were all CodeIgniter-related. And CodeIgniter recently moved to GitHub.

3. Majority of PHP frameworks are hosted at GitHub: CodeIgiter, Symfony2, Zend Framework 2, CakePHP, Kohana so it will be easier to migrate to Yii from any of these.
Yii 1.1 Application Development Cookbook

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

#18 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 203
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 25 August 2011 - 07:01 AM

Personally, I think that git and GitHub are excellent selections.
1

#19 User is offline   Psih 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 114
  • Joined: 30-June 10

Posted 25 August 2011 - 07:38 AM

I think that selecting DCVS just because more projects are hosted on it is wrong. Select what suits you more, not what is popular.
1

#20 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 203
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 25 August 2011 - 08:19 AM

Popularity can be a valuable metric when you consider that there are solid functionality related reasons that so many people choose to use certain systems over others. There's definite value in enabling people to work within systems that they're already accustomed to, all else being equal.
0

Share this topic:


  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • 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