What’s new in PHP 8

After a lot of to-ing and fro-ing as to when PHP 8 would be released, the developers have now announced that November 26th, 2020 is the date we’re waiting for.

The new version of PHP is expected to come with some new features that offer web developers many additional possibilities.

JIT Compiler, JSON extension always activated, Union Types, Static return type, WeakMap, Use ::class for objects, Stringable interface, Convert DateTime, Type annotations, Type errors…

Continue reading “What’s new in PHP 8”

PHP list() and Shorthand for Array Destructuring

PHP construct list() or its shorthand can be useful in many cases. It can be very useful to use it with PHP functions that returns arrays. Supun Kavinda have interesting article about.

Continue reading “PHP list() and Shorthand for Array Destructuring”

25+ JavaScript Shorthand Coding Techniques

This really is a must read for any JavaScript developer. Michael Wanyoike, Sam Deering have written this guide to shorthand JavaScript coding techniques that they have picked up over the years. To help you understand what is going on, they have included the longhand versions to give some coding perspective.

This really is a must read for any JavaScript developer. Michael Wanyoike, Sam Deering have written this guide to shorthand JavaScript coding techniques that they have picked up over the years. To help you understand what is going on, they have included the longhand versions to give some coding perspective.

Continue reading “25+ JavaScript Shorthand Coding Techniques”

JS validacija, jednostavan način

Postoje 2 načina za validaciju formi na osnovu mesta izvršenja validacije. Jedna je obavezna server-side validacija (php, asp, java), a druga je na klijentskoj strani i za to se uglavnom koristi Java Script. Kažem uglavnom, jer moderni browser-i imaju ugrađene validatore. Continue reading “JS validacija, jednostavan način”

JavaScript Module Pattern

Smanjivanje broja globalnih promenljivih i njihovo premeštanje u lokalne (privatne) promenljive donosi više reda u svim jezicima, pa tako i u JavaScript kodu. Ako znamo da se na stranicama često nalazi više različitih skripti ovakvo označavanje ima više smisla.

Continue reading “JavaScript Module Pattern”