>tfw working a project in php
>stuck at a point where it has gotten too spaghetti to continue and too much work is already done to start over in a better language
Life is suffering
>companies try to make things easier with web frameworks
>99% of web frameworks are now so complex and convoluted it just makes things worse
The PHP community is retarded. At this stage it's not even PHP itself, though obviously a security hazard at times, that's the problem. It's the "code artisan" group of people who shat on it and abused it that ruined the language, the platform, the ecosystem and web development in general.
wut, its true.. anyways, who gives a fuck, you can find a way around it.
Thus is why I love web.py, Aaron Schwartz god rest his soul wanted to make a simple web framework, one where you wrote web apps in actual fucking python. It beautiful /g/ I can write a website with loadable modules I wrote and it switches based on the URL, all handled however the hell you want, with sanitized nyswl database support built in, so simple so elegant
there, fixed your problem... now find some other reason to bash php idiot
>you can find a way around it
that's like the landlord asking you why do you bother the meter-wide hole in the wall because you can just cover it with a blanket
I'm here to solve problems and satisfy clients, not add to the job by using shit tools
i live off nothing but php money
you faggots don't even code you just type out bullshit /g/ maymays while you throw money at ITT Tech hoping to slave away at a fortune 500 that will never hire you
Because /g/ is chock full of first year CS dropouts who flipped shit once they realized that the school wouldn't recognize their innate ability to use some obscure, dead 80s hipster language and that nobody outside of their IRC circlejerk cares how long-on-purpose it took to make an ironic hello world. This is positively suicide for getting any business web development task done because it is all about time and reliability, instead thinking you'll impress your boss who doesn't give even one one-thousandth of a fuck how super cool it is that you got it working using some super psuedo complicated way.
>retards not filtering their database calls are the cause of security breaches
that might be because there are at least 5 different functions to do so, of which ~3-4 are deprecated but still taught everywhere
php is joke
Rasmus has fucked the language up before it was even a thing.
He did everything wrong he could have.
The core devs have done a... reasonable job at attempting to improve it, but... ugh. You just can't fix something that is fundamentally broken.
umm..so basically php is a language for autist like myself who are not only lazy but under achieving. tried my hand at C C++ and Java and failed miserably at all of them. so if i attempt to learn php, could i at least get away with doing cool stuff even if it freezes? please help, i am an idiotic autist. a lazy could for nothing waste of space.
C is for drivers and embedded software. C++ is for AAA game engines and legacy software.
It's no wonder why you didn't get anywhere.
Too many autist programmers shun anything other than C/C++ because of muh 'real programming languages'. Simply ask what personal projects they've completed and watch them freak the fuck out. If they're lucky they might be able to rattle off a patch they made for some typo for a high end project or a fucking string library that has 2 stars on github.
The reason why the "hacker programmer" is the most sought after programmer, it's because they can slap together shit without sperglording all over the language and how fast it can perform in benchmarks that will never happen in real life
tl;dr use a 'batteries included' language and get shit done.
The only bad thing about PHP is that it's too good. This means even poonjabs can get a shitty site working within a couple of days between google mapping the nearest shitting street.
This has been catastrophic for the web. Idiots in higher management underestimate the cost of developing websites. It results in shitty sites that don't work on mobile, 2MB webpages, 10 second load times and exploits. it means web developers get paid 20k less for doing more work, despite their workflow now being more complicated than other software developers. It means having to tidy up the mess that other shit teir developers have made. Middle management sees the demo that some idiot made by buying a $50 template online and shared hosting, and the cost is way less but looks like it does what they want.
If PHP was perfect, it would force you to write a fizz buzz before it started for the first time.
If I got into a project seriously enough to use Composer, I would probably drop PHP and begin rewriting anyway.
at best you can say he's making a subjective claim. I said PHP is permissive, and to the extent that you agree with *that* adjective, you have to agree that some people find permissive behavior comfortable while some people find it frustrating - like building on the beach at high tide.
Neither person is wrong, but claiming that this is objective is a mistake both of you make.
With PHP mixing code and HTML isn't just possible, it's the norm. Compare with a framework like django where generating HTML has its own DSL templating language. Mixing PHP with HTML will always lead to spaghetti code, and it takes persistent effort to fight.
>it's the norm
For small projects, it is. Makes it easier.
For larger projects, there are plenty of template engines.
Also, you're comparing PHP to a framework like Django or Flask. Don't. Instead, compare Django or Flask to Laravel, Cake, Slim, Symfony, Zend, etc.
>Programming hell for larger projects that needs constant management.
Websites shouldn't need to be so large, ever, for this to become a problem.
If it does, then you are doing something wrong.
>It results in shitty sites that don't work on mobile,
This is a fault on the front end, not on php. And because Webkit on mobile is HELL.
>2MB webpages, 10 second load times and exploits.
Again a frontend problem, everyone wants gigantic single page do-it-all pages, with giant infographs and parallax scroll. You cannot physically fit this many stuff in a smaller size, even with how much you can do with pure CSS nowadays.
Also, due to webkit on mobiles being a giant fuckfest with every fucking phone using a different version, you are forced to use shit loads of html5 shims to get around that.
>it means web developers get paid 20k less for doing more work, despite their workflow now being more complicated than other software developers
This is only because PHP is the most common. If Python or Ruby made up 90% of web development, then they'd be in the same scenario.
>Middle management sees the demo that some idiot made by buying a $50 template online and shared hosting, and the cost is way less but looks like it does what they want.
Again, not the fault of PHP.
why don't you simply use a framework you idiot?
You can separate your code and have your template apart, you just need to pass your values, a template engine can do that, or you can include your template on your php and pass the values
i don't know what you are talking about, ppl on /g/ say meme to everything that is actually very useful, at least i get good money out of it. i also use Vue.js and elixir instead of curl so fuck it i'm a meme that makes good money by using meme tools, fuck /g/.
STFU, eat shit and die desu (no autocorrect here)
it's an idiotic bloated piece of shit, opinionated as hell, and the worst is, these opinions are mostly wrong
plus, the community is a largest toxic bunch of SJWs this side of Gender Studies department
led by a huge flaming hysterical retard, who literally pushes the point that there are no good programmers, we're all mediocre (and for him, it's fucking true)
just fucking yesterday I came across a bug that they encountered like fucking TEN YEARS ago and still cannot solve, despite numerous attempts
Flask is somewhat better, but Python community is rotten through and through
AAAAAARRRRRGH when, when shall I switch to something decent like Haskell
captcha "buena park"
no buena, amigo
no buena, tu madre
he said it >>52957521
Also in combination with laravel fuggin easy to use