r/AskProgramming • • Feb 19 '20

Is PHP actually rare to use today?

I met someone at my roommates birthday party that practically openly mocked me for learning PHP in the first semester of my College programming degree. As if I had a choice. They went on about how Facebook was originally using PHP and now they’re solely using js, and how every web based startup is using react or whatever.

I’m just curious if this guy knows what he’s talking about. He was a total douche and I feel like he was just trying to be right.

Thanks

62 Upvotes

104 comments sorted by

51

u/[deleted] Feb 19 '20

That someone at your roommate's birthday party is an ass, ignore him/her and avoid these kind of stupid discussions.

24

u/[deleted] Feb 19 '20

Actually, that is also a great filter to know that someone doesn't really know what they are talking about.

56

u/abrandis Feb 19 '20 edited Feb 20 '20

ooh dear, another programming language religious war... Short short answer, it doesn't matter, use whatever language works best for your skill and the project its designed for.

In general no, PHP is one of the WORLDS top 10 most used languages. And like Top 3 for web applications (With Javascript (node) and Java (which is not related JavaScript).

the list is too long to go down to. But WordPress is in PHP and that runs about 20-25% of all websites. As mentioned Facebook was originally PHP, but it's so large now they needed to custom design their own framework), so is Wikipedia (parts of it) , MailChimp, Flckr etc. Think about it for a second Facebook in the early years was running on PHP when it had millions of users , most sites people build will never get that big. For a nice lit go here: https://en.wikipedia.org/wiki/Programming_languages_used_in_most_popular_websites

At the end of the day it depends on WHAT TYPE OF SOFTWARE DEVELOPMENT YOU DO. .. for web stuff, PHP or Node (JavaScript) , for mobile apps Swift or Kotlin, for systems level and IoT C/C++ and for general scripting python. that's how I break it down. And there's a bunch of new upcoming languages, each good at a particular area of software development, like Go, Dart, Rust, Elixir,Elm, Julia (https://www.rankred.com/new-programming-languages-to-learn/)

Finally if you want to work in the software field , it's much more than languages,honestly in today's world it's irrelevant being good at one language , you need to know the basics of a few and as well as understand the concepts of Linux os, virtual machines, docker, networking,databases, security, microservices, cloud services (AWS, Azure, Google etc.) and API's , etc. Focus on being a well rounded developer and make PHP just one arrow in your quiver of tech knowledge.

4

u/Igoory Feb 19 '20

What about asp.net?

-2

u/abrandis Feb 19 '20

What about it, its a Microsoft-centric web app development language, not popular outside of Microsoft shops. If your company runs a lot of Micorsoft services like .net (C#, SQL Server etc.), then ASP.net will fit nicely into the MSFT eco system, otherwise, its more of a hassle than linux based web app development.

11

u/JohnnyCodeCache Feb 20 '20

Not really. .NET Core is fully platform independent. It can be developed on and will run on any platform (Windows, Linux, Mac).

C# offers lots of really great features.

2

u/noratat Feb 20 '20

It is now, but that's still relatively recent, and it hasn't yet built up a large ecosystem/community on other platforms the way older languages have.

3

u/scandii Feb 20 '20

mate, .NET is straight up one of the world's most used frameworks. .NET Core is 3 years old by now.

or put it like this; there's more .NET job postings in the UK than there is Java. .NET is huge, the community is huge and any notion that it isn't there yet is just silly.

1

u/JohnnyCodeCache Feb 21 '20

Well... I have in my town a .NET user's group that meets every month and has been doing so for about 15 years.

I see lots and lots of .NET tutorials, websites, open source code, blogs, etc. .NET discussions are all over the place.

I see lots and lots of jobs for people with .NET experience. Far more than I do for php (but to be fair, I never look for php jobs).

.NET was first released in Feb 2003, and has evolved with the times since then. .NET core is the newest iteration, and is fully platform independent.

The differences between ASP.NET and .NET Core are pretty trivial. Most code and examples from ASP.NET will work great in .NET Core. Maybe they need a little tweaking, but nothing terrible.

-1

u/abrandis Feb 20 '20

ok maybe so, but in my experience that's only the case when a big MSFT shop wants to leverage some Linux systems , I don't think I ever heard of a lLinux (open source) shop adopt . NET unless they had to integrate some. proprietary Microsoft product.

1

u/JohnnyCodeCache Feb 21 '20 edited Feb 21 '20

But that only means you haven't heard of "linux shops" using .NET Core or that the "linux shops" are biased or something.

The facts are this:

  • C# is a great language with lots of great features

  • .NET Core is multi-platform. And not just some shitty lip service fake shit. It really is multi-platform works well on Linux and MacOS.

  • Visual Studio is one of the best IDE's I've ever used - and I've used lots and lots of them.

Ultimately I don't really care what languages/platforms/tools other programmers use; especially if I am not working with them and have no skin in the game with whatever they are building. People should use the best tool for the job, and that includes what they are comfortable with.

But to discount .NET Core because its not for "linux shops" is disingenuous. .NET Core, C#, and Visual Studio is fantastic to program in, multi-platform, open source, and free. What else could anyone want?

1

u/abrandis Feb 21 '20

look I'm not trying to say that . NET isn't multi platform or valuable, it's just I haven't really encountered it much outside of folks who do a lot of Microsoft eco system stuff.

1

u/JohnnyCodeCache Feb 21 '20

Yeah, cool. That's fair enough.

On a personal level, I have worked with LAMP, php, and coded mostly in PhpStorm. And I've coded in C# with .NET and Visual Studio.

I find the C#, .NET and VS option a LOT more pleasant to work with. LINQ is a great feature, and the new Dependency Injection use in .NET Core is simple, effective and nice to work with.

Maybe other people should have a look? They really provide some well polished tools.

0

u/[deleted] Feb 20 '20

[deleted]

0

u/abrandis Feb 20 '20

Provide me some examples. of a Linux shop using . net

0

u/[deleted] Feb 20 '20

[deleted]

1

u/abrandis Feb 20 '20

ok I meant a programming group mostly using open source Linux based tools..

yes , that's what we call them in business a Microsoft shop or Linux shop or iOS shop, if their predominant programming platform is that os.

2

u/scandii Feb 20 '20 edited Feb 20 '20

mate, ASP.NET is the web part of the .NET framework, the programming language associated with this is nowadays C#.

it is not a programming language and SQL Server has nothing to do with .NET.

it is also fully cross-platform so the idea that it's a hassle is just straight up wrong.

I'm happy you're trying to help but if you don't know it's okay to say so.

0

u/abrandis Feb 20 '20

I was talking in general terms and while asp. net may be in c# these days , it's once was actually Asp..

2

u/scandii Feb 20 '20

sure, for two years between 2000 and 2002 which is completely irrelevant 20 years later. once again, happy you're trying to help.

1

u/Daniel_xx7 Feb 20 '20

Even then classic ASP was still a templating system and the scripting langue used was VB script ( I work for a company that has a large classic ASP legacy application).

0

u/[deleted] Feb 20 '20

[deleted]

1

u/abrandis Feb 20 '20

exactly, MSFT for all it's talk about being open source and platform agnostic, still hangs on to a lot of it's older licensing models for a revenue stream.

0

u/brandondyer64 Feb 19 '20

And Rust for systems level and IoT.

41

u/mnkb99 Feb 19 '20

It's the type of thing college students with inflated egos are going to say. Who the hell argues about "my language is better than yours" anymore?

21

u/canIbeMichael Feb 19 '20

This literally happened at work. Me, a manager, and an intern were talking about building software and the intern said something about how PHP sucks.

I asked him 'why?'

He couldnt give a single answer.

Me and the manager had a good laugh.

5

u/[deleted] Feb 20 '20 edited Oct 01 '20

...

1

u/[deleted] Feb 20 '20

We do a bit of Laravel work here, and for comparison, PHP 7.whatever feels like the bastard child of Perl and Java. But with the brazillion arbitrary PHP functions till piled in there, all with strange names.

I hadn't really poked about with PHP since about 2006 or so. But can't remember any of that.

Now, with iron discipline, it's pretty quick to thrash working code out. It's quite nice. Very straightforward too, as long as you remember to maintain the aforementioned discipline, and slap yourself every now and then to keep focus.

2

u/inhalingsounds Feb 20 '20

Because:

  1. it isn't a shiny new toy

  2. people who last used php 10 years ago think that php is still what it was then

  3. wordpress destroyed any chances of keeping php up there with the "decent" tools, because 95% of wordpress developers are really, really bad

4

u/noratat Feb 20 '20

#3 + I hate webdev in general

1

u/canIbeMichael Feb 20 '20

Wordpress is a framework. I really liked laravel.

Terrible list tbh. Sounds like intern level answers.

1

u/inhalingsounds Feb 20 '20

Not sure if you understand what I was trying to say or if you think I'm defending the anti-PHP guys. I'm doing the opposite ...

I've been developing since 2004-ish, by the way.

1

u/011101000011101101 Feb 20 '20
  1. it isn't a shiny new toy

For the betterment of my future job prospects I'd rather be working in the hot thing and not in a stale or dying language. Like, it would suck to get stuck writing perl for the rest of your career.

2

u/inhalingsounds Feb 20 '20

You only get stuck if you conform to it. I have worked in dozens of mid and large tier apps with Laravel, yet I also do them with Node.

Hot things come and go, good tools stay.

1

u/canIbeMichael Feb 20 '20

Laravel is so good.

Anyone who has used Laravel(or wordpress) knows PHP is here to stay.

2

u/noratat Feb 20 '20

I have a valid version of that argument: "my language is better because it's the one we're already using across multiple projects and it has a large ecosystem/community"

9

u/Korzag Feb 19 '20

Ever go to Pornhub? Of course you do, don't lie.

It's built on PHP.

6

u/scandii Feb 19 '20

the popularity of a language literally changes from city to city, so these types of questions are a bit pointless.

PHP has seen it's glory days and it's doubtful it will be the new hot thing again, it's still one of the biggest languages in the world and you can't go wrong learning it as there's a lot of things being actively developed using it.

5

u/drlecompte Feb 19 '20

Not rare at all. The popularity of a language is usually directly proportional to the amount of criticism and hate flowing online. If something has been very popular for a long time, there is a lot of legacy, amateur and just bad code out there. The latest new and shiny language/framework doesn't have this, simply because the only code out in the wild is very new, not very widely used, and very consistent with the initial purpose/spec of the language.

8

u/propernounco Feb 19 '20

Something like 35% of the internet runs on PHP which is built solely in PHP. While there are definitely languages out there that are better for application development, when it comes to building general websites that are hooked up to a CMS, PHP is still a major player due to how easy it is to deploy, the number of available CMS platforms, and the number of inexpensive shared/managed hosting providers that support it right out of the box.

1

u/Pleb_nz Feb 20 '20

Out of interest. How much of stuff being released today is php. Is that 35% legacy, still growing or being maintained.

2

u/Vakz Feb 20 '20

How much of stuff being released today is php

Not that I have any numbers, but certainly far lower than 35%. Working as a consultant, my company does literally zero PHP development. The times we get requests for specific languages it's usually about Java or C#. When we get more general requests, such as "we need web people", it tends to end up being C#, Java, Typescript, occasionally some Python. The people I know who still in some form release PHP-based systems are actually just pushing Wordpress sites for smaller companies wishing to have some kind of online presence, consisting of existing modules with some minor customization. They want something cheap, and could probably have have been just as well off with a static site generator. The amount of actual PHP coding they do is minimal.

You can probably still do well as a developer focusing on PHP if all you're looking for is a steady salary, but expect to be working almost entirely with WordPress or legacy applications. You're not going to be working with the "new and exciting" things.

1

u/propernounco Feb 20 '20

1

u/Vakz Feb 20 '20

What's your point? This doesn't contradict with anything I said, in particular the last part. Yes, Wordpress is popular. If all you want is a steady job, go ahead, focus on PHP. The question is rather whether you want to work with PHP. The survey from Stack Overflow showed PHP on the 26th place of technologies people enjoyed working with. Only 46% of developers wanted to continue using it. I'm not even sure how much to trust your link, considering it doesn't even include PHP 7, which is arguably the non-shitty version people in this thread are talking about.

1

u/propernounco Feb 20 '20

Well, 1) I was just providing a source for you to back up my 35% number. 2) the topic of this post was not "Is PHP the most enjoyable language to work with?" it was "Is it actually rare to use today". Considering 35% of the internet runs on WordPress alone, it's definitely not rare at all to use. I agree that when it comes to actual development work, there's a ton of stuff that's much easier and more enjoyable to work with as opposed to PHP. Not even going to touch on your "fake news" accusation, that number is well documented from plenty of sources.

1

u/Vakz Feb 21 '20

It's not a "fake news" accusation. It's a glaring hole in your source that it doesn't even mention php 7, even though it's several years old. How is that even supposed to be interpreted? No sites running WordPress use php 7? That alone would be an argument for staying the hell away from WordPress

1

u/propernounco Feb 20 '20

https://w3techs.com/technologies/details/cm-wordpress

Currently 35% of the entire internet runs on WordPress and 62% of all websites where the CMS is known are running on WP.

Wordpress is continuously being developed and improved and thousands of new WordPress and WooCommerce websites are being launched every month.

Wordpress is not the ideal CMS for building out a custom web application, however, the vast majority of "informational" websites that are built each month are built for the WordPress platform.

So take everything that everyone here is saying with a grain of salt. If we're talking web application development/software development, there are definitely many options far more suitable than PHP. However, if we're talking website development, WordPress (PHP) is going to be one of the most robust, customizable, well-supported open-source options available and anyone who says otherwise just does not know what the hell they're talking about.

4

u/Benignvanilla Feb 19 '20

Nothing irritates me more than a programming-bro's.

If you have a need or an interest in PHP, learn it, use it.

I am versed in many languages including C#, JS, blah, blah, blah and the list includes VB. I don't often admit out loud that I like VB for front end work, simply because the bro's will attack it as a joke language. I use VB to this day as I do other languages depending on the customer, project, situation.

9

u/AlphaWhelp Feb 19 '20

PHP is used everywhere and is honestly a great language for really simple web apps that require minor amounts of backend processing. I highly doubt if Zuckerberg knew Facebook would have blown up the way it did that he would have used PHP. He used PHP back in the day when it was just a Harvard private thing because it was fast and easy to stand up and met the requirements to fit the intended use cases at the time.

0

u/keyboard_2387 Feb 19 '20

Just curious, what do you mean by “really simple?” Many companies use PHP for things that I don’t consider simple, from e-commerce sites to APIs that handle thousands of requests per second. For things like video processing, for example, PHP wouldn’t be a good choice.

1

u/AlphaWhelp Feb 19 '20

You can use PHP for complex applications if you really want but it's good for really simple ones.

I can't comment on every possible use case but an API designed to handle thousands of requests per second is fundamentally divorced from the language you code it in. Is the API just returning a hashed value of some kind based on a single post string? PHP is literally perfect for that. The problem is going to be the power of the servers not the language at that point.

3

u/[deleted] Feb 19 '20

Knowing languages isn't as important as knowing the core principles and logic behind programming

A language it's just syntax and sugar coating, true, some have special trinkets and oddities that makes them special, but all object oriented languages usually have similar features.

Learn logic, reasoning and theorical aspects so that you can struggle less with learning syntax from languages

If you need a simpler way of seeing this... Think of it this way... Human languages, Spanish, English, Chinese, all have similar concepts in them and most have words that exist in one another, what changes is just how you write it and how you structure things and symbols

3

u/[deleted] Feb 20 '20

There are lots of words both good and bad that i would use to describe PHP but rare is not one of them. If someone thinks PHP is rare then they're just showing their lack of knowledge on the subject. WordPress pretty much rules the internet when it comes to CMSs. You also have the very academic heavy Drupal CMS. Mediawiki runs Wikipedia and various other wikis. You have application frameworks like Laravel, Zend, and Symfony. Lots of forums are built in PHP. In short, No, PHP is not rare and whoever told you that is an idiot.

3

u/xshare Feb 20 '20

Other people have responded to the rest of this but I wanted to specifically respond to the Facebook part. Facebook is in no way "solely using js" and if you see this person again you can tell them they are just plain wrong about that.

Facebook uses hack, a PHP spin-off (it's basically PHP plus) for just about everything at all on the server stack. That means APIs (including graphql), web requests and of course building pages. Almost all of Facebook is written in PHP (hack, but still).

If you want to work at Facebook you are almost certainly going to write PHP at some point, if not a lot of PHP.

11

u/[deleted] Feb 19 '20 edited Aug 02 '24

My favorite movie is Inception.

2

u/[deleted] Feb 19 '20

Well, PHP is like any other tool. It's got it's pros and it's cons.

To mock about tools we used ten years ago or whatever time before present just because we got more specialized and probably better tools is just absurd. People need to realize that hunting down a mammoth with rocks and sticks before having guns or even archs was the best choice at the time.

That said, programming languages are just an iterative process of improvement. We got now better tools thanks to the mistakes we made while building the previous ones.

PHP is definitely far from being the "one fits them all" or whatever dumb fucks like that person think of programming languages. It wasn't designed and implemented perhaps as great as some more modern languages but it did the job at the time and what you gotta learn from suboptimal tools taught at school is the thought process behind them to better understand the features and solutions provided by today's ones. You will understand better how we tried to solve problems before and how we try now.

Obviously there will be sometimes you feel some languages are way too old or whatever and perhaps you will find teachers that spent a lot of time with those languages and that's why they keep preaching them. Just remember you're learning to think how to solve problems. Many times, having a less functional tool obliges you to think more creatively to overcome issues in your day to day, so, even if you're not gonna use it in a day to day (the programming language you're being taught at school), it will train your brain better. Learn whatever languages you like in your spare time.

2

u/[deleted] Feb 19 '20

The fact that he disses you for knowing a particular language means he’s utterly ignorant of software development.

You’ll be working with most languages over your career. Learn all the foundations of programming in whatever language, and be prepared to get handed an existing project in a language you’ve never used and have to interpret it on the fly.

2

u/NoeticIntelligence Feb 19 '20

PHP has grown and improved incredibly since the early days.
It is very mature, has tons of support for web-related activities,
and in my experience very fast.
You can develop and deploy web solutions rapidly.
It is great for getting a product to market.

2

u/noratat Feb 20 '20 edited Feb 20 '20

Depends.

It's still used a lot in webdev stuff, but personally you couldn't pay me enough to do that kind of work, regardless of PHP/node.js/etc. And I'll give PHP this - at least PHP devs know the language is a big mess and have done a lot to work around it. Node.js developers are still in denial about their ecosystem being a dumpster fire.

But again, it depends. PHP isn't used much outside of webdev to my knowledge for example, just like Java is rarely used to write games despite being widely used for corporate web server backends.

2

u/MONSER1001 Feb 20 '20

Just one question:

- how in the name of F God will the client care about the language?

Most of the time, the software is created for the client. If you can make it with X programming language do it, doesn't matter.

I use php at work, for some kind of websites just makes sense. Using Symfony or Laravel for developing modern applications? Sign me in, cause I love the fact that I can do so quick a small mvp or just a full application.

Want a quick site, modern, well supported, for a client that is not so tech savy? Drupal is okay, Joomla is okay, wordpress is okay

Why would it matter the language if it's use is done properly?

Look at Jira. The website is so slow, some API calls are so long that sometimes Firefox will kill the call. It's created in ASP.net (if I am not wrong) and it get's the job done. The user won't care if the application is done in assembly, python, ruby, Java, C, C++,. haskell, he just wants results.

When I did freelancing I worked with 3 start ups, one of them worked with Java and jsp, one with node js and react, one with php and twig files. Guess what, all of them failed. The tech stack doesn't matter.

I work in Symfony at the moment, is very actively developed by the open source community, Laravel is even bigger. PHP is used even today by a lot of companies.

Learn concepts, not programming languages. A few years ago PHP was the top notch, now is Spring or node or who knows, I don't really care, they will be deprecated in a few years maybe, maybe we will develop in a language called Besina in the next 10 years. Learn concepts, then switch programming languages as needed.

1

u/eerietheery Feb 19 '20

I once worked with a guy who was masterful with PHP and C#, wrote an entire customer service management frontend for windows and SQL backend all on his own.

PHP has its purpose and can be really helpful in the right hands.

1

u/CyanoFresh Feb 19 '20

Please tell me the pros and cons of PHP comparing to Java

1

u/keyboard_2387 Feb 20 '20

PHP isn't rare to use today and you are correct that he is a total douche. PHP and react are completely different and used in different situations. PHP is used primarily as a back-end language while react is a front-end library for building user interfaces.

1

u/hugthemachines Feb 20 '20

As an old computer nerd I would say any area that has to do with computers or coding is bound to have a few people who have no clue of how to behave properly in a social situation. Let me clarify, not everyone who is interested in computer stuff are bad at social behavior, but you are bound to found a couple of them now and then.

He was rudely mocking you and by that he showed everyone that he has no idea what he is talking about. Lots of people dislike PHP but there are lots who dislike every popular language. That type of language bashing is not rational and not professional.

If someone is a douche it is most often a sign of their own insecurity so it is a first sign that they probably have no clue. People bash others to try and boost their own ego and to keep others from noticing the low self-esteem of the douche.

1

u/marjot87 Feb 20 '20

Facebook basically uses Hack in the backend which is a custom dialect of PHP and extends it with React which is written by Facebook in JS.

https://en.wikipedia.org/wiki/Hack_(programming_language)

1

u/FloydATC Feb 20 '20

Even if PHP is arguably a crap language, it is still widely used but this is really beside the point because the language really DOES NOT MATTER. If you pursue a programming career, this is only one of many languages you will end up having to learn and work with and (so far?) they all have similarities, strengths and weaknesses.

With a few memeworthy exceptions, no education is a complete waste of time.

1

u/[deleted] Feb 20 '20

He's full of hot air. Laravel is quite popular as is Wordpress. There's also Cake. All of which are still in active development.

1

u/MarimbaMan07 Feb 20 '20

tell him pornhub uses PHP.

1

u/cornylamygilbert Mar 02 '20

Learn react too.

What an ignorant moron, too many websites are built on WordPress and those all use PHP.

0

u/marinac_1 Feb 19 '20

As someone young (21) I touched PHP for the first time 4 years ago, and I didn't know how to feel due to the lack of experience and knowledge.
Now I am using Elixir stack (Elixir back-end, Phoenix front-end, Ecto - database) and sometimes I wish I didn't even bother with PHP.

2

u/sn0wr4in Feb 19 '20

Hey, fellow Elixir user! Cheers from London!

-1

u/[deleted] Feb 19 '20

PHP + sql + curl is usual in backend system, partly due to it's convenient helper functions. I wouldn't use JS on backend, but maybe C#, D or python if I had to change. Java is too inflexible / has higher effort cost to change something.

Personally I think it's a decent scripting language, but don't like the syntax much.

2

u/Ran4 Feb 20 '20

Java is definitely top tier when it comes to backend development. You should really try out springboot.

-5

u/Philluminati Feb 19 '20

I would say PHP is a dying language with low adoption. Whilst it enjoyed it success in 2005 it does a lot of things badly. We only learnt that it was painful by doing PHP and improving it. So PHP is like a v1 iPod. Fat, Slow, few features, clunky, crap battery and historically just a stepping stone to newer and better tech.

But it sounds like this person is a self-righteous asshole.

Can I also ask you a genuine question. Why are you being taught PHP in 2020 instead of NodeJS or Python or something else? Perhaps it’s a question you could ask your lecturer.

1

u/[deleted] Feb 19 '20

Probably because PHP it's very easy (although dirty) to learn.

Also, most colleges I've seen around usually stick to principles and basic things and seldom explore "what's the newest and coolest shit out there"

Because... Let's face it... They would need to print new books every year if they exclusively taught the trending technologies

4

u/whlsky Feb 19 '20

You’re right. However the purpose of any college / uni should be student employability. Python - as simple if not simpler than php, forced good practices, etc. Really I see no reason to start learning with PHP, aside from maybe ease of deployment.

2

u/[deleted] Feb 19 '20

Problem would be a lack of youngsters teaching, most young people prefer to work the field rather than teaching.

Likewise, the people who are seniors nowadays, who might retire and teach programming in a university in the next 30 years, will likely teach those generations what was used NOW rather than what will be the trend then.

Not to mention programming advances absurdly fast, older people who studied on the mid 90s can't adapt fast enough

1

u/whlsky Feb 19 '20

Good point, haven’t thought of that :)

