A
A
astrotrain2018-07-03 14:21:46
IT education
astrotrain, 2018-07-03 14:21:46

Can you tell me about programming theory (PHP, Python)?

I program in php and python, but I'm not familiar with general programming concepts. Is there any literature where you can read about refactoring, unit testing, and so on in one place (that is, applied questions and not academic things)? And what books can you recommend on python and php for high and professional level? Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel Novikov, 2018-07-03
@paulfcdd

Refactoring is very easy. The essence of refactoring is to optimize the code without changing its logic, in other words, simplifying the code, improving its readability, moving repetitive code into functions or classes, etc. This is not a book that will help you, because there is no book on refactoring, but only experience.
Unit testing - covering each function in the code with tests, which is generally clear from the phrase "unit testing" itself. The bottom line is that you write a class, methods in it, and then write a test class where you save the names of classes and methods by adding the prefix `Test` to them, for example. In general, it depends on the documentation of the test tool that you want to use.

A
Anton Shvets, 2018-07-03
@Xuxicheta

https://www.ozon.ru/context/detail/id/1308678/

S
sim3x, 2018-07-03
@sim3x

www.obeythetestinggoat.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question