вторник, 10 декабря 2013 г.

Programmer with the only pattern. Part II : real world

Long time ago, when I was young and green specialist I have hopelessly trying to understand the Book of Four. I have started it for about three times. My best result is about 50 pages. I hadn't got much practice and I hadn't got any code support experience or any experience of working with real tasks (not laboratory works). So, I couldn't understand - what for I should use all that information? How can I use patterns in work and what can they give me? Awful days, some my friends were completely charmed with the Book of Four. I was not.

Of course, today I have much more experience, I have some specified thoughts about my work, and about tasks I have to decide. Unfortunalety, it is still very hard for me to understand patterns and to use them. It is usual for me to find, that my solution (I was very proud of) is just some parody or instance of famous pattern.

Some weeks ago, I found "Head First Design Patterns" by Eric and Elisabeth Freeman. It opened my eyes! I had read the first chapter, and had to leave the book for some days. In those days, I have found myself re-designing some old solutions and classes with the only pattern I had time to learn. In final case, I found myself trying to adapt the pattern to my current work task... and realized that the task isn't sutiable at all. Some absurd feeling. I just had feeling - there  has to be a pattern for it... But, obviusly, it must be some another pattern. Some absurd feeling.

It was the origin of the tale.

Finally, I want to recomment the Freemans' Book for everyone, who have problems with using OOP patterns.

вторник, 3 декабря 2013 г.

Today I have learned, that it isn't necessare to specify the namespace, while writing programm.
Of course, it isn't possible to create any library. But for simple exe it is possible.

However, don't know how to use this information. I don't even think, it is correct. But the fact is.

четверг, 28 ноября 2013 г.

A programmer with the only pattern. Part1 : Fairy tale



It sounds like... "Ages and ages ago one programmer desired to design the finest solution, men have ever seen. And he called to ancient spirits of mankind memory and wisdom. He asked them to teach him their secrets. He promised to gift them his Project in exchange for Book of Wisdom. Book of Patterns. And he got the Book. Many days, many nights have gone and a lot of cups of coffee has flowed since then. Finally, the Dream Project was complete. Spirits have come. But the vain Programmer intended to fool them. He has already read the Book, and so he threw it to fire. Then, the formated disk with Project. He was sure, that now, with the great knowledge, he will be able to create... or, more over, to Create the Project of Eternal Life.
But Spirits became angry. And they were very powerfull spirits. They damned the Programmer for the abusive behavior. The Programmer got the very long and very paintless life. From that time, he have been coding different tasks all days long. But he forget every thing and every trick he learned from book... except the one. He tried to remember, but the only he could do is to transform his task to fit the only pattern he remember."

This history has some prehistory and some conclusions (besides some about my language level)... So the post will be continued.

среда, 27 ноября 2013 г.

http://russiandigitalgames.ru/brief/usability_design/

Want to paticipate.
Hope, I can find enough time and resources, to take a part.
Really need to understand my design level. And working with third-rate customers obviously isn't the way.  Well, well, they are always right... but too much telepathy. It seems sometimes, I have some rank in it. Unfortunately, not very high. (

пятница, 22 ноября 2013 г.

Some new for me SQL tips.

1. We can create additional "stuff-text" columns in our query. These colunms don't exist in query tables and contain  the same text (our "stuff-text") in every row. For example (abstract select query and result.

SELECT "From", start_date, "To", fin_date FROM events_table

Column1   |   start_date   |   Column2 |   fin_date

From        |  23/11/2013 |  To            | 14/12/2013
From        |  26/11/2013 |  To            | 10/12/2013
From        |  30/11/2013 |  To            | 05/12/2013
From        |  02/12/2013 |  To            | 16/12/2013

2. Today I found excellent article about JOIN operator. In russian translate - http://www.profstat.ru/article/sql-joins.html. There is link for english source in the end of it. I copy for archive http://www.codinghorror.com/blog/2007/10/a-visual-explanation-of-sql-joins.html .