-9

u/lorenzoMiatrakeFree Feb 19 '20

Php as it is not used for new project anymore but learning it is not bad. There will always

be plenty of legacy software to maintain

2

u/keyboard_2387 Feb 20 '20

PHP is regularly used for new projects so I don't know where you are getting this "it is not used for new project anymore" bullshit from.

0

u/[deleted] Feb 19 '20

[deleted]

0

u/keyboard_2387 Feb 19 '20

Why is PHP cancer?

0

u/[deleted] Feb 19 '20

[deleted]

0

u/keyboard_2387 Feb 20 '20

Legacy code is a problem on any project, regardless of the language used, so I don't think it's fair to pin that on PHP, especially for newer PHP projects which may be written in PHP 7+ which have the MySQL extension removed.

2

u/[deleted] Feb 19 '20

[removed] — view removed comment

2

u/Dynam2012 Feb 20 '20

I'm not sure what you mean by 'botched the implementation of =='? They aren't buggy, they do what they say on the tin. You just have to read the tin instead of assuming you'll get something like C.

-13

u/[deleted] Feb 19 '20

[removed] — view removed comment

8

u/YMK1234 Feb 19 '20

Lol that's the dumbest shit I've read all day. React is not even a language to begin with. This post is so misinformed it's not even funny any more.

