Monthly Archives: February 2019

Bad Blood

I simply amazed how insane the CEO of Theranos, Elizabeth Holmes, when she was running the company.

The FOMO (Feare of Missing Out) culture and the fake it until you make it mentality made this possible.

Instead of choosing to condemn the multiple people in the faults, I want to praise the people who bought this crime into light, namely, Tyler Schulz, Erika Cheung, Gary Betz, Gary Yamamoto, and John Carreyrou.

Advertisements

Laravel Resourceful Route Without Prefix

The resource controller contain a method for each of the available resource operations.

For example:

Route::resource('photos', 'PhotoController');

is handle by the verbs in the controller. such as

/photos
/photos/create
/photos/{photo}
/photos/{photo}/edit
...

If you want the resource without the name, you can do

Route::resource('/', 'PhotoController');

but the parameters will not work properly since the route will become

/
/create
/{}
/{}/edit

in order to “fix” that, you can do

Route::resource('/', 'PhotoController')->parameters([
  '' => 'photo',
]);

so the route now is

/
/create
/{photo}
/{photo}/edit

The Fifth Risk

I reenforce my perspective on the following two items after reading this book.

  1. Whoever yell the loudest or appear the most glamorous do not necessary translate to value.
  2. We cannot and should not privatize the government services.