Nhớ khi bạn nhỏ, mua những omnibus double edition comics? Đọc chúng magical thế nào? Chúng tôi không pretend này unforgettable như vậy, nhưng nghĩ chúng tôi put together nice extra-chunky Best-of AppSignal Academy selection để bạn đọc ở beach, park, hoặc lazy Sunday, sẽ absolutely make your day.
Đây là top 5 hammock reads:
Custom Exceptions trong Ruby
Gần như mọi thứ trong Ruby là object và errors không ngoại lệ. #dadjokes
Ensuring Execution, Retrying Failures và Re-raising Exceptions trong Ruby
Ngoài rescue, Ruby có thêm cách handle exceptions. Chúng ta dùng retry và ensure keywords cũng như reraised exceptions để build resilient web API client.
Ruby's Redo, Retry và Next Keywords
Bài về retry super popular last holiday. Little-known counterpart redo work similarly, nhưng reruns loop iterations thay vì whole blocks.
ActiveRecord Performance: The N+1 Queries Anti-Pattern
Như squirrels trong summer forest, N+1 queries problem common, nhưng usually easy spot nuisance, ehm, performance anti-pattern sometimes caused by lazy loading associations.
Russian Doll Caching trong Rails
Bằng cách nest cache fragments, views hầu như never rendered completely. Even khi data changes, most rendered pages served straight từ cache.
Enjoy!