-12

u/[deleted] Feb 19 '20 edited Feb 19 '20

[removed] — view removed comment

5

u/[deleted] Feb 19 '20

Firstly, being technically a language is not the same as being a language. React is a js framework and Java is a language. But I don't really care, you can use those names interchangeably imo.

But what's with the hipster shit? Using better languages to write better code is good. Why don't you go use assembly if you like old, stable and well maintained languages :)

Using memes as a reference... Huh? You could rephrase "thinking about how a function would be called" as "trying to write readable and well documented code".

Programmers were always like this, back in the days you had books to learn from, nowadays we have stackoverflow. Are you mad because our generation progressed or something? If you're comparing generations, and say ours has it easier, I partly agree, but you have to take one big thing into consideration: back in the day, to my knowledge, you'd need to learn one or two languages and be good with computers, nowadays, you have to learn shitload of different languages, frameworks, etc. to even be viable for a company. What do you say to that eh?

-1

u/[deleted] Feb 19 '20

[removed] — view removed comment

1

u/[deleted] Feb 19 '20 edited Feb 20 '20

I do understand that it is harder to get answer from books than from stackoverflow. And props to your generation for doing it, but again, why'd you be mad at our generation for advancing?

Some people are not as smart/experienced/talented as others? You can't base an entire generation off of one person.

