30
Nexion
5y

After 2 years of being forced into writing PHP 5.5, we've finally convinced upper management to let us switch to C# instead. It's coming in a few weeks. Words cannot describe how much I hate this god awful language.... C#, save me my sweet, sweet, strictly typed goodness.

Comments
  • 7
    And what about php 7.3? (Or upcoming 7.4) 🤔
  • 8
    @alexbrooklyn We are updating our legacy stack to go to 7.3 for security update reasons, but for the product we provide, PHP is the wrong choice. Plus it still lets you do too many stupid things. I'm really not a fan of it.
  • 3
    @Nexion Just like now, I just found a bug where I'm calling a property from an array instead of from an object inside that array (Javascript)
    If it was C# compiler would have never let tiny mistake pass...
  • 3
    @gitpush That's part of why I also pushed to convert to Typescript for our front end. That or FlowJS are life savers.
  • 2
    @Nexion Too bad I cannot use Typescript with React Native :\

    Took me some time to get it working with Vue
  • 1
  • 2
    @Nexion damn I didn't know that, thanks a lot man, have a new project on RN, would be much better to use Typescript.

    But what about 3rd party libs? In vue I sometimes face issue that type is not defined, I end up adding module.export to a new file (if my memory serves me well) and it gets solved, is it the same in RN?
  • 1
    @gitpush Using this should get you at least most of the way there: https://npmjs.com/package/@types/...
  • 1
    PHP 5 and 7/8 are not even the same animal. I'll trust when you say PHP is the wrong choice, because I've seen desktop apps written in PHP (don't ask how please) but honestly PHP 7+ is not that bad, especially if you're sticking to PSR. I'd also generally rather migrate an app from PHP5 to PHP7 than from PHP5 to C#.
  • 1
    @Nexion @SauceBoss I second that, I wouldn't dare to look back at my old C# school projects. My current php code seems less spaghetti-ish than my C# from the past 🤔
  • 0
    @Nexion Thanks man much appreciated :)
Add Comment