Testing with Laravel is very easy, but it can be a nightmare when the tests depend on Events and Listeners. In this post I’m gonna show you how you can simplify and improve those tests.
Laravel is one of the most popular PHP frameworks nowadays, and I’d say its Event handler is one of the most powerful features. Using events in Laravel is usually very easy, but when your app gets bigger you can get in trouble with previously written tests.
When testing events in Laravel, you can
fake() events in a very simple way, like the documentation says. The problem is not with the events, but with the listeners, because usually a listener does a single action, but with more than one listener you start writing repeatable tests.
Continue reading Solitary or Sociable? Testing Events and Listeners using Laravel
Working remotely is the dream job of most developers I know. It’s a hard process but it’s totally possible. Now you got the best job you could . Enjoy your new life!
The beginning. The dream.
Do you remember yourself some weeks/months ago? The first interview you did (maybe you’re not a native English speaker like me). You’ve improved a lot, you’re a better person. You’re speaking a “better English and you’re not shy “in front of” the interviewers anymore.
After resumes and more resumes, after those initial interviews, those technical ones, after doing a “sample project” to show up your skills, you got your dream job. You received an offer and you accepted it. Now you’re officially a remote worker! Congratulations to you and to your wife, because now you’re going to be at home every day, and this is really important!
Now you can work from anywhere, even traveling. Now you can be a digital nomad. Now you can work without pants, with slippers and you can wake up just a few minutes before start working. No more commuting, no more offices.
Next week you’re going to start a new step in your life. Be prepared, because your life’s going to start changing forever. I said forever.
Continue reading Congratulations! Now you are a remote worker. Enjoy your new life!
Maintaining an open source project – even a small one – is not an easy task. The open source ecosystem is about sharing and contributing, about giving and receiving. You scratch my back and I will scratch yours.
Open-source is not only a free and open software, it’s a lifestyle. Working with open-source is working for free, making the other’s life better. It’s like someone that works helping people through an NGO (Non-Governmental Organization). They do the better expecting nothing back.
According to the Oxford Dictionary open-source is “Denoting software for which the original source code is made freely available and may be redistributed and modified”. Pay attention to these two words: redistributed and modified. This means that you can change the original code, can update it to your needs, and can share it back to the community. Remember this.
Continue reading Open-source is about sharing and giving back. Think about that.
One of the most discussed topics in the technology field is about having degrees and how important they are. Do you really need one to be a good engineer? When is it really important for you?
Writing a post like this is a big responsibility. I’m not here to say if you should attend to a university degree, even the opposite. I’m here to share my experience and make you think about this subject with at least two different points of view. Since 2016 I’m on the employee side of the desk, but I stayed on the employer one for nine years, including hiring.
Continue reading Degree or not degree? When is it really important?