Props to you for being able to read APIs, but it's not that difficult to read a well written one honestly. But the thing is, the difference between knowing something and writing good code, and just making it work, is unreadable, unoptimised bad code. I too can "make something work" real quick, but the resulting code is really bad and unreadable.

But dude, I just wanted to say this: I really appreciate you guys, that made this possible. The guys that were there from day one, and made everything from basically nothing. And I understand that I'm just a casual 14 year old, that knows how to code. I'm not even a professional and I do realise that you know far more than me, but I do think you're underestimating us young folks.

2

u/[deleted] Feb 20 '20

No, you missed the point. We didn't use books. Books were basically like the front page of the jQuery or Rust homepages, they were there to try to sell whatever language to us. There was nothing to gain from them other than wasting money. They were shit. Well, you can always get a some in the form of a PDF "book" nowadays. They were as useless then as they are now.

All languages came with APIs. Reading and understanding how APIs work is what my generation did. They were readable offline, on your PC. Internet was not too widespread, but reading an API was. Understanding how to plan and build the program, identifying the needs and the likes is what school really teaches. Nothing too complicated, but compared to people with no or bootcamp degrees, the difference is large & wide and quite frankly, maybe too wide for them to ever catch up unless they choose to study the real thing.

The advantage, the only real one that exists today, besides the obvious hardware improvements is the fact that you can legit go to websites that teach all the bootcamp degree stuff, for free and far more efficiently. Having had that when I was 14 (lol as if I even had Internet - we did, but it wasn't like today, it took 5 minutes just to see the tits of a model in a very low res image) would have been awesome. You can literally, nowadays, enter college and know all the programming stuff, which allows you to focus more on the real part of the job, which is not coding, but understanding how the digital world really works. Most of which is being able to plan a solution before coding it.

1

u/[deleted] Feb 20 '20

I am really thankful for being in this situation and I don't take it for granted. Yes, we have the internet, and we can literally learn programming anywhere nowadays, but it still requires hard work, maybe less than back in the days, but without hard work you won't reach anything in my opinion.

But props to you once again, for being there from day one! And I'm not saying this sarcastically, I'm proud of you people that were there from day one, making everything from basically nothing.

2

u/[deleted] Feb 20 '20

Ok let me correct a few things. Day 1 was with cardboard punch cards and manually entering them in the computer. That's still quite a ways back from even me.

Hard work is a talent programmers are better without. If you can literally work hard, you're better off in a lot of other fields. Lazy programmers learn to reuse code efficiently and how to write less to do more. Some are so lazy they don't even shave, which is why the stereotypical programmer looks like a cave man.

1

u/[deleted] Feb 20 '20

In my opinion, making best off already made code and reusing it where you can, is a skill and not laziness. If you're lazy, you won't even power on the computer, so you need some initiative. Without hard work, you won't try to be your best self everyday, you won't try to learn new things and improve. That is the best value a person professionally can have in my opinion.

→ More replies (0)

4

u/YMK1234 Feb 19 '20

Your bullshit is getting worse and worse. Maybe try educating yourself instead of being angry. And I'm not even a front-end dev, I don't give a damn about the latest JS frameworks.

0

u/burntrissoto Feb 19 '20

No one cares

1

u/ReefNixon Feb 19 '20

Haha what the.. this is the dumbest take I’ve ever heard on this subreddit. Web startups fail because of the frameworks they use? Bruh.

Let’s all pity the tiny start ups using react like Facebook, Instagram, eBay, Imgur, Netflix and Reddit. Or maybe a little pity party instead for the doomed startups that were built in rails like Basecamp, GitHub, Shopify, Airbnb and Twitch.

1

u/[deleted] Feb 20 '20

Web startups also need to find the talent to work for them. Those you name switched to react after they made it big. They were not startups anymore, they don't even count.

-5

u/[deleted] Feb 19 '20

[removed] — view removed comment

3

u/kulalolk Feb 19 '20

Do you disagree with what he said?

6

u/YMK1234 Feb 19 '20

Their post is simply not based in any sort of facts. The vast majority of startups die because they have no financing concept, not due to language choice (and react and rails are neither exotic nor hipster).

-3

u/[deleted] Feb 19 '20

I said react sucks and the fanbois are rabid. My mother was a devout Christian and so ignorant about anything not straight, such as sniffing paint, that she thought the marijuana plant I planted in the back yard was a nice looking tree.

1

u/[deleted] Feb 19 '20

You're a lot like your mom!