How to Prevent empty From Treating "0" as Empty
empty treats "0" as false and hides real data.
#php #empty #stringzero #bug #howto #validation
https://www.youtube.com/watch?v=fMGe39pejIw
Me: "Why won't this app break on this line!?"
Also me: Helps to have #xdebug enabled if you're trying to debug something
Finally I've rewritten my #blog from #typescript on #cloudflare to #php on a self-hosted server.
I'm using the latest PHP version (8.5.3) so I can use modern stuff like pipe operators and URL parsing libraries.
*Almost* everything works, except the rss feed. I'm working on that!
DDD и CQRS на PHP без Symfony: собираем легковесный стек с помощью ИИ
Собрал три легковесных PHP-пакета — DI-контейнер с autowiring, DataMapper поверх PDO и PSR-15 роутер — и с помощью ИИ построил на них DDD-приложение с CQRS. Чистый домен без внешних зависимостей, 92 теста и vendor в 10 раз легче Symfony.
https://habr.com/ru/articles/996854/
#ии #php #autowiring #router #orm #mapping
RE: https://phpc.social/@LeedsPHP/116000427254260853
Only 6 spaces left for our event on Wednesday! 🎉
Join us to learn more about AI in production code and PHP quirks https://www.meetup.com/leedsphp/events/312622264
New! Leaving Meetup.com And Extracting Past Event Data Without API Access
In this article Phil shows how he was able to dig into the meetup.com site to see how the data was presented, and how he was able to MacGyver a solution in PHP to download the past data for a group as a CSV file.
https://www.hashbangcode.com/article/leaving-meetupcom-and-extracting-past-event-data-without-api-access
#api #php #hashbangcode
How to Avoid array_merge Reindexing Your Keys
Numeric keys get rewritten and ruin mapping.
#php #arraymerge #keys #bug #howto #arrays
https://www.youtube.com/watch?v=KztC7frMN-Y
Сравнение рейтинга TIOBE и вакансий на HH
Доброго времени суток! Моя первая статья, не судите строго. В следующий раз, постараюсь учесть все, что вы напишите в комментариях. Идея статьи Я знаю, что рейтинг TIOBE не совсем показывает реальность, которая есть в мире языков программирования, но на него часто ссылаются. И зародилась идея сравнить места в рейтинге TIOBE и как языки чувствуют себя на HH. Полностью осознаю, что каждый из читающих, которые имеют хотя бы один палец (или даже без пальцев), может сделать, то что сделано в этой статье :-) Я просто постарался сделать это за вас, ну и сама статья не несет чего то фундаментального, а просто интересное сравнение.
https://habr.com/ru/articles/996740/
#sql #python #c++ #javascript #c# #go #php #kotlin #matlab #java
Как я написал production-ready PHP-роутер за один вечер с помощью ИИ
Production-ready PHP-роутер за один вечер: 2 100 строк кода, PHPStan level 9, полное покрытие тестами — и всё при помощи ИИ Я решил проверить, можно ли за один вечер с помощью ИИ-ассистента создать не прототип и не «потом допилим», а полноценную библиотеку, готовую к публикации на Packagist. Результат — PSR-15 роутер с prefix-trie матчингом, атрибутной маршрутизацией, middleware-пайплайном и кешированием. 8 коммитов, 5 часов 40 минут, ~4 800 строк PHP-кода. Под катом — честный разбор: хронология по git log, где ИИ ускоряет в разы, а где без головы разработчика никуда.
https://habr.com/ru/articles/996728/
A124268: Primes indexed by 3-almost primes
A124268 ➡️ https://oeis.org/A124268
3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/A124268.html
3D graph Gen, threejs animation ➡️ https://decompwlj.com/3DgraphGen/A124268.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/A124268.html
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research

A123929: Simili-primes of order 2
A123929 ➡️ https://oeis.org/A123929
3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/A123929.html
3D graph Gen, threejs animation ➡️ https://decompwlj.com/3DgraphGen/A123929.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/A123929.html
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research
