Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,480 members, 7,819,750 topics. Date: Monday, 06 May 2024 at 10:12 PM

Why Is PHP Not Considered As A Best Backend For Web Development Again - Programming (4) - Nairaland

Nairaland Forum / Science/Technology / Programming / Why Is PHP Not Considered As A Best Backend For Web Development Again (16336 Views)

Nairaland Devs Is PHP Dead Among Nigerian Devs? / Node VS Python - What's the Best Backend Tech for Beginner & Intermediate Devs? / Php Not Appearing Correcting (2) (3) (4)

(1) (2) (3) (4) (5) (6) (Reply) (Go Down)

Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Luiz7: 4:32pm On Nov 30, 2020
Idontknowyou:
Dev in the house.. I have been confused on which Backend I should venture into, but any one I ask usually suggest Node js over PHP..

Please can any expert here tell me why I shouldn't learn PHP but Node js..

And please suggest the best Backend I should learn before going into Js framework

Don't let anyone confuse you bro. I've been coding PHP for at least three years, and I equally know Node.JS. There is no truth in saying that Node.JS is much preferred than PHP.

The only thing I see there is that most new developers just like jumping on new technologies - more like a farce, the new cool thing. In fact, there was a time when Java was that new cool kid, then Python, then Node.js etc.

And did you know that even Node.JS is now loosing that grace to it's latest farce: Deno.JS?

So the point is: Wether PHP, Java, Node, Python or C++. All of them are mere tools at the end of the day. The point is in picking the best tool for the job.

And if you are talking about light web applications, let me remind you that PHP powers over 80% of the web presently.

4 Likes

Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Luiz7: 4:35pm On Nov 30, 2020
Xeeex:
Due to my research, most job requirements are for node js
Which of the jobs?
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Luiz7: 4:40pm On Nov 30, 2020
ProfAmaben:


What's not true? Check indeed or stack overflow for analysis. Node js is the future and commands a higher salary. You can easily learn react and become a FullStack developer than learning php then coming back to React.

My opinion.

That's wrong bro. Languages come and stay - even though Node.JS is not a language. More like a run time environment for server-side JS.

But the point is, it's wrong to tag any language as the future. The same thing was said about Python.

And now, did you know that the same Node.JS you are tagging as the future is also giving way to Deno.JS?
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by ProfAmaben(m): 4:45pm On Nov 30, 2020
Luiz7:


That's wrong bro. Languages come and stay - even though Node.JS is not a language. More like a run time environment for server-side JS.

But the point is, it's wrong to tag any language as the future. The same thing was said about Python.

And now, did you know that the same Node.JS you are tagging as the future is also giving way to Deno.JS?

I'm very aware that node js is not a programming language, JavaScript is. Node Js has a powerful ecosystem (express) and community and I see it going nowhere anytime soon. Deno.js is good also, people would use Demo and still use node.

1 Like

Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Luiz7: 4:50pm On Nov 30, 2020
ProfAmaben:


I'm very aware that node js is not a programming language, JavaScript is. Node Js has a powerful ecosystem (express) and community and I see it going nowhere anytime soon. Deno.js is good also, people would use Demo and still use node.

Good bro. But again, no language is "the future". We've seen some technologies come and go. And we have seen others come and stay.
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Karleb(m): 5:46pm On Nov 30, 2020
Luiz7:


Good bro. But again, no language is "the future". We've seen some technologies come and go. And we have seen others come and stay.

Don't mind them.

They are so caught with the future that they forget to live in the present.

PHP is the language of the web. It will remain so for many years to come.

WordPress alone powers around 38 percent of the web. No language has close to that number on the web.

Nothing last forever though, so if you think PHP will die what makes you think your favorite language "of the future" wouldn't?
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by ReluctantAdult(m): 6:04pm On Nov 30, 2020
zeestone99:
Who is into kotlin. Mobile app

I use Kotlin smiley
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by zeestone99(m): 6:24pm On Nov 30, 2020
ReluctantAdult:


I use Kotlin smiley

I have seen my oga ��. Can I send a pm
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by uchennamani(m): 6:26pm On Nov 30, 2020
Karleb:


