Alexis Rondeau

Bookmarks

5633 bookmarks · page 159 of 226

Bookmarked from Ryan Holiday @RyanHoliday

Focus on effort, not outcomes.

It’s insane to tie your wellbeing to things outside of your control, Marcus Aurelius said. If you did your best, if you gave it your all, if you acted with your best judgment—that's a win…regardless of whether it’s a good or bad outcome.

Bookmarked from Kyrylo Silin @kyrylo

I use service objects in all of my Rails projects.

👷‍♂️ This is how I engineer them:

1. Define the ApplicationService class with the call class method that does nothing but accepts any params and initializes a service, then calls the call instance method immediately

2. Define the initialize instance method that does nothing but accepts any params

3. Define a service that inherits from ApplicationService and defines the call method. If a service requires params, I define the initialize method, call super, then use the params. If you don't need params, then you don't need to define initialize at all

4. Implement the call method.

That's all!

Bookmarked from David @DavidSHolz

crazy there's no chatbot to help me figure out what to buy when i need something, would be a great commission business. i should be able to talk to ais that are smart and also know the entire amazon/ikea/etc catalogue, or like literally every restaurant in every city on earth