Open frankcollins3 opened 1 year ago
this is what chatGPT had to say about it:
here's why I find their response confusing. take this invocation of the public class
:
var apiUrls = new ApiUrls();
// we don't do such a thing for the Model and Controller: [7:49am]
{insert-tabloidy:"You wont belive what they said!" type of headline} [7:51am]
// sidenote.. before chat responded that was my next question. are classes variables? I guessed that they were objects & it's the reason why I avoided usage of "variable" in the above comment. [7:52am]
// sidenote: chat redeeming themselves after taking 3 days to set up EF when stack overflow helped in 30 mins lol. [7:53am]
namespace and public class it is. now having a separate issue with namespace definition and referenceability [8:07am]
[8:09am]
but then try this and get this output:
[8:10am]
attempting to do: make a reference of this below seen url string for http requests elsewhere, and import in this code.
in react/nextJS: one could put these in a utility/url.ts folder or even encapsulate the application with an app.tsx level that delivers typesafe, valuedefined useContext()
error: no error yet
proposed approach: /Data/string.cs (use a namespace)?
possible improvements: