Cydo
Explore posts from servers✅ When should you or shouldnt you return nested data in an api call?
Perfect so this is what I'm trying to do, structure my apis to match the front end i already built out.
However my next question is if ur fetching the data from the database for something like a task and it's comments, should u get the single task and all of its comments and then loop over the comments up to say 5 and then send the 5 comments back in the json response to the client.
and then have a seperate end point thats just gonna keep fetching the paginated comments for that task
or instead do 2 separate api calls from the start, one for the task, and the other just getting the 5 comments for that task and then creating the json response object, and have them load independently on the front end, and then every time u wanna get the next page of comments u already have that getPaginatedComments endpoint to call
13 replies
✅ How should updating Database work with Kanban style app work?
yeah def not that LOL, i am very much just trying to build a somewhat impressive portfolio project to hopefully get a job at a .NET shop lol, only been learning .NET and C# for about 30 days now 😅
7 replies
✅ Having trouble handling errors when registering a new user
So instead pass something like ErrorCodes.InvalidEmailFormat, and then on the front end have a look up table that will look for that error code and have the custom error message like "Email must in the correct format"
6 replies
✅ Having trouble handling errors when registering a new user
I think I might have come up with a viable solution where I create a my own exception and then deliberately check for the error message and throw that error
I am all ears if there is a better solution then this though
6 replies
✅ How to hide sensitive data, like database credentials api keys etc
Ok now this is a real dumb question, inside of visual studio theres no terminal like vs code, u have this package manager console and then the developer terminal, is that going to the same thing as using windows terminal?
16 replies
✅ How to hide sensitive data, like database credentials api keys etc
But the rest will? My fear is I make a little portfolio app host it for 5$ or w.e the lowest fee is on azure and them somehow i get a bill that is thousands of dollars with out knowing how that even happened lol
16 replies
✅ What is considered enough knowledge to start applying?
What about the language overall? I understand fundamentals, and OOP, but then C# has multithreading, async await, delegates, projects, assemblies, solutions, and then theres other topics such as Unit Testing, Deployment, CI/CD etc, is a junior not expected to know that, but it would be nice to haves?
My background is prodominantly javascript, react and node js. I can build full stack applications and deploy them. .Net and C# just feel like a different world compared.
25 replies