Friday, December 2, 2016

PHP 7.1 Released - Nullable types, Void Return Type, Class Constant Visibility and more

The PHP development team announced yesterday the release of PHP 7.1.0. This release is the first point release in the 7.x series.

The list of changes contains:
"-Nullable types

function answer(): ?int  {
    return null; //ok
function answer(): ?int  {
    return 42; // ok
function answer(): ?int {
    return new stdclass(); // error
- Void return type
function lacks_return(): void {
    // valid
function should_return_nothing(): void {
    return 1; // Fatal error: A void function must not return a value
- Class constant visibility modifiers
class Token {
 // Constants default to public
 const PUBLIC_CONST = 0;
        // Constants then also can have a defined visibility
        private const PRIVATE_CONST = 0;
        protected const PROTECTED_CONST = 0;
        public const PUBLIC_CONST_TWO = 0;
        //Constants can only have one visibility declaration list
        private const FOO = 1, BAR = 2;
- Iterable pseudo-type
- Square bracket syntax for list() and the ability to specify keys in list() 
- Catching multiple exceptions types
- And many more features and changes…"
Quoted from:

Saturday, November 26, 2016

Reviews of Top Frameworks For HTML5 Hybrid Mobile Apps

Technology moves so fast now a days, and this is specially true in the JavaScript world. So if you're starting now in  Hybrid Mobile development and you're looking for a Framework, you will come face to face with dozens of choices (that at first look, they all look the same).

One good place to start is by checking comparisons and reviews of the top Frameworks available for Hybrid Mobile Apps development and see which one most fits your needs.

I leave you here some good blog posts about it:

My Top 3 are Ionic Framework, Framework7 and Onsen UI. And yours?

Sunday, November 20, 2016

Create a Forum From Scratch with PHP/MySQL [Tutorial]

If you're looking to start or just improving your programming skills with PHP and MySQL this tutorial from Envato Tuts+ is a good place to start like they reference on the beginning of the tutorial:
"In this tutorial, we're going to build a PHP/MySQL powered forum from scratch. This tutorial is perfect for getting used to basic PHP and database usage."
- From: How to Create a PHP/MySQL Powered Forum From Scratch
And in 12 easy steps they cover all the basic functionalities of a forum:

- Creating MySQL Database Tables
- Forum "Design" with Header/Footer System
- User Sing Up, Authentication and User Levels
- CRUD of Categories, Topics and Replies

That will look more or less like the image bellow: