hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.7K
active users

#php

89 posts84 participants3 posts today

Has anyone had good experiences with (universal) ctags for PHP? Looking for a solid, non-plugin, vim-native LS alternative for vim (9.1).

I tried `ctags -R --language-force=PHP --php-kinds=+c-f --fields=+n` as well as setting tags `set tags=./tags;,tags` but vim can't jump to function declarations by tag.

#vim#vim9#ctags

Some people hate PHP because it was their first language, they wrote a ton of bad code in it, learned better practices along the way as they switched to other languages, and then look back on their old code and blame the language.

They’ve been saying “PHP is dead” for almost 30 years.

In 1995, they said "learn ColdFusion instead."
1999: "Java and J2EE is the Future."
2002: "Drop PHP, use ASP.NET."
2003: "Django is the future."
2004: "Ruby on Rails is the real deal."
2010: "Try Flask."
2011: "AngularJS is the way."
2016: "Next.js is the new wave."

Maybe PHP is still popular because there was never a hype around it. 🤔

linkedin.com/posts/meritinfos_

I am probably holding them wrong!

This time I tried writing a web app not in #php but #fastapi + #sqlmodel (python) and #vue3 ( javascript). It kind of works well but refactoring is a nightmare.

In the beginning, it felt like I was having the best of both worlds -- Python and Vue3. Dev speed was good. Now maintaining and refactoring make me feel like I am having the worst of both worlds.

As a single dev, I should have stayed with #php!

#phpactor vs #intelephense

This was a useful summary
yarnaudov.com/phpactor-vs-inte

Although last time I did this test phpactor's performance noticeably lagged and that post does not talk about performance at all. I *want* to use phpactor because it's #openSource

Which is best for you and what do you like about it? There's PHPStan too but I'm never sure if that's something different or an equivalent. Boosts welcome

Yoan Arnaudov BlogPhpactor vs Intelephense [Feature comparison]

"Generators" are a powerful tool in PHP when working with large or streamed datasets. They help improve memory efficiency, performance, and scalability, making them a great alternative to traditional array-based processing.

Do you already use generators in your projects?

dev.to/robertobutti/efficientl

DEV CommunityEfficiently handle large datasets, huge files and data streams with PHP generatorsHandling large files (for example, CSV/text files) or HTTP data streams in PHP can be challenging,...