PHP, JavaScript, Yii, Symfony, GIT, bash, Shell
PhpStorm like all JetBrains IDEs has o lot of built in features. And you can add even more with plugins. It provides many refactoring features. This will be a first part of refactoring tutorial. We will start from the simple things. Lesson 1: Extracting a variable and renaming it. Example code to be refactored: [crayon-5bf45cc4a9289131314285/] …
This time something about JavaScript. Everybody likes JavaScript :P. I’d like to write quick guide how to set up working tests environment. First, what we need: Karma Jasmine RequireJS PhantomJS Let get all required things by NPM. Create a package.json with content: [crayon-5bf45cc4a945e870300454/] Now run the command: [crayon-5bf45cc4a9465163005267/] Great. We have now all required dependencies. Next thing …
Hi. CLI debugging. I never did that. Until today. My tests started to fail and I had no idea why. So that’s my story why I started to debug tests in the CLI via SSH. Here’s a list of ingredients: PhpStorm, remote SSH (I’m using Vagrant), PHP + XDebug. First thing what we need to …
I’m pretty sure that you use many documentations, for frameworks, languages and libraries. You have to add many pages to favourites or google for them. But there is a solution for this. And it’s ultra practical. Just go to http://devdocs.io. Quick info: multiple docs, stores all data in the browser storage, support fuzzy search, yaay! dark / light …
Hi. As you may know, all programers who want to more effective and productive should train. There are small tests that are called Kata. You should do them every single day. Here’s my latest discover, excellent site with many Katas. www.codewars.com Enjoy! ?
http://status.chef.io Guys from Chef are having some problems. Today I changed dependencies in my cookbook and it’s failing now… ?
Today I discovered another cool feature of PhpStorm. I always open it on full screen of my main display. But it display to much things. I wanted only the code. To focus on it. Enable it via View > Enter Distraction Free Mode. All tabs, menus, buttons will be gone. The code will be centred. Brilliant ? …
Hi! Today I was struggling with Codeception tests. I’m working on Vagrant machine which has Apache2 installed. Thing is that to view the page on my host machine I’m utilising Apache. But in the acceptance tests I’m using PHP built in server. To be specific https://github.com/tiger-seo/PhpBuiltinServer is used. It allows to run server as tests are running and …
Background sounds can be very annoying and make you unproductive. Recently I found http://www.noisli.com. Just put your earphones, choose productive and enjoy! ?
Today I was trying to bump the Postgres on my Vagrant to 9.4. The cookbook I’m using: https://supermarket.chef.io/cookbooks/postgresql. Thing is that the cookbook defines a recipe yum_pgdg_postgresql. So to configure everything just add attributes, here’s example from my cookbook attributes default.rb file: [crayon-5bf45bb29ce2e235149788/] First line is very important. Current version of cookbook postgresql provides up to 9.2 (source …
Hi. Recently I heard that using NFS is much faster than default shared folders in the Vagrant with VirtualBox. After some research I started to upgrade my Vagrantfile. Here is snippet how to make you shared partition NFS type: [crayon-5bf45bb29e469813899922/] And that’s all! But. Yesterday I had a problem. When I tried to up the vagrant …