So, I returned to a project that i put on hold for a few months because .. life. There are some 12000 lines of #code and many #php Classes for a #wordpress plugin. I'd like to finish this thing, and I am the only #developer. It has only been a few months but, why do I keep asking myself "Why did i do that?" "What was I thinking?" "Where is the hook into that function???" Sheesh! Right now I just want to make it presentable and clean it up down the road. Am I normal?
JSON is usually beautifully simply and useful. I'm starting to see the same un-necessarily over-complicated nesting of simple data by API vendors as the XML crowd. All I'm missing is Base64encoded JSON inside of Base64encoded JSON.
New WTF?!? that has me wanting to thwack an API providers team:
In one place it needs (without quotes)
"invoiceTotal": 17.37,
In another it needs; (with quotes)
"invoiceTotal": "17.37",
but if I pass 17.37 (bare) to PHPs json_encode it wraps it in quotes. I can't use JSON_NUMERIC_CHECK because it breaks the things that should be strings like "01" instead of 1.
There are kludgy work arounds... or I can hand code my JSON, but WTF?!?
ok #php brain trust.... say you wanted to automate some code changes. Simple stuff like "find all the instance methods that call self::staticFoo() and change them to call $this->foo() instead"... what static analysis tool would be the first one you would reach for to do that? Before anyone says "a grep and perl pies pipeline" note that static methods that call self::staticFoo() must remain as is. Next up would be "find all the places ->info['foo'] is read and replace it with ->getInfoFoo()."
Top 15 CakePHP Interview Questions and Answers (medium.com)
CakePHP as a powerful PHP framework, is widely used for building web applications.