Answer the question
In order to leave comments, you need to log in
Do I need to learn OOP (PHP)?
I don’t want to offend anyone and make a mess .
Goodbye OOP , I recently started learning PHP, tightened up the basics, got to OOP, but the article scares me, so is it necessary to learn OOP or functional programming: Welcome?
Answer the question
In order to leave comments, you need to log in
but the article scares me, so is it necessary to learn OOP or functional programming: Welcome?
The article is a mediocre stuffing.
The first comment of 2 sentences refutes it.
And you will have an adequate opinion only after 5+ years of experience.
In order to avoid "srach", you need to decide on the goal and go towards it, choose all the tools based on it, if this is not done, then without "srach" in any way, it's checked.
IMHO for me oop is what makes programming really interesting.
Programming in procedural style is boring :)
The article is not a weak stuffing to support activity on your blog, as Mail.ru likes to do when there is nothing sensible to write, but it is necessary.
It is necessary to learn, if only because it is convenient. Let me give you a good example: you have a method for connecting to something (to some database, FTP, it doesn't matter). It's called query(). You can define a class with this method when you start your project (for example, in index.php). For example, like this:
$db = new DB ([
'server' => '127.0.0.1',
'user' => 'root',
'password' => '',
'database' => 'my_db',
]);
The issue was resolved, the hostname is still server.mycompany.ru , I just added the following options:
MASQUERADE_AS(`mycompany.ru')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(mycompany.ru)dnl
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question