Friday, March 4, 2016

Implementing the Range Operator in PHP

We sometimes come across some amazing posts in other locations, and with the permissions of their authors, repost them on SitePoint. This is one such instance. In the post below, Thomas Punt implements the range operator in PHP. If you’ve ever been interested in PHP internals and adding features to your favorite programming language, now’s the time to learn!

[author_more]

This article assumes that the reader is able to build PHP from source. If this is not the case, then please see the Building PHP chapter of the PHP Internals Book first.

Flying elephpant


This article will demonstrate how to implement a new operator in PHP. The
following steps will be taken to do this:

  • Updating the lexer: This will make it aware of the new operator syntax
    so that it can be turned into a token
  • Updating the parser: This will say where it can be used, as well as what
    precedence and associativity it will have
  • Updating the compilation stage: This is where the abstract syntax tree
    (AST) is traversed and opcodes are emitted from it
  • Updating the Zend VM: This is used to handle the interpretation of the
    new opcode for the operator during script execution

This article therefore seeks to provide a brief overview of a number of PHP’s
internal aspects.

Also, a big thank you to Nikita Popov for
proofreading and helping to improve my article!

Continue reading %Implementing the Range Operator in PHP%


by Thomas Punt via SitePoint

10 Stunning Ionic Templates

This week's JavaScript news, issue 273

This week's JavaScript news
Read this e-mail on the Web
JavaScript Weekly
Issue 273 — March 4, 2016

If you're at O'Reilly Fluent in San Francisco next week, come and say hi to the CooperPress team and get some ES6 stickers from us :-) If you want to come to Fluent's meetups and hallway track for free, use code EH16SP with the Exhibit Hall pass. See you there!

Aurelia De Rosa details all of the important additions, changes and deprecations in the upcoming version of jQuery.
Telerik Developer Network

A look at Enzyme, a library for testing React components.
Airbnb

A high level look at what’s going on with Angular2 and who’s already using it in production.
The New Stack

Will JavaScript continue to rise in use? What’s in store for the most popular JavaScript frameworks? Learn the answers to these questions in this whitepaper containing interviews with developers building the JavaScript of tomorrow.
Telerik Kendo UI   Sponsored
Telerik Kendo UI

Yes, benchmarks, so your mileage may vary, but 5 browsers and 2 Node runtimes were used along with numerous ways to run the ES6 code on each.
Kevin Decker

A succinct look at creating a Chrome extension that uses the Web Speech API to read out content upon the user’s request.
Ivan Dimov

This comes from the folks who run the Rails Rumble and Node Knockout, so it’ll be good. Reg opens on March 1 and the competition is May 14-15.
RumbleX

An very in-depth tutorial, with code, diagrams, and insights into the process behind creating an isomorphic React and Express app.
Smashing Magazine

A variety of stateless, functional components to use, including cards, labels, buttons, toolbars, dropdowns, and many more.
Brent Jackson

Jobs

  • Software Engineer, Knowledge Delivery (London, UK)You’ll build the software that powers our core business model and gives smart people great tools to best deliver on their work. You’ll code in Ruby and EmberJS with the opportunity to bring in new languages that fit. AlphaSights
  • Full Stack Developer in NYC (RoR + AngularJS)Want to work with small team tackling a big industry? We’re a group of 20 dedicated designers, engineers and PMs trying to change the way a $12 trillion business operates. If you're interested let's talk. Hightower
  • Stop Applying to Jobs - Let Companies Apply to YouOn Hired, sign up in 10 minutes and get offers from top companies like Facebook, Uber, & Stripe. Engineers get an average of 5 offers on the platform in 1 week. Try it today. Hired.com

In brief

Curated by Peter Cooper and published by Cooper Press.

Stop getting JavaScript Weekly : Change email address : Read this issue on the Web

© Cooper Press Ltd. Office 30, Lincoln Way, Louth, LN11 0LS, UK


by via JavaScript Weekly

How the Web Works: HTTP and the Web Server

The web is built on the HyperText Transfer Protocol (HTTP). When we go to a web page, our browser makes requests to a web server. The web server processes our request and ultimately sends a response. 

In this short video tutorial from my recent course How to Become a Web Developer, I'll explain how it all fits together.

Watch the Tutorial

Watch the Full Course

Web development can be a daunting topic to get started with. Unlike with conventional applications, not only do you need to be familiar with how the web works, but you also have to understand a variety of technologies and languages. 

In the full course, How to Become a Web Developer, you'll learn everything you need to know to get started with web development. You'll learn how to create web pages using HTML, CSS and JavaScript. Not only that, but you'll learn about some of the fundamentals of the internet: URLs, DNS, HTTPS and more! 


by Jeremy McPeak via Envato Tuts+ Code

What Apple Pay Can Teach Us About Email Encryption

Debugging WordPress Projects in 60 Seconds

Deregistering WordPress Stylesheets in 60 Seconds