Dan's Avatar

Dan

@dantleech.bsky.social

Developing Phpactor language server, PHPBench, and other stuff. Working with #PHP, #Go, Typescript. Bad musician, not good at spelling. Learning #Rust painfully. Contractor! My opinions are yours unless otherwise stated. https://fosstodon.org/@dantleech

91 Followers  |  72 Following  |  22 Posts  |  Joined: 19.11.2024  |  2.1667

Latest posts by dantleech.bsky.social on Bluesky

Preview
Petition: Repeal the Online Safety Act We want the Government to repeal the Online Safety act.

UK folks should sign this petition (which I know never makes a difference, because why would the government actually listen to people?) but worth a shot. Starting to see effects of this roll out and it's making me angry πŸ™„

petition.parliament.uk/petitions/72...

#OSA #OnlineSafetyAct #UK #UKPolitics

23.07.2025 05:38 β€” πŸ‘ 2    πŸ” 4    πŸ’¬ 0    πŸ“Œ 0
Preview
feat: introduce codex, algebra, and analyzer by azjezz Β· Pull Request #230 Β· carthage-software/mago This pull request introduces the new analyzer crate, along with its core dependencies: codex and algebra. This lays the foundational infrastructure for type analysis by defining the core data struc...

The mago-analyzer PR is up! πŸš€ It's still a work-in-progress before we merge, but all the details are inside.

For the brave who wish to suffer, the code is available for your viewing pleasure.

πŸ”— github.com/carthage-sof...

#php #rust #mago #staticanalysis πŸ˜πŸ¦€

11.07.2025 01:46 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Congrats!!

12.05.2025 20:02 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

I've been working on an DBGP (Xdebug) step-debugging TUI. It allows you to step forwards and backwards, shows inline values and has vim-like key bindings. This release includes a macos build.

github.com/dantleech/de...

#php #rust #xdebug

10.05.2025 19:26 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Oh look, my company's logo :)

07.05.2025 20:53 β€” πŸ‘ 9    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
Preview
Bref Cloud - Serverless PHP hosting on AWS Lambda - powerful, scalable, simple – Bref Deploy PHP applications on AWS Lambda for unlimited scalability and enterprise-grade reliability. Get all the power of serverless without the complexity.

✦ Bref Cloud is live ✦

Modern PHP hosting should be simple: instantly scalable, redundant, monitored, and secure.

Get the best of AWS and serverless with an intuitive dashboard and CLI. No need to become an AWS expert

try it out ↓
bref.sh/cloud

21.03.2025 12:30 β€” πŸ‘ 20    πŸ” 9    πŸ’¬ 0    πŸ“Œ 0

Depending on possibly non existing classes or classes which may no longer meet the contract that we implemented is YOLO at its finest πŸ˜›

15.03.2025 15:16 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

If it may or may not be included then it may or may not work πŸ˜… we can already write adapter classes and more correctly, put them in separate packages with hard dependencies on the versions they actually support. It's just effort - and probably that's really the problem that needs to be solved.

15.03.2025 15:14 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
PHP: rfc:optional-interfaces

Why would I sign a contract and then ignore it?

This feature seems odd, and not sure why so many people are voting yes.

wiki.php.net/rfc/optional...

15.03.2025 03:25 β€” πŸ‘ 0    πŸ” 2    πŸ’¬ 4    πŸ“Œ 0
Preview
Meta Seeks to Block Further Sales of Ex-Employee’s Scathing Memoir An arbitrator has prevented the employee from promoting her book and disparaging the company until private arbitration concludes.

Meta won a legal victory on Wednesday against a former employee who published an explosive, tell-all memoir, as an arbitrator temporarily prohibited the author from promoting or further distributing copies.

13.03.2025 02:30 β€” πŸ‘ 280    πŸ” 88    πŸ’¬ 89    πŸ“Œ 58

I wouldn’t normally repost The Mail but… 🫑

02.03.2025 13:22 β€” πŸ‘ 10    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0
Video thumbnail

Spent the day improving my workflow!

Introducing the "wsdl inspect:ui" command which opens up a TUI to inspect what information we know about your WSDL.

#php #soap

28.02.2025 14:40 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Really enjoyed giving this workshop on building an Expression Language!

27.02.2025 09:44 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

As Vance 'lectures' Europe on free speech, it is good to be reminded that the United States ranks 55 (!) on the World Press Freedom Index.

