Earlier quoted context omitted.
Artisans? First time I hear that. I certainly use PHP and never called myself an Artisan.
It comes from Laravel ( https://laravel.com/); "The PHP Framework for Web Artisans". The command line entry point is also called "./artisan".
PHP – The Right Way
51–60 of 349 posts
Re: PHP – The Right Way
#52I totally expected it to be a troll site. It's actually sensible advice. But, really, I suggest using other tools. We have nicer tools now.
Debatable really. Within the web development space the options are rather limited in my opinion.
Options:
* Spring based apps - Downside JVM is a Resource hog
* Python, Ruby, etc - The web frameworks are in my opinion not as full featured. Same with CMS systems. Also requires more resources. Also have limited OO features.
* Go, Rust, etc - Really good choices for APIs but their web frameworks are also really lacking.
The tooling around PHP is really good and stable. The language itself, the downsides are very limited and the main one that remains valid is inconsistency of function parameters. The issues with bad code are generally the same ones that can be done in another langauge.
Re: PHP – The Right Way
#53Earlier quoted context omitted.
The way I see it is that you alias the import mail as mailer. You hope there are no other libraries called mail in your import path. PHP fixes that by requiring all libraries called mail to be dependent on their own namespace so that there will be no collisions. I think that neither do make assumptions on how the code is called when used, only one is preventing name collisions.
You hope there are no other libraries called mail in your import path. Let's take Python for example. With Python, I am in control of the import path. I can put those two mail modules in: stuff/mail tools/mail And then use them like this: from stuff import mail as mail1 from tools import mail as mail2 I don't have to hope for anything.
Re: PHP – The Right Way
#54Why not install using asdf ?
I would _love_ to use asdf for everything, but outside a core set of languages/developers it doesn't seem to have the community around it.
Re: PHP – The Right Way
#55I totally expected it to be a troll site. It's actually sensible advice. But, really, I suggest using other tools. We have nicer tools now.
Citation needed.
For folks not wishing to switch frameworks and tooling every year, you can get a lot done with PHP.
Re: PHP – The Right Way
#56Earlier quoted context omitted.
Yet this internet myth of "PHP no bueno" persists. Don't confuse the tool with the artisan. PHP is an incredible language that's getting more mature with each new release.
Why do PHP developers insist on calling themselves artisans? Give me a call when PHP ditches backwards compatibility and cleans out all the shit from the standard library - 5845 global functions always available, most of which you are just supposed to know are shit... Just a nightmare.
Re: PHP – The Right Way
#57I totally expected it to be a troll site. It's actually sensible advice. But, really, I suggest using other tools. We have nicer tools now.
> But, really, I suggest using other tools. We have nicer tools now. Debatable really. Within the web development space the options are rather limited in my opinion. Options: * Spring based apps - Downside JVM is a Resource hog * Python, Ruby, etc - The web frameworks are in my opinion not as full featured. Same with CMS systems. Also requires more resources. Also have limited OO features. * Go, Rust, etc - Really go…
Usually one would have an IDE's auto completion to take care about function parameters, and in any case PHP8 has named parameters now to reduce whatever confusion (especially when optional parameters come into play) remains.
Re: PHP – The Right Way
#58Earlier quoted context omitted.
Artisans? First time I hear that. I certainly use PHP and never called myself an Artisan.
It comes from Laravel ( https://laravel.com/); "The PHP Framework for Web Artisans". The command line entry point is also called "./artisan".
Checks out!
Re: PHP – The Right Way
#59I totally expected it to be a troll site. It's actually sensible advice. But, really, I suggest using other tools. We have nicer tools now.
What tools? What server language today except PHP (and its forks) is actually designed for the web and works as the web was intended?
I'd say Rails is a very nice DSL for building web applications that's written as an extension of Ruby.
We have two dimensions here, one for how easily a language allows you to build a website, and how expressive, consistent and error-proof a language is. It's easy to build a simple website with PHP (as it was with ASP and JSP, or even Cold Fusion). I actually like that approach, that maps running scripts to state transitions. But I also like the consistency and expressiveness of Python, Java, Scala, or C# (which I have used). As languages, they are "nicer" (and that's completely subjective) than PHP, and that niceness more than compensates for being unable to write code inside templates.
Re: PHP – The Right Way
#60I totally expected it to be a troll site. It's actually sensible advice. But, really, I suggest using other tools. We have nicer tools now.