@horuskol@phpc.social
@horuskol@phpc.social avatar

horuskol

@horuskol@phpc.social

I used to build things with HTML, CSS, JavaScript and PHP (2002 - 2023).

Now I'm spending more time creating boardgames, and hoping to sell some.

I also like using saws, chisels, and hammers.

An ex-Englishman living in South Australia.

he/him

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

danharris, to random

👉 @ Frontend ADL meet..

Thanks to Alex from @owa for giving us an overview of all the awesome work happening in open web advocacy 🎉

horuskol,
@horuskol@phpc.social avatar

@danharris

Stupid migraine making me miss tonight. Was looking forward to seeing everyone and the talks.

lazyq2, to webdev

Anyone else feels heading ranks (h1 to h6) are meant for documents like MS Word documents/essays and that the HTML spec should have a generic <caption>/<legend> element for UI components like product lists, widgets, article lists, etc.?

In my interpretation <ol><li><a><article><h1>(product name... is the correct structure for a list of product thumbnails wise, but I doubt this is right for in practice.

horuskol,
@horuskol@phpc.social avatar

@lazyq2

A long time ago, as HTML5 and the living standard was coming together, it was proposed that heading levels would reset within an article or a section. This would make sections more "portable" - you could simply extract a section and put it in its own page without having to modify its heading tags.

But for some reason browsers and search engines pushed back on having this - and so we kept the h1-h6 hierarchy as it is.

horuskol,
@horuskol@phpc.social avatar

@lazyq2

A universal <h> tag has been proposed (more than once), using article/section nesting to derive the document outline. But nothing has come of it so far.

@aardrian has this wonderful blog post (which he keeps adding to)

https://adrianroselli.com/2016/08/there-is-no-document-outline-algorithm.html

andrewfeeney, to random
@andrewfeeney@phpc.social avatar

I get the frustration with Google and other search engines becoming seemingly less useful. I agree it's happening, and I'm not about to be defending Google or any other company. However, I tend to think we underestimate just how hard the problem space is, and in particular how much harder it must be than the "glory days" of Google that we tend to reminisce about. There is just SO MUCH DATA, and most of it is useless, but specifically designed to game search engines.

horuskol,
@horuskol@phpc.social avatar

@andrewfeeney

Mostly I agree with you that the problem space is harder - especially with copycat content (I've been finding the readme for one of my plugins being copied in a variety of places).

But let's not forget that Google (and others) are working very hard (though, possibly, not intentionally) to pollute the content space by lowering the bar to creating content that is going to score well on search, while being inaccurate and even false nonsense.

matuzo, to random
@matuzo@front-end.social avatar

“Hey, a conference about usability in my small town! How cool is that? Let's buy a ticket.”

  • visits website *

€ 1.092 for a 2-day conference.

Nope, thanks.

I don't have a specific limit for a ticket price I'm willing to pay but it's definitely below 1000.

horuskol,
@horuskol@phpc.social avatar

@matuzo

It's astonishing how much some conferences charge. I know that it isn't exactly cheap to run (venue, speaker expenses, other bits and pieces), but I have a mate running a 2-dayer here in Australia at about 300 EUR a ticket. The speakers are getting airfare and some hotel nights, and there's going to be an afterparty.

horuskol,
@horuskol@phpc.social avatar

@EspressoCat @matuzo

Those 1000 EUR tickets will be paid by employers rather than the developers themselves - but puts the price out of reach for people like me working for themselves, or working for employers who don't want to spend the money.

valorin, to random
@valorin@phpc.social avatar

Working on my first Laravel Security Review today! 😄

While I'd love to live-tweet all the details, privacy is an important part of what I do, so instead I'll just walk you through my process at a high level as I go, and possibly discuss past audit findings.
Let's go! 👇 🧵

horuskol,
@horuskol@phpc.social avatar

@valorin

If I had a package called Vegemite in my app, would I have to disable it so it didn't block Dropbear? 😂

horuskol, to random
@horuskol@phpc.social avatar
matuzo, to random
@matuzo@front-end.social avatar

After almost a year working with web components I'm starting to doubt the usefulness of style encapsulation and shadow DOM in general.

Styling and some accessibility stuff is so much easier without…

horuskol,
@horuskol@phpc.social avatar

@matuzo

It's one of the first things I thought to myself when I started using Web Components - how do I push or pull outside styles into the shadow DOM?

I like that styles don't leak out, but it should be easier to override default/internal styles. I've written up a couple of experiments on my blog and tried expanding on them before life got in the way.

horuskol, to random
@horuskol@phpc.social avatar

Finding technical articles without dates makes things really difficult when software and integrations change quite dramatically on a yearly basis.

Please put dates on your articles (cough cough Google) - whether it's a support KB or a blog.

horuskol, to random
@horuskol@phpc.social avatar

I kinda miss the old days when I was starting and had no clue what I was doing.

I'd write all sorts of gnarly code and just feel joy that it all somehow worked.

These days, I still write gnarly code, and all I feel is shame that it somehow works.

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

I think my biggest gripe about docker-composer up -d is that you don't get a signal to indicate that mysql is still spinning up in its container.

Just got to wait long enough, try running your app or connecting to the database in someway. Get told to wait longer...

horuskol,
@horuskol@phpc.social avatar

@ianh

yeah - we use that in automation... but it's annoying when I'm spinning up in the morning.

I should just go back to my old habit from WinXP days - get in, turn on, go make a cuppa, come back and log right in since all the bootstrapping is done.

horuskol, to php
@horuskol@phpc.social avatar

Interesting quirk from PHPStan, and kind of makes sense:

if ($response?->successful()) {
$tag = $response?->json('tag');
...
}

It complains about using nullsafe on $response?->json() - but not on $response?->successful().

I guess this is because the $response cannot be null if it passes the condition.

#PHP

matuzo, to random
@matuzo@front-end.social avatar

I don't know what's going on, but I'm at such a low point regarding my motivation to work on the web. I know this is privilege speaking, but my job feels like a job for the first time in years. I don't enjoy writing, reading, or developing, and not even teaching. I drag myself to work, get the most important stuff done, and leave the office earlier than usual. I'm not burned out, I just don't care haha.

I hope that's just a summer slump (is that the correct term?).

horuskol,
@horuskol@phpc.social avatar

@tylersticka @matuzo

Same - could be anything that gets you time away from the screen, but my choice has been to get more serious about woodworking. Also, I started designing a boardgame.

Then when I am in front of a computer, I feel fresher and more motivated. I find it's also important to have a stop time each day, after which no more computer work. Although, that's not such a hard and fast rule if you're still motivated - but don't force it if you're not.

horuskol, to random
@horuskol@phpc.social avatar
horuskol, to Adelaide
@horuskol@phpc.social avatar

Hey in

Did you know we have our very own conference going on in this November?

https://dddadelaide.com/

horuskol, to random
@horuskol@phpc.social avatar
horuskol, to php
@horuskol@phpc.social avatar

I knew I missed something last night when I release the new directory mapping functionality.

https://github.com/SavvyWombat/caxton/releases/tag/0.4.1

#PHP #Caxton

horuskol, to random
@horuskol@phpc.social avatar

Contracting for the next few days - so didn't want to close the laptop tonight without fixing the smash and replace job I just did on Caxton today:

https://github.com/SavvyWombat/caxton/releases/tag/0.4

#PHP

heidi_helen, to random
@heidi_helen@mastodon.social avatar

Just discovered and it’s hilarious! Australian performers walk through a door into a situation they have no idea about and have to improvise. I needed a good laugh! https://10play.com.au/thank-god-youre-here

horuskol,
@horuskol@phpc.social avatar

@heidi_helen
They brought it back?

I loved that show when I first got here.

horuskol, (edited ) to til
@horuskol@phpc.social avatar

Today I learnt about this syntax for passing an object's method as a callable:

function needs_callable(callable $fn) {
$fn($args);
}

needs_callable($object->method(...));

Though, I think I'd prefer writing the needs_callable signature to typehint for the class (or interface) as callable is pretty general, and being told I passed the wrong class is a better error than mismatched arguments in the callable itself.

https://www.php.net/manual/en/functions.first_class_callable_syntax.php

#TIL #PHP

horuskol,
@horuskol@phpc.social avatar

@Crell

I hadn't even thought about callable types as a possibility - that would be very interesting indeed. I'm patient - there are so many things in PHP now that were thought too complicated or even impossible back when I started with PHP4

horuskol,
@horuskol@phpc.social avatar

@Crell

I went looking - and did find this old RFC. I wonder if it might ever get revisited?

https://wiki.php.net/rfc/callable-types

freekmurze, to Laravel
@freekmurze@phpc.social avatar

💅 Did you know that RSS feeds can be styled too?

Here’s my old unstyled feed vs my new styled one. View it at https://freek.dev/feed/php.

💪 Our Laravel Feed package will now style your feeds out of the box: https://github.com/spatie/laravel-feed

Thanks for the PR @timvandijck
https://github.com/spatie/laravel-feed/pull/199

#laravel #php

horuskol,
@horuskol@phpc.social avatar

@shane @freekmurze @timvandijck

https://feeder.co/ - I've been using their browser extension for years

  • 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