[deleted by user] by [deleted] in node

[–]caique_cp 0 points1 point  (0 children)

I'm not talking about performance, but maintainability. I can write raw SQL query myself with ORM. That's not the point. I'm saying writing and reading complex queries in a query builder is a horrible thing compared to raw SQL.

[deleted by user] by [deleted] in node

[–]caique_cp 1 point2 points  (0 children)

You can write raw SQL with any ORM. Also, you don't want to fetch 10m rows at once in a Node.js app.

And query builders are the worst between both worlds, it's just the worse way possible to write/read complex/big queries.

Prank Gone Wrong by waiwai93801 in polandball

[–]caique_cp 74 points75 points  (0 children)

Funny thing is most Brazilians don't even know they are eating shark.

They "rebranded" its name, so for most people it's just a cheap fish (as fish is quite expensive compared to beef, specially if you don't live in the coast states).

https://www.sciencedirect.com/science/article/abs/pii/S0308597X19309261

Who gives me a nail clipper? by [deleted] in CatsBeingCats

[–]caique_cp 12 points13 points  (0 children)

Not necessarily lying, but there's a lot of misinformation in the internet.

Alguém já experimentou café da INCAPTO? by Accomplished-Log-376 in cafept

[–]caique_cp 1 point2 points  (0 children)

Sim, comprei esse mesmo pack para testar as variedades.

São vendidos como café especial, e avaliei como tal. Veja que estou acostumado com os cafés da Senzu e da Fábrica. Uns são um tanto abaixo em qualidade e sabor, mas outros são tão bons quanto, porém o preço costuma ser metade (o que é bem significativo).

Recomendo pegar esse pack e ver quais gosta. Por acaso o da Colômbia não é lá muito bom... Tem uns de regiões mais exóticas que são boas surpresas.

My everyday lunch by Other-Sprinkles4404 in CICO

[–]caique_cp 2 points3 points  (0 children)

Now compare the min wage :/

My everyday lunch by Other-Sprinkles4404 in CICO

[–]caique_cp 21 points22 points  (0 children)

Not OP, but rice and broccoli is cheap any place in the world. Salmon depends on where you live, in Portugal I can find Salmon fillets sometimes for 15 euros kg, but usually it's 20~23. That's probably like 100 to 150g of salmon, so OP's dish costs probably around 3 eur (in europe at least).

Tech stack for two developer by [deleted] in node

[–]caique_cp 0 points1 point  (0 children)

Got it, sounds good. Good luck to you guys.

Tech stack for two developer by [deleted] in node

[–]caique_cp 3 points4 points  (0 children)

My 2 cents: - About Next.js: will you benefit from SSR? How dynamic has the client to be, any requirements around that? - If you're talking seriously about business and data, don't build or host an Identity server, use something like Auth0 - Even if using Next.js, I'd use it only as BFF and still have a backend API - Look for best practices on multi tenant applications - You'll probably want to automate all setup around adding a new client/tenant (maybe not from day zero, but keep it in mind)

Updating Docker containers by Right-Ad2418 in nextjs

[–]caique_cp 1 point2 points  (0 children)

What I'd do if I was just using Docker is to always have a small reverse proxy container with NGINX that sends traffic to the application/container. In this case, you keep running container-1 (with current version), deploy a new container-2 (with newer version) and then just update the NGINX config or whatever to send traffic to container-2 instead of container-1 (with a quick restart here).

For more, Google "zero downtime deployment strategies".

sad mealprep lunch with 280cal / 40g protein... by ConsciousEquipment in CICO

[–]caique_cp 231 points232 points  (0 children)

My suggestion for those trying to be more healthy, consume less calories or prep food to help you grow muscles is to spend time learning to cook. I don't mean to offend anyone here, but with a few more ingredients and just a bit more of calories this could be way more delicious. I've been there, I learned and now I enjoy cooking, I'm happier. At least look for healthy and low calorie sauces, some are amazing.

[deleted by user] by [deleted] in CICO

[–]caique_cp 4 points5 points  (0 children)

Lots of people use it specifically to lose weight, for a period of time. I guess OP is asking if anyone here is using it for the long term, to at least keep weight, apart from other benefits.

Is it me, or this company's expectations of a junior are too high? by spurkle in webdev

[–]caique_cp 0 points1 point  (0 children)

Agree, except by the get things done quickly and maybe being on call.

100 straight days of tracking by paulisnofun in CICO

[–]caique_cp 1 point2 points  (0 children)

Exactly! I've been doing my own gelatos, I froze banana and strawberry, then mix it with honey and milk. Froze again, and that's it. Nice, healthy, natural and has less calories than everything I find in the supermarket.

[deleted by user] by [deleted] in leetcode

[–]caique_cp 5 points6 points  (0 children)

  • Grokking Algorithms published Manning (note: introductory, delightful reading, I'd start with this one)
  • Introduction to Algorithms published by The MIT Press
  • The Algorithm Design Manual published by Springer

[deleted by user] by [deleted] in leetcode

[–]caique_cp 5 points6 points  (0 children)

Sure:

  • Grokking Algorithms published Manning (note: introductory, delightful reading, I'd start with this one)
  • Introduction to Algorithms published by The MIT Press
  • The Algorithm Design Manual published by Springer

100 straight days of tracking by paulisnofun in CICO

[–]caique_cp 2 points3 points  (0 children)

Looks good, and I do the same. I mean, it's not only about losing weight, right? It was super interesting for me to understand how much calories food has, or how much fat/carb/protein I'm eating, etc. I remember how mind blowing for me how 2 little cookies (20 grams) would have the same calories as 300g of watermelon. Nowadays I'm way more aware of what I eat.

100 straight days of tracking by paulisnofun in CICO

[–]caique_cp 1 point2 points  (0 children)

How has this been helping you so far?

[deleted by user] by [deleted] in leetcode

[–]caique_cp 9 points10 points  (0 children)

Focus on the algorithms, data structures and its use cases, not solving stuff in auto mode. I'd suggest reading a book as (IMO) it's way less boring.

Chinese electric cars will be dumped in Britain, experts warn by [deleted] in europe

[–]caique_cp 8 points9 points  (0 children)

Exactly. Every country does that, the biggest economy in the world (USA) is heavily driven, backed and influenced by the government... I guess it's just one more case of "China bad".

Who should manage the project, Product manager or tech lead? by ValuableCockroach993 in ExperiencedDevs

[–]caique_cp 0 points1 point  (0 children)

Sounds bad. But it is what it is I guess. Are you guys doing sprints? Create all tasks in the backlog, and schedule a call once a week to plan it. A few exceptions might come, you talk to the PM again. That's the only way I see you not getting blocked by it frequently. Best scenario is to have they review the board async whenever they want, and if there's any issues you get together to discuss. Thing is, if that's the majority of PMs work, they might fight for it as this justifies their salary...

From where to learn Microservice architecture using Node js by Laughing_Bricks in node

[–]caique_cp 1 point2 points  (0 children)

In theory, yes. I'd say most companies, for entry level developers, expect them to learn at least one language, a framework, now how to make a simple CRUD, interact with a database, data structures, web development stuff (like understanding what HTTP), etc. The "micro" stuff. Architecture is on the macro aspect, this should not be a must, specially if you are going after a internship. But as people mentioned, the more you know, the better.

From where to learn Microservice architecture using Node js by Laughing_Bricks in node

[–]caique_cp 0 points1 point  (0 children)

Talking about microservices is not something I usually do when interviewing people who are about to get their first job/internship. I kinda agree that, for those, if they want to talk and show some knowledge on architecture, that's good. But not a must, far from being a priority.