XML and YML in the context of Symfony2 and SpringMVC

I am on my way to a decent programmer, but it seems that the things that need to be studied are countless. I know that there will never be a definite answer when you ask which is better, but I will try to make my question more specific, hoping for a more definite answer.

I have been using / working with PHP for a year now. Starting with the simplest examples, I now use CodeIgniter and various libraries / frameworks for the interface, and it seems to me that I need to take a step forward, which in my case is studying another PHP framework - Symfony2, as well as, Having received a master's degree in Software Technology ", I use Java intensively, I want to try and start learning both Symfony2 and Spring. Among the many questions, how to achieve this without ending with just wasted time, the use of XML, YML is where I see the option of getting an edge in my work.

Java is very different from XML, and as far as I know, there is no way out of XML in Java. But there is a choice in Symfony2, and it is very tempting to use XML there, so I won’t need to learn one more thing among all the others, but most of the examples that I see for Symfony2 use YML, and I'm not very sure that skipping yml and trying strictly adhering to xml won't come back to me.

I do not test either in Spring or in Symfony, so if you studied both of them at a time, how would you come closer? Using XML for both, or using YML for Symfony2?

+3
source share
1 answer

I make money as a Symfony developer by developing my personal project in Spring MVC, so since I saw both worlds, I think I have something to share on this topic.

PHP 7 , Java , 5 , "" Java- . , PHP Java / JVM, Scala.

? , , Symfony2 - , . , PHP. ... PHP, . , PHP, PHP . PHP, ? , , ( , ).

, Java . , Java IDE , PHP IDE. , IDE - IDEA ( PHP) PhpStorm - Java - , .

, Java - , PHP. , Scala , / - , , , - Java .

, , . PHP , IRC , Java , , Java.

, , Symfony - , Spring , .

YML XML, Symfony XML, Spring XML - 3.1. YML Symfony, XML , .

Symfony DIC Spring Spring , Doctrine JPA, , . , , Twig Spring MVC - JSP , . , Spring MVC , JSP, .

+7

All Articles