Crell, to php
@Crell@phpc.social avatar

Functional programming isn't just for Haskell developers. It's for #PHP developers, too. "Thinking Functionally in PHP" is available from LeanPub.

https://leanpub.com/thinking-functionally-in-php

itsjoshbruce,
@itsjoshbruce@phpc.social avatar

@Crell: Thanks for the reminder. Was literally looking for this yesterday. lol

Crell,
@Crell@phpc.social avatar

@itsjoshbruce Hehe. It's one of my auto rotation posts. :-) Link is also in my bio.

ramsey, to php
@ramsey@phpc.social avatar

Last night, I tagged the first “stable” version of socialweb/atproto-lexicon.

It’s a #Lexicon schema parser for the #ATProtocol, and it should come in handy for code-generation purposes—that’s what I’ll be using it for.

As usual, I’ll probably see much more engagement with this post here than I do on #Bluesky. 🤣

#PHP @activitypubblueskybridge

https://github.com/socialweb-php/atproto-lexicon/releases/tag/0.1.0

ramsey,
@ramsey@phpc.social avatar

@kboyd This is also a very interesting discussion over on Bluesky. It seems that Bluesky is really just a proof-of-concept for the protocol, and it’s not Jack’s intention that the service stick around but that other services take its place.

chucker,
@chucker@norden.social avatar

@justin @ramsey @kboyd you can generate a lot of media buzz with a “decentralized” protocol that has a suspicious amount of centralized single points of failure

tobz, to php

This #code #editor #IDE looks very promising.
https://zed.dev

I write a lot of #php which it doesn't support yet (how not) !

So will have to wait until I can use it properly.

arnandegans,

@tobz from the creators of atom… uhoh…
Looking at the screenshots it’ll be just as basic and unusable as atom. 😔

symfonystation, to Symfony
@symfonystation@phpc.social avatar

Explore today's @symfonystation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news. https://www.symfonystation.com/Symfony-Station-Communique-5-May-2023 :symfony: :elephpant_purple: :drupalicon: :fediverse: :mastodon: :php: 🇺🇦

symfonystation, to Symfony
@symfonystation@phpc.social avatar

Explore today's @symfonystation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news. https://www.symfonystation.com/Symfony-Station-Communique-5-May-2023 :symfony: :elephpant_purple: :drupalicon: :fediverse: :mastodon: :php: 🇺🇦

neotoy, to php
@neotoy@mastodon.social avatar

So I know there are tons of brilliant #coders on here & I have a question. One of my biggest challenges is #IDE ...

I've been using notepad for #JavaScript, #PHP & #html & #css which I know is really holding me back, but... I don't want an IDE that looks like the inside of a space shuttle cockpit.

Is there an IDE out there that is simple, elegant, & doesn't take up 30GB of disk space while also having essential features like:

Visually shows the relationship between code & output in real-time?

catraxx,
neotoy,
@neotoy@mastodon.social avatar

@rick I've heard of this for awhile so it must be pretty good, I'll check it out thanks.

mobileatom, to Symfony
@mobileatom@me.dm avatar

Explore today's @symfonystation Communiqué of Symfony, Drupal, PHP, Fediverse, and Cybersecurity news. https://www.symfonystation.com/Symfony-Station-Communique-5-May-2023 :symfony: :elephpant_purple: :drupalicon: :fediverse: :mastodon: :php: 🇺🇦

markusstaab, to php German
@markusstaab@phpc.social avatar

lets speed up #ecs by speeding up @PHPCSFixer

https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/6939

please consider supporting my #php open source work if you benefit from this improvements
https://github.com/sponsors/staabm

image/jpeg

ginsterbusch, to php
@ginsterbusch@kosmos.social avatar

So, what in the name of the FSP is THIS?!?

$found_items = get_items_from_db();

$json = json_encode($found_items);
$x = json_decode($json);

Why would one even DO that?!?

#wtf #wtfpm #php #programming #braindead #ouch #facepalm

ginsterbusch,
@ginsterbusch@kosmos.social avatar

@tseitr Its really just these lines. Data gets retrieved from the database via a function call (returns an associative array), and then immediatedly encoded to and decoded from JSON.

markusstaab, to php German
@markusstaab@phpc.social avatar

its that #php #performance time of the day again.

I am working on getting #ecs faster

https://github.com/easy-coding-standard/easy-coding-standard/pull/80

symfony, to Symfony
@symfony@mastodon.social avatar

🚀 New in Symfony 6.3: Performance Improvements
➡️ https://symfony.com/blog/new-in-symfony-6-3-performance-improvements
#Symfony #php #opensource

itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

I'm always torn between "don't repeat yourself" and localizing everything, so I don't need to hunt through 50 files to find things.

Does anyone have some guidelines and guardrails around making those choices and trade-offs that you find helpful?

I'm experimenting with namespacing functions and starting to draw some concepts, but I'd also like to see what's out there.

Comments, links, and boosts would be appreciated.

#FunctionalProgramming #PHP #WebDev

underlap,
@underlap@fosstodon.org avatar

@itsjoshbruce Copying whole chunks of code unchanged is usually a code smell. Copying and adjusting for each new context can be better than factoring out common code unless you have a good understanding that will ensure stable/understandat common code.

For example, I worked on a project ([1]) that had patterned code (almost "crystalline"). We abstracted some things, but left some repetition, even using codegen to write some of the code. Worked fine!

[1] https://github.com/cloudfoundry/cf-java-client

jezhiggins,
@jezhiggins@mastodon.me.uk avatar

@itsjoshbruce Try not to repeat why, but be more relaxed about how.

Just because two bits of course have the same (even identical) shape, it doesn't mean they're doing the same job or for the same reason.

alexanderschnitzler, to php
@alexanderschnitzler@mstdn.social avatar

Hi #PHP bubble. Is there a tool (preferably phar) that analyses method usages? I‘d like to know most used methods of my application.

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@alessandrolai Thanks, I will give it a try!

alexanderschnitzler,
@alexanderschnitzler@mstdn.social avatar

@pwaring I like that approach but that's not exactly what I am looking for. Without looking at runtime and user behavior, I'd like to know what methods my app depends most on. Like, what are the methods with the highest probability to be called based on their number of usages in the code.

symfonystation, to php
@symfonystation@phpc.social avatar
tjlytle, to php

What's the current state of the art for docker based #PHP development on Windows? PHPStorm as the IDE of course.

tjlytle,

@phphil docker desktop still needed with modern WSL?

tjlytle,

@iCaspar sorry to hear that. My day to day development machine is a Linux box. I'm just doing some live demos at #tek23, and for the first time in a very long time, my portable system is Windows.

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