[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Why is it written in PHP if PHP is so bad?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 73
Thread images: 10
File: 2000px-Wikipedia-logo-v2-en.svg.png (680 KB, 2000x2296) Image search: [Google]
2000px-Wikipedia-logo-v2-en.svg.png
680 KB, 2000x2296
Why is it written in PHP if PHP is so bad?
>>
>>52489053
because people who make bad choices often do not realize the consequences of these choices.
>>
>>52489085

That is story behind how OP was born.
>>
>>52489053
Because it was written in the 90s.

To do a complete rewrite of the site would be a massive undertaking.
>>
>>52489093
whoa edgy
>>
>php is bad
When will this meme end?
>>
>>52489109
PHP is bad. The creator of PHP compare it to a toothbrush.
>>
PHP isn't bad.
It has that reputation for having been the most popular web dev language and as a result used by a lot of incompetent programmers.
>>
>>52489157
that and the horribly cluttered and messy standard library. lack of consistency in function names and argument order, all that.
>>
>>52489146
>The creator of PHP compare it to a toothbrush.
A simple and effective tool for cleaning your teeth? Doesn't sound so bad.
>>
>>52489178
A tool you're forced to use.
>>
>>52489196
Who is forcing you?
>>
File: 713329846_7761.jpg (121 KB, 960x615) Image search: [Google]
713329846_7761.jpg
121 KB, 960x615
If I wanted to start writing a decentralised social network site, what would be the best suited language for that?
>>
>>52489219
That's the most popular free web tool today.
>>
>>52489223
ruby or python for prototyping
>>
>>52489053
because it was the best option 15 years ago
>>
>>52489093
woah anon you're jokes are so creative and unique xD

pls grab my tits fuck me in my pussy ;;)
>>
>>52489146
It got its bad reputation for being completely fuck-different than any other production language out there. People don't like things that are different.
>>
>>52489239
A toothbrush?
>>
>>52489276
I loled.
>>
>>52489263
Yup. It was either PHP or Perl.
>>
File: 1444067699947.gif (99 KB, 640x360) Image search: [Google]
1444067699947.gif
99 KB, 640x360
>>52489053
What's the best wiki software?
>>
>>52489305
Gentoo ofc
>>
>>52489223
Decentralised how? And why decentralised?
>>
>>52489292
Perl is the second best option though, why'd they pick PHP?
>>
>>52489372
Because PHP had/was a templating language.
>>
>>52489146
>PHP is bad

The only reason PHP has a bad reputation is because early iterations of version 5 were absolute garbage.

It's fixed now, and there's virtually nothing wrong with PHP.

The other thing is that it simultaneously got an easier and harder learning curve than other languages. Anybody can shit out PHP spaghetti code, but well programmed PHP is a beautiful art. Nothing holds your hand and guides you into best practices, you actually have to know them.
>>
>>52489422
thanks for the new pasta

>It's fixed now, and there's virtually nothing wrong with PHP.
they fixed >>52489163? when?
>>
>>52489432
Who gives a shit? git gud

They are deprecating old ugly functions all the time.
>>
>>52489461
>Who gives a shit?
people who have to look up functions in the docs all the god damn time. so, everyone who isn't a php core developer.

>git gud
good meme.

>They are deprecating old ugly functions all the time.
that's something at least.
>>
>>52489492
>people who have to look up functions in the docs all the god damn time

That's a fair point, but on the bright side there's so much documentation for PHP that a new developer could never be considered lost. Sure you might write some terrible code your first few times (will happen with virtually any language desu), but as long as you keep learning and do some research on best practices you'll be golden.
>>
>>52489196
That would be JavaScript.

PHP is the family sedan that needs the pedal to the floor to take off fast enough to stop little girls in tiny hatchbacks overtaking you at lights. You convince yourself it's faithful, you tell yourself you're okay with it, that you're okay with the fact it's slow as hell, but in reality it's all you can drive on your budget.
>>
>>52489528
it's not about learning function invocations by heart, it's more about convenience. sure, i could look up the docs every time i need to use a function, but i'd much rather be able to make a sane, intuitive guess and be right about it.
>>
File: networktypes.png (79 KB, 547x379) Image search: [Google]
networktypes.png
79 KB, 547x379
>>52489345
Well having just a central server brings alot of security dangers. Rather than putting al eggs in one basket, having multiple baskets is better.
>>
>>52489557
You can guess what function invocations are if you use the new functions.

Just stay away from the old functions which are on the way to being depreciated if not already. You should be able to tell which they are if not already.

>>52489553
>PHP is slow
Nice outdated meme.

https://benchmarksgame.alioth.debian.org/u64q/php.html

https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=php&lang2=yarv
>>
File: marichan.jpg (53 KB, 907x718) Image search: [Google]
marichan.jpg
53 KB, 907x718
>>52489093
>making disappointment jokes
>2016
>>
>>52489053
Everything is written in PHP, stupid. Even this post.
>>
>>52489577
http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=csharp&lang2=php
http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=java&lang2=php
http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=go&lang2=php
http://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=v8&lang2=php

Please get wrecked. All the languages I've used are just as commonly used for backends, all of them are faster except JavaScript which seems faster only for certain things.
>>
>>52489637
>apples to oranges: the post
>>
>>52489053
wikipedia is bad
php is bad...........

coincidence ?
>>
>>52489704
Wow.

