Eric Chua
Joined 11/23/2024
Eric Chua said 7 months ago on Database Constraints :
Hi David,

I wonder is it common for people to add db constraints? It seems extra efforts though it has its benefits. Do sites like shopify, github, basecamp do db constraints too? or do people start building MVP fast and add db constraints later?

Any tips? Thanks.

Eric Chua said 7 months ago on Password Strength :
I have a question. I feel the combination of passwords don't really mapped to the passwordStrengthResults and also the column conditions.

Is there any gem to handle this better? Thanks.

Eric Chua said 7 months ago on Password Strength :
Still don't work.

1111aA% - 2 weeks (shouldn't this be 1 month?)

Is there a way to handle this better? Anyway good to learn this. Thx for sharing.

Eric Chua said 7 months ago on Action Text PDFs :
Doesn't seem to work with importmap, stuck at 8:15.

So I assume in rails 8.1, I can't have both importmap and also esbuild way together? I have to choose either one. i prefer to stick to the rails way, which I guess is importmap. 

Eric Chua said 7 months ago on Action Text PDFs :
It seems I need to do this in the rails project (default importmap), then it works

npm install puppeteer

Only problem is generating PDF on my local Mac is really slow. At first I suspect it is due to the image size, but even a post with just some text (1 liner), take 2 -  3 seconds to create the PDF.

Do you have alternatives which works well with latest rails and able to generate PDF (or even add passwords, etc)? Thanks.