Yeah, your opinion. Which is false.
Yeah. Your opinion, which is false.
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by ReluctantAdult(m): 6:28pm On Nov 30, 2020
zeestone99:


I have seen my oga ��. Can I send a pm


Oh I forgot to add that I'm still learning smiley

How far have you gone? Have you started Android yet?
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Omzie(m): 6:33pm On Nov 30, 2020
cixak95211:


Lol, what you're probably thinking is that the node event loop handles most of the processing whereas in fact, it is sent of for i/o computations at the cpu's thread . . .
Nodejs is probably a bad idea for cpu intensive work though, such as object modeling and 3d rendering
but ur Go will be the first to give up if it goes head-to-head in terms of malloc and garbage collection.

C’mon man, stop making me laugh, an environment (this is for other readers that confuse node as a language, it’s just a JavaScript runtime) has a better memory allocation than a compiled language that is compiled ahead of time to native code? Really? Leemao

Uber, Upguard, Koding, etc. have migrated to go. They don’t know about node shey? Or they’ve never heard of it before? Abi they’ve never used it and saw that it didn’t scale well? Smh, plain simple, JavaScript would never outperform go in anything... NEVER! Talk less of a runtime environment for it.

Talking about garbage collection and malloc �

Comparing a “single threaded” environment to a language that can spin up thousands of goroutines without breaking a sweat.

The only thing node beats go in is the developer tools that are readily available now. And that’s because more devs are on the JavaScript side. Performance, Scalability, Concurrency... Go beats it hands down.

Before I leave, the creator of node.Js said and I quote verbatim “That said, I think Node is not the best system to build a massive server web. I would use Go for that. And honestly, that’s the reason why I left Node. It was the realization that: oh, actually, this is not the best server-side system ever.”

And here’s a link to the ycombinator post
https://news.ycombinator.com/item?id=15767713

So tell me, do you know more than the person that created node
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by jelel6: 6:48pm On Nov 30, 2020
Interesting topic. However, anything I see a question being asked with the qualifier BEST I tend to be hesitant in replying.

Op, There is no best

I understand you want to start with one. Both of them a quite proven and dependable technologies so you can confidently pick one and learn, master it, work professionally and make money. That's the bottom line and what's important.

However, I believe that there are a lot of PHP related jobs and projects compared to Node because of the longevity of it. And not necessarily because it's the better tool. WordPress popularized PHP. Keep in mind that in Nigeria, we don't pave the way. Instead, we follow. And we follow rather sluggishly so NO established language is going away anytime soon. In essence, php is good market and can make your job search easier, especially in Nigeria.


NOW THE BIG PICTURE...

It should come as no shock to you that the life of a technologist is one of constant change. So, don't expect to keep using the same methods, tools, or languages NOW AND IN 10 YEARS TIME. You will have to keep learning and reinventing yourself time and time again.


KEEPING AN EYE ON THE FUTURE...

NodeJs is the fastest growing server-side framework and one of the fastest growing web technologies for that matter. Learning it should be a no-brainer, even if you don't eventually use it professionally for the time being. It's good to stay ahead of the curve. You want to get a hang of it now so that you'd be one of the very experienced users when it EVENTUALLY MATURES in Nigeria.

Personally, I'd advise: if you know two backend languages as a Nigerian living in Nigeria, one MUST BE NODE. (I only know one myself grin). It doesn't matter which you start with, just learn Node as one of two. It's about being proactive and smart according to the trend going on around you.

... cool No more cents left to give.

3 Likes

Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by cixak95211: 6:51pm On Nov 30, 2020
Omzie:

.......

I have said what I said and when i say stuffs i dont say them out of emotions . .
also please bear in mind that many coys do migrate their tech stack and yes, while some do so for better scalibility and performance, some also do so
to meet a specific use case only offered by that language in "convenience" . . .
And yes, people have called their apps shitty . . php guy said so
lets come down home a bit more . . to node packages . . even the creators of moment said you should probably not use it anymore
and offered recommendation . .but guess what, after practical test among the community, between stuffs like moment, dayjs, luxon etc . . they still found out moment held its ground . . only lacking for too much memory consumption cos it lacked tree-shaking . . .
But I'll like you to demonstrate to us on the same machine how a simple Go app will crush a simple node js app with it's ability to handle millions of routines and nodejs just being able to handle, uhmmn, 1,000 concurrent request? or 2,0000? right?
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by jelel6: 6:58pm On Nov 30, 2020
donproject:


