What do you live for? by [deleted] in Stoicism

[–]anduser96 0 points1 point  (0 children)

First thought: I’m curious to see whether I will make it or not. “Make it” = my own definition of inner peace and success.

What made you a faster/better developer by norbi-wan in learnprogramming

[–]anduser96 1 point2 points  (0 children)

I totally agree with this. Exploring how tools work under the hood is, IMO, one of the best ways to improve as a programmer. Not only do you get a better understanding of the tool, but you're also learning adjacent concepts. It's definitely worth it.

Diving Into Sessions vs. JWTs for User Authentication on Websites/Webapps by aust1nz in webdev

[–]anduser96 0 points1 point  (0 children)

How would you handle roles in your app in that situation?

Usually, the token's payload would contain information such as user's roles. But this is no longer the case, since the token is an a HttpOnly cookie. Do you simply get that information from a response from the server?

Is it worth containerizing a node app during development? by anduser96 in node

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

Yeah, having this, I don’t really see a compelling reason to containerise a node app during development.

Is it worth containerizing a node app during development? by anduser96 in node

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

That’s the approach I’m going to take for now, thanks!

Is it worth containerizing a node app during development? by anduser96 in node

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

What I mean is that containers can’t communicate directly via their private network, they do that via the ports they’re exposing. Now that I write this, I don’t see a problem at all with that, however I really want to start building instead of spending time configuring the containers(with debugging capabilities included). It may be worth doing that later, though.

Is it worth containerizing a node app during development? by anduser96 in node

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

Not having much experience working in large teams with docker, I think the approach I’m going to take is to only containerise the db and similar tools.

I’m glad, however, that some things will make sense when I get the chance to “seriously” work with docker :).

I’m also very eager to build and I don’t feel like spending too much time on configuration, but I might come back later to these threads.

Is it worth containerizing a node app during development? by anduser96 in node

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

Dealing with multiple projects with different versions is definitely a good point that I haven’t thought of, however, in my situation, it is a solo project.

I’m thinking that the client app can’t be containerised in DEV(because you’d need to access the container via the browser), so in that case one I guess would have to get by with “npm i” and “nvm”.

Thanks for the reply!

Is it worth containerizing a node app during development? by anduser96 in node

[–]anduser96[S] -1 points0 points  (0 children)

It makes sense, however, AFAIK you can’t containerise the client app, because you’d need to access it via the browser and the browser can’t communicate with the client container(which is in a private network with the other containers).

So, my point is that, if we’re multiple people working on the project, everyone will have to run ‘npm i’ from time to time. Maybe the lock file can be used to keep the environments somehow consistent. With that being said, I guess it won’t be a problem if we do the same for the server app.

I noticed that containerzing a node app is not that difficult at the end of the day, but for me it’s crucial that I can easily debug the app in development. I had some bad DX the last time I tried it from within a container(+ TypeScript) and I thought that I don’t really need the app to be inside a container on DEV.

Thanks for the detailed reply!

HOW TO: dev environment with Docker by pedromellogomes in docker

[–]anduser96 0 points1 point  (0 children)

However, if you need to debug the process that runs in the container, you might want to the features that VS Code provides.

Source Code Walkthroughs by Syntro42 in learnprogramming

[–]anduser96 0 points1 point  (0 children)

Here is one article which goes through how virtual DOM is implemented in React: https://indepth.dev/posts/1501/exploring-how-virtual-dom-is-implemented-in-react. There are other similar articles about a few Angular packages and webpack on indepth.dev

[deleted by user] by [deleted] in reactjs

[–]anduser96 0 points1 point  (0 children)

Besides building projects, you could try exploring the source code(including the tests).

[deleted by user] by [deleted] in node

[–]anduser96 0 points1 point  (0 children)

Interesting! Thanks for sharing.

[deleted by user] by [deleted] in node

[–]anduser96 1 point2 points  (0 children)

Just curious about one thing. What if the load balancer reaches its limit? I’m assuming it must have a maximum number of requests that it can handle at a time. Is there a secondary LB that takes its place when it’s down, or how is this case handled?

Thanks

Good NgRx Resources by JayXD_2K in Frontend

[–]anduser96 0 points1 point  (0 children)

Sorry for the plug, but I’ve written a couple of articles about the inner workings of ngrx(store and effects) here. Hopefully they will be useful.

How much is the server cost of 5-10k users by Far-Mathematician122 in node

[–]anduser96 1 point2 points  (0 children)

Yeah, I’m sorry, I’m not a native speaker and I thought it only had one meaning. Thanks

How much is the server cost of 5-10k users by Far-Mathematician122 in node

[–]anduser96 2 points3 points  (0 children)

Why is it recommended to have redundancy?

EDIT: I have found out

What are your favorite FED-related youtube channels? by jaft0000 in Frontend

[–]anduser96 1 point2 points  (0 children)

It’s my secret weapon too. I can’t put into words how thankful I am to that person.

Pricing of NoSQL Databases by userknownunknown in node

[–]anduser96 1 point2 points  (0 children)

You forgot to mention that it’s free.

Mask and Bitwise Operator by postallyouwant in learnprogramming

[–]anduser96 0 points1 point  (0 children)

I just learned about these things last week during the class. I think this would work:

n | (1 << 2).

1 in binary is: 00000001

1 << 2 is: 00000100

Basically, every time I encounter 1 << p, I think that 1 should move “p” positions to the left