3. There are SOME and ANY keywords in SQL. Never seen them before. Well, I think I am not going to use them... Because of IN and EXISTs - it gives me the same functionality and they are  more usual. But I needed the third item. And I need to remember this (don't really sure).


PS. English is not my native language. More over, it isn't my second language or something like that.And I haven't got any practice for ages (exclude reading some technical docs).
But it's google... I tried to navigate to some blogs around. And they are written in english. So, I am ougth to try. Hope, this will be readable.

четверг, 21 ноября 2013 г.

На этой неделе я узнала, что интерфейс и выполнение математики в комплексе желательно разносить в процессах.

Наверное, я знала это и раньше... но математика, связанная с интерфейсом редко занимала слишком много времени (или меня мало занимало поведение интерфейса... или интерфейс прикручивал другой разработчик).

Однако. Интерфейс должен отвечать и не производить грустного висящего впечатления, пока где-то там прогружается база данных.

Что касается .NET, в С# есть прекрасный готовый класс BackgroundWorker ( http://msdn.microsoft.com/ru-ru/library/system.componentmodel.backgroundworker(v=vs.110).aspx ). Вызов и пара событий и большая часть проблем с отображением прогресса и разделением загрузки, расчетов и поведения интерфейса решена.

среда, 20 ноября 2013 г.

Каждый раз, создавая аккаунт гугл, я жду, что он скажет мне "Извините, этот пароль уже занят, придумайте другой". К счастью, этого не происходит.

У меня было желание начать блог с менее приземленных вещей. Или даже с представления. Но будет история о выборе блогоплатформы.

Я давно веду личный блог. Настолько давно, что буквально позавчера вопрос "где начать тематический блог для заметок на полях?" поставила меня в тупик. Задача показалась мне тривиальной... всего-то и нужно: аккуратный движок, удобство навигации по тегам и комментариям. Рабочий лаконичный дизайн (или возможность его создать). И хотя бы возможность навигации с телефона.

Поисковые системы и френды рассказали мне, что есть следующие возможности:
  • ЖЖ (Livejournal) - вообще прошлые опыты убедили меня, что нитевые ветки комментариев крайне неудобны. Однако, подробное рассмотрение текущего положения дел меня даже почти соблазнило. Есть приличная (хотя уж очень ограниченная) мобильная версия. Появились новые удобные вещи. Но работа с комментариями и френдлентой меня все равно расстраивает.
  • Дайрики (diary.ru) - родная и любимая платформа. Уютненько, простор с дизайнами... и решающее - моя лояльнось ей уже 10 лет. Однако дайри.ру крайне уютны. Писать в них про работу настроения не возникает. И публика все больше пишет о кулинарии, тусовочках, фанфикшене (воистину, рассадник!) и прочих бытовых штуках.
  • liveinternet.ru - ничего так сервис. Но опять же. Уж очень уютен и личен. Если верить статьям с гугла, популярен у мечтательных девочек, начинающих литераторов и домохозяек.
  • Я.ру - блог от яндекса. Движок ничего так. Настраиваемый слегка дизайн... и куча блоков вида "опросы/желания и т.д.". Без очевидной возможности их отключить. Завершил наше знакомство неотключаемый блок Яндекс-поиска на четверть экрана. Перегруженная схема сайта.
  • Блоги mail.ru, как и большинство сервисов mail, моего внимания не удостоились. Но они существуют... наверное ими можно пользоваться. Мне видятся те же минусы, что и у яндекса.
  • wordpress.com - для меня стало откровением, что у них есть еще и блоги. Я не знала. На первый взгляд сервис удобен. На второй - перегружен, галлюцинирует на телефоне и в старой Опере, и просто так, заставляет меня сомневаться в моей адекватности. И... в общем перегружен, на мой вкус и для моих целей.
  • blogger.ru - сервис гугл. Откровенно говоря, политика гугл относительно своих сервисов меня настораживает, печалит и с регулярностью заставляет печалиться. Что, пока, является его единственным минусом, увы.
  • Вообще, всегда есть возможность организовать stand-alone blog. Для этого есть много хостингов и прочих штук (пример: leo.me/blog/lleoblog ). Однако, организовывать в качестве свалки учебно-развивающих (меня) материалов, отдельный угол интернета мне лично показалось несколько наглым и самоуверенным.

ЗЫ. В итоге выбран blogger. Хотя я серьезно подумываю о новом аккаунте на ЖЖ. Но... но вот я здесь. )