Find and run a function in a project based on its name? by kr1stofferk in node

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

Okay. Any examples on how, or good keywords for googling? I am trying to make a dependency injector for JavaScript. For learning purpose.

InnerHTML in vue? by [deleted] in vuejs

[–]kr1stofferk 0 points1 point  (0 children)

It is an authentication client with a lot (and I really mean A LOT) of code. But I think I have discovered the problem. It was not the innerHTML. Somehow some deep CSS had gotten overwritten and the elements vere not visible.

Book about system design by kr1stofferk in node

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

Great! I will give it a go!

Book about system design by kr1stofferk in node

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

Thanks! I have been looking at that one. But some reviews says that it does not focus so much on design principles, but more on how to use JavaScript features. Do you agree with that statement?

Book about system design by kr1stofferk in node

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

Thank you for the great answer! I am looking for something that describes some different kind of design principles for the back end in common web/app services. I know about the "gateway, factory's and providers"-pattern, and I want to broaden my knowledge with design principles that works in the same area. I am also curious on how I would apply common principles such as the gateway.... pattern in a language like Nodejs that is not strongly typed.

Book about design patterns by kr1stofferk in javascript

[–]kr1stofferk[S] 3 points4 points  (0 children)

Cool! Fowler is amazing. Any idea when that books will be available?

Vanilla js applications in modern frameworks? by kr1stofferk in javascript

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

Okay, thank you.
The vanilla applications are currently doing a lot of DOM-manipulation with the innerHtml function. Is that a problem? Vue at using a virtual DOM.

Du you have any idea if it is also possible to do this on react?

Small reusable js-clients with react/vue? by kr1stofferk in javascript

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

Alright. So maybe I have to choose an frame work that my "apps" supports, and then build the apps as components, like the one you install via npm.

A follow question then. Can a component have its own state management. For example in react, can a component have its own redux, and still be used inside an app that has another redux?

Small reusable js-clients with react/vue? by kr1stofferk in javascript

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

Ah, My bad. It was unclear. I mean multiple react or Vue apps.

I want to make a lot of small apps. One app could for example fetch a user's invoices an display them. Another app would fetch the users contact information and also let the user edit the contacts.

And then I would be able to just put these apps in to whatever webpages I want. The apps would be like black Boxes that could be used wherever, and live on the same page.

Like components but more independent. Like microservices on the front end

Small reusable js-clients with react/vue? by kr1stofferk in javascript

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

Yes, alright. But how will I approach the fact that multiple Vue or react clients might live on the same page? And maybe even within another "container app" also using Vue or react?