81 karma · joined October 30, 2019
Javascript, PHP, Haskell, Rust, C++ and LISP. I'm familiar with the benefits and drawbacks of all of them and I don't see how any of them replaces PHP
If we say once a better language comes along, we should say that the old language is shit and should die, then sure keep doing that. But looking at the languages that you have listed above, none of them are dynamically type I belive although not familiar with a couple of them. For some small projects people might prefer dynamic typing, or if you are prototyping something.
Also the amount of libraries, frameworks and projects already written PHP is massive so if someone wants to do something fast, why limit people's choices by trying to convince everyone that the language is shit instead of letting people decide for themselves? It just feels like a witch hunt to me.
You are right, I did sneak in there that I find PHP less verbose than Java as an advantage, since most people complain about how much typing you need to do in Java I thought this was worth highlighting.
However personally I think PHP evolving to be more similar to Java was a good thing, even better because imo they copied the good parts, ie: OOP instead of the verbosity but that's up for debate.
In short, becoming more like Java was good, but PHP isn't Java and has its own advantages for web development, imo this is that it is less verbose and easier to write.
You can get used to that in 10 min and move on with your life, it is not a reason to not pick up the language, it's bike shedding.
The productivity point was a secondary point but when it comes to building websites I think people can build faster in PHP although I guess that depends on many factors.
1. Its variables start with $ and that is ugly: I mean, come on, I won't even entertain this bigotry.
2. It used to be better before: This is just pure nonesense, before OOP PHP wasn't good to create any big and well-structured application, it is ironic because most of the bad opinions about PHP come from people who used it a long time ago. Besides, you can still use PHP as you used to, but now you have more tools at your dispossal, You are free to use it as before.
3. It is trying to be Java: Well, sure it is more like Java, only less verbose and easier to write. Developers can be much more productive in PHP. And moving in the direction of Java is not a bad thing as the language moved into the Enterprise space. I worked with Magento every day and I am glad the language is more than Java than it used to be, it means we can organise our code better. Again, ironic that some people who mentioned this as something bad about PHP, then went on to say they prefer Java.
4. Composer has made the language worse: Honestly this is so ridiculous... so now having package managers is a bad thing? I haven't met an actual professional PHP programmer who holds that opinion. All of them like composer, it makes reusing code and creating apps in PHP much easier.
You seem to be implying that you know more than me by taking the higher road, you dictator! :P
No-one is opposing separatism by the way, it's just that the whole country has to agree. The catalans signed up to the constitution like everyone else.
Why should they be able to shit all over it? And by the way is less than half of catalans who want this.
Do you want to propose a solution to people who live in catalunya and don't want independence? A referendum is a stupid idea frankly, it divides sociaties between those who want to leave and those who want to say.
People in catalunya only want independence because they are richer. What happened to solidarity?
They just want to kick Spanish people out (by the way they are spanish too in spite of all their bullshit), becuase they see them as the Nazis saw the Jews.
Let's call things by what they are. We aren't going to stand by and abandon half if catalan people who don't want to lose their rights to live and work in Spain.
You can do that in other countries if you want.
People were disrupting public order and doing an illegal activity (referendum) with public money. Normal people couldn't get to work or go to the doctor because people were blocking roads.
That is what police is for basically, I am glad we have police to protect us.
Maybe your constitution is different than ours, I don't tell Canada how to rule itself. I find it baffling that people think they can tell other countries how to govern themselves from so far away!
I can give you my point of view as a Spanish person. I am not part of the goverment by any means. Just a normal citizen living in the middle of the country.
The infrastructure of catalunya (high speed trains, ports, highways, etc...) have been paid by all spaniards during many, many years. Like ways, may people from all over Spain live and work in catalunya and viceversa.
The goverment of Spain has a responsability to protect all citizens. Independece creates problems for all those people. It also costs the country millions of euros that have been invested in the region. It will have an impact on people across the country if the economy slows down, not only there. Therefore it is a decision that needs to be taken by the whole country, not only people in that region. Suggesting anything else is ludicrous.
Spain is a country, catalonya doesn't have the power to raise its middle finger to everyone else in the country whenever they please just like any other region in the country. We are one, period.