@simonhamp@phpc.social
@simonhamp@phpc.social avatar

simonhamp

@simonhamp@phpc.social

Laravel Artisan. Statamic fanboy. SQLite stan. NativePHP

Running Laradir.com and building just-spred.com

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

simonhamp, to Laravel
@simonhamp@phpc.social avatar

If anyone out there is looking to hire developers, I would love to help you find the perfect match

Send me a private message

simonhamp, to random
@simonhamp@phpc.social avatar

NativePHP now supports Windows! 🎉🔥💥

Full announcement here:
https://github.com/orgs/NativePHP/discussions/278

Happy Season 9 GIF by The Office

simonhamp, to php
@simonhamp@phpc.social avatar

A few hours ago I managed to get a statically-linked build of PHP for Windows working on a machine with no prior installation

This build is a single-file distributable executable that can run a application

This is a major milestone for as it will now be able to support all the major desktop platforms 🎉

simonhamp, to php
@simonhamp@phpc.social avatar

is like a toilet

(and that's a good thing!)

https://laradir.com/blog/php-is-like-a-toilet

simonhamp, to random
@simonhamp@phpc.social avatar

I'm looking for some more beta testers for Spred

I'm rolling out a new feature today that requires zero coding ability () to receive bank to bank payments

If you're in the UK (i.e. your bank account is in the UK) and you want to try this out - for FREE - DM me and I'll get you set up

simonhamp, to random
@simonhamp@phpc.social avatar

I'm getting a little disappointed with Mastodon of late

I've blocked quite a few accounts and had to report various posts

Not what I expected

Look folks, if you wanna win people over to this 'open' platform, you've gotta be open - that doesn't just mean the tech

simonhamp,
@simonhamp@phpc.social avatar

@derickr good to know! Thanks for the reassurance, Derick

ross, to random
@ross@fosstodon.org avatar

My weekend-project Notes app now has some… err… design? And the ability to archive notes.

Still not mobile friendly (may never be).

Discovered the file writing API is not in Safari. 🙁

But… actually used for notes at work today. Perfect!!

https://notes.veryuseful.app/

simonhamp,
@simonhamp@phpc.social avatar

@ross neat! Is it all just client-side JavaScript?

simonhamp, to random
@simonhamp@phpc.social avatar

Today on The OG:

  • We're up to v0.5.3
  • A smattering of minor issues have been resolved
  • Watermarks can now be added to all layouts (really just a second Picture, but you know)

This getting super close to v1 now

I only have a couple more additions i want to make

Any requests?

https://github.com/simonhamp/the-og

simonhamp,
@simonhamp@phpc.social avatar

@kaiserkiwi none of the current layouts support this, but it's totally doable!

I'll send you some code

simonhamp, to php
@simonhamp@phpc.social avatar

Hey folks 👋🏼 got a little twisty thing to noodle on:

If a class and an enum can equally implement an interface, does that mean it's safe to use them interchangeably when your method type-hints the interface that they both implement?

🤔

simonhamp,
@simonhamp@phpc.social avatar

@Crell it's that funny syntax a d blocked features I'm worried about... like there might be some hidden edge-cases where if I assume it's a class and behaves like a class but I've got an enum and for some reason it doesn't behave the way I expect

I'm honestly struggling to think of a solid example, but I can't shake the thought that it's a possibility... I just haven't encountered it yet

simonhamp,
@simonhamp@phpc.social avatar

@Crell Ah! Excellent! Thanks for digging that out

This helps immensely and has made me clearer on my decision already 🙏🏼

simonhamp,
@simonhamp@phpc.social avatar

@cabbey @Crell the only problem case I can see—and why I've decided against using the same interface on my enum as I would on a normal class—is the lack of support for clone

There will be some cases where it is necessary to clone the given object... if it's an enum, that's not possible

Unfortunately, the contract of the interface doesn't protect us there

simonhamp,
@simonhamp@phpc.social avatar

@dantleech @Crell @cabbey I guess that’s an even more common example

I guess the approach to that though would be to make your interface require an explicit toString method that you must implement in your enum

But maybe there's also case for an RFC to add __toString() support to enums?

simonhamp, to php
@simonhamp@phpc.social avatar

Ever wanted to generate your OpenGraph images without resorting to an external service or some complex set of dependencies, like Puppeteer?

The OG is built on top of intervention/image and lets you generate your social media images dynamically using just

https://github.com/simonhamp/the-og

simonhamp,
@simonhamp@phpc.social avatar

@kaiserkiwi glad to hear it! If you have ideas on how to make it better, I'm looking forward to your issues and PRs

Would also love to see it in action!

simonhamp, to Laravel
@simonhamp@phpc.social avatar

Are you open to mentoring or collaborating with other devs?

Perhaps you need a hand in a project, on an open source package or learning a new paradigm?

You might find just the person on Laradir

https://laradir.com/blog/indicating-your-openness-to-mentoring-and-collaboration

simonhamp, to Laravel
@simonhamp@phpc.social avatar

So it's been a month already since I announced that I took over Laradir!

It's been a bit of whirlwind, but there's loads more to come

The response has been overwhelmingly positive so I’m fired up to continue building and improving this platform for both devs and teams

https://laradir.com/blog/november-2023-roundup

ctietze, to php
@ctietze@mastodon.social avatar

Do I (or you) know a developer who can create a password protected area on a website that prepares users in response to a webhook? Just need the backend part.

simonhamp,
@simonhamp@phpc.social avatar

@ctietze there are hundreds of them on Laradir.com

Free sign up (no credit card) and you'll get one free credit every month to unlock any profile forever and start messaging someone straight away 🙂

simonhamp,
@simonhamp@phpc.social avatar

@ctietze definitely not proposing devs as a commodity... just facilitating targeted human connections with folks who have the skills you're looking for

No hard feelings if it's not for you 🙂

hywan, to CSS
@hywan@fosstodon.org avatar

Tailwind CSS vs. Semantic CSS, https://nuejs.org/blog/tailwind-vs-semantic-css/.

An article about why Tailwind creates bloated, heavy documents.

> The semantic version is 8× smaller, renders faster, and is easier to modify and extend.

Please, remember that producing smaller documents is good for everyone: battery of the user’s device, server CPU, network bandwidth, electricity used to transfer and handle (parse, render…) all the data. It’s our responsibility as developers to save data and be smart, not lazy.

simonhamp,
@simonhamp@phpc.social avatar

@hywan it doesn't have to be either-or

Tailwind is perfectly capable of working well as a tool in support of the built-in semantics of HTML

@apply is the tool for this job. With that, a little effort, and PostCSS stripping unused styles, I’d be very surprised if one couldn't get the best of both worlds here using Tailwind

Which is an objectively better outcome for bigger, long-term projects

simonhamp, to Symfony
@simonhamp@phpc.social avatar

Any devs looking for work? There are 2 spaces open at Manual for this role

Great team to work with. I can make a direct referral to decision-makers which may help your chances

https://manual.recruitee.com/o/senior-backend-engineer

simonhamp, to random
@simonhamp@phpc.social avatar

A lot of devs seem averse to any kind of "marketing"

Look, you don't need my permission, but I feel like this needs to be said:

It's not just 'ok' to get excited when you've built something cool...

If you don't get excited by it, maybe no one else will

Sesame Street Idk GIF

ross, to random
@ross@fosstodon.org avatar

🤔 There was an interesting thing recently where, in a group of developers, the younger/less experienced ones were the ones that liked using Git on the command line. And the older, more-experienced ones shunned the command line for GUIs.

A small data set, for sure. But is there something to learn there?

simonhamp,
@simonhamp@phpc.social avatar

@ross perhaps it was just my experience

I really struggled with using a terminal - it felt like a world of black magic

Tho I grew up using DOS, I'd moved to GUI for almost everything. TortoiseSVN was my go-to for version control for a good while

I picked up git around the time that Tower was first released

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • rosin
  • slotface
  • GTA5RPClips
  • InstantRegret
  • PowerRangers
  • kavyap
  • tsrsr
  • DreamBathrooms
  • cubers
  • khanakhh
  • hgfsjryuu7
  • everett
  • osvaldo12
  • cisconetworking
  • tacticalgear
  • modclub
  • mdbf
  • vwfavf
  • ethstaker
  • tester
  • normalnudes
  • anitta
  • All magazines