Whats a Double arrow in javascript

Whats a Double arrow in javascript

What do the operators “>>” (double arrow) and “|” (single pipe) mean in JavaScript? If that’s the question that runs through your mind, then you are at the right place to discover Bitwise operators. 1. The Right Shift Operator >>(double arrow) Shifts x in binary representation y (< 32) bits to the right, discarding bits shifted off. Or more simply x >> y means to […]

Read Me Leave comment

JS File Upload with Dropzone and Symfony

JS File Upload with Dropzone and Symfony

Handling File Uploads completely server-side (especially with Symfony) doesn’t usually seem a pretty straightforward task. It requires a lot of tweaking for stuff as simple as displaying the upload progress or even generate thumbnails for images, etc. Besides, the documentation is pretty convoluted in itself. An alternate is to use the simplicity of JS File Upload with Dropzone and Symfony 3.x+ that’ll not only help […]

Read Me Leave comment

Demystifying Promises vs Callbacks

Demystifying Promises vs Callbacks

Aren’t Promises just regular Callbacks? What are the pros/cons of using one over the other? Promises vs Callbacks? Questions like these bothering you? Not anymore! Before we actually go dive in deeper, lets quickly remind ourselves the basic definitions of these terms and what they are meant to accomplish. Callbacks: A Callback is a any function which is passed as a parameter to another function […]

Read Me Leave comment

Top Fascinating Uses of the Spread Operator

Top Fascinating Uses of the Spread Operator

The Spread Operator ES2016 brings us many many goodies, one of which I came across a couple of days ago is the Spread Operator. I have become a big fan of it, not just because of its utility but also as it helps me to shorten my code. So what is it exactly? Simply put, the spread operator allows an expression(that could be an array/object) […]

Read Me Leave comment