Computer Environment Archives - {coding}Sight https://codingsight.com/category/languages-coding/computer-environment/ Blog for SQL Server DBAs and Developers Fri, 07 Oct 2022 08:07:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 https://codingsight.com/wp-content/uploads/2021/10/cropped-Soсial_-Fb_180х180-1-32x32.png Computer Environment Archives - {coding}Sight https://codingsight.com/category/languages-coding/computer-environment/ 32 32 Comparison of Tree Graphs https://codingsight.com/comparison-of-tree-graphs/ Fri, 06 Oct 2017 09:53:01 +0000 http://codingsight.com/?p=2333 When developing an information system that also includes various processing of design and technological documentation, I faced the following problem. We have a certain product structure. During the day, different parts of this product are changed and by the evening, it is already unclear what has been changed. Sometimes, products can consist of more than …

The post Comparison of Tree Graphs appeared first on {coding}Sight.

]]>
Oracle as Workaround of Mutating Tables https://codingsight.com/oracle-as-workaround-of-mutating-tables/ Mon, 02 Oct 2017 11:47:13 +0000 http://codingsight.com/?p=2313 The Oracle mutating trigger error occurs when a trigger references the table that owns the trigger, resulting in the “ORA-04091: table name is mutating, trigger/function may not see it” message. Let’s have a look at the existing workarounds. The first one, through the package, is ancient and seems to be effective, however, it takes much …

The post Oracle as Workaround of Mutating Tables appeared first on {coding}Sight.

]]>
Oracle Regular Expressions. Dangerous Range https://codingsight.com/oracle-regular-expressions-dangerous-range/ Fri, 29 Sep 2017 13:25:58 +0000 http://codingsight.com/?p=2300 An Oracle developer who often uses regular expressions in code sooner or later can face a phenomenon that is indeed mystical. Long-term searches for the root of the problem can lead to weight loss, appetite and provoke various kinds of psychosomatic disorders – all this can be prevented with the help of the regexp_replace function. …

The post Oracle Regular Expressions. Dangerous Range appeared first on {coding}Sight.

]]>
How Generics save from Boxing https://codingsight.com/how-generics-save-from-boxing/ Mon, 18 Sep 2017 10:40:20 +0000 http://codingsight.com/?p=2243 At the method input, we often perform a null test. Someone makes the test as a separate method, so that the code looks cleaner, and gets something like this: public void ThrowIfNull(object obj) { if(obj == null) { throw new ArgumentNullException(); } } The interesting thing about this test is that I see a frequent use …

The post How Generics save from Boxing appeared first on {coding}Sight.

]]>
Modular WPF Application using Caliburn.Micro and Castle.Windsor https://codingsight.com/modular-wpf-application-using-caliburnmicro-and-castlewindsor/ Wed, 30 Aug 2017 08:57:14 +0000 http://codingsight.com/?p=2116 To start with, I want to specify what is meant by a modular application in this article. So, a modular application will be considered an application, which consists of the so-called shell and a set of plug-in modules. There is no direct dependence between them, only via contracts. This allows independently modify each of the …

The post Modular WPF Application using Caliburn.Micro and Castle.Windsor appeared first on {coding}Sight.

]]>
Key Indicators of Problem Design https://codingsight.com/indicators-of-problem-design/ Thu, 10 Aug 2017 10:34:53 +0000 http://codingsight.com/?p=1993 The concept of good or bad design is relative. At the same time, there are some programming standards, which in most cases guarantee effectiveness, maintainability, and testability. For example, in object-oriented languages, this is the use of encapsulation, inheritance, and polymorphism. There is a set of design patterns that in a number of cases have …

The post Key Indicators of Problem Design appeared first on {coding}Sight.

]]>
Sliding Responsibility of the Repository Pattern https://codingsight.com/sliding-responsibility-of-the-repository-pattern/ https://codingsight.com/sliding-responsibility-of-the-repository-pattern/#comments Thu, 03 Aug 2017 13:13:40 +0000 http://codingsight.com/?p=1987 During numerous discussions about the applicability of the Repository pattern, I noticed that people are divided into two groups. In this article, I will call them abstractionists and concretists. The difference between them is in the way they treat the pattern value. The former believe that a repository is worthwhile, as it allows disregarding details …

The post Sliding Responsibility of the Repository Pattern appeared first on {coding}Sight.

]]>
https://codingsight.com/sliding-responsibility-of-the-repository-pattern/feed/ 4
Swashbuckle (Swagger) Customization for WebAPI https://codingsight.com/swashbuckle-swagger-configuration-for-webapi/ Thu, 27 Jul 2017 07:53:03 +0000 http://codingsight.com/?p=1907 Who has ever tested their WebAPI knows such tools as Postman or Advanced REST (extensions for Chrome). These tools are convenient in every way, except that they are not able to recognize which models the API accepts, which ones it returns and do not provide information about all possible endpoints. The Swashbuckle package solves this …

The post Swashbuckle (Swagger) Customization for WebAPI appeared first on {coding}Sight.

]]>
DateTime to DateTimeOffset Transition https://codingsight.com/datetime-to-datetimeoffset-transition/ Tue, 25 Jul 2017 05:48:33 +0000 http://codingsight.com/?p=1892 Imagine that you want to convert your system from one state to another. The initial state is when DateTime is used everywhere, both in C# code and in the database. The final state is when DateTimeOffset is used everywhere. You want to make the transition smooth and make as few changes as possible. This description …

The post DateTime to DateTimeOffset Transition appeared first on {coding}Sight.

]]>
Simplifying Converters for WPF https://codingsight.com/simplifying-converters-for-wpf/ https://codingsight.com/simplifying-converters-for-wpf/#comments Mon, 24 Jul 2017 09:30:42 +0000 http://codingsight.com/?p=1863 I have been working with WPF for about a year and some things annoying me very much. One of such things is converters. Why do I need to declare the implementation of a dubiously looking interface somewhere at the deep of a project and then search for it through CTRL + F by name when …

The post Simplifying Converters for WPF appeared first on {coding}Sight.

]]>
https://codingsight.com/simplifying-converters-for-wpf/feed/ 3