Wolfgang Hochleitner

62 Followers
145 Following
115 Posts
University assistant and researcher at FH Oร–. All things #games and #web with a special love for PHP.
Pronounshe/him/his
Xhttps://twitter.com/GangMan_
GitHubhttps://github.com/hochleitner
@MoritzGlantz I guess it depends what you're doing. A symmetrical connection has less cross-talk between the left and right channel because of separate ground wires but in most regular cases (like listening to music) you probably won't hear any difference. In a professional studio environment it can make sense and I guess most Mini XLR headphones are studio headphones anyway. I'm no audio expert though, so there are surely people who have better insights on this.
@MoritzGlantz To provide symmetrical audio transmission with a smaller form factor compared to the regular XLR. Ideal for headphones and the likes.

๐Ÿฅณ PHP 8.5 Released!

In this new release, we have:

๐ŸŒ URI Extension
โ–ถ๏ธ Pipe Operator
๐Ÿ“‘ Clone With
โš ๏ธ A New #[\NoDiscard] Attribute
๐Ÿ†• Closures and First-Class Callables in Constant Expressions
๐ŸŒ€ Persistent cURL Share Handles

๐Ÿ‘“ Read all about it on: https://www.php.net/releases/8.5/

๐Ÿ”— https://php.net/ChangeLog-8#8.5.0
๐Ÿ“ฆ https://php.net/downloads

#PHP #PHP85 #Release

PHP: PHP 8.5 Release Announcement

PHP 8.5 is a major update of the PHP language, with new features including the URI Extension, Pipe Operator, and support for modifying properties while cloning.

New! A Look At HTMX With PHP

HTMX is a JavaScript library that can be used to issue AJAX requests, create CSS transisions, and set up web sockets using HTML

The power of HTMX is that it can be used without writing any custom JavaScript code.

In this article we will look at how to get HTMX working with a vanilla PHP backend. With a few examples of the two systems working together.

https://www.hashbangcode.com/article/look-htmx-php
#javascript #htmx #php

A Look At HTMX With PHP

HTMX is a JavaScript library that can be used to issue AJAX requests, create CSS transisions, and set up web sockets using HTMLThe power of HTMX is that it can be used without writing any custom JavaScript code. It works by looking for attributes in HTML tags using that information to set up events, user interaction, and send requests to a back end. The system is backend agnostic and so will essentially work with any system that can accept, interpret, and respond to the requests.

#! code
๐Ÿ”— Pipe Operator |> PHP 8.5
https://acairns.co.uk/posts/php/pipe-operator
Pipe Operator

Explore how a native pipe operator could improve code readability and composition in PHP. Understand current alternatives and what future implementation might look like.

Andrew Cairns
Gmunden, Traunsee Upper Austria. View to castle Orth.
@grmpyprogrammer As someone who has bought, read and enjoyed one of your books, I just wanted to say that I can understand your frustration. But let me add this: when I posted that I'm looking forward to reading it, you immediately replied and offered support if I had any questions. This kind of interaction and connection with the person that actually wrote the book is deeply unique and will never be replaceable by AI. It made my learning journey special. I'd be sad to see this go away.

"""Checking whether an array is empty with a strict comparison against the empty array is a common pattern in PHP. A GitHub search for "=== []" language:PHP reveals 44k hits. From the set of !$a, count($a) === 0, empty($a) and $a === [] it however is also the slowest option."""

https://github.com/php/php-src/pull/18571

This is a great example of how you should write whatever you find most readable and maintainable, and let us worry about efficiency. Wtih this PR, the "slow" approach becomes a "fast" one.

zend_vm: Add OPcode specialization for `=== []` by TimWolla ยท Pull Request #18571 ยท php/php-src

Checking whether an array is empty with a strict comparison against the empty array is a common pattern in PHP. A GitHub search for "=== []" language:PHP reveals 44k hits. From the set of...

GitHub
The bear inside the box is Paddington, the bear outside the box is Marginton