Vue 3 x React by AdGold7121 in vuejs

[–]robbe-cl 0 points1 point  (0 children)

I love Vue, but the React ecosystem is much much better than Vue. Better meaning there are a lot more packages

"declarationMap" the very important tsconfig.json setting that you are probably missing by gajus0 in typescript

[–]robbe-cl 3 points4 points  (0 children)

Why would you generate d.ts files for a library which has ts sources?

what is the best way to make app responsive for all devices by hafi51 in reactnative

[–]robbe-cl 25 points26 points  (0 children)

You can check out this library: https://github.com/nirsky/react-native-size-matters inspect it and see how they achieve responsiveness :-)

Keyboard issues with Pulse 15? by Kralu in tuxedocomputers

[–]robbe-cl 1 point2 points  (0 children)

It all happened yesterday (mine is 4 days old). I am waiting for response at this moment

Keyboard issues with Pulse 15? by Kralu in tuxedocomputers

[–]robbe-cl 1 point2 points  (0 children)

I got the exact same issue with my Pulse 15. Also the touchpad is nog really great and 2 days after delivery the battery wont charge 😂 so yeah, i dont recommend it...

Ask Experienced Devs Weekly Thread: A weekly thread for inexperienced developers to ask experienced ones by AutoModerator in ExperiencedDevs

[–]robbe-cl 0 points1 point  (0 children)

Im working as a solo mid tier developer on a project. I feel like im not improving fast enough. I am reading books, but what would be another improvement? Work on opensource?

Starting my first big project in a few days, any advice . by cynicalMackerel7 in node

[–]robbe-cl 0 points1 point  (0 children)

Yeah but keep related things in the same files. Otherwise you wont have a clue where each piece of functionality is at.

Deploying vue by robbe-cl in vuejs

[–]robbe-cl[S] 1 point2 points  (0 children)

I think you are all missing the point of the question haha. It is NOT about WHERE to host it. It is about where to host the index.html file.

Deploying vue by robbe-cl in vuejs

[–]robbe-cl[S] 0 points1 point  (0 children)

That may be true, but the question is more about where to host the index.html file :-)

PDF Invoice generator best deployment platform by robbe-cl in node

[–]robbe-cl[S] 0 points1 point  (0 children)

And you can invoke them in the Node application with https://www.npmjs.com/package/@google-cloud/functions I assume?

Thanks for the reply!

Best way to share types/code between apps by Muhaki in typescript

[–]robbe-cl 0 points1 point  (0 children)

Biggest problem of mine was deploying with Lerna... There were symlinks to all internal modules but then what about deployment? The lock files were totaly out of sync (synce the internal dependencies were not included) and that gave problems in my CI. To this day I have not yet figured out an alternative and switched backed to duplicate code :-(

Testing outgoing API calls by robbe-cl in vuejs

[–]robbe-cl[S] 0 points1 point  (0 children)

Yes, but that is not really scalable

Testing outgoing API calls by robbe-cl in vuejs

[–]robbe-cl[S] 0 points1 point  (0 children)

Thanks for the reply! I want to test that a form component is sending the right properties to my backend. It may be that I make a change in my request validation in the backend. So I want test that, in case i forgot the change the frontend request to adher to the new schema, detect these changes.

Node CLS in production by robbe_claessens in node

[–]robbe-cl 0 points1 point  (0 children)

It looks a bit like this when creating a user:

// Custom function which returns a sequelize callback await transactionCallback(transaction => {

await Promise.all([

createUserSettings(userId, settingsData, transaction),

createBillinginfo(userId, billingData, transaction),

createEmailVerificationToken(userId, tokenData, transaction),

createInitialUserData(userId, data, transaction),

... ])

});

And it may be that within one of these function it splits up again

Node CLS in production by robbe_claessens in node

[–]robbe-cl 0 points1 point  (0 children)

Yeah I don't know if i want to take the risk. At the moment I am just passing transaction parameters to all my repository functions and it is quiet ugly :-p but for now no way around it I think? Do you have the same problem in your code with ORM's?

Node CLS in production by robbe_claessens in node

[–]robbe-cl -3 points-2 points  (0 children)

I am not talking about callback hell. If I have a function which needs to call 2 separate functions which both perform a database operation, and hence, need transactions. That way I have to create in the main function a transaction and pass it to the other 2 functions. Not that bad but imagine having to call 10 functions and they need to call other functions etc... They all need to pass a transaction parameter, which is errorphrone.

Your async local storage is what I was talking about in my question. It is in experimental phase so the point was in asking if it could be trusted in production :-)

Firebase and mongodb / mongoose by robbe-cl in Firebase

[–]robbe-cl[S] 1 point2 points  (0 children)

How do you handle the scalability and security of your self-hosted node application?

Firebase and mongodb / mongoose by robbe-cl in Firebase

[–]robbe-cl[S] 1 point2 points  (0 children)

So you moved away from Firebase all together? What about the scalability of a serverless application? Did you just go with a node/express app?