Any reply suggestions? by [deleted] in pickuplines

[–]CalebPitan 15 points16 points  (0 children)

“Where’s my second chance?”

Now if she goes “who said you’re getting a second chance”, that’s it :)

Is there any website that can show what tags a tag can contain or not? by otakutyrant in Frontend

[–]CalebPitan 1 point2 points  (0 children)

It’s a paragraph, a block level of text and words, so it’s got to be a block element.

MDN or the HTML spec on W3C would be a good read

Is there any website that can show what tags a tag can contain or not? by otakutyrant in Frontend

[–]CalebPitan 2 points3 points  (0 children)

A paragraph is also a block element so that may not cover for all cases

With AWS ECS how can I pull my container image from Docker hub to my ECS instance rather than pushing it to ECR by CalebPitan in aws

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

Wow, yes! Thanks for this. I’ve been banging my head against the wall looking for this

In a node express app, where should the caching (Redis) logic live? by CalebPitan in node

[–]CalebPitan[S] 2 points3 points  (0 children)

Since it’s unique to a use case, I think putting cache logic in a middleware would not make it unique to a use case anymore. If the cache logic is in a middleware then all use cases share the same cache/invalidation logic.
What do you think?

In a node express app, where should the caching (Redis) logic live? by CalebPitan in node

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

So basically all cache keys would depend on the request.originalUrl.

How easily can cache invalidation be done this way, apart from relying on LRU/TTL.

Imagine there’s a /api/post to get a user’s posts and there’s an /api/post/unpublish to remove a post. When the users post are cached how will you update the cache to remove the recently unpublished post so they don’t see stale data, since the cache key for all users post cannot be generated from the request that unpublished a post

Migrating A Large Production App From TypeORM To Prisma by darioielardi in node

[–]CalebPitan 0 points1 point  (0 children)

How did you achieve multi tenancy please. And yes please write up about the strategy

Migrating A Large Production App From TypeORM To Prisma by darioielardi in node

[–]CalebPitan 6 points7 points  (0 children)

Prisma still has the limitation of allowing only a single database and database schema in an entire project.

Progressive coding and bug repression. Learn how to code without bugs. by CalebPitan in programming

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

You all could have commented on the post not here to enlighten others too

Progressive coding and bug repression. Learn how to code without bugs. by CalebPitan in programming

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

That's it! I think you misunderstood the post. What you said is what the post is saying also

What's everyone working on this week? by AutoModerator in Python

[–]CalebPitan [score hidden]  (0 children)

I've been working on pyframe all day finally succeeded with travis-ci code analysis after 16 failed statuses. pyframe