Wikipedia defines Cargo cult programming as "Ritual inclusion of code or program structures that serve no real purpose."

One behaviour, deeply embedded into the hearts and minds of many software developers is the creation of getters and setter on entities. It' so widespread that IDEs have tools to do it automatically.

Why do we do it? Does it serve some purpose or is it just a cargo cult programming ritual?

Comments

Please login to leave a comment

David Lumm at 20:49 on 10 Jun 2020

Short but sweet, with some useful reminders to actually think about what we're doing instead of just doing what we've always done. I think the talk could probably be a little longer, with some more examples of not using getters/setters, and maybe some other examples of PHP cargo cult practices.

Unfortunately there were a couple of problems with the connection and volume with the speaker, but overall it went well.