They're all programming languages.
They all can and are commonly used for networking, in PHPs case almost nothing else
They're all (mostly) derived from C with C style bracing and PHP even has C style pointers

This is the farthest case of apples and oranges you could think of.
>>
>>52489093
Boy, that sure was a zinger! I bet you'll fit right in after that one!
>>
Wasn't 4chan initially made in php?
>>
>>52490232
It still is, isn't it?
>>
>>52489961
>Statically typed, compiled languages are faster than dynamic scripting languages
No shit, but the difference is not enough to actually matter for 99% of projects.
>>
>>52489053
php isn't that bad
>>
>>52490553
...

The difference is in some cases double digit times faster. Those benchmarks were algorithms, not how fast these languages can open and close connections.

Double digit times faster, as in between about 10 to 30.

Double
Digits

Holy fuck, why won't you just admit it?
>>
>>52490612
>>>52490553
>...
>The difference is in some cases double digit times faster. Those benchmarks were algorithms, not how fast these languages can open and close connections.
>Double digit times faster, as in between about 10 to 30.
>Double
>Digits
>Holy fuck, why won't you just admit it?
I posted this and didn't delete it.
>>
>>52490612
Does it matter in a web application if a script takes 30 milliseconds to run instead of 1 ms?

There are things where that sort of performance difference is critical, but in most cases, scripting languages like Python and PHP are fast enough and allow you (the developer) to save considerable time and effort
>>
File: 5DimDy6p[1].jpg (12 KB, 248x248) Image search: [Google]
5DimDy6p[1].jpg
12 KB, 248x248
>>52490612
check these double digits
>>
File: speedar.jpg (126 KB, 650x650) Image search: [Google]
speedar.jpg
126 KB, 650x650
>>52489053
because /g/ doesnt have a clue of what theyre talking about. dont listen to anyone here. linux is shit, haskell is shit, go and learn java make big $$ fuck bishes and use windows or osx only.
>
autistic cyberpunks dont get their dicks sucked
>>
>>52491474
That's not how network performance works. Response time inversely correlates with responses per second, so a 1ms response time can respond 1000 times a second but a 30ms response time only 33 times a second.

So if you have 1000 users who all want to use the same service at the same time, all good, but if you're php you're stuck at 33 and then your service might start responding slower or it might stop responding at all. Now 1000 is a much bigger number than 33...
>>
File: phphammer.jpg (181 KB, 800x531) Image search: [Google]
phphammer.jpg
181 KB, 800x531
>>52489085
Pretty much this, I attended a wikimania and ask one of the maintainers why PHP. He just sighted and told me because it was like that when joined the team. Following question was his opinion on PHP and he told me that by now his relationship with PHP is like the Stockholm syndrome

>>52489109
>>52489157
>implying meme
>implying PHP was/is/will ever be good
eev dot ee slash blog slash 2012/04/09/php-a-fractal-of-bad-design/
>>
>>52489223
Golang, you can pack the assets in and just run the binary to save people the hassle of doing manual server configurations.

Would be a great selling point.
>>
>>52489637
>>52489704
>Even JS is faster than PHP.
That was an odd surprise.
>>
File: 1f3.png (78 KB, 622x626) Image search: [Google]
1f3.png
78 KB, 622x626
>>52491554
>Java
>>
>>52489085
>>52489096
>>52489146

PHP is an insanely sane language and framweork on an era of NodeJS and Rails
>>
>>52489053

the better question is,
why aren't you vandalizing the living shit out of wikipedia by subtle editing and misappropriating facts that are difficult to research

some even go as far as creating their own realistic source complete with .edu domain name
>>
>>52495288
You can just cite some random out-of-print book with a title that sounds relevant

No one will check it
>>
http://phpsadness.com/
>>
This is nightmare inducing

http://eev-dot-ee/blog/2012/04/09/php-a-fractal-of-bad-design/

If I meet one who claims that coding in PHP is a good idea, I will go full Hans Reiser
>>
This is my favourite:
http://phpsadness.com/sad/52
>>
>>52495430
>>52495476
every language is shit. i bet you are spoiled brats that only complain and don't code anything with real world application because you'll break this facade os smugness and you'll break all the mental gymnastics that you've made to convince yourselves that you are good without even trying
>>
>>52495549
>butthurt phpfag
>>
>>52495549
I'm employed as a programmer, I'm writing software in C++ and Python.
All languages have their issues, but PHP is just downright broken.
>>
>>52495549
All languages suck. Some more than others.
>>
>>52495597
>butthurt /g/ neet that only codes in C because muh it's the purest language
>>
>>52495631
don't get me started on ruby or js
>>
>>52495718
I use D mostly you faggot
>>
>>52495761
you use D mostly for coding nothing useful good job
>>
>>52495476
>http://eev-dot-ee/blog/2012/04/09/php-a-fractal-of-bad-design/
>"don't you dare criticize my article, i'm right and you're wrong and that's that"
>literally complains about functions that were tagged as depreciated even at the time he wrote it

dropped
>>
File: 1374520553419.jpg (24 KB, 289x292) Image search: [Google]
1374520553419.jpg
24 KB, 289x292
>>52495786
>>
After looking at the documentation for the smack() function, you write smack( $hammer, $nail ). Then, assuming conventions are similar, you write shoot( $gun, $foot ). Your foot has now shot your gun.
Thread replies: 73
Thread images: 10

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.