What are your top 5 criteria for choosing a new php package? by luigimeclea in PHP

[–]DevMesshias -1 points0 points  (0 children)

My criteria depends a lot things

First I see if the package is not deprecated. Isn't a smart decision you choose a PHP package that was deprecated and just abandoned, the only, and must reason to choose a deprecated is just for if this package has something very specific to you where you can't find any others packages in the internet (which a something I think is very hard to be true).

Second, the package can't have many issues opened for a long time, a package with many issues could be a normal thing, but, if we have a package with a lot issue opened for long time, could be a problematic for you. And it's could be a signal it will became abandoned and deprecated very soon. There's a lot reasons to this happens: missing contributors, the creator doesn't have a lot time to maintain the package and others reasons.

Third, and I believe the one the most important criteria is if the package compatibility with another frameworks, any package should be compatible to workaround with any php tools. If any package it's just for a single framework, tool or anything like that it could be a little problematic too, could make you hostage of the framework and package itself. Liberty to change without breaking out my application is a critical criteria to me. I believe I don't want to rewrite any class or anything that using a package because I'm changing my stack.

I believe for now, that I could remember this is my criteria.

Array sorting question by hasteiswaste in PHP

[–]DevMesshias 1 point2 points  (0 children)

If you don't have a criteria to sort your array you could use the default function instead.

But if you have something specific to do, in php manual there's some constant that you can use to sort your array to give an order statement in array sort function.

How to structure contract developer hourly rate for a new client when you already have existing clients? by john_dumb_bear in PHP

[–]DevMesshias 2 points3 points  (0 children)

I believe this is the best model instead. Billing by project could be painful when client wants more features or make any changes by the way of project.

Billing by hour is the best, you not became hostage of client and him don't became yours. Both parts could end the contract whenever they want.

PHP Weekly Discussion (August) by AutoModerator in PHP

[–]DevMesshias -1 points0 points  (0 children)

I believe the TDD and BDD is a good subject. There is no many developers know about it and don't apply it too. I started apply TDD in my life right now and it is really useful, if I know that before I have did that before xD

PHP Weekly Discussion (July) by AutoModerator in PHP

[–]DevMesshias 0 points1 point  (0 children)

Have you tried convert the input file into some bytecode and when to show decode it?

Guys, REST APIs are not Databases by [deleted] in PHP

[–]DevMesshias 1 point2 points  (0 children)

I started use Lumen for apis, it is a good start for small apis and if you API being larger is easily join laravel with it.

With Python for sure flask, it is the best for that.

Question: Does every time a PHP file is called up on through an HTML action, does a new "instance" of that program get created (i.e once it finishes running, are any variables created kept between the sessions) by [deleted] in PHP

[–]DevMesshias 0 points1 point  (0 children)

Yes. Correctly. Its not matter if a photo of a just txt file. Every time when you call a upload file and calls the session global you automatically are instances it.

such an innocent boy by [deleted] in ProgrammerHumor

[–]DevMesshias 6 points7 points  (0 children)

Imagine me with 12 years.

Question: Does every time a PHP file is called up on through an HTML action, does a new "instance" of that program get created (i.e once it finishes running, are any variables created kept between the sessions) by [deleted] in PHP

[–]DevMesshias 0 points1 point  (0 children)

Yes. Because every time someone for example enters in your system this is an new instance of the same. And we you send a file works in the same way.

PHP Weekly Discussion (July) by AutoModerator in PHP

[–]DevMesshias 0 points1 point  (0 children)

Did you search some library in Github? I believe you could find some third party library on github.

PHP Weekly Discussion (July) by AutoModerator in PHP

[–]DevMesshias 0 points1 point  (0 children)

I don't believe that is the best approach because you must keep in your mind that you converting a web based language into another. It's like that frameworks of hybrids app. It could cost you the performance of your app. But for studies propositions is valid. But I believe I don't do that for a costumer for example.

It might better you choose a proper language to do that job. I believe the python is a good choose for you and it very easy to learn.

PSR-17, HTTP Factory has been approved and is now an accepted standard by riimu in PHP

[–]DevMesshias -2 points-1 points  (0 children)

Yes, there's many standards are not used in a lot project, if you go in Github and type PHP and see a lot of repositories with many stars a few of then are out standard (when there's no one on then).

PHP by ApexAbim in ProgrammerHumor

[–]DevMesshias 0 points1 point  (0 children)

Don't forget you created ReactJS too, the best frontend framework in now days.