пятница, 30 ноября 2012 г.

Libs / UnitTesting для Javascript - Окружение (RU)

Главной особенностью модульного тестирования веб-приложений, -- необходимость воссоздания окружения - т.е. браузера. Это конечно не касается приложений написанных для node.js, там все проще.

Однако бывают ситуации, когда браузер оказывается не нужен, и можно обойтись его упрощенной эмуляцией.

Дальше в статье кратко опишу подходы с минимальным окружением или без оного (PhantomJs, ZombieJS, чистый Node.js), а так же подход с запуском тестов в браузере (jsTestDriver, Testacular).

пятница, 9 ноября 2012 г.

Architecture / Model-View-Presenter (MVP) Theory (RU)

Как-то совершенно незаметно привычная модель MVC в моих проектах мутировала к MVP (Model View Presenter). Возможно тому способствовали прочтения Мартина Фаулера и использование разных фреймворков вроде SwiftSuspenders или Parsley.

Далее в тексте буду стараться использовать именно английские названия Model, View, Controller, Presenter, чтобы избежать ненужных коннотаций с их русскими аналогами.

MVC vs MVP


Не взирая на все плюсы MVC, у него есть и большие проблемы. Одна из них:
читабельность кода и отладка — дело в том, что настраивать систему, построенную на событиях (Observer Synchronization), задача достаточно не тривиальная и без trace и breakpoint часто сложно реализуемая.

воскресенье, 4 ноября 2012 г.

3D / First week of course of Foundations of Computer Graphics (EN)

Here is starting online course of 3D graphics (CS184.1x Foundations of Computer Graphics) taught by Ravi Ramamoorthi is a Professor at UC Berkeley. Because I feel of lack of theoretical knowledge with it I decide to join it. Feel free join it too. It'll be cool to study together!

The full course is long for a 6 weeks. With 4 homeworkds.

If i will get something interesting i also shared it with you. Stay in touch.

суббота, 3 ноября 2012 г.

News / Little reDesign 'Any Key To Create' (EN) / Updated

I tired from previous design

... Oh no i haven't done a screenshot...

and fallback it to simple template. I thinks now blog look better:




If you have any ideas, about design, you can tell it here. You welcome.

Also become more social

add G+ page for the blog.

пятница, 2 ноября 2012 г.

Game Design / A Slower Speed of Light (EN)

One of approach to find something new and interesting, it's take something, make its more abstracted as you can and move it to the new environment. It's frequently use in applied science, for example when Gustave Eiffel had been building his tower, he was inspired by thighbone.

Take look closer, here is game with excellent idea of gameplay. In a focus we have relativistic mechanics applied to game environment. It's excellent idea to get player get new experience and understand complex scientific ideas.

One more good news - it's opensource project and it was built by MIT.



Press Any Key...