Документация OpenNMT на русском языке!

Всем привет! На этой странице я будут выкладывать частичные переводы документации проекта OpenNMT — нейросети для машинного перевода с языка на язык. Начну с главы Tokenization. Разбиение на лексемы OpenNMT из коробки предоставляет утилиты токенизации для быстрой обработки новых наборов данных для обучения. Цель токенизации — преобразовать необработанные предложения в […]

Отладка вражеского кода

В моей карьере разработчика .net было несколько случаев, когда я хотел отладить чужой код. Код, к которому у меня нет исходников, только DLL. К счастью, Visual Studio позволяет дебажить код без исходинков. Эта статья основана на вопросе на StackOverflow, где я пытался объяснить поведение Unity-контейнера.

Patterns: Specification

Specification pattern is my favorite one! It unites Domain-Driven Design, application architecture modeling, entity framework — all cool things. Specification pattern is designed to order business rules and connect your code to your business terms. In this article I will show an example of implementation and how this pattern is […]

Any vs Count

This post started from discussion on SO: Why LINQ method Any does not check Count? After it I decided to check the most common collections on performance in methods Any and Count.

Debug enemy’s code

I had several episodes in my .net development career, when I wanted to debug foreign code. The code, I have no sources access to, DLL only. Visual Studio has ability to debug code without sources. This article is based on StackOverflow question where I tried to explain Unity behavior.

Sleep well

How many ways to sleep a thread do you know? Usually you need to sleep a thread in a loop when you execute some repeatable operation (checking results every 5 seconds, for example). So, you need to stop this loop for a period of time.

Soft API contract

Working with some API you expect that this API will stay stable and return the same type of result from call to call. But, sometimes it does not work this way. In the article I will tell about integration with SOAP-service and volatile contracts. To describe the problem, I need […]

Null or NotNull

This topic is related to this question on StackOverflow. Let’s discover, what are CanBeNull or NotNull attributes? How they work? These attributes provided by JetBrains ReSharper Annotations and help you to find errors in your code with ReSharper.

Who can foreach

This post is about popular question «What collection can be used in foearch statement?». If you think that correct answer is IEnumerable, read this post ? First of all let’s read docs from Microsoft: The foreach statement repeats a group of embedded statements for each element in an array or an object […]

Varieties of properties

Property is a flexible mechanism to access private fields (set and get value) and implement computations. Now we have different ways for implementing properties — from classic with backing field and get-set keywords to modern lambda-style. Let’s find is there any difference between all these properties. This article is based […]