HeyBaldur
HeyBaldur
CC#
Created by HeyBaldur on 3/11/2024 in #help
ML Profile Matcher
Making a simple query in the DB can be the easiest, but it is terrible to make a
contains()
contains()
everytime a user wants to find suggestions
5 replies
CC#
Created by HeyBaldur on 3/11/2024 in #help
ML Profile Matcher
@OkOk Imagine a job profile finder, you as user needs to have some suggestions (summary) and you have your profile (goals), the idea is to make a profile matcher, however what I am looking for is something to make this job possible for a such task, I am not sure what could be the best, if Tensorflow, ML.net or any other easier alternative.
5 replies
CC#
Created by HeyBaldur on 8/31/2023 in #help
❔ Contacts DB Strategy
No no, what I am asking is something more from the strategy perspective. I appreciate guys that answered but not resolved yet.
7 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
I will check it out!
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
@ayman65 just in case, if you are getting involved in Software Developement, normally these kind of conversations are very normal! Do not get afraid of them, actually if you ask something, I am prettty sure if any of us will kindly answer you! 🙂
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
I agree! Me too
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
Let's imagine this scenario, in this service https://github.com/HeyBaldur/Company.API/blob/main/Company.Infrastructure/Services/UserService.cs#L51 Before anything it should be NotFound, instead BadRequest but the service is already telling the controller what should return, why should I need to create a repetitve logic in every controller, if(HTTP_Reponse) then return NotFound() in every controller all the time, this is the reason of having the GenericReturnableHelper because think in a big scale, X controllers, with Y amount of the methods, writting all the validations for each one of them, it will make this enormous.
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
ok, mean that in the controller, I should have all of them, based on the response from the service even if the in the service there was a problem in the catch
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
Nope, because that means we have 200 HTTP response the UI will always treat it like 200 response, what happens if the records were not found in the DB and there are another logic in the UI that maps 401, 500, 200, 201 and so on? You cannot always return Ok
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
@pobiega gave great points, however can you explain why @snowy9228 why do you think it is a useless piece of code?
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
Anyway for learning purposes, and understand briefly how a token could be implemented, the repo might give you an idea @ayman65
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
haha I think so!
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
@ayman65 Did you catch anything? haha I think it is great discussion
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
I partially agree, good one
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
And, also, the controller must not have the model like Task<ActionResult<TodoList>> it should be clean an generic
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
Here is where I disagree because this kind of logic should not be in controller, the service must handle this
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
How should look the controller when it is returning the final result
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
It is nice approach actually, but how the controller will call this extension?
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
If you noticied, this is actually a service that returns an IActionResult interface tha you have to inherit the class Controller in here public class GenericReturnableHelper : Controller, IGenericReturnableHelper coming from using Microsoft.AspNetCore.Mvc;
111 replies
CC#
Created by ayman23 on 7/6/2023 in #help
❔ implementing api authentication in asp.net
111 replies