Recent comments

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    Thanks for your points!

    1) If you develop in production? Ugh. Maybe symfony ain’t for you if you do that.

    I do, for projects with small budget and <50h of work. And a lot of people does. Because most of small projects is not about deployment beauty, or good testing, but about getting things done.
    That’s what I’m trying to say - symfony2 and “get things done” approach doesn’t live together in small projects (it’s just my humble opinion, based on my experience).

    2) You need to call composer install not composer update on production, and install is faster than update, since it doesn’t have to resolve dependencies and such. In fact, you can configure composer so that it runs all the scripts you need after a deploy.

    At the moment, to deploy on some live servers, I do the following: git pull && composer install && app/console doctrine:migrations:migrate

    That’s right, you do composer install, definitely - it’s my mistake, I’ve fixed the text, thanks!

    But all the facts about update still apply to install command:
    if you do composer update on dev and then deploy to production and run composer install on prod, you can still break your website if some package website is offline or is just not working correctly for your composer, right now.
    If every package in project is on github, and your own repo is own github, your approach can work, that’s true :)

    3) $this->get(‘translator’)->trans(‘flash.create.success’, array(), ‘JordiLlonchCrudGeneratorBundle’); vs t(‘The node was created successfully’);. Hi unfair comparision. How about $this->get(‘translator’)->trans(‘flash.create.success’);, which is how it’d look if you only have one catalog.

    What do you mean by “catalog” here?
    The translation is inside this specific bundle. If you omit ‘JordiLlonchCrudGeneratorBundle’ part in my specific case, you will get ‘flash.create.success’ in browser, not the proper translation.
    If you tell me the elegant way to bypass this, I will be happy to try it :)

    Drupal t() function is smart enough to find translation from any module, you don’t need to specify module which holds the translation (that leads to performance and other kinds of issues, definitely - but that’s not the point of discussion, since I was talking about code length).

    Thanks!

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    I see this to be a little biased. Some points.

    1) If you develop in production? Ugh. Maybe symfony ain't for you if you do that.

    2) You need to call composer install not composer update on production, and install is faster than update, since it doesn't have to resolve dependencies and such. In fact, you can configure composer so that it runs all the scripts you need after a deploy.

    At the moment, to deploy on some live servers, I do the following: git pull && composer install && app/console doctrine:migrations:migrate

    3) $this->get('translator')->trans('flash.create.success', array(), 'JordiLlonchCrudGeneratorBundle'); vs t('The node was created successfully');. Hi unfair comparision. How about $this->get('translator')->trans('flash.create.success');, which is how it'd look if you only have one catalog. Heck, you can, as you stated, add a method to the base controller. And you don't have to do it on all your projects, create your own library which ships the changes you want, and include it. $this->crudTranslationMessage('flash.create.success')

    I found the post really interesting, but I wanted to rebate some of the bashing on Symfony2.

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    Haha Jordi :) thanks for the nice bundle!

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    I can only say, sorry for put my name in the bundle ;) My bundle was a way of learning how create Sf2 bundles. It was an experiment and now some people are using it and I happy of that, of course.
    By the way, if someone is interested in how my name is pronunced: /xordy yɒŋ/ :D
    Thank you of talk about my bundle :)

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    Agreed - thanks for the honest article, VERY helpful.

    There is a use case that may be beneficial to my company – we have a few client sites that are event voting platforms that are simplistic in function but have a high traffic load across a short period of time. They require authenticating the users and processing 1 or 2 simple forms. With these sites the development time is relatively small to begin with and may ultimately save the client money if we could back off on load balanced server resources needed to execute their campaign.

    Thanks!

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    the summary is correct, thanks, Larry :)
    Drupal 8 will be interesting, indeed. But the transition from d7 won’t be painless for most of contrib, for sure.

  • Improving user experience: using Dialogs for profile edit in modal forms   1 year 8 weeks ago

    Hey, thanks for writing this up. I've been looking at several blogs to find something like this. Do you by any chance have a contact email that you could share? I would like to contact you directly.

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    Great writeup, Anton!

    If I may, it sounds like the summary is "Symfony is more elegant and proper, but Drupal gets the job done." Which means Drupal 8 (rewritten to leverage Symfony Components and follow many of the same "elegance" standards, but not all of them) should be very interesting indeed. :-)

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    I completely agree and I should say Python is my favorite language :)
    The thing here is that we have lots of projects to maintain, and it’s not me as single developer, it’s a team. So, we decided to stick to PHP for our business needs.

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    Being a Drupal developer for years I started looking for a framework for projects when client needs more speed and flexibility. I looked at all major PHP frameworks and saw that Symfony is the most solid project in PHP. After spending two weeks with Symfony 2 I was so pissed of with it that I came to conclusion that it will be worth to look at another languages. I tried Ruby on Rails / Ruby and Django / Python and felt in love with the later.

    Python's learning curve is pretty much low when you already know one or two programming languages. Additionaly, comparally to PHP you need to type twice less. When it comes to Symfony 2 vs Django comparison... well, no holywar there, but Django is more developer friendly and you need from two to three times less code to accomplish the same task with it comparally to S2. I'm not even talking about the number of libs/packages/apps/whatever you call it: Django and Python have way bigger selection of these.

    And the best thing in learning Python is that I started writing better PHP code for Drupal mostly because of a breath of fresh air that Python/Django gave me.

    Just my five cents.

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 8 weeks ago

    Ok, indeed in this case this is more verbose than Drupal.

    That's the Symfony way. On Symfony 1.x, there were helpers to do this in templates, and you could use them in the controller, but it wasn't recommended.

    I think that this is a volontary effort to make things the more explicit as it can be, but believe me, it stays less verbose than Java :)

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 9 weeks ago

    Hi,
    the flash message is set just when item was created - so, it’s controller, not template.

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 9 weeks ago

    Hi,

    About I18N, there is a simplier way :

    http://symfony.com/doc/current/book/translation.html#book-translation-tags

    Inside Twig template, for example :

    {% trans %}Hello %name%{% endtrans %}

    {% transchoice count %}
    {0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples
    {% endtranschoice %}

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 9 weeks ago

    That’s a brilliant post, thanks!
    We still like to cut corners :)
    I’ve updated my post, removed the “fork” words.

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 9 weeks ago

    Thanks! I agree.
    I would say, Symfony2 is (mostly) an area for professional products and custom/highload projects, not corporate/content websites. Though you can develop good content website in Symfony2. Good, and probably expensive :)

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 9 weeks ago

    Thanks for a thoughtful and well written post. I guess given the costs and time, you have confirmed drupal as the best choice if it's a good fit for the project.

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 9 weeks ago

    The RAD efforts are not a fork and imho they should not be added to core. I have written on this topic at length on my blog http://pooteeweet.org/blog/2205

  • Drupal 7 vs Symfony 2: overview after 1 year of Symfony development   1 year 9 weeks ago

    Thanks for the refreshingly honest post about your experiences with both! Most posts come from one camp or the other and show some bias, but you dealt with both fairly.

    The same project will cost roughly twice as much developed in Symfony, comparing to Drupal, and will take twice as much time.

    That seems like a pretty damning quote! Most clients in the web space I've worked with don't consider maintenance when deciding on a project. Maybe short-sighted on their part, but it rarely comes up. Hearing a word like 'double' would instantly remove sf2 from the conversation.

  • Improving user experience: using Dialogs for profile edit in modal forms   1 year 15 weeks ago

    I have done the same updrade with my Drupal 7. It's very convenient and natural. I followed your easy-to-follow step very carefully as the coding requires attention-details.

  • Adding "Price" field to Ubercart cart page   1 year 18 weeks ago

    Hi, my cart shows item price thanks to your solution.

    After playing(==painful) around ubercart, i installed ubercart custom price module. https://drupal.org/project/uc_custom_price

    With the above code, total price shows my custom price but item price shows original price (price that custom price calculation is not applied).

    This is way over my knowledge, so here i am asking if you can share some tips. thank you. :-)

  • Improving user experience: using Dialogs for profile edit in modal forms   1 year 21 weeks ago

    How do this for Drupal 6?
    Please, help me! It's very important to me!

  • Calendar with highlighted dates   1 year 26 weeks ago

    Calendar module + Date module + Views does very similar thing in Drupal 7 (there is a views block for month view).

  • Using Ubercart to sell files: ui improvements and creating file feature programmatically   1 year 27 weeks ago

    This would be awesome as a module. The current Ubercart file-selling functionality is pretty atrocious - it makes things have to happen from within two separate interfaces, and is utterly useless except for a one-seller-one-site paradigm. I'm working on a site where the idea is that multiple people would be able to upload and sell their own e-books.

    Even if you don't create a module (which there is seriously a need for!) the above code should be enough to let a developer hack together their own implementation.

    Thanks so much! I thought I was going to have to go through the Ubercart code line-by-line, in the absence of friendly documentation.

  • Manage your Drupal website faster: best modules available   1 year 28 weeks ago

    This module can be useful for simple post-moderation approach - as all the functionality works.

  • Calendar with highlighted dates   1 year 28 weeks ago

    Any Idea if there is a Module that Allows this now? I've been searching everywhere for something like this.

Drupal association member