Hey.

Read about the OP. Slightly figured out the patterns. The question remains where to apply and how knowledge.

Can someone tell me where to look at the use of OOP in practice? (Similarly, to understand the layout, you must first see the project, as others impose.)

Maybe you have solutions left from work, or there are ready projects. If yes, let's see.

1 answer 1

Right so take and apply patterns - usually it does not end with anything good. Maximum singleton, and then, far from the most beautiful of its options.

Want to see? very easy. Download popular js frameworks, for example jQuery (which, according to some data, is used on more than half of the "popular sites"). Also, you can download dozens of other cms, for example drupal, joomla (and let it not upset that they are in php / python - html + js to the user anyway).

And the third way. js can always be spied on (sometimes they hide it, but can you hide it?). Open sites of popular sites - Google, Yandex, slashdot. Yes, and do not forget the Hashcode :) See them in Sorets and study.

Yes, the curve crafts of students will mostly come across. But who prevents to try to write them "correctly"? But sometimes, studying even the strangest code, you can find a wonderful reception.

Therefore, stop feeling sad, it's time to read someone else's code and write your own.