@thgs@phpc.social avatar

thgs

@thgs@phpc.social

Passionate (oddly?) and stuck with #PHP for quite a few years, although I have fallen for #Haskell and #assembly in the past.

Currently exploring and learning about #DDD, although I will always like a quick and aggressive "hack".

Always learning. Finding myself, mostly, at the tip of a contradiction!

Also a father, nowadays.

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

thgs, (edited ) to php
@thgs@phpc.social avatar

What error level are you running psalm ?

heiglandreas, to random
@heiglandreas@phpc.social avatar

I wrote about why I think we should not use composer to install development tools:

https://andreas.heigl.org/2024/06/02/of-tools-and-dependencies/

thgs,
@thgs@phpc.social avatar

@heiglandreas I've had troubles trying to convince for what you advocate. PHP world seems to have this notion of dev deps so embedded and tightly coupled to the production code..

For a slightly higher level perspective, personally I have found inspiration and therefore I recommend, to take a look at Ivar Jacobson ideas, which mainly include as users/actors of the "system" (whole) the developers which develop the system. There are use cases that the system must cover for them to do their job.

thgs,
@thgs@phpc.social avatar

@heiglandreas

Also to mention the notion of a "toolchain". There is some effort I have seen here https://github.com/pronskiy/phpup although I am not sure of how this goes (I do not follow up much).

In general the notion of a toolchain, like in other ecosystems (possibly rust? or golang) is in a way missing from PHP.

And last, a question, if you do not use multiple composer installations for your tools but a single one, what can go wrong? :) I mean.. I can endure my tools to be limiting to each other

thgs,
@thgs@phpc.social avatar

@heiglandreas I mean.. in reality it is not that hard to maintain different composer installation for each tool either.

thgs, to php
@thgs@phpc.social avatar

Anyone built anything nice with #php lately and would like to share?

Edent, to random
@Edent@mastodon.social avatar
thgs,
@thgs@phpc.social avatar

@Edent I find that sort of normal, now, after a good amount of years in UK.

I had not experienced weather like UK's before, with quick successions of changes being the norm.

It is sort of interesting, to be fair.

thgs, to programming
@thgs@phpc.social avatar

What is a programming blog of preference that you keep reading and would recommend ?

#programming #blog #technical

thgs,
@thgs@phpc.social avatar

@scathach

Yea I have come across their work before

https://phpc.social/@thgs/111567767998357059

I found the really portable executable very inspirational.

I think those days I came across their work from my exploration of what is possible in the terminal.

thgs, to random
@thgs@phpc.social avatar

What's better than OpenAPI spec?

thgs, to FunctionalProgramming
@thgs@phpc.social avatar

Necessary reading for #functionalProgramming

Not sure what is the current state of things but as a technical, mathematical or analytical introduction to the concepts this paper is really hitting the spot.

https://www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf

thgs, (edited ) to random
@thgs@phpc.social avatar

Which browser are you using at home?

thgs, to php
@thgs@phpc.social avatar

For anyone interested and iff you want to know..

#PHP supported lexical closures and first class anonymous functions since 2009 with the release of 5.3.

https://3v4l.org/kCgaI#v5.3.0

Facts.. facts..

thgs, to random
@thgs@phpc.social avatar

This is a test - please ignore

oliver, to php
@oliver@phpc.social avatar

If you were about to start a medium-sized #PHP project, what would you choose as an #ORM, and why? It should be something stable and well maintained. If the business takes off, then there should be no need to replace that layer.

Caveat: imagine that Doctrine and Eloquent haven't been invented yet.

thgs,
@thgs@phpc.social avatar

@oliver Nevertheless, if you structure it well AND that layer becomes a burden in the future for whatever reason, because it is structured well you will be able to replace it easily.

In reference to hexagonal / layered architectures.

thgs,
@thgs@phpc.social avatar

@oliver I mean.. the way you put it, the data mapper is only convenience probably. I think valinor supports stuff like nested levels that ocramius/GeneratedHydrator doesn't for example. Not sure 100% for either.

Personally, I would not consider writing my own data mapper, just for the sake of not losing time with the project.

Recently, I favour the notion of "first version is probably throw-away code" and just try to make it work. It all depends on what level you design things, I guess..

thgs,
@thgs@phpc.social avatar

@oliver

Who is going to use with this code? I think the answer to that will be fundamental.

Say you already have a team that proficient in using Doctrine, it might be a good idea to just do that.

If you don't have a team like that and what you really want is something that would not be an impediment, scope out the real needs, right now. I assume from what you say need a mapper of some sort and DBAL ? You could roll your own with say valinor for mapping or similar + optionally a DBAL lib.

andrewfeeney, to random
@andrewfeeney@phpc.social avatar

You know what they say, what goes up must go down unless it goes up really fast.

thgs,
@thgs@phpc.social avatar

@andrewfeeney it will still go down..

maccath, to random
@maccath@phpc.social avatar

Anyone have a recommendation for a to-do list app that is NOT Todoist, Notion or Google Tasks?

Must be available on and sync across web and Android at the minimum.

Bonus points if there is a way for me to schedule tasks and subscribe to the calendar from elsewhere.

Thank you!

thgs,
@thgs@phpc.social avatar

@maccath

Emacs and/or mediawiki (or similar)

thgs, to emacs
@thgs@phpc.social avatar

Ok so NOW, I will learn

thgs,
@thgs@phpc.social avatar

@cenbe

Sir, I honestly felt that blessing deeply.

Jokes apart, so far so good, I think is actually the right tool the more I learn about it.

My first "project" is to make me an IDE like interface that will shorten the feedback loop while writing PHP.

I'm sure along the way will get lost and explore a million other concepts than only those relative to my target.

thgs,
@thgs@phpc.social avatar

@scathach @icedquinn

You use your palm to press Ctrl right?

thgs,
@thgs@phpc.social avatar

@icedquinn @scathach

so much to explore and learn..

thgs,
@thgs@phpc.social avatar

@scathach @icedquinn

jokes apart using the palm gives a whole new perspective on the motor skill that is typing

sarah, to php
@sarah@phpc.social avatar

The language is incredibly powerful. It’s great for many things. But not everything.

I wouldn’t write a web server in PHP and deploy it to production.

But the fact that I could makes the language incredibly powerful.

thgs,
@thgs@phpc.social avatar

@sarah not booting everything every time can be quite performant though

sarah, to random
@sarah@phpc.social avatar

Why is it that so many people know backups are a good idea and yet they never practice with them until emergency strikes?

I think it's human nature. While we know disaster is a possibility, we also feel like disaster is never going to happen to us.

But emergencies can happen to us. So practicing and preparing for them is essential. A backup that's never tested is a prayer, not a practice.

thgs,
@thgs@phpc.social avatar

@sarah I think it's just boring to set up.

thgs, (edited ) to ddd
@thgs@phpc.social avatar

During your day job do you do DDD?

(Wanted to put more options as I thought we had broken the 4 options limit but apparently we haven’t yet)

#ddd

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