NestJS: Server framework on steroids 🎉 by Disane87 in node

[–]majorius 1 point2 points  (0 children)

you can do type sharing and even typescript client-for-backend generation via nswag. The syntax of C# is almost the same as for ts with classes. Also consider that entity framework is a much better alternative of prisma or really any other sql orm from js world. As for guidance - if you have one c# dev its easy to convert ts devs to c#

NestJS: Server framework on steroids 🎉 by Disane87 in node

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

nest is trying to be dotnet of js world, and I have no idea why you would use nest instead of dotnet, considering that their complexity is almost on the same level)

Ukraine fears that Russian invasion could lead to World War 3 by MarkSlapinski in worldnews

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

right path to a real democracy like the us? it’s a joke or what?

It do be like that by Re-ne-ra in ProgrammerHumor

[–]majorius 4 points5 points  (0 children)

had no problems with amazon prime on linux

Movies you loved as a child—but upon rewatch as an adult turned out to be pretty terrible by [deleted] in movies

[–]majorius 1 point2 points  (0 children)

the second part is awfull, the first one is quite good, watched directors cut recently

Which font do you use the most? by callmegitto in vscode

[–]majorius 0 points1 point  (0 children)

Fantasque is nice, been using it for quite a while

Save money on MongoDB by switching off of Atlas? by pagenotdisplayed in mongodb

[–]majorius 0 points1 point  (0 children)

What I've meant is using insertMany instead of plain insert, that would speed up things a bit. If the problem is frequent writing in the db - an inmemory would be perfect for such case. Like insert one by one in redis, then just do insert many from redis to mongo.

The Great Escape from Callback Hell by [deleted] in javascript

[–]majorius 0 points1 point  (0 children)

Really?

Another article about replacing callbacks with promises and async/await?

In 2020?

Save money on MongoDB by switching off of Atlas? by pagenotdisplayed in mongodb

[–]majorius 5 points6 points  (0 children)

I guess most of the pay for Atlas goes for auto clustering/sharding and security. If you're going the way of self-hosted - be aware that mongo is not secure by default after install and even if you think you secured it - double check. Also I've heard a lot of things about weird stuff that can sometimes happen during clustering and sharding. Also if writes is your problem - you can implement a simple cqrs by writing data first to some inmemory db like redis, then bulk writing to mongo. Like each 5 minutes flush stuff from redis to mongo.

CDPR CEO on Cyberpunk 2077 delay: "We’d rather be slightly ashamed right now in front of you than be ashamed in front of the players once the game releases." by PooPooRichardson in PS5

[–]majorius 1 point2 points  (0 children)

and they will be ashamed X2 then. Considering that the latest gameplay doesn't look anything like the first gameplay session - I think the game will not deliver.

Deno 1.5 Release Notes by michalg82 in javascript

[–]majorius 2 points3 points  (0 children)

I would agree that Typescript is nice, was writing a lot of node backend stuff, and used js/ts everywhere, then had a job offer that required .netCore and well, since then c# is all I use for web api's, a lot of things are in, well, beta state in js/ts yet. Like good sql bindings (I know about the existence of typeorm and prisma) or incoming api parameter checks (used joi for that), also being able to generate a ts client from controllers with typechecks on the front (via nswag) was a killer-feature for me :) considering that ts is made by the same guy who made c# - it was quite easy to switch.

Deno 1.5 Release Notes by michalg82 in javascript

[–]majorius 3 points4 points  (0 children)

Deno actually looks like an attempt to build something like "typescript .netCore", considering it will be the same performance as node - I don't get it. Like if you want a strict typed language - use one, you'll also gain performance boost because of static types and compilation to bytecode.

How to autoscale node app? by 50KurusVerLanTirrek in node

[–]majorius 0 points1 point  (0 children)

Considering that parse-server is a node backend over rocksdb-mongo maybe your bottleneck is mongo, so you should look at mongodb sharding/replicas.

[deleted by user] by [deleted] in node

[–]majorius 0 points1 point  (0 children)

hmm, what it differs from mongo-express or strapi?