Мне кажется что-то похожее на nnm.ru, там есть так называемые «доки» (блоги) на которые можно подписываться и есть страница просмотра новостей/статей с подписанных доков.
Статья неплохо подойдёт тем кто только начал изучать php, она — хороший пример перехода на чуть более высокий уровень программирования (оторваться от низкоуровневых, встроеных, php функций, использовать свои более высокоуровневые). Следующим шагом неплохо было бы почитать про асбтракцию в бд, объектную модель, ORM, чего советую и автору.
До того как проголосовать ожидал что первый вариант лидирует и был приятно удивлён. На самом деле это бич многих веб 2.0 сайтов, то что большинство пользователей дальше главное не ходит.
---
The lock keyword ensures that one thread does not enter a critical section of code while another thread is in the critical section. If another thread tries to enter a locked code, it will wait, block, until the object is released.
The section Threading (C# Programming Guide) discusses threading.
The lock keyword calls Enter at the start of the block and Exit at the end of the block.
In general, avoid locking on a public type, or instances beyond your code's control. The common constructs lock (this), lock (typeof (MyType)), and lock ("myLock") violate this guideline:
* lock (this) is a problem if the instance can be accessed publicly.
* lock (typeof (MyType)) is a problem if MyType is publicly accessible.
* lock(“myLock”) is a problem because any other code in the process using the same string, will share the same lock.
Best practice is to define a private object to lock on, or a private static object variable to protect data common to all instances.
>> там нет Reflection и нельзя генерировать код в run-time
Кошмар, нет reflection? А какже тогда всякие Linq там работать будут? Или их на уровень доверенных библиотек вынесут? Да и вообще reflection иногда просто незаменим!
Ситуация аналогичная:
var items = new[] { «cat», «dog» }; // всё ок
var items = new[] { «cat», 4 }; // ошибка, компилятор не может определить тип переменной items
public var GetCat() {
return new { Name = «Барсик», Age = 1 };
}
---
The lock keyword ensures that one thread does not enter a critical section of code while another thread is in the critical section. If another thread tries to enter a locked code, it will wait, block, until the object is released.
The section Threading (C# Programming Guide) discusses threading.
The lock keyword calls Enter at the start of the block and Exit at the end of the block.
In general, avoid locking on a public type, or instances beyond your code's control. The common constructs lock (this), lock (typeof (MyType)), and lock ("myLock") violate this guideline:
* lock (this) is a problem if the instance can be accessed publicly.
* lock (typeof (MyType)) is a problem if MyType is publicly accessible.
* lock(“myLock”) is a problem because any other code in the process using the same string, will share the same lock.
Best practice is to define a private object to lock on, or a private static object variable to protect data common to all instances.
Кошмар, нет reflection? А какже тогда всякие Linq там работать будут? Или их на уровень доверенных библиотек вынесут? Да и вообще reflection иногда просто незаменим!
там как раз показывают 2500 год когда население это стадо идиотов за которых всё делает автоматика.