19

Writing a super extensive project in php. Twice so far, I have had weird problems of codes not working.

But everytime I copy/paste the SAME code from another file, IT MIRACULOUSLY WORKS!!!!

WHAT THE ACTUAL FUCK!!!

Comments
  • 2
    Works on my machine ¯\_(ツ)_/¯
    Sounds like you might need an environment manager such as virtualenv to keep track of package versions and dependencies and stuff
    Also watch your name spacing
  • 1
    Or maybe it's just time for a nap ...
  • 1
    @tracktraps considering its 5am in the morning and if I wait 20 minutes Ill get to see a spectacular sunrise. I guess it really is time for a nap
  • 2
    One thing i noticed when i started using apple products.. option+space is a bitch if you don't use an editor that displays whitespace and if you use a non english keyboard layout that option key is quite heavily used making it quite easy to accidentally get non breaking spaces in your code.
  • 3
    its the whitespace. i always have that problem on Mac 😬😬
  • 1
    > PHP
    > Weird problems
    > Weird solutions
    > Swearing

    It's almost like this has never happened before!
  • 2
    @Ashkin That's PHP for you. Random crap that somehow stays together but no-one really knows why or how
  • 0
    Make sure it's not something to do with caching requests or views. I had some similar issues resolved by pressing ctrl +f5 a million times.
  • 1
    @moolsbytheway

    Thought the same.
  • 3
    Dump PHP and never look back again,
    Thank me later!
  • 1
    @metaory wpuld love to! (Might move to Node.JS after. But gotta finish this thesis project which would be easier when done with php ;)
  • 1
    @metaory. my self using NodeJS now but used to do stuff with PHP and its cool, i dont blame languages; i blame bad methodology of using them. php can do a lot of stuff when using OOP. but im willing to learn new stuff.
Add Comment