Skip to main content
Oct 08, 2020

PhpStorm trick: keyboard shortcut to expand your tool window

I accidentally found a cool keyboard shortcut for PhpStorm, and probably every IntelliJ IDE. On macOS, you can use Shift + CMD + Apostrophe to force your tool window to expand to the entire screen. I'm assuming for Linux and Windows this is Shift + CTRL + Apostrophe. I don't know about anyone else, BUT I AM VERY EXCITED.

#phpstorm
Jun 04, 2020

Boost your test writing productivity with PHPUnit for PhpStorm

I write a lot of tests for all of my Drupal code. I try to live by Test Driven Development. It delivers cleaner code. It helps define your architecture without full implementation details. I also despise clicking and manually testing things.

#phpstorm  #phpunit  #drupal
Jan 05, 2019

Two Zero One Nine

2018 was a weird year. It felt like it just zoomed by and nothing eventful happened. In fact, I feel like most people I have talked to this year felt the same exact way. But, then I sat down to my end of year write up and realized that this year was way more packed than I thought.
#drupal  #javascript  #golang  #ddev  #phpstorm
Dec 12, 2018

PhpStorm protected branches feature

Recently, while working on a little project, I decided to clean up some of the commits on the master branch before pushing it to Packagist. To be lazy, I decided to use PhpStorm's interactive rebase tool instead of the good ole command line.

BUT I COULD NOT! And I started to go mad.

#phpstorm  #git
Oct 10, 2018

OK PhpStorm, what methods does my entity have?

Working in object-oriented programming is great. You can define interfaces which specify a contract that implementers need to fulfill. You can then extend these to define your end requirement and provide the implementation. This also means you can guarantee an object that implements that interface will have a guaranteed set of known methods.

#drupal  #phpstorm
Oct 06, 2018

Test driven development in PhpStorm with auto-testing enabled

When I work, I try to follow the principles of Test-Driven Development. I have found it to aid me in writing cleaner code, identifying odd coupling of components or crazy accidental dependencies between components. It also lets me write my API first by using mocks against interfaces I have defined. PhpStorm's auto-test functionality speeds up my test-driven development process.
#phpunit  #testing  #test-driven development  #phpstorm  #drupal