In a previous article, you’ve been introduced to CouchDB. This time, you’re going to create a full-fledged app where you can apply the things you learned. You’re also going to learn how to secure your database at the end of the tutorial. Overview of the Project You’re going to build a Pokemon spawn locations recorder. […]
Continue reading %How to Create a Pokemon Spawn Locations Recorder with CouchDB%
Listen to the podcast, or watch the hangout video to learn why the nominated packages were considered to be innovative, as well the current rankings of the Innovation Award Championship by author and by country.
I chased an interesting bug today. MySQL was complaining about “Integrity constraint violation: 1062 Duplicate entry”. I had all the necessary safeguards in my code to prevent duplicates in tha column.
I gave up on logic and simply dumped the contents of the problematic column for every record. I found that there was a record with and without an accent on one of the characters. PHP saw each as a unique value, but MySQL did not make a distinction, which is why it complained about a duplicate value. It’s a good thing too, because based on my goal, these should have been treated as duplicates.
My solution was to substitute accented characters before filtering duplicates in the code. This way, similar records were rejected before they were sent to the database.
[Edit 2016-08-26] As pointed out in the comments, a more robust and versatile solution would be to check the collation on the column. Thanks!
- By Manuel LemosThe builder design pattern allows to dynamically create objects in a way that the same process of construction can allow multiple representations of the object that can be changed over time according to the needs of a project.
This package implements the builder design pattern with a concrete builder class that generates code for classes dynamically to implement a representation of the object class being built at run time.
Read this article to learn more details about how this notable PHP package works.
Speaker: Alessandro Lai @AlessandroLai Bugs are introduced in our code almost everyday, one way or another, even if we do our best to avoid it. Often, we need to identify where a bug originated to fix it, but we have to sift through a long history of commits to do that. Git comes to the …
- By Samuel AdeshinaRegardless of how good you are as a developer, you will always ship code to production that will have bugs or does not deal with situations that were unanticipated.
Therefore you always need to have a tool that can monitor the errors on the server side, so you can act promptly and fix issues as quickly as possible.
Read this tutorial to learn how you can use Rollbar to keep track of your PHP Web applications issues.
Want to get your web development ideas in front of a live audience? The call for papers for the ConFoo Montreal 2017 web developer conference is open! If you have a burning desire to hold forth about PHP, Java, Ruby, Python, or any other web development topics, we want to see your proposals. The window is open only from August 21 to September 20, 2016, so hurry. An added benefit: If your proposal is selected and you live outside of the Montreal area, we will cover your travel and hotel.
You’ll have 45 minutes to wow the crowd, with 35 minutes for your topic and 10 minutes for Q&A. We can’t wait to see your proposals. Knock us out!
ConFoo Montreal will be held on March 8-10, 2017. For those of you who already know about our conference, be aware that this annual tradition will still be running in addition to ConFoo Vancouver. Visit our site to learn more about both events.
You may remember our past infatuation with Phalcon, the fastest PHP framework.
In this post, we'll go through the process of getting it up and running in 5 minutes on one of our Homestead Improved instances. If you're not interested in why or what Phalcon is, just skip ahead to "Setting it up".
If you're not familiar with it, Phalcon is a PHP framework written in Zephir, a language mid-way between C and PHP that helps in developing PHP extensions without having to know C. It's a golden middle ground which lets PHP developers develop highly optimized modules for their programming language environment without the overhead of learning a completely new language, because Zephir compiles into C, which is what PHP extensions are made of.
Originally, Phalcon was an extension written in pure C - which made it incredibly fast. However, this also introduced massive overhead in fixing bugs or inspecting what's going on under the hood when something doesn't work the way it should. It also took ages to add new features, since developing in C is so much more difficult. In version 2, Phalcon was rewritten in Zephir, but as PHP 7 was looming on the horizon and announced a dramatic departure from the extension API of PHP 5+, Zephir could not compile code to PHP 7 compatible extensions and was left behind in PHP 5 land.
Continue reading %Up and Running with the Fastest PHP Framework on PHP7 in 5 Mins%
Any time software and business come together, there is an inherent conflict between “get it done fast” and “do a good job”. This conflict often comes to a head when deadlines are missed, whether through unrealistic expectation or underestimation on the part of the developers. The dilemma between quantity, speed and feature set isn’t going […]