Mahmoud Tantawy

6 Followers
31 Following
32 Posts

i write bad code ... in PHP !!
bad code is now available in Java too ;)
you can run but you can't hide, Ruby!
Building Billing @Shopify

mastodon.social: @mtantawy
ruby.social: @mtantawy

Amazing guide to Garbage Collection in Ruby, deep enough to show details but not very detailed so that it's easily readable

https://blog.peterzhu.ca/notes-on-ruby-gc/

Garbage Collection in Ruby - Peter Zhu

Overview of how Ruby's garbage collector works.

Interesting
Coming from PHP I am used to "middlewares" being a framework-concern IIRC
I remember some version of Zend framework was built completely on the idea of middlewares up until the middleware at the core that held the "business logic"
https://www.akshaykhot.com/definitive-guide-to-rack/
The Definitive Guide to Rack for Rails Developers

The word Rack actually refers to two things: a protocol and a gem. This article explains pretty much everything you need to know about Rack as a Rails developer. We will start by understanding the problem Rack solves and move to more advanced concepts like middleware and the Rack DSL.

Akshay's Blog
Firefox rolls out Total Cookie Protection by default https://blog.mozilla.org/en/mozilla/firefox-rolls-out-total-cookie-protection-by-default-to-all-users-worldwide/ It creates a separate “cookie jar” for each website you visit. Instead of allowing trackers to link up your behavior on multiple sites, they just get to see behavior on individual sites.
Firefox Rolls Out Total Cookie Protection By Default | The Mozilla Blog

Updated Aug. 28, 2024. Take back your privacy Firefox is rolling out Total Cookie Protection by default to more Firefox users worldwide, making Firefox the

When my dentist told me that their tank of nitrous oxide was leaking, we just laughed and laughed and laughed.
Way back in 2021, I called out #Substack as a scam because it was masquerading as a service provider when it fact it was paying certain writers (often secretly) to create content for them. (https://buttondown.email/thehypothesis/archive/heres-why-substacks-scam-worked-so-well/) They had an editorial mission and a paid writing staff, but claimed to be a neutral service provider like Etsy for authors. Here's how that story is going ...
Here's why Substack's scam worked so well

I think of myself as having decent critical faculties, but somehow I got suckered again by a bog-standard publishing venture masquerading as a useful...

I am new to the Ruby/Rails community, so far the community has been nice but one common pattern is - to be clear - super hate for DHH

Is there a tldr about why? this is a serious question, as I try to build an opinion without years of context

For me, all I know is a couple of books I read years ago that made sense and the recent move from cloud to self hosting which I am following as "an interesting technical experiment"

What should I read next?
Next I want to try "perform_all_later" so I don't have to send API requests, I want to say enqueue 10 reads for endpoint A and 5 for endpoint B, in parallel say 3 writes for endpoint C
Then look at DB performance and see where it breaks
One notable gain from Rails 7.1 is that the event "perform.active_job" includes "time_in_db"
Here is how it looks for the benchmark test I ran on the API read endpoints
I can already see performance gains from switching to Rails 7.1 alpha (main branch)
Benchmarked read endpoints of a simple API and saw 5% reduction in time taken to run same amount of requests
#Rails #Rails7.1