Thanks...that will set me free, I love this NoSQL already

NoSQL is cool talking from my experience with firebase. But be aware that the seemingly unbounded freedom and flexibility you get with it can lead you into poorly designed database systems. I'd recommend you hook up something like mongoose together with MongoDb so that some of that unlimited surface for potential errors is curtailed. Besides, you won't need it most times.

From your earlier post, I understand you previously use MySQL. That's about the worse SQL database you can use in 2020. (No thanks to LAMP Stack)

For SQL, try Postgres database. Pair it with something like knex.js and you'd love programming Backend and databases all over again.

1 Like

Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by vankaid: 7:10pm On Nov 30, 2020
iamwhat:
NEVER LEARN PHP IN 2020

http://linkedin.com/in/mohemos

That's my linkedin profile.

I guess I'm the best person to advise you... After using PHP (Laravel, Smarty) for 5 Years and currently using Nodejs

TLDR; (The short answer is) : LEARN JAVASCRIPT then NODE.JS

I earn $20/hour working remotely using NODE.JS & REACT.JS

Long answer, picked from stackoveflow 2020 survey:
Similar to last year, we asked about many of the other miscellaneous technologies that developers are using. For the second year in a row, Node.js takes the top spot, as it is used by half of the respondents. We also see growth across the board in the popularity of data analysis and machine learning technologies such as Pandas, TensorFlow, and Torch/PyTorch.


https://insights.stackoverflow.com/survey/2020#technology-other-frameworks-libraries-and-tools-professional-developers3

Curiously, you included PHP in your tools section on your linkedin.
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Albertone(m): 7:25pm On Nov 30, 2020
Pcguru1


We need your input boss.
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by ProfAmaben(m): 7:34pm On Nov 30, 2020
Luiz7:


Good bro. But again, no language is "the future". We've seen some technologies come and go. And we have seen others come and stay.

https://medium.com/javascript-in-plain-english/is-deno-already-dead-661ce807338a
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by ProfAmaben(m): 7:36pm On Nov 30, 2020
Luiz7:


That's wrong bro. Languages come and stay - even though Node.JS is not a language. More like a run time environment for server-side JS.

But the point is, it's wrong to tag any language as the future. The same thing was said about Python.

And now, did you know that the same Node.JS you are tagging as the future is also giving way to Deno.JS?

https://medium.com/javascript-in-plain-english/is-deno-already-dead-661ce807338a

Deno can never displace node.js, it's features such as typescript, no Npm and a little more security can never displace Node. Node shows a higher performance
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by cryptotech: 8:02pm On Nov 30, 2020
Kentuforchrist:
JavaScript anytym anyday
Java script is for front end, not back end..
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by iamNegro(m): 8:09pm On Nov 30, 2020
900warriorz:
Economics student, gather here for Tutorial grin

Topic: IS-LM Model

This thing don tay oooo!
Shebi na Labor market and money market. Those good days!
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Luiz7: 8:13pm On Nov 30, 2020
Karleb:


Don't mind them.

They are so caught with the future that they forget to live in the present.

PHP is the language of the web. It will remain so for many years to come.

WordPress alone powers around 38 percent of the web. No language has close to that number on the web.

Nothing last forever though, so if you think PHP will die what makes you think your favorite language "of the future" wouldn't?


Exactly...
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Luiz7: 8:23pm On Nov 30, 2020
ProfAmaben:


https://medium.com/javascript-in-plain-english/is-deno-already-dead-661ce807338a

Deno can never displace node.js, it's features such as typescript, no Npm and a little more security can never displace Node. Node shows a higher performance

Bro, forget that thing... Nothing like never. Did you know the same guy, Ryan Dharl, who created Node.js is now behind Deno.js.

