[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>Anons don't recommend you php >"it's a

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 45
Thread images: 4

File: the-php-practitioner.jpg (22KB, 716x474px) Image search: [Google]
the-php-practitioner.jpg
22KB, 716x474px
>Anons don't recommend you php
>"it's a dinosaur op, no one use it anyway"
>Want to apply for a job
>Requirements: PHP

Why /g/ hate php so much?
>>
Everyone hates the Boss
>>
best php project https://gitgud.io/chiru.no/chiru.no/
>>
/g/ is full of hipsters who'd rather use ruby, haskell or other stuff which they think makes them look unique and interesting. PHP is too mainstream for them. that's also the reason arch linux is so popular here.
>>
>>61811845
It's almost like /g/ is a collection of people with differing opinions.

>Not having the mental capacity to seek reputable advice.

sure is autism up in here.
>>
Then fucking learn PHP

fucking christ
>>
>>61811845
Ask your server when it get loaded to the brim with PHP shitty threads.
>>
I like php, it's like a real programming language and it is pretty comfy. Now with php 7 it's much faster. Sure it has its quirks but it is time tested and proven to be able to handle big projects.
>>
File: 1385390570607.gif (786KB, 320x240px) Image search: [Google]
1385390570607.gif
786KB, 320x240px
>>61811845
Because /g/ is a bunch of autists that find PHP too mainstream so they can't be special snowflakes with it.

PHP has some issues, but so do other languages. And they've been fixing plenty, especially with php 7.
>>
>>61813172
What does PHP7 fix?
>>
>>61813624
Actually PHP7 in webdev is faster than Python :V
>>
>>61813651
That's not what I asked.
>>
>>61813664
PHP7 fixed performance issue and prepared PHP for next 5 years of being the best scripting language ever.
>>
PHP7 is fast and good, don't let /g/ fool you
>>
>>61813678
Performance is irrelevant, otherwise I wouldn't be using a scripting language. What did PHP7 fix about PHP?
>>
>>61813678
Best DSL to simple webpages, I love it
>>
I just use PHP because its the only thing I know. So I dont feel strongly about it either way. But its not my job so I just solve simple problems with it.
>>
>>61811845
>Why /g/ hate php so much?
I don't hate it. PHP is objectively the best backend language at the moment for any efficient web server. It clearly outperforms all your javascript, python and ruby memes.
>>
>>61813735
What about Perl?
>>
File: please.gif (739KB, 245x192px) Image search: [Google]
please.gif
739KB, 245x192px
>>61813739
>>
>>61813775
not an argument
>>
>>61811845
It didn't take me long to get into PHP when I needed it. Just try to write a simple project and read php.net whenever you need help.

PHP is a shitty language, though.
>>
>>61814543
>shitty language
>mints money
choose
>>
>>61814552
It's poorly designed and it doesn't have features that allow to write decent code like variable declarations. Try writing a closure in PHP and tell me your code looks good. Sigils are shit as well.

The language feels like an afterthought that's just glue for existing libraries put together without much thought.

The fact that you can make money off it doesn't mean that it's a well designed language.
>>
>>61814590
>muh code looks ugly
>muh sigils
>muh afterthought

you complain alot man
>>
>>61814628
You don't complain enough.
>>
>>61814668
because i get things done writing code, rather than complain about muh aesthetics
>>
>>61814683
It's not aesthetics. The language is a mess. Argument order of functions is arbitrary, there's a clash of OOP stuff with things that were in PHP before it was added, and there are lots of ugly functions that require 10+ arguments (take a look at gd.)

Some functions also use retarded types for references (see the "resource" type.)

If you don't store a lambda in a variable, you pass string with the function name as a callback.

PHP is garbage, and it's way too polluted to be worth fixing.
>>
>>61814825
>If you don't store a lambda in a variable, you pass string with the function name as a callback.
fucking lmao
>>
>>61814888
It's true, and it makes no sense.
>>
>>61814825
No one cares about lambdas you hipster fag
>>
>>61815112
Learn a real high level language and start using closures.

You might as well write C if you think lambdas are useless.
>>
>>61815142
Closures aren't even that bad in C. Make a struct containing your capture variables and a function pointer. Not elegant but you can write a few macros if you like.

It's better than fucking evaluating a string substitution.
>>
>>61815171
That's a hack, not a feature of the language.
>>
>>61814825
PHP callbacks were a thing before node.js became popular. Now, it is another feature in the deprecation waiting room.
>>
>>61811845
why op have hard time with english do
>>
>>61815218
*edits post* String callbacks
>>
>>61815210
Calling a lambda by evaling is even more of a hack.
>>
File: php_callback.png (6KB, 560x360px) Image search: [Google]
php_callback.png
6KB, 560x360px
>>61815243
It's not eval()ing. I think this is just abuse of the fact that PHP treats unknown words as strings. Try passing a function name as a string and it will work.
>>
>>61815275
What's the difference?
>>
>>61815325
You're not passing a string of code to be evaluated, you're just passing a string that has to be looked up in the scope.
>>
>>61811845
It's good to know PHP. It's terrible to use it.
Most of those jobs are either companies with legacy PHP system that needs constant maintenance, cheap-asses that want to hire code monkeys for cents, or both.
>>
>>61813651
And yet it still has the same shitty-ass language design.
>>
>>61811845
Because 90% of /g/ doesn't even work in a technology related field and just meme whatever they want from their mother's basements
>>
Does anyone here have some good books for advancing in PHP? I've been using PHP for small to medium sized projects but I'd like to excel at it.
Any recommendations?
Thread posts: 45
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.