Skip to content

Danny Younes

My thoughts on Investing & Software Engineering

  • Home
  • Investing
  • Software Engineering
  • Project: Budget App

Software Engineering

Learn Laravel – Route Model Binding

June 30, 2022 dannyyounesLaravel
Laravel

There is a feature in laravel which allows you to inject into the route model instances. Previously, you would have had to pass the ID of the model that you wanted to work with in the request and then you would write all the business logic yourself and validate the Models ID.

Read more

Solid Principles in PHP – Dependency Inversion

May 26, 2022 dannyyounesDesign Patterns, Software Engineering

Dependency Inversion states that high level modules should not depend upon low level modules. Instead, they should depend on abstractions and not concretions.

Read more

Solid Principles in PHP – Interface Segregation

May 25, 2022 dannyyounesDesign Patterns, Software Engineering

The letter I in SOLID stands for the interface segregation principle. The principle states that a client should not be forced to implement an interface that it doesn’t use.

Read more

Laravel 9 New Helper Functions

May 23, 2022 dannyyounesLaravel

There are two new helper function in Laravel 9. the first one is str() which cretes a stringable object and the aother is to_route() which allows you to redirect to a named route.

Read more

Laravel 9 Anonymous Migration Classes

May 23, 2022 dannyyounesLaravel

All of the migration stubs do not have the traditional class names. Previous versions of laravel, the migration file was setup with the class name

Read more

Laravel 9 Controller Route Grouping

May 22, 2022May 22, 2022 dannyyounesLaravel

New to laravel 9 Controller Route Grouping

Read more

Solid Principles in PHP – Liskov Substitution

May 22, 2022 dannyyounesDesign Patterns, Software Engineering

The Liskov Substitution principle states that derived classes must be substitutable for their base classes. Meaning, every time you prepare a subclass, that subclass should be substituable in every place where the original class was accepted.

Read more

Solid Principles in PHP – Open-Closed

May 18, 2022 dannyyounesDesign Patterns, Software Engineering

The O in SOLID represents the open-closed principle which states that entities should be open for extension but closed for modifications.

Read more

Solid Principles in PHP – Single Responsibility

May 17, 2022 dannyyounesDesign Patterns, Software Engineering

A class should only have one responsibility and have only one reason to change.

Read more

Why You Should Implement Test Driven Development (TDD)

May 2, 2022 dannyyounesSoftware Engineering

For the vast majority of developers, writing unit tests were short bits of throw away code. They would write some code just to verify that their programs worked. Classes and methods would be written and then some adhox code would […]

Read more

Posts navigation

Older posts

Sections

  • Design Patterns
  • Investing
  • Laravel
  • Project: Budget App
  • Software Engineering

Danny Younes

  • Home
  • Investing
  • Software Engineering
  • Project: Budget App
Powered by WordPress | Theme: Astrid by aThemes.