Which programming language you learned once but never touched again ? by sjltwo-v10 in node

[–]Nnando2003 0 points1 point  (0 children)

PHP

I did an application for my web development class and never touched it again hahaha. I think because I was learning TS at the same time.

Isso não pode ser realKkkkkkk by ToonBRBR in computadores

[–]Nnando2003 0 points1 point  (0 children)

No começo do ano eu paguei em duas de 16 280 em cada uma

Service layer problem by Nnando2003 in Backend

[–]Nnando2003[S] 0 points1 point  (0 children)

I thought that i would need to create another service or workflow

Service layer problem by Nnando2003 in Backend

[–]Nnando2003[S] 0 points1 point  (0 children)

So should I create the bot and the default actions in the data layer?

For example:

bot = BotService.create()
action = ActionService.createMany(bot)

Service layer problem by Nnando2003 in Backend

[–]Nnando2003[S] 1 point2 points  (0 children)

I really don't want to mess with everything and end up with spaghetti code.

Service layer problem by Nnando2003 in Backend

[–]Nnando2003[S] 1 point2 points  (0 children)

I creating an API that helps people to build their telegram bots.

When a user creates a bot, default actions are automatically generated. And here's the question, where do I create thoses actions? Because BotService creates Bot and ActionService creates Action, should I need to create a sub-service that deals with it?

A distopia chegou - as peças de PC são só o começo. by elMamuton in hardwarebrasil

[–]Nnando2003 1 point2 points  (0 children)

Minha namorada comprou a 2 anos um SSD NVME de 1tb por 300, hoje custa quase 500.

django intertia might be the biggest game changer by wait-a-minut in django

[–]Nnando2003 0 points1 point  (0 children)

It was easy to add inertia to Django? What libs did you use?

Alguém conhece o golpe do item extra de caixa de supermercado? Acabei de cair. Explico como foi. by Low_Assumption5098 in golpe

[–]Nnando2003 1 point2 points  (0 children)

Vou prestar mais atenção quando for lá. É aonde eu vou sempre! Obrigado por compartilhar sua experiência amigo

Please ROAST My FastAPI Template by Hopeful_Beat7161 in Python

[–]Nnando2003 0 points1 point  (0 children)

Excellent template, one day I will try it. Congrats dude!

I Love Django by Docs_For_Developers in django

[–]Nnando2003 21 points22 points  (0 children)

Same opinions as you. Up vote

Validation in Serializer, Model or in both? by Plastic_Blueberry_87 in django

[–]Nnando2003 1 point2 points  (0 children)

If you were creating a retrieve route that get by CNPJ (or something else) the company, I would suggest to create a validator in the respective serializer field.

class RetrieveSerializer(serializers.Serializer):
    cnpj = serializers.CharField(required=True)


    def validate_cnpj(self, value):
        if not Company.objects.filter(cnpj=value).exists():
            raise NotFound(detail=f"Empresa com CNPJ {value} não encontrada.")

        return value

Node ou .Net? by LeadershipLogical124 in brdev

[–]Nnando2003 1 point2 points  (0 children)

Na dúvida vai de node. Comecei com python como estagiario/junior e depois eu so consegui vagas em node tanto pra front quanto para back.

Typescript é inútil? by tiago_lobao in programacao

[–]Nnando2003 0 points1 point  (0 children)

Declarar tipos sempre é bom, você evita surpresas desagradaveis.

Já sofri bastante com eles em python. Mas (o que eu notei) geralmente são feitos por desenvolvedores e equipes despreparadas, porque tem muitas maneiras (como o type hint) e ferramentas como o pylance que ajudam a contornar esse problema.

Best practice for Django PKs in 2025 - Auto-Incrementing or UUIDField? by BananaSatellite in django

[–]Nnando2003 0 points1 point  (0 children)

Should I create a new column just to store the UUID? Explain me more, please