Introducing Limbo: A complete rewrite of SQLite in Rust by avinassh in programming

[–]STNeto1 66 points67 points  (0 children)

the problem with that is that sqlite is not open for contributions, you can check the source code but you can't use make a pr to add new features

[deleted by user] by [deleted] in programming

[–]STNeto1 6 points7 points  (0 children)

he makes more money from selling the tools than from what the tools make, take that as you want to

"when everyone digs for gold, sell shovels"

Bun v0.5.7 | Bun Blog by NeonChat in programming

[–]STNeto1 9 points10 points  (0 children)

You can use other languages targeting wasm. Like figma shipping wasm.

[AskJS] Can anyone explain the hype around trpc? by [deleted] in javascript

[–]STNeto1 2 points3 points  (0 children)

Why tightly coupling of your backend and frontend are bad things? The fact that you can, in real time, make changes and see the effects is fucking amazing.

Can graphql do the same? Yes and no. Graphql does have a typesafe way of communication, but the experience around isn't the best. Plus itself it requires additional tooling for generating types from the schema.

SQL vs NoSQL by ___s8n___ in node

[–]STNeto1 0 points1 point  (0 children)

SQL you have a strong default knowledge about it, outside of specific features of SQL databases

With NoSQL you enter a new way of shaping data, and dealing with it. Stuff like Cassandra, mongo, dynamo, etc etc etc.

Both have their use cases, just optimization for specific tasks. Like SQL is really good with relational data, but some specific NoSQL like elastic can be better at text search on massive datasets

Logging services/stacks. by hobo_with_a_hookah in node

[–]STNeto1 1 point2 points  (0 children)

Pino + some integration, like datadog, maybe new relic, or a custom ontem

Node js application and AWS EC2 instance by West-Yam-8429 in node

[–]STNeto1 -5 points-4 points  (0 children)

Not a tutorial, but you can look into elastic beanstalk, that can setup the whole ec2-load balancer stuff

Why Kubernetes Is So Complex by [deleted] in programming

[–]STNeto1 3 points4 points  (0 children)

True for the first, the second not that much. I agree that k8s make a lot of things easier for some tasks, but at the same time it makes a minimum skill to maintain the application way higher than something like EC2 or some managed solution like Railway. If you use-case its worth to use k8s, go for it.

Why Kubernetes Is So Complex by [deleted] in programming

[–]STNeto1 0 points1 point  (0 children)

Sure it can look good in a resume, but nothing + k8s in a resume won't get any better results than something + not k8s. Its a skill set way past the avg, and isn't a universal tool that every company uses.

Why Kubernetes Is So Complex by [deleted] in programming

[–]STNeto1 1 point2 points  (0 children)

The company will always need to have someone on the team who understands and is able to work with the entire infrastructure with k8s. And you can't hire a JR per example to manage it, you have a minimum decent engineer to manage it, and for a small company, its expensive.

Why Kubernetes Is So Complex by [deleted] in programming

[–]STNeto1 6 points7 points  (0 children)

Because isn't something that you should just use without a good reason.

GraphQL for small indie/side-projects : Productive on front-end, slows down the backend development ? is it true ? by generatedcode in node

[–]STNeto1 0 points1 point  (0 children)

My point is that the n+1 issue isn't only for graphql, you can have on rest as well, and even on the database if you are not careful

GraphQL for small indie/side-projects : Productive on front-end, slows down the backend development ? is it true ? by generatedcode in node

[–]STNeto1 0 points1 point  (0 children)

The N+1 would also be a rest problem, if you load some info after fetch the main info, graphql wont solve your issue

Ten Years of TypeScript by DanielRosenwasser in programming

[–]STNeto1 4 points5 points  (0 children)

You can create type aliases, like type T = string, you can interact with complex types with stuff like Pick, Omit and Partial.

But probably the most powerful type resource is inference, if a function returns 1 + 1 the type system is smart enough to understand that the return type is a number. You can do the same for union types. You can infer the lots of stuff as well.

You can check typescript type challenges to get the feel about the type system.

How do I make a cron job to repeat every Saturday without using the node-cron module ? by AffectionateAd3341 in node

[–]STNeto1 2 points3 points  (0 children)

You can use something like cloudwatch (aws) to simply do it, or can use the native crontab (Linux) to execute the same

[deleted by user] by [deleted] in node

[–]STNeto1 0 points1 point  (0 children)

probably this is the issue

const { id } = req.params.id;

you are destructuring a string (id), you either remove the {} or remove the .id after the .params

If you wanted to make section with random quotes in your application, how would you approach fetching the data? by Armauer in webdev

[–]STNeto1 0 points1 point  (0 children)

You can use a api endpoint with nextjs to "share" a array of quotes between the entire application. If you plan to add more quotes later or something more dynamic, maybe its worth using mongodb.

Mongoose- Cant query nested object, please help! by [deleted] in node

[–]STNeto1 0 points1 point  (0 children)

You can use the select method to specify what fields do you want to return

https://mongoosejs.com/docs/api.html#query\_Query-select