Reader Stacks

TOPIC

Developer Productivity

Tools, helpers, and workflow tricks that make you faster, regardless of framework.

Building Reusable Components in Angular

A component becomes genuinely reusable through its public API — @Input/@Output for data, and content projection (ng-content) for letting the parent supply arbitrary markup, not just values.

Laravel Queues: Running Jobs in the Background

Anything slow that doesn't need to finish before the response is sent — an email, a report export, a third-party API call — belongs in a queued job, not inline in the request.

Getting the Current URL in a Laravel Blade File

url()->current(), request()->fullUrl(), and route()->currentRouteName() — the difference between the URL, the route name, and the query string, and when each one is the right check.

Creating a Custom Facade in Laravel

A facade is a static-looking proxy to an object resolved from the service container — three pieces (the underlying class, the facade class, and a binding) that all have to line up.

Sharing State Between Components in Angular

For parent-child pairs, @Input and @Output are enough. For anything further apart in the component tree, a shared singleton service is the standard answer — not a genuinely global variable.

Creating a Custom Artisan Command in Laravel

How to scaffold, argument/option-flag, and register a custom php artisan command — including the one config step people forget when it does not show up in the command list.

Creating Custom Directives in Angular

An attribute directive changes the behavior or appearance of the element it's placed on — the same tool that powers ngClass and ngStyle, applied to your own logic.

Exporting Data to Excel or CSV in Laravel

maatwebsite/excel wraps PhpSpreadsheet with a clean export-class API — one class, backed by any Eloquent query, downloadable as either xlsx or csv.

Creating Services in Angular

A service is a plain class Angular's dependency injector knows how to construct and share — the mechanism for putting logic and data outside any one component.