Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Jonnyforgotten I have and I hate it, I hate everything related to Microsoft, I also hate Java
-
C0D4669027yBecause you can do what ever you like, how ever you like , and not be told by a bloody compiler what you should be doing.
This however does lead to “stupid fucking wordpress devs” if you don’t restrain yourself and adhere to atleast some standards. -
You must be new to devRant. This kind of post, wether you like PHP or not, fucks people off. But welcome to devRant 😄
-
@helloworld Just look at his upvote count. That should tell enough about the 'new' part 😆.
Welcome man! -
C0D4669027y@lotd
Strict typing I tend to just write more code to enforce that, it’s PHP after all.
As for error reporting E_ALL for the brave and E_ERROR | E_WARNING | E_PARSE is good practise to get into. -
Ok, as someone who loves c# and knows nothing about php, can you point me at a good place to learn it? Is pluralsight a good place to start or is there somewhere better?
-
C0D4669027y@Jonnyforgotten
Plural sight doesn’t have PHP. Which I found interesting.
Lynda.com or codeacadamy should have soon good tutorials. If you can look for PHP7 rather then 5+ -
Whats even the deal with this anti-PHP shit?
As if a node or java server (where you have to do e.g. the whole request-response logic everytime) will be better performancewise. (Speed, CPU- and RAM usage)
For just a serverside script it's sick shit. And fast af w/ php7.
And security is a thing of implementation. I'm so sorry that shell_exec($GET) is a pretty shit idea.:b
Yes, I'm triggered as hell.😂 -
What is love? My definition is that love is when you have positive feelings about something or someone despite the things you don't like about it/them. Basic is a crappy language and I don't like it, yet I love it!
-
@daintycode The thing is: 90% of all php code out there is just horrible.
That's mainly because PHP was originally used as a script language inside your HTML - which results in disgusting code when you attempt anything more complex.
Today's PHP has come a very long way though - and you can write very clean code with it. However, because of its history, many devs still develop like 5 years ago - and a lot of legacy code is around.
That gives PHP a very bad image among many devs who have seen some examples of PHP code (or just followed one of the many horrible tutorials which don't teach you anything about OOP and proper software architecture). -
Froot75397yI was going to write a long a meaningful post about PHP but I'm too lazy for that at the moment so I'll just post the summary:
Fuck PHP! -
KapL157yPHP is okay. I dont like it, but i dont hate it either.. Php makes me Feel restricted, you can only make websites, no desktop applications, which is why i rather want to do JAVA or C#.
That said PHP is really good to what it is supposed to do ;-) -
@Greggergalactic So does Python... I have to disagree. A language is not bad only because it allows bad usage, as long as it doesn't deliberately encourage it.
-
i@theCalcaholic
Somehow most php tutorials encourage quick and dirty learning. Python with its inherent tab restrictions produces code which is more conducive to be readable by humans... Just my perspective -
How is PHP awesome?
I know it best of all other languages, and I must say it sucks ballz.
First up - functions. Stupid functions. Inconsistent functions. Especially string functions. Fuck those functions.
Second up - $. Why do I have to write it in front of every variable? It pisses me off.
Third - it's quite a weak language. Reflection is weak, debugging is shit, no threading support, bad support for custom data types (you can't make your own integer type).
There's only 2 things good about PHP:
1. That it's a template engine by itself
2. Traits are a nice addition to its OOP, though they can make things really messy. -
@San-python-king That's absolutely true. But I wouldn't say that this is PHPs fault at its current state. There are historical reasons for this (see my first post in this rant).
That's why I wouldn't call the language 'bad' only because they're are many people (including authors of tutorials) who don't know how to use it. -
Why is it so amazing? Either because you're really easily impressed, or you have yet to see any *real* programming languages. Or maybe you just need counselling. I know lots of folks on here think it's wonderful, but I think it's the ugliest piece of shit I ever had the misfortune to step in.
-
penry2067yIs PHP hated due to it having a really low barrier to entry and thus lots of poor quality code or does it have some inherent design flaws?
-
lotd77757yWhy? Because.. *ahem*
It's P-H-P. It's dynamite!
P-H-P there isn't even a fight!
P-H-P, it's a powerlode! -
@KapL you can do desktop applications in php
http://gtk.php.net/
The problem with php isn't that it is restrictive or slow, the problem is that it is inconsistent, messy and has a retarded execution model by default.
The problems aren't a big issue if you and everyone who has ever touched the code you work on know what they are doing but once yoy have a large codebase with parts outsourced to the lowest bidder the amount of retarded shit that is perfectly valid php code (and thus accepted by management since it does what was asked for) becomes a major pain in the arse. -
@hash-table The only reason php became popular is because its competition in th early days consisted of perl and vbscript.
-
@Jonnyforgotten Ignore @linuxxx. He doesn't have glasses like you. So he doesn't C#
-
@vlatkozelka imho:
PHP is a badly "designed" language (It really wasn't designed, it grew out of a collection of web related macros and sort of became a language by accident) and it never dared to fix the fundamental flaws because it would break backwards compatibility (Javascript is hated for similar reasons).
Python got a lot of hate for doing the opposite with the breaking 2.x -> 3.x transition but now we have a much cleaner language as a result and personally i think PHP should follow suit with php 8, restructure the standard library (toss out most of it), turn scalar values, arrays and functions into proper objects, use unicode for all strings, do strict comparison only (remove ===, if you want to compare an int and a string you can cast the fuckers so its obvious what your intention is) and change the execution model (run the code as a service rather than as a request processor that can't share shit between requests without resorting to serializing objects to shared memory) -
@penry both, actually.
third reason then, is that due to the combination of low barrier of entry and significant design flaws, many beginners who pick it up as their first language learn bad practices and approach to coding due to using it.
many of which then, when they transition to saner languages, they tend to defend using those bad practices via pseudoargument that "php does it this way and it never caused me any trouble/and look how popular php is, so it can't be THAT wrong to do it" -
kpenc21297y@hash-table more than one method for one thing, having subtle differences in how it works.
-
KapL157y@ItsNotMyFault
Thx, i didn't know about the php-gtk.
Guess you learn something new every day.
Everybody have different opinions on the matter, I personally wouldn't mind php getting restructured :-)
Why is PHP so amazing? ❤️❤️❤️❤️❤️
rant