@dantleech@fosstodon.org
@dantleech@fosstodon.org avatar

dantleech

@dantleech@fosstodon.org

Developing the Phpactor (https://phpc.social/@phpactor) language server, PHPBench, and other stuff. Working with #PHP, #Go, Typescript. Bad musician, not good at spelling. Learning #Rust painfully.

Contractor!

This profile is from a federated server and may be incomplete. Browse more on the original instance.

dantleech, to random
@dantleech@fosstodon.org avatar

Have officlally stopped supporting the Phpactor and PHPBench Twitter accounts due to the impending tweetdeck shutdown, both are now on phpc.social

dantleech, (edited ) to php
@dantleech@fosstodon.org avatar

My whats-changed composer plugin continues to be useful 3 years after I last made a change to it...and 6 years after I created it 😮 being one of the weekend projects that turned out to be useful.

I just discovered @tfidry 's CPU Core Counter package (https://github.com/theofidry/cpu-core-counter) while updating Phpactor which is exactly what I need on Monday!

https://github.com/dantleech/what-changed

dantleech, to php
@dantleech@fosstodon.org avatar

Looks like I'm in the job market :/ Interested in anything with , , , K8S, etc etc. Tech Lead / Senior Software Engineer.

dantleech, to php
@dantleech@fosstodon.org avatar

👋 i have a few leads but still looking for a job/contract, mainly , but also happy to help out with any of the other things that I do.

dantleech, (edited ) to php
@dantleech@fosstodon.org avatar

Blog post: things that annoy me in (but I still like it): https://www.dantleech.com/blog/2024/02/18/my-php-problems

dantleech, to php
@dantleech@fosstodon.org avatar

I've blogged about the Term terminal library I packaged today: https://www.dantleech.com/blog/2023/11/27/php-term/

dantleech, to random
@dantleech@fosstodon.org avatar

are there any decent CLI argument parsers for ? like Clap or Kong? (i.e. could be used to make the git or docker CLIs).

dantleech, to php
@dantleech@fosstodon.org avatar

I've written up my progress on PHP-TUI over the past 3 weeks, it's come a long way and has been an adventure:

https://www.dantleech.com/blog/2023/11/03/php-tui-progress/

dantleech, to random
@dantleech@fosstodon.org avatar

Releasing a project after 2 years is always fun. updating dependencies, bumping php version, finding out that the PHAR build no longer works...

But here is Fink 0.11.2:

https://github.com/dantleech/fink

It's a pretty decent PHP link checker, and was one of those fun projects that had a limited scope and as such could be considered "done".

dantleech, to random
@dantleech@fosstodon.org avatar

Naming things is harder when a reserved keyword is squatting on your name.

dantleech, (edited ) to random
@dantleech@fosstodon.org avatar

Ordering an original Sandisk Sansa Clip+ from CEX.co.uk

Tired of carrying my phone on runs (guess what I can fall over and break) and unreliable bluetooth headphones. Take me back to 2009 when shit was good.

(and you can install rockbox and play doom on it for lolz)

dantleech, to random
@dantleech@fosstodon.org avatar

Given my recent redundancy and me possibly switching to contracting, I need a new laptop. I've been eyeing the Framework for a long time. Just not sure if I should go with i5 or i7. Apart from the 300GBP cost difference I guess the i7 might run hotter 🤔

dantleech, to random
@dantleech@fosstodon.org avatar

pet hate: wrapping standard tools in unnecessary abstractions.

if i can't run ./path/to/tool-bin easily and have it in the correct state - i'm not happy. at all. in fact i may be crying.

dantleech, (edited ) to random
@dantleech@fosstodon.org avatar

If it's a choice between no art and AI generated art. I prefer no art everytime, in fact I'm less likely to visit a website if (blatant) AI generated art is used to promote it.

Art is pointless if no effort went into making it.

djumaka, to php
@djumaka@phpc.social avatar

I get a rash when I see trait used in a project. I guess it may be fine to setup similar fields structure among different models, for example, but seeing way to many misuse of traits to hide repeating code or to imitate OOP made me allergic to it. Do you have any good reason for using traits, actually?

dantleech, (edited )
@dantleech@fosstodon.org avatar

@djumaka sometimes in PHPUnit test cases as you really don't have many other options... although even then I'm personally more likely to have a static helper.

i've used them exceptionally elsewhere, and kinda regretted it.

my heuristic is that if I have to use traits then the design is already broken...

dantleech, (edited ) to random
@dantleech@fosstodon.org avatar

the main reason Wikis suck is because nobody actually takes care of organising them.

i hate looking at the root of a wiki and seeing 100 random folders and pages.

organising information is hard, but it's basically what developers [should] do every. single. day and the same effort should be applied to documentation.

i think employing documentation librarians wouldn't be the dumbest move.

dantleech, to php
@dantleech@fosstodon.org avatar

Does PHPStorm index and allow you to open "files" in PHAR archives?

dantleech, to php
@dantleech@fosstodon.org avatar
dantleech, (edited ) to random
@dantleech@fosstodon.org avatar

Emotional rollercoaster of starting new projects:

  • This is cool
  • I've spent 18 hours on this
  • This is awful
  • I'm awful
  • The world is awful
  • This is cool (goto 1)
  • ... weeks pass_
  • Wow this is great.
  • Almost done
  • lose interest
  • Project abandonned
dantleech, to random
@dantleech@fosstodon.org avatar

github: why isn't there an option "require all status checks to pass" instead of having to explicitly enable/disable 10 checks!? (or is there?)

dantleech, to random
@dantleech@fosstodon.org avatar

is it just me or is an 8 hour work day 1 hour too long? possibly 2 hours. all I know is at the end of every single day I am invariably K/O'd

beausimensen, to golang
@beausimensen@phpc.social avatar

I'm looking for great simple projects repositories. I want to get a feel for what a solid project looks like. What are your favorites?

Likewise, solid resources for getting up to speed with go would be appreciated too!

dantleech,
@dantleech@fosstodon.org avatar

@beausimensen I made a blog post about Go for PHP devs a few years ago: https://www.dantleech.com/blog/2022/09/19/encountering-go-as-a-php-developer

dantleech, to random
@dantleech@fosstodon.org avatar

Almost afraid to ask because it's a fun project, but are there any open source tools which can plot a GPX on OSM map tiles and export to an image/PDF?

Context: plotting maps for the local running club.

dantleech, (edited ) to random
@dantleech@fosstodon.org avatar

Blog post on why I don't write ADRs (but I do): https://www.dantleech.com/blog/2024/03/10/why-i-dont-write-adrs/

dantleech, to random
@dantleech@fosstodon.org avatar

urgh, knee deep in Traits, *Aware interfaces, and Abstract classes.

dantleech,
@dantleech@fosstodon.org avatar

traits inside of traits inside of traits.

the secret is: you do not need traits! they are code smells not tools.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines