Have you heard of the pipeline pattern? The pipeline pattern is used by Laravel internally, and is a really nice way to clean up your code.
I found a video that explains it well. I watched yesterday, then today I did a code-along and built it myself to reinforce the concepts. If you haven’t used this pattern before, definitely check out the video and learn something new today! 😊
Having so much time off as I have lately, I’ve been taking the opportunity to clean up my online digital world a bit. Things like creating headers for all the social accounts tied to our BarooBoos brand, and creating as many videos as possible for our YouTube channel. I’ve also been hard at work putting Amazon ads on my sites, ScottyFan.com, BarooBoos.com, kronos.kennyray.com, and of course this one.
I’ve also been doing some paid work for a friend, redesigning a WordPress template for her ministry site Next Level Moms. There certainly is no shortage of things to keep me busy!
I hope to start hearing from recruiters again soon, so that I can get back to a consistent income, but in the meantime I’m working hard to set up as much supplemental income as I can. Any support you can offer by clicking through to my sites, and subscribing to my YouTube channel would be most appreciated!
It’s amazing how life gets going in a rhythm, and you get your head down and working so hard, that you sometimes forget to look around (or in this case, write in your blog).
Working at a small travel advertising company is a really great thing – until almost all travel ceases, and no one is advertising, and you suddenly find yourself unemployed as a result.
So today I am taking a moment to reflect on what I’ve learned in the last few months. One of my projects gave me the opportunity to work with Vue.js for the first time, and I basically taught myself what I needed to know in order to get it done. It was a good challenge, and I learned a lot.
Mixed in with that I was trying to find a way to query data for a reporting tool that involved millions of rows of data, which was being used by the sales team. The tool already worked, but our team was trying to find a better way to run the queries so they didn’t take up to several minutes to run. We were dealing with behavioral data, and there was a lot of it. The dynamic nature of the queries meant that the more conditions you added, the slower the query might run. Along with that I was trying to normalize the way the data was represented so that other types of queries could all be run the same way, and even be mixed together. Talk about a complex problem! But we were making some headway with it, and then the corona virus hit. We went from a growing thriving company to zero income in two weeks.
The other technologies I was working on were crossfilter.js, dc.js, and d3.js. I did video courses on each, and got to mess around with them a bit using real data from our system, although I wasn’t ready to actually do any graphing just yet. I knew where I wanted to put them eventually, but that was further down the development roadmap.
I guess now, I’ll just need to find a way to work with these in some personal projects to improve my skills, and keep them sharp.
$arr = [
'foo' => 'bar',
'faz' => 'baz'
array_multisort(array_column($arr, 'value'), SORT_ASC, $arr);
You can sort an associative array with one line of code as I did above. As a result, the array becomes sorted by the keys:
'faz' => 'baz',
'foo' => 'bar'
If you’re like me, you have probably had this happen. You go to click on one of the many tabs you have open in PHPStorm, only to accidentally click the X, and close it. ARGH!
Today I found a way to alleviate that pain. You can turn off the X!
- Under Preferences, search for Editor Tabs
- Locate Close button position:
- Set it to None
Now, to close a tab, you must either hit the keyboard shortcut, or right-click it. Either of those will be a deliberate action.