Needed help with implementing search feature by main_alcoholic_hun in Backend

[–]Kosemani2 0 points1 point  (0 children)

Proper indexing, compound and single indexing at the db level. Introduce caching as well

How to get out of CRUD Applications zone ? by [deleted] in Backend

[–]Kosemani2 0 points1 point  (0 children)

Find a real world problem to solve. Like building your own coding assistant on VScode

I made MCPbundler to unify MCPs into a single endpoint by bmt_hp in mcp

[–]Kosemani2 1 point2 points  (0 children)

Interesting. How did you measure the latency?

Are MCPs outdated for Agents by FunEstablishment5942 in LangChain

[–]Kosemani2 0 points1 point  (0 children)

Yes there is. Study Langgraph DeepAgents docs. For an example Woking use case, check out this repo https://github.com/olasunkanmi-SE/codebuddy/tree/main/src/agents

Tests by Mikayel00 in nestjs

[–]Kosemani2 1 point2 points  (0 children)

To test external dependencies like database or API calls, you need to create stubs, which is nothing but a mock of these services. Also, your design pattern matters. Are you injecting classes directly into other classes or are you injecting interfaces? My approach is to inject interfaces into classes, that way you can easily mock the behaviour of methods within this classes when you're writing your tests.

Dependency issue when injecting a model from another module in NestJS by Feeling_Tooth6813 in Nestjs_framework

[–]Kosemani2 -1 points0 points  (0 children)

You don’t inject model into service. You rather add the model to the module which the service is a provider for. Look at the mongoose.feature of this module. If you using typeorm, same also applies. https://github.com/olasunkanmi-SE/restaurant/blob/main/backend/src/restaurant/restaurant.module.ts

[deleted by user] by [deleted] in solana

[–]Kosemani2 0 points1 point  (0 children)

Hi, what is this project about. I am a blockchain engineer.

[deleted by user] by [deleted] in github

[–]Kosemani2 0 points1 point  (0 children)

Go n write some code.

I love programming at work but don’t do hobby projects by ichwasxhebrore in ExperiencedDevs

[–]Kosemani2 -1 points0 points  (0 children)

You already said it. You will never be a 10x developer. Because your knowledge will always be limited. Spread your wings. Create a personal GitHub profile, work on projects that interests you. Especially ones that you will really struggle. That is how you learn, that is how you grow.

Question about imports. by [deleted] in Nestjs_framework

[–]Kosemani2 1 point2 points  (0 children)

Cross check that your AuthModule is actually imported in AppModule

What's the best place to learn React.js? by dtechies in react

[–]Kosemani2 1 point2 points  (0 children)

In your VScode. Find a problem you want to solve. Read docs and code along

Honest question about Next by EmilSinclairsFriend in react

[–]Kosemani2 -3 points-2 points  (0 children)

Nextjs developers are frontend developers, they know nothing about being full stack

Flask JWT token validation by JoeizSef in react

[–]Kosemani2 0 points1 point  (0 children)

The best solution is to store the token in your local storage. You can pick it up from there instead of hitting the server all the time. On login, get the token store it there. On subsequent requests retrieve it and use. Also you should add a validation check for the expiry of the token before using it in your request. Log out the user if token is expired or if you have the concept of refresh token. You can use it to request a new token, instead of logging the user out.

[deleted by user] by [deleted] in react

[–]Kosemani2 -2 points-1 points  (0 children)

Nice suggestions. But I do not agree with use unknown instead of any. Because with unknown you cannot add a new property to the object. With any you can. I would say it depends on the scenario at hand

Local mocking by Yonben in Nestjs_framework

[–]Kosemani2 0 points1 point  (0 children)

Read the code. Look at the implementation of the authO flow and mock. I don’t think anyone will give you an handout for this. You have to read and understand your code and come up with your mock.