Posts

Showing posts with the label best practices

Dev: PlantUML + VS Code + GitLab

Image
I was looking for a way to share some details of implementation with my colleagues and in the same time to have it as a documentation on which we could collaborate and evolve it. It also should have been visual to have a better understating on composition. I could of course draw it from scratch using any existing drawing tool, but since I had quite a lot of types to put on, I gave up on the idea of never-ending copy/pasting from code to the diagram. Fortunately, one of my colleagues suggested me to try PlantUML . I gave it a try using an online editor and was surprised by the efficiency and the speed my diagram started to get in shape. It's much more easier to write a text and the syntax is very intuitive, so why bother with drawing and aligning those boxes while you can just leave it on PlantUML? We did a quick additional research and found that there is also a neat VS Code Extension that allows to have a preview on every update. So the next target was to automate the gen...

Dev: NuGet + Jasmin + Chutzpah = JS unit testing

Image
There is an easy way to do the unit-testing of the JavaSctipt scripts in Visual Studio. All you need is a NuGet package manager to install the Jasmin Test Framework . It will create few folders and files in your project: Content, Controllers, Scripts and a View. Feel free to delete JasminController.cs, jasmine-samlpes and Jasmin view, just keep the core Jasmin JavaScript files. We don't really need them as we'll install the  Chutzpah . Install the version of the Chutzpah  Visual Studio extension depending on the version of the Visual Studio you have. It will add a menu items "Run JS Tests" and "Run JS Tests in browser", the first just outputs the results into the console the later to the browser. The important thing is to add the references of the JavaScript files under the tests into your tests files. /// <reference path="Player.js"> /// <reference path="Song.js"> /// <reference path="SpecHelper.js...

Проект "Переезд"

Хотел бы поделиться практикой успешной организации и завершения переезда семьи из 3 человек, включая ребенка из квартиры в квартиру. Прежде всего, как и в любом проекте, необходимо было определиться с ресурсами и сроками. Сроки были сжатые, около 2 недель. Ресурсы: много вещей :), мебели, детских игрушек и т.д., денег - мало :), людских ресурсов - достаточно (мы + родители). Проект "Переезд", потребовал плана и координирования. Я разделил его на 4 фазы: планирование (подготовительная фаза), переезд вещей, переезд людей, переезд мебели и габаритной техники (завершающая фаза). Фаза 1. Планирование (подготовительная фаза). Во время этой фазы (длительность до 4 дней), я провел классификацию вещей, которые необходимо перевезти. Я выбрал методику разделения по 2 уровням: Помещениям: комнаты, прихожая, сан. узел, кухня... Категориям: техника, одежда... Методика позволяет представить кол-во перевозимых вещей и их разнообразие ;), а также определить что может войти в категорию "р...