Squirrels Hate Robots

Rage Driven Development

Posts Tagged With:
PHP8

RSS

At first this was a feature I was excited for. After using it, I've changed my mind about it. Constructor property promotion was added so that you could pass an argument to a class constructor, and it would get auto assigned to a property, without you having to do $this->That = $That in your constructors over and over.
Continue Reading...
4 Code Blocks | 2 Min Read

The main point of attributes is to add metadata to code that is easily parseable and can think for itself when you ask for it. Up to now most devs were probably doing this using the PHP docblock thing - those double star multi-line comments. We'd fill them with @tags and then parse that data with Reflection and probably some regular expressions to make any sense of the blob of text.
Continue Reading...
1 Image | 9 Code Blocks | 8 Min Read



Page 1 of 1

About


Blogging about web development. Sometimes there might even be useful information wedged in between complaints. You never know.

T_PAAMAYIM_NEKUDOTAYIM

Bloggers


Blog Owner
bob
Dallas, TX

Posts
15

Comments
4

Images
26

Code Blocks
28

Reading Time
~ 43m 11s