The pain of programming - just venting
-
I've spent the last two days trying to solve an issue with my custom wordpress API plugin. In order to do that I had to set up a proper PHP debugger, in order to that I needed to update the PHP version on my local server, in doing that I accidently wiped my database!
So then I tried to restore from a backup, that didn't work, so then I rebuilt the site. Then I installed the debugger and spent two hours trying to get it to work. Then it finally worked and in two minutes I found the problem - I needed to add a single backslash to my code!
-
@d-healey I feel your pain. I spent a week trying to figure out why the new Develop branch was completely incompatible with CUBE. Every time I would open it, I'd get like 30 errors with no explainable cause and the whole interface was broken. Turns out
x === undefined
now always returns false in HISE, and all I had to do was change it tox == undefined
or useisDefined()
-
@d-healey said in The pain of programming - just venting:
m a backup, that didn't work, so then I rebuilt the site. Then I installed the debugger and spent two hours trying to get it to work. Then it finally worked and in two minutes I found t
Just PHP things. That's why I prefer write own ecommerce solutions with MENN (Mongo, Express, Node, Next.js);
-
@Casey-Kolb I think what you have encountered is the special Javascript type
void
, which is only used if you try to access a nonexistent member of an object (or out-of bounds indexed access of an array). I don't understand why it's there and any code that relies on that distinction has a code chance to win the "Most Horrible Code Award", but apparently the===
operator (which I never use) distinguishes betweenundefined
andvoid
.var x = {}; var y = undefined; reg a = x.prop == undefined; // true reg b = x.prop === undefined; // false (it's void) reg c = y === undefined; // true (it's undefined);
-
@christoph-hart Fascinating! I've definitely been nominated for "Most Horrible Code Award" before
-