The top 10 countries are ALL in Europe.

#journalism #democracy #freepress

rsf.org/en/index

16.02.2025 08:59 β€” πŸ‘ 1975    πŸ” 883    πŸ’¬ 46    πŸ“Œ 42
Portland Coastal Marathon I stopped running a week before the marathon in order to β€œtrain” for it in order to mitigate the various aches and pains that I was accumulating from over-training. Registration closed at 8:30 and my ...

Running the Portland Coastal Marathon: www.dantleech.com/blog/2025/02...

12.02.2025 08:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Oops 😬

08.02.2025 01:50 β€” πŸ‘ 78194    πŸ” 19629    πŸ’¬ 1019    πŸ“Œ 864
Post image

Looking forward to speaking about #PHP Value Obejcts and You 🫡 at DPC on the 21st of March!

31.01.2025 10:54 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
The One Hour Expression Language This blog post is based on a talk I did entitled The One Hour Expression Language and aims to provide a review of both the concepts and the code in that talk1. An expression language2 in our sense is ...

Create an expression langauge in #php or another #programming language in one our or more (or read in 5 minutes or less) with my patented* expression langauge recipe (blog post) with added Godzilla:

www.dantleech.com/blog/2025/01...

19.01.2025 09:49 β€” πŸ‘ 2    πŸ” 2    πŸ’¬ 1    πŸ“Œ 0

lol

30.12.2024 17:57 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Not ... sure what you mean?

30.12.2024 16:59 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
PHP, DTOs, C-DTO and You 🫡 In my previous post I talked about Value Objects in this post I will talk about DTOs - Data Transfer Objects. As a disclaimer the contents of this blog post represents my current opinion and any abuse...

#PHP, DTOs, C-DTO, and You 🫡 a mildly opinionated blog post

www.dantleech.com/blog/2024/12...

30.12.2024 10:40 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Post image

I seem to have upset the Nigel Farage fan club - so let me be clear.

This man sows hate, lies and division.

He is a grifter and a conman.

He does not represent the vast majority of Britons.

Repost if you agree

P.s. multiculturalism is great.

27.12.2024 09:55 β€” πŸ‘ 7568    πŸ” 3567    πŸ’¬ 450    πŸ“Œ 139
Post image

So the EU has decided to standardize all chargers to USB C. That's great. Meantime in Brexit:

28.12.2024 18:31 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
GitHub - ShawnMcCool/ultra-mock: A mocking framework for testing any class-based programming language. A mocking framework for testing any class-based programming language. - ShawnMcCool/ultra-mock

I got tired of mocking frameworks in class-based languages, so I created the simplest, most compatible, and most powerful mocking library that I could imagine. It's great for PHP / Java and other class-based languages.

github.com/ShawnMcCool/...

28.12.2024 12:50 β€” πŸ‘ 28    πŸ” 8    πŸ’¬ 3    πŸ“Œ 4
Post image

As someone who deals with legal documents on a near-daily basis, this is accurate.

25.12.2024 13:37 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
The Year This Year of 2024 This is the year that was last year of the year, the year of the year, the best and worst year that was in the last year that was after the year before that. This is my story. Ownership Anxiety ΒΆ In J...

My Year in the Year 2024 in Years: www.dantleech.com/blog/2024/12...

23.12.2024 19:53 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Unf**king the Climate - Part 2: Food Talking about food gets loud and ideological, but we're going to have a judgement free chat about livestock, flexitarianism, veganism, and my favourite: the invasivore diet. Let's fix the planet a lit...

Food is a complicated topic, especially trying to balance nutrition with lower climate impacts and animal welfare, but I’ve taken a stab at explaining a bunch of it here with no nonsense or judgement. philsturgeon.com/unf-king-the...

20.12.2024 12:11 β€” πŸ‘ 10    πŸ” 3    πŸ’¬ 2    πŸ“Œ 1

Go look up TIME’s 1938 Person of the Year

12.12.2024 14:17 β€” πŸ‘ 63    πŸ” 13    πŸ’¬ 3    πŸ“Œ 2

The advantage (which I don't think is worth it) is easily being able to associate a unit of code with its test.

I'd like to try something in the middle, having tests at "module/package" level - i.e. still in `src` - like with SF Components.

10.12.2024 14:32 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

yep, it's hard to go "back"

10.12.2024 13:43 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@dantleech is following 20 prominent accounts