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

๐Ÿฅณ 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.

"""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
Since we now got the spotlight thanks to certain someone, here are some woke positions in Wikimedia Foundation:
* https://grnh.se/45b18a291us: Engineering manager to make MediaWiki (the software behind Wikipedia) even more woke
* https://grnh.se/cac659f31us: Engineering manager to develop Woke features
* https://grnh.se/8a7e66cc1us: Director of SRE to make sure woke content is always available.
* https://grnh.se/84bf644b1us: Senior woke DBA (we DBAs never sleep)
Senior Engineering Manager - Mediawiki Interfaces

Remote

Mastodon isn't perfect.

But the fact a social network exists that is completely free to use

has no venture capital investors

has no shareholders to answer to

has no growth targets

with a web interface with zero tracking cookies

and mobile apps with zero trackers at all

with ten thousand server administrators who donate their time for user safety

is - in my opinion - mindbogglingly cool, given the state of the world we live in. Not everything has to be shit. People make things better.

On day 22 @dnikub advises us to stop using the title attribute as a tooltip. #HTMHellAdventCalendar

https://htmhell.dev/adventcalendar/2024/22/

PSA: Stop using the title attribute as tooltip! - HTMHell

A collection of bad practices in HTML, copied from real websites.

PSA: Stop using the title attribute as tooltip! - HTMHell