• 0 Posts
  • 23 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle




  • RoR is too much magic for me. Getting started with any new code base is such a pain that I never want to do again. As a manager, I’ll avoid any job post that mentions Ruby. I have maintained projects written in Delphi, Centura, Java, C#, PHP and none of them even come close to the pain of RoR. Java and C# are notorious for ceremonial interfaces but that’s nothing compared to trying to figure out RoR automagics.









  • After many failed attempts at TDD, I realized/settled on test driven design, which is as simple as making sure what you’re writing can be tested. I don’t see writing the test first as a must, only good to have, but testable code is definitely a must.

    This approach is so much easier and useful in real situations, which is anything more complicated than foo/bar. Most of the time, just asking an engineer how they plan to test it will make all the difference. I don’t have to enforce my preference on anyone. I’m not restricting the team. I’m not creating a knowledge vacuum where only the seniors know how yo code and the juniors feel like they know nothing.

    Just think how you plan to test it, anyone can do that.




  • Let’s say YouTube has a video and 2 ads:

    1. The video is served from videos.example.tld/video.mp4.
    2. The first ads is served from videos.example.tld/ads/ads1.mp4.
    3. The second ads is served from ads.company.tld/ads2.mp4.

    PiHole will be able to block only (3) because DNS applies at domain level, as in videos.example.tld. DNS requests only send the domain part and re-use the response for all addresses using that domain.

    Browser extension, on the other hand, sees a request to .../ads... and block it since it handled each HTTP/S request and know the full URL.