Readit News logoReadit News
conradfr commented on Avoid UUID Version 4 Primary Keys in Postgres   andyatkinson.com/avoid-uu... · Posted by u/pil0u
formerly_proven · a day ago
If all you want is to obfuscate the fact that your social media site only has 200 users and 80 posts, simply use a permutation over the autoincrement primary key. E.g. IDEA or CAST-128, then encode in base64. If someone steps on your toes because somewhere in your codebase you're using a forbidden legacy cipher, just use AES-128. (This is sort of the degenerate/tautological base case of format-preserving encryption)

(What do you think Youtube video IDs are?)

conradfr · 21 hours ago
Can't you just change the starting value of your sequence?
conradfr commented on How fast can browsers process base64 data?   lemire.me/blog/2025/11/29... · Posted by u/mfiguiere
skylurk · 10 days ago
Huh. How many frames per second could it hit, do you think?
conradfr · 10 days ago
It was for a turn-based game and I didn't benchmark for that, but it was noticeably faster for my use case.

Now that I think of it I should have cached the base64 in ETS to be even faster :)

conradfr commented on How fast can browsers process base64 data?   lemire.me/blog/2025/11/29... · Posted by u/mfiguiere
conradfr · 10 days ago
I remember in the early days of Phoenix LiveView on an intranet app using http1 I noticed it was faster to base64 encode an image, putting it in an img tag and sending the diff through the Channel websocket than the regular http request through Cowboy.
conradfr commented on The "Mad Men" in 4K on HBO Max Debacle   fxrant.blogspot.com/2025/... · Posted by u/tosh
crtasm · 13 days ago
That option wasn't added until some time later.
conradfr · 13 days ago
I wish Netflix did it for Seinfeld.
conradfr commented on I don't care how well your "AI" works   fokus.cool/2025/11/25/i-d... · Posted by u/todsacerdoti
embedding-shape · 20 days ago
> And yeah, I get it. We programmers are currently living through the devaluation of our craft, in a way and rate we never anticipated possible.

I'm a programmer, been coding professionally for 10 something years, and coding for myself longer than that.

What are they talking about? What is this "devaluation"? I'm getting paid more than ever for a job I feel like I almost shouldn't get paid for (I'm just having fun), and programmers should be some of the most worry-free individuals on this planet, the job is easy, well-paid, not a lot of health drawbacks if you have a proper setup and relatively easy to find a new job when you need it (granted, the US seems to struggle with that specific point as of late, yet it remains true in the rest of the world).

And now, we're having a huge explosion of tools for developers, to build software that has to be maintained by developers, made by developers for developers.

If anything, it seems like Balmers plea of "Developers, developers, developers" has came true, and if there will be one profession left in 100 year when AI does everything for us (if the vibers are to be believed), then that'd probably be software developers and machine learning experts.

What exactly is being de-valuated for a profession that seems to be continuously growing and been doing so for at least 20 years?

conradfr · 20 days ago
I didn't enter this profession because I love reviewing code though.
conradfr commented on PHP 8.5   stitcher.io/blog/new-in-p... · Posted by u/brentroose
dgb23 · a month ago
PHP has introduced breaking changes, deprecations etc. in a somewhat rapid fashion.

PHP doesn't prioritize stability, but language features and cleanup. It's an impressive technical endeavor that has its merits, but comes with a tradeoff.

Within the last 10 years, the language itself broke twice. And that's not counting the ecosystem on top of it. Common frameworks, libraries etc. tend to break relatively often as well.

There are languages that are _much_ more stable and reliable than that.

conradfr · a month ago
That has not been my experience and I have a project that started in 2017 with PHP 7.1 & Symfony 3.3 and is now at PHP 8.4 & Symfony 7.3 with plenty of dependencies.

Not everything will always update flawlessly but with Composer and a popular framework with planned depreciations and releases the ecosystem tends to sync fairly well.

conradfr commented on Do not put your site behind Cloudflare if you don't need to   huijzer.xyz/posts/123/do-... · Posted by u/huijzer
conradfr · a month ago
Well good news, the Cloudflare error page gave me a perfect PageSpeed Insights score for a bit.
conradfr commented on Cloudflare Global Network experiencing issues   cloudflarestatus.com/inci... · Posted by u/imdsm
conradfr · a month ago
I thought I would be clever by switching domain endpoints from proxied to dns but Cloudflare admin page is also not working correctly ;)

edit: it's up!

edit: it's down!

conradfr commented on Report: Tim Cook could step down as Apple CEO 'as soon as next year'   9to5mac.com/2025/11/14/ti... · Posted by u/achow
verelo · a month ago
You forget, the camera gets better every year!

I've had an iphone for 15 years. I mean, it's fine...i just wish there was incentive for durability and sustainability v's replace it every 12-24 months. I guess sustainability concerns at Apple ends at ensuring their stock price is sustainable.

conradfr · a month ago
Years ago the wisdom was that money was in software instead of hardware but for some reasons OSes and their updates became free.

If the incentive is for consumers to buy more devices the incentive change.

conradfr commented on Report: Tim Cook could step down as Apple CEO 'as soon as next year'   9to5mac.com/2025/11/14/ti... · Posted by u/achow
Razengan · a month ago
Does any CEO actually use their own company's products?

The richest and most "powerful" people still have meat-based assistants do all their shit: Take their notes, check their calendars, make their appointments, toast their bread..

And it shows: This is how you get features like "Edge Light" and an Invites app before fixing basic functionality that the peasants rely upon. Like how we get the weird iOS Journal app even though Notes could have done all that if they had improved it a bit.

Steve Jobs was probably one of the few people in charge who actually used his company's own products. You need someone who's annoyed with the status quo enough to make a company to solve it, not just someone elected by a board.

conradfr · a month ago
Elon Musk uses X every other minutes and everybody wants him to stop.

u/conradfr

KarmaCake day3753November 15, 2011
About
https://github.com/conradfr
View Original