by the time ive made these posts i had been struggling with slim for AGES to get it to work as i “expect”. sure this is 100% a case of just me struggling with it. if i understood slim the way others do (or coding in general i guess) then i wouldnt ever have had to come onto the forum and ask any questions right?
so me asking a question means that im stuck. means that ive at least been trying to come up with a solution to what im stuck with for at least 2 hours as an absolute minimum.
(im excluding odan’s post in this thread cause its very very not helpful at all, being told “yeah like you being stuck is a you problem” is a massive slap to the face why not just ignore the thread? or at least seem to offer “any” advice?)
some comments re the custom request thread:
- you shouldnt change the request object cause then you loose psr7 (i disputed it that i dont ever intend changing it so what are the risks of extending it then? surely if all the other request psr7 libraries are exactly the same then why are there multiple of them) “i dont see the value in doing it the way you want to do it, therfore you are wrong?” vibes here? im sure if the pro in question had seen the value in what i want to do they would of made a blog post about it and potentially had a way better solution to my issue which in another thread i described in a lot of detail why i want to do it this way even. just cause someone wants to do something “differently” doesn’t automatically make them “wrong” i distinctly got the vibes of “you want to do it differently, therfore you are wrong” in my interactions here. i do admit, i am probably wrong, but then tell me why im wrong, show me why what i intend wont work instead of just telling me im wrong.
- akrabat actually gave me advice that on reflection was very accurate and the solution i ultimately went with. but at the time it looked awfully like “include this extra dependency to your project just to be able to extend the request by a single method” and “just go figure it our yourself” when a simple "why dont you do what slim-http is doing by creating a decorator for the ServerRequestInterface Slim-Http/ServerRequest.php at master · slimphp/Slim-Http · GitHub " would of saved me at least a handful of hair and frustration. i actually on more than 1 point in this journey felt like the “pros” got a kick out of watching people struggle vs either just ignoring them or helping them. again this is my opinion. if you go through my posts you will see that in just about every 1 of them i try mention what im struggling with, what goal i want, what ive tried, what im going to still try. (then to be told in this thread “try describe your problem in more detail and examples” really?)
maybe ive re read my posts and i honestly cant see where im “disagreeing” with the pros, i question certain things but i dont disagree with them. (unless my definition of disgree is outdated and simply asking questions is considered disagreeing)
so my question. if you implement things exactly as set out in a copy paste fashion how will you ever learn? dont you ever think of a “better” way to do something (right or wrong, at the time it seemed like a “better” way) just cause no one else thought of it (or seems so, how is it that there is a ton of info on some things but extending the request/response has nothing on it, not even motivations on why its a bad idea, simply nothing. confusing or as at the time i couldn’t find, my googlefu wasnt good enough)
and again. every time you have a problem, its ALWAYS a “you” problem. isnt that the definition of “having a problem”.
ive made silly posts (and ive admitted those) and i will continue making silly mistakes till i die.
the only thing ive been argumentative about would probably be the “read the tutorial” type help. if the tutorial had the answer i needed to solve my problem i wouldn’t be making a post about it right? im sure the tutorial DOES have the answer, its just not described in a way that “solves” my current thought process (so to “me”, the tutorial fails to do what its supposed to, which is answer my question, its akin to “Answer to the Ultimate Question of Life, the Universe, and Everything, is 42” a hint would help… ).