ff3, to opensource
@ff3@fosstodon.org avatar

📢 Woohoo! Version v6.1.16 of Firefly III has just been released 🎉. Check it out over at GitHub, Docker, or download it using your favorite package manager.

#opensource #oss #newrelease #php #software #personalfinance #selfhosted

https://github.com/firefly-iii/firefly-iii/releases/v6.1.16

mobileatom, to php
@mobileatom@flipboard.com avatar
matdevdug, to ai
@matdevdug@c.im avatar

One thing that’s funny about and is I keep hearing the same thing. “Oh I use it for generic snippets, just common tasks and functions”.

The amusing thing about that is when I first started working with a app years ago there was already a solution to that problem. It was called “the PHP Cookbook” published by O’Reilly. I was told “oh we buy you a PDF copy and you just search for whatever you are trying to do and use that code. It saves a ton of time for junior programmers.”

Not only was it true, it did save me a ton of time and headaches, but we didn’t need to steal anything. The authors got paid, it worked offline, it didn’t require scraping the entirety of human knowledge to write or nuclear power plants worth of energy to distribute.

It also helped me learn. Since I would have a solid foundation to the solution, I felt more confident experimenting. I always had a known-functioning standard library solution as my base. So when something broke I knew where to start debugging.

Just an incredible thought that instead of paying $20 for a pdf once we decided this was the way to go.

chrastecky,
@chrastecky@phpc.social avatar

@matdevdug I mean, pretending that CTRL+F and an AI are somewhat equivalent is not the argument you wanna be making.

Sure, reading a book and learning stuff is good and everyone should do it. But some problems are really specific and no book will have an example that you can find within few minutes.

matdevdug,
@matdevdug@c.im avatar

@chrastecky Well as someone whose tried virtually every paid and free AI product on the market and can’t even get the paid Google Gemini one to return accurate results about their own Google Cloud libraries I’m gonna have to give it to CTRL-F.

They’re such unbelievable dogshit that Google cannot even make it as accurate as reading their own tests in their own client library. Imagine that. Reading the tests is easier and more reliable than asking an LLM. I didn’t even need to burn down a rainforest or make 12 more datacenters to do it.

doefom, to php
@doefom@mastodon.social avatar

8.4 is introducing newing up a class and accessing methods, properties, etc. on it without wrapping it in parentheses first. Another useful feature I will probably use on a daily basis. In my daily work with I often need to crawl some content from a website or an API. This feature will make my code a little less cluttered.

Here is the RFC if you want to learn more about it: https://wiki.php.net/rfc/new_without_parentheses

mobileatom, to php
@mobileatom@flipboard.com avatar

Value Objects in PHP can protect you from bad data.

https://medium.com/

Posted into SYMFONY FOR THE DEVIL @symfony

leanpub, to php
@leanpub@mastodon.social avatar

Thinking Functionally in PHP by Larry Garfield is free with a Leanpub Reader membership! Or you can buy it for $25.00! http://leanpub.com/thinking-functionally-in-php

sarah, to php
@sarah@phpc.social avatar

Thanks to @phpday for a great conference. Hope to see everybody next year! #php

doefom, to php
@doefom@mastodon.social avatar

8.4 introducing "Property Hooks". This means you will be able to hook into the default read and write behavior of your class properties. The design also allows for more hooks in the future. Really looking forward to this one!

Read more about this feature in the RFC:
https://wiki.php.net/rfc/property-hooks

doefom,
@doefom@mastodon.social avatar

@djumaka yeah that's true. Ultimately it comes down to preference I guess but for me I'm quite sure the property hooks will be my preference

doefom,
@doefom@mastodon.social avatar

@tress777 of course! Glad it's useful for you :)

Crell, to php
@Crell@phpc.social avatar

Please, web app developers, consider how your users will upgrade. If your upgrade process is "remove the old one, unzip the new one", then it's not an upgrade process. It's an encouragement to never upgrade.

#PHP #Laravel #Programming

bobmagicii,
@bobmagicii@phpc.social avatar

@Crell remove the old one?!?!?!? i shout yolo unzip that shi on top boiiiiiiiiiiiiii 🤣 🤣 🤣 🤣

velkuns,
@velkuns@phpc.social avatar

@Crell @acelaya I created a deployer component.

I can integrate it in my app to deploy it in production.
I need to have a git repo on the server (mainly for private repo). And it configurable with y'all config.

But with a cli command, the component will:

  • creates an export of given tag
  • extracts it in some place
  • runs composer install
  • can run some other commands
  • copies secret files into app dir
  • create a symlink (for apache)

In case of problem, I redo a symlink on previous version

Schrank, to php
@Schrank@phpc.social avatar

Preparing a talk „from url in browser to first byte“ in context of .
What little, not obvious things, do you think are a good addition?

Like: a correct time is important for proper encryption

heiglandreas,
@heiglandreas@phpc.social avatar

@Schrank And if it's only to say "These also exist but we do not care about them unless you have another 5 hours to spare!"

Schrank,
@Schrank@phpc.social avatar

@heiglandreas @derickr yea, it is hard to find a line. But depending on audience and time slot, it case be totally different. I even have BGP on the list, but don’t know what to do with it yet 😂

sarah, to php
@sarah@phpc.social avatar

Waiting at the airport. Still basking in the post-conference glow. Thanks @phpday!

airwhale,
@airwhale@mastodon.social avatar

@sarah

Ah, just hope you got some time to enjoy that wonderful place.

Safe travels home!

sarah,
@sarah@phpc.social avatar

@airwhale it was lovely.

Now approaching North American airspace.

sarah, to random
@sarah@phpc.social avatar

PHP needs a code of conduct for the project itself. Is there anyone willing to push for an RFC to add one with me?

kboyd,
@kboyd@phpc.social avatar

@sarah I'm not in a headspace where i can contribute to side projects at the moment, but I do think a CoC would be great. I saw how things went last time around & was not pleased with how some folks reacted to the idea, so I want to speak up and offer a clear thumbs up this time. :)

derickr,
@derickr@phpc.social avatar

@sarah @heiglandreas @ramsey @Crell @pronskiy The repo I have is: https://github.com/derickr/php-community-health — let me know if it makes sense to transfer it to you.

sarah, to php
@sarah@phpc.social avatar

For those who made my keynote at @phpday, thank you. I worked hard and shared my heart and your warm reception meant the world.

Hope to see you all next year!

mobileatom, to php
@mobileatom@flipboard.com avatar
Crell, to php
@Crell@phpc.social avatar

Any time I see "bad" code, the first answer is usually "you need more precise and strict types."

Often there's other stuff wrong, but easily 70% of the time, the fix starts with "define the problem better and the problem goes away."

#PHP #Kotlin #Programming

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