The PHP defenders' mentality and seeing the light

Today I came across Mark Litwintschik’s post titled Abandoning PHP for Python. What Mark says resonates with me in almost every paragraph but what led me to write this post was what I read in some of the comments there. It’s a shame that some PHP fans insist on not understanding that when these comparisons are made and people say “X is better than PHP” (X being some framework like Rails or Django), they’re not really comparing PHP (the language) to that framework. »

Author image Raúl Santos

I hate PHP

Update in May 2020: I don’t think I hate PHP this much nowadays. I have barely touched it for the past 6 or 7 years but it seems to have fixed a lot of its bigger problems. Good for you PHP! Despite that, I think I’ll still stick with other languages for the time being. The trauma is just too great… :) I hate PHP. Even though it’s the programming language I use the most to earn my keep, I can no longer keep this inside me. »

Author image Raúl Santos

Como usar a framework de sites do Django para desenvolvimento local

Recentemente, numa aplicação que estou a desenvolver com Django, precisei de obter o domínio da aplicação para um email que é enviado pela aplicação django-registration. A django-registration gera um código único para activar uma conta de utilizador. Sabem, aquele processo típico de nos registarmos num website, receber um email de confirmação, carregar num link para activar a conta, feito. Como a django-registration depende de nós para criar o URL completo com o código e apenas nos dá uma variável site variable, que é uma instância da classe django. »

Author image Raúl Santos

Django Sites framework for local development

Recently, in an application I am writing with Django, I needed to get the domain name for an email that was being sent with django-registration. Django-registration generates a unique code to activate a user account. You know, the typical workflow of register on the website, receive a confirmation email, click an activation link, done. Since django-registration relies on you to create the URL with the unique code on it, and it only gives you a site variable, which is an instance of django. »

Author image Raúl Santos

Frameworks para desenvolvimento web

Tendo a web como a minha área principal de trabalho, tenho um interesse natural pelas ferramentas que me possam facilitar a vida. Nesse sentido, algo que hoje em dia é quase essencial é uma boa framework. No entanto, com o advento da “web 2.0” (detesto o termo), e em particular após o grande sucesso da Ruby on Rails, frameworks para desenvolvimento web têm aparecido como cogumelos. Toda a gente e mais a minha avó tem a sua framework. »

Author image Raúl Santos