If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Frameworks vs. Pure PHP

Started by ericstuart, Nov 22, 2023, 12:16 AM

Previous topic - Next topic

ericstuartTopic starter

Alright, folks.

So, the deal here is crystal clear. Is it wise to dive into using a framework right after grasping the fundamentals, or should one instead focus on crafting own code in pure PHP?

  •  


Satya

When it comes to choosing between using a framework and crafting your own code in pure PHP, there are a few factors to consider:

1. Time and Project Complexity: If you're working on a complex project with tight deadlines, using a framework can help you speed up the development process by providing ready-made solutions for common tasks such as database interaction, routing, and user authentication.

2. Learning Curve: Frameworks often have their own learning curve, so if you're just starting out, it might be beneficial to first gain confidence in writing pure PHP code before diving into a framework.

3. Community and Support: Frameworks usually have active communities and ample dоcumentation, which can be valuable resources for learning and troubleshooting.

When deciding whether to use a framework or pure PHP, it's essential to consider scalability and maintenance. Using a framework can provide a structured approach to development, making it easier to maintain and extend your codebase as your project grows. Frameworks often come with built-in features for security, performance optimization, and other best practices, which can save you time and effort in the long run.

On the other hand, crafting your own code in pure PHP allows you to deeply understand the inner workings of web development and gain valuable insights into how frameworks themselves are built.

It's beneficial to start with pure PHP to grasp the foundational concepts, but as your projects become more complex or require rapid development, leveraging a framework can be a strategic choice for efficiency and scalability. Finding a balance between understanding the fundamentals and utilizing the tools available in frameworks can help you become a well-rounded and effective developer.
  •  

ryan reynold

If you've got the fundamentals down, it's time to dive into Object-Oriented Programming (OOP) and grasp the concept of Model-View-Controller (MVC) architecture.

Once you have a grasp of the basics, try using a framework to build something simple - perhaps a Blog, for instance.

During the process, you'll encounter challenges, but that's where experience is forged.

After gaining a clear understanding of how the site's internals function and how to build it, try implementing it using vanilla JavaScript.

While a framework provides a convenient toolkit, don't underestimate its complexity.
  •  

HictBurtult

The answer depends on the result you want to get.
And the deadlines are necessary to achieve the latter ...

If your task is to get a classical education, then it is exciting, long, but inefficient.
But it is academic, and as a result - a theorist who knows a lot, but does not know well how to apply it.

If you have a task for tomorrow, then the operator sitting at the computer is simply an operator who solves the tasks set by the business with some efficiency.

And the higher it is, the higher the income.

The knowledge set increases this efficiency...

If the task is to start earning income, then a framework is needed (since it is in demand by business).

It is better in the team - Jun.

Spend this time as efficiently as possible, plus, perhaps, they will pay something.

And then how will the specialization curve take you out.
It will depend on the office (each has its own stack), projects (different technologies) and interests...

So in any case, you raise the question of what I want to achieve in such and such a time.
And the answer is whether the chosen path solves this problem...
  •  

ypkamik

If you're just starting out with PHP, the last thing you should be doing is diving headfirst into a framework. That's like trying to build a house without a foundation – it's a recipe for disaster. Frameworks are meant to simplify development, but they can also obscure the underlying code and make you reliant on someone else's work.
You need to understand the language inside and out, and that means writing your own code in pure PHP. Anything less is just lazy. So, put in the time and effort to learn PHP properly, and then – and only then – can you start exploring frameworks.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...