Archive for category Software Development

У вас есть последняя версия Преобразователя Глагола?

Почему в Глаголе нет возможности создавать постоянные составных видов, за исключением ряда из знаков?
Хорошо бы добавить в задачи, которые преобразуют некоторые знаки цепи в другие (например, «^» в Вывод.Цепь или «#» при чтении цепи знаков преобразователем), возможность исключать это преобразование при помощи добавления определённого знака перед служебным…

Этот текст — отрывок из форума пользователей «Глагола» — русского языка программирования. Вот ведь до чего национальная гордость доходит. Вы посмотрите на стиль сообщения — ни одного «новоиностранного» слова, сплошь знаки, цепи, преобразователи. Чистота языка… программирования! Вот пример кода:


ЗАДАЧА Положение(годРождения:ЦЕЛ);
ПЕР
  положение:РЯД 7 ИЗ ЗНАК;
  возраст:ЦЕЛ;
УКАЗ
  возраст:=нынешнийГод-годРождения;
  ВЫБРАТЬ возраст ИЗ
      0 .. 7*1-1: положение:="дитя"
  | 7*1 .. 7*2-1: положение:="отрок"
  | 7*2 .. 7*3-1: положение:="юноша"
  | 7*3 .. 7*8-1: положение:="муж"
  | 60,70,80,90:  положение:="юбиляр"
  ИНАЧЕ
    положение:="старец"
  КОН;
  Вывод.ЧЦел("^мужчина %d года рождения - ",годРождения,0,0,0);
  Вывод.Цепь(положение)
КОН Положение;

Чистота доходит и до имён директорий и файлов, например скрипт Уборка.bat удаляет все продукты «сборочного сценария» (по-другому и не могу сказать; я имел в виду, по-человечески, конечно, «build script»).

На заглавной странице «Преобразователь Глагола» в скобках переведён: компилятор. Иначе не догадаться. Нет, я лучше Perl выучу, чем читать и тем более писать программы на таком языке.

Комментарии (2)

Cri de Coeur

SVN

SVN
SVN
SVN
SVN
SVN
SVN

SVN
SVN
SVN
SVN
SVN
SVN

Комментарии (8)

Sun Java to be 100% open source

Finally, Sun relicenses Java under GPL. AFAIK JVM native sources were open (but not under OS certified licence) for quite a while already, but now Sun implementation of JSE is going to be true open source. Great news — long awaited!

Комментарии (10)

Sun Certified Web Component Developer for J2EE 1.4: passed

JavaI’ve passed another Sun Java exam today — Sun Certified Web Component Developer for J2EE 1.4 (310-081). The total score was 78% which is 54 correct answers out of 69. The pass mark is 62%. I’ve spent approximately 4 evenings and around 8 hours during a day for preparation. I used same «real exams» downloaded from Examcollection but this time they were real crap — about 2/3 of all questions were not relevant to the exam but instead were taken from some basic Java language exam. Don’t look at these — 319-081 is purely about Servlet/JSP technologies!

Там есть еще »

Комментарии (6)

Apply patch to a directory

If you have an output of «svn diff» that contains diffs from multiple files and all paths are relative to a certain directory, the way to apply such a patch is

patch -p0

in the root directory (i.e. the one all the paths are relative to in your diff file).

Нет комментариев

Sun Certified Business Component Developer

I’ve passed the «Sun Certified Business Component Developer for J2EE 1.3″ today. With amazingly high score of 95% (67 of 70 questions answered correctly). I’m saying amazingly because I did not really expect that. My knowledge of EJB 2.0 faded since I last worked with it (back in 2004). What I did to prepare is I used questions downloaded from ExamCollection.com — 88 questions in total. The quality of answers was rather poor, I found at least 10 incorrect answers, but nevertheless they helped me to identify my weak areas. Then I just briefly scanned these areas in the EJB spec and the preparation was over. Took me four sessions by 1-2 hours each to prepare.

My weakest areas appeared to be:

  • Session bean lifecycle — 66% corect answers, 2 questions answered incorrectly
  • Transactions — 87% correct answers, 1 question answered incorrectly

All other areas (about 10 more) are topped at 100%.

This time I chose prometric certified test center in Luton (last time it was Wembley). I liked it better: bigger classroom (lit better too) and no problems with parking which is also much cheaper, £1.50 instead of £8 in Wembley.

So… here I am, another certificate at hand, congratulations are gladly accepted!

Комментарии (8)

Misspellings

Real life mis-spellings (saw them during last two days):

  • MDB = Massage Driven Bean (sorry this one is Java specific)
  • … CMMI curses are available … (from a corporate email)

Нет комментариев

Java community responds

Java community oficially responded to my post Three years apart with their triple salute:

Java Scout Honour
«In memory of Alexey»

Interestingly, some of them were drinking russian Baltika!

Ex-cameloter drinking russian Baltika!
Poisoned by Russian beer

Комментарии (2)

Look, instance initialiser!

Another thing that I would have learnt had a read a Java Language Specification:
There are instance inistialisers in Java :)
Discovered May 2006
In java, a class can have an instance initialiser, which is executed before constructor is called. I knew about static initialisers that are called when the class is loaded, but never heard about instance initialisers. A colleague taught me that :)

class Foo {
    private int i;
    {i = 5;} //instance initialiser
}

It is sometimes useful in anonymous classes as they cannot have a constructor.
Added to Things that I still discover about Java.

Нет комментариев

Недельный курс по UML

Н

а прошлой неделе я не работал — посещал недельный курс «Object Oriented Analysis and Design using UML». Хочу поделиться впечатлениями. Первое, и самое удивительное, для меня с российским и кипрским прошлым, это то, как я попал на курс. Как-то раз руководитель проекта попросил меня представить моё продложение по мелкому рефакторингу в виде UML диаграмм. Я сказал, что лучше я напишу всё текстом, так как хоть основные аспекты UML я и понимаю, но чтобы качественно нарисовать диаграмму, мне нужно много времени. «Окей», сказал руководитель, «пиши текстом».

Там есть еще »

Комментарии (3)