Tag: programming

  • C programming old bad practices

    C programming old bad practices

    So I’ve just started learning C. C is a really, really old language, and with it comes bad practices from the past. Learning C is like traveling in time to decades ago, almost but not really. C is much closer to the architecture, meaning you must consider memory management, pointers and more. There is lots […]

  • Symfony 5+ error logging handlers explained

    Symfony 5+ error logging handlers explained

    This will be a super long article, this subject is way more complex than it originally sounds. As always, I’ll be updating this soon with more info and possibly more examples as I figure it out better. First off, you are not limited to just one logger in Symfony. However, the most popular is Monolog […]

  • PHP Enumeration classes vs fake enumerations what to use.

    PHP Enumeration classes vs fake enumerations what to use.

    I am growing to HATE PHP ENUMS. Why? Because if you forget to call ->value you get BS errors about cannot convert object to string. It is just another un-needed step. Enums sounded cool at first but fuq the BS with calling ->value, it is entirely too easy to forget. Enumeration classes in PHP are […]

  • Php Backed Enums don’t forget to call value

    Php Backed Enums don’t forget to call value

    The one thing I don’t like about new PHP enums is, if you forget to call ->value you get exceptions “object can’t be converted to string” It is entirely too easy to forget to call ->value. This means in places where I refactor code I have to remember to call ->value. Hence the article title […]

  • How to change the id for a form input in Symfony 5+

    How to change the id for a form input in Symfony 5+

    If you create your forms with classes in Symfony 5+ then changing the ID of the form fields is something you are not allowed to do apparently. LOL You can add/change the class and other attributes but not the id. For some reason Symfony ONLY lets you change the id inside the template. I don’t […]

  • Our programming tools are stuck in the past

    Our programming tools are stuck in the past

    Recently I decided to start automating my infrastructure. Before this it had never occurred to me how stuck in the past our ancient tools are. These days we have the cloud. We can fire instances up in seconds. But to do this we need ways of automating things. Tools such as SSH, SSL, GIT etc. […]

  • Golang web development resources and links

    Articles Session based authentication in Go

  • scala web development resources

    Resources for web development with Scala Scala tags. This library is for creating HTML from Scala. Thanks lihaoyi ScalaCSS a library for creating CSS from Scala

  • functional programming resources and notes

    Before you get too excited and go all functional in Scala you should know that 100% Functional Scala can be serious Memory hog because you are making copies of everything everywhere because functional means immutable data. Be careful with things such as map and flatmap they create lots of extra objects. Avoiding loops for the […]

  • Microservice resources

    Microservice Resources Most of us older people have been building monoliths for most of our careers. Now BAM! a new buzzyword is born Microservices. Microservices are all about tearing apart the dreaded monolith into smaller services that all function together to perform the actions of the monolith. Microservices have many benefits over Monoliths, however they […]