Once every blue moon, I dive into Github repositories to check for something useful for my everyday routines.
This time, I stumbled upon Psalm from Vimeo.
Psalm is designed to understand that complexity, allowing it to quickly find common programmer errors like null references and misspelled variable names.
I’ve been using phpstan for basic code static analysis, running it with various rule levels, depending on the complexity of the codebase.
So far, benchmarking an output from both varies on the same codebase. Psalm managed to find more inconsistencies in the code – looks like it’s worth giving a shot.
Chronos aims to be a drop-in replacement for nesbot/carbon. It focuses on providing immutable date/datetime objects. Immutable objects help ensure that datetime objects aren’t accidentally modified keeping data more predictable.
printf("Now: %s", Chronos::now());
After few trials, I finally decided to publish some information on a small add-on I’ve been working on a month ago for WHMCS platform.
Domain Blocker add-on emerged from attempts of cutting down the number of phishing domain registrations, that’s been received on daily basis for the last couple of months.
It uses CartValidation hooks that prevent any domain registrations that use “offensive”/”blacklisted” words, and tiny eye-candy for the backend with Twitter Bootstrap v2. Unfortunately, Bootstrap v3 everts the admin page with style overwrites, thus it’ll be used only when WHMCS reaches 6.x version. Of course, any feedback, bugs spotted will be highly appreciated on GitHub issue tracker.
John Nunemaker on implementation of Analytics at Github using Cassandra
If anyone missed it (like I did), it’s worth noting due to my ultimate laziness:
When you enter “Fixes #45” into a commit message, issue #45 is closed once that commit is merged into your default branch. If the bug isn’t fixed in your default branch, the issue remains open. Once the commit with the fix is merged into your default branch, the issue is automatically closed.
If you make a commit in a non-default branch with the “Fixes #33” syntax, the issue is referenced with a tooltip.
You can use any of the following keywords to close an issue via commit message:
Somehow, this project passed me, even though the idea is quite good!
Certainly, you won’t make your living with it (but who knows!), but it might show you (and others) whether you work is appreciated in the open source community and motivate other developers whose work you support!
I’d say, Sundays and summer vacation – were the laziest days. Not a single commit was given on those days!:)
One thing I find a bit annoying (annoying?), is participating in different GitHub projects which are mostly developed overseas. Every morning you get bunch of emails you go through on topics already discussed and fixed.
Is there a timezone settings for email notifications for GitHub, or should I simply change a place of living to comply with their timezone?