heiglandreas,
@heiglandreas@phpc.social avatar

Oh Wow!

We are now able to create native PHP-Desktop applications...

At least native within NPM... within Electron...

...

Sometimes... Just sometimes... just because one can doesn't really mean one should.

Call me old-fashioned, but can I please get PHP-GTK back?

void,

@heiglandreas The "native" terminology definitely is misleading.. It's just a wrapper around Electron which has been around forever, so nothing new there. But! The fact is that it unlocks a new market for PHP devs (self-contained applications that run on the desktop without the need for an internet connection). That's a whole new world opening up for some people, so I can see why they're having fun with it, and I disagree with your statement that it shouldn't be given a chance.

heiglandreas,
@heiglandreas@phpc.social avatar

@void Oh! Give it a chance! That's not the issue.

But when you are using Electron under the hood for a self contained application that doesn't need the internet, then why not use JavaScript and manipulate the DOM directly and use the asyncronous possibilities directly...

In the end it's nothing else than a PWA without internet....

void,

@heiglandreas Valid points, but I was specifically talking about PHP devs here, not JavaScript devs. Of course if you're comfortable with JS & Node, you're better off using Electron directly. But I've seen a lot of PHP devs who are clueless about "front-end” tech including JS, and this tool is actually useful for those people. Sorry for taking issue with your comment, just seen a lot of negativity around here and it's been bringing me down 😅

void,

@heiglandreas The way I see it, if a piece of tech can solve a problem for someone somewhere, then it's totally valid, even if there's better options around for people who have different skillsets. I wish more people would consider that before bashing a tool/framework/etc, which I see all the time.

heiglandreas,
@heiglandreas@phpc.social avatar

@void If people want to dabble with it: Go ahead!

I don't want to judge or even bash people using the tool!

And when you use PHP for serverside rendered views: Go for it!

But most of the applications I know use a dedicated serversided PHP backend and a dedicated clientsided HTML/JS/ CSS frontend. And as we are not using a serverside...

But hey 🤷

Do whatever makes you happy 😁

heiglandreas,
@heiglandreas@phpc.social avatar

@void But if I wanted or had to create a professional, platformindependent app, I'd use Electron with one of the well known JS frameworks like React or Vue.

And definitely not PHP.

void,

@heiglandreas I see that we agree on all counts in the end 😄

ianh,

@heiglandreas Although I remember it, I never tried PHP-GTK.. but did write a few "applications" with Perl-Tk... "good ol' days" 😁

johannes,
@johannes@det.social avatar

@heiglandreas I think the theoretical idea would be to make an existing application installable on the desktop machine, without installing and configuring a webserver and dealing with ports and certificates and stuff and not to write applications specifically for that.

However I am missing the applications where this makes sense, considering backend needs.

Conceptually similar to Slack&co bringing the frontend code into an installable package ... but also shipping the backend.

weirdan,
@weirdan@phpc.social avatar

@heiglandreas or any decent GUI toolkit binding. Doesn't have to be GTK specifically.

radmen,
@radmen@101010.pl avatar

deleted_by_author

  • Loading...
  • heiglandreas,
    @heiglandreas@phpc.social avatar

    @radmen If it would be "Electron-native", I wouldn't need node underneath.... 😉

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