A
A
AllReady2016-02-08 21:30:01
Yii
AllReady, 2016-02-08 21:30:01

What to choose for a beginner Yii 1 or 2?

Goodnight. Please tell me what to choose for a beginner? Never worked on frameworks before.
The company where I want to get a job requires yii 1. I asked some companies, they still use the first version.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Artem Gribkov, 2016-02-08
@L1Qu0R

You can immediately start from the 2nd one, since there are almost no cardinal differences, and the 2nd version immediately instills the correct code conventions and other things like the composer.

K
kstyle, 2016-02-08
@kstyle

in yii2 the documentation is not very good for "from scratch". if you still decide yii2, then first study in php namespace, array in the style [], classes - the first chapters of Zandstra's book

V
VZVZ, 2016-02-09
@VZVZ

In short, the plan is this:
1. Start with Yii 1.
As noted above, there are probably more guides for a beginner on it.
As you yourself noted, it is still used in some firms. Know more -
more allows you to draw conclusions from the experience of the tool developers, learn from its mistakes, see which old architectural or other solutions were not very good, and what became better in the new version, and what, maybe, worse.
2. Then switch to Yii 2.
3. And - to no one, I repeat, to no one - in no case, under no circumstances, under no circumstances - be the first to tell that you are coding in Yii 1.
Have you seen the sly advertisements for dietary supplements and other shit, where it says in small, gray print: "is not a drug"?
So your words about knowledge of Yii 1 in your resume should also be "striking" with the same force as this font in advertising.
That is, the maximum you can say is "I write in Yii2, I also know Yii 1" - but nothing more.
And sticking out your knowledge of Yii1 first in an unfamiliar company, until you are asked, is by no means possible.
I am not kidding.
I myself am mostly a desktop person. And when I had to not only communicate, but simply appear to serious web developers from large companies (or maybe not very large, but also very serious), they were simply shocked by my disregard for updating the versions of the tool used.
Once I wrote an article-lesson for beginners on Yii2 on Habré. By Yii2, Carl, not even by Yii1. But I forgot to describe a couple of super-important features there: I didn’t use ActiveRecord and didn’t use Gii (instead, I showed beginners how it’s all done manually).
God... Such seething of feces in the comments under my posts, so many minuses, so many angry and insulted, such an account with such a reputation - I have never seen ... then evil people, and decided to repeat the same thing on another site, in another country, and with a completely different tool.
Namely, I wrote... No, more precisely, I dared to write an article on the transition from ASP.NET WebForms to ASP.NET MVC... Oh, horror, to ASP.NET MVC 2-3 versions!
Poor foreigners, my crime literally deprived them of the gift of words, they could no longer even rage in the comments, they could only poke the minus button and the report button, and the further fate of my share is obviously obvious: "posted 13/32/2015 9:00, deleted on 32.13.2015 20:00".
In short, I have already despaired of digging into the reasons, but this is a fact: when they see a version that is at least one major different from the newest, serious web seniors are furious as if you want to write under Windows for them in bare assembler. As if you were chopping wood for them with a stone axe. As if...
However, it is simply impossible to convince them of what is stated in paragraph 1, especially starting with "As I note." It's just impossible. I tried. Do not try.
In general, I hope that at least someone will appreciate my post for what it is - drop dead long, drop dead vanilla and - in the hands of a skilled salesperson (that is, a job seeker) - drop dead useful.
I wish you all good luck!

N
Nikita, 2016-02-08
@bitver

Yii2, and in those firms, apparently, development has been going on for a long time and they need to support old projects.

O
OnYourLips, 2016-02-08
@OnYourLips

The company where I want to get a job requires yii 1. I asked some companies, they still use the first version.
Ignore them.
These are projects to support old (shit) code.

S
Sergey, 2016-02-08
@frost18

Learn the second version right away, for me it’s easier, more logical and thought out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question