And did you also know that he said he regretted creating Node?
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by broswilli: 8:39pm On Nov 30, 2020
Use PHP, you would appreciate your choice during deployment
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by MrCEO69(m): 8:47pm On Nov 30, 2020
Hmmmmm... smiley Learn Concept, Principle, Data Structure, Logic etc

1 Like

Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Sazeals(m): 8:55pm On Nov 30, 2020
Churchill6767:


Wow.. that's nice.. please what materials are you using for learning purposes?
Corey Schafer's YouTube video and the docs
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by zeestone99(m): 9:10pm On Nov 30, 2020
ReluctantAdult:



Oh I forgot to add that I'm still learning smiley

How far have you gone? Have you started Android yet?

Me too. Just started Working on Android studio.
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Cousin9999: 9:22pm On Nov 30, 2020
Be careful with following trends. No joke, there's guys still making money (good money) off 80s programming skills.

Whatever you do, just know that the money and opportunity comes from doing it well, not just knowing how to do a few things. And companies care more about your ability to pick up new things than being an expert on 30 things.

You also have to remember that job requirements need to be taken with a grain of salt. We've all seen ads that want 10 years of experience with a technology that's like 4 years old.

1 Like 1 Share

Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by 900warriorz: 9:25pm On Nov 30, 2020
iamNegro:


This thing don tay oooo!
Shebi na Labor market and money market. Those good days!

E really don tey bro.. grin

But na Investment, Savings and Money Supply.
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Sazeals(m): 9:33pm On Nov 30, 2020
Churchill6767:


Wow.. that's nice.. please what materials are you using for learning purposes?
Corey Schafer's YouTube video and telusko channel but Corey is the main one
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by iamNegro(m): 10:01pm On Nov 30, 2020
900warriorz:
E really don tey bro.. grin

But na Investment, Savings and Money Supply.


True, and how they react to interest rate bla bla
Re: Why Is PHP Not Considered As A Best Backend For Web Development Again by Omzie(m): 12:34am On Dec 01, 2020
cixak95211:


I have said what I said and when i say stuffs i dont say them out of emotions . .
also please bear in mind that many coys do migrate their tech stack and yes, while some do so for better scalibility and performance, some also do so
to meet a specific use case only offered by that language in "convenience" . . .
And yes, people have called their apps shitty . . php guy said so
lets come down home a bit more . . to node packages . . even the creators of moment said you should probably not use it anymore
and offered recommendation . .but guess what, after practical test among the community, between stuffs like moment, dayjs, luxon etc . . they still found out moment held its ground . . only lacking for too much memory consumption cos it lacked tree-shaking . . .
But I'll like you to demonstrate to us on the same machine how a simple Go app will crush a simple node js app with it's ability to handle millions of routines and nodejs just being able to handle, uhmmn, 1,000 concurrent request? or 2,0000? right?

He said emotions, lol. Anyways, I’m a huge advocate of using what works for you. But for you to say node is as fast as Go.... HELL NO! Like I said earlier, in normal stuff like simple crud operations, they would perform similarly. The difference comes in CPU intensive tasks!

You said concurrency? Lol.... tell me how a runtime that operates on only two threads would outperform a language that can natively spin thousands to millions of goroutines at will depending on your Ram?

Oh, you want to argue that node uses more than two threads? Here’s an article from the official docs

https://nodejs.org/ru/docs/guides/dont-block-the-event-loop/#what-code-runs-on-the-worker-pool

One thread for the event loop, another for the worker pool. Or you don’t agree with the official docs too?

Let me leave you with a graph and a link with an article to the graph

https://medium.com/@kevalpatel2106/why-should-you-learn-go-f607681fad65

I can bet you haven’t written one single line of Golang, that’s why you’re saying this. An interpreted language running in a runtime environment running faster than a statically typed compiled language that compiles ahead of time with concurrency built into it... smh

(1) (2) (3) (4) (5) (6) (Reply)

Defend Your Programming Language / Learn How To Build A Desktop Software Using PYTHON – Tutorial On Nairaland / Funny Source Code Comments

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 59
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.