---
title: "Discussion on \"Globals are bad, but!\" | Hashnode"
description: "Discussion on \"Globals are bad, but!\". When I started writing PHP and learning my first OOP concepts and patterns, I remember being dazzled by the singleton pattern. I used it so much! I think I fell in love with its convenience. Just make"
url: "https://hashnode.com/posts/globals-are-bad-but/63d259c254bb033ecbda9759"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Globals are bad, but!](https://blog.mnavarro.dev/globals-are-bad-but?utm_source=hashnode&utm_medium=feed)

When I started writing PHP and learning my first OOP concepts and patterns, I remember being dazzled by the singleton pattern. I used it so much! I think I fell in love with its convenience. Just make

Nov 5, 2022 · 4 min read · blog.mnavarro.dev  
Updated Mar 28  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#oop](https://hashnode.com/tag/oop)

## Written by

[Matías Navarro-Carter](https://hashnode.com/@mnavarrocarter)

@mnavarrocarter · Coleraine, UK

  
[View profile](https://hashnode.com/@mnavarrocarter)

Senior Software Engineer

I'm a Chilean Software Engineer living in the United Kingdom, specifically in the cold and beautiful north coast of Northern Ireland. I moved here in March 2020 -- yes, at the very start of a global pandemic! -- with my wife Briony and our cat Pua to be closer to her side of the family. Originally a History B.A., I made the career switch around 2015 once I discovered how fun and intellectually stimulating Engineering is. Apart from building useful stuff other people can use, I love sharing what I've learned and hearing what others have learned too.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
