Writing your own workable OS for half a year

 3r3178. 3r3-31. Writing your own workable OS for half a year 3r3398.  3r3178. 3r3398.  3r3178. 3r33939. Prehistory
3r3398.  3r3178. Hello! I strongly welcome everyone, today I would like to tell you about my experience in writing a workable OS for the x86 architecture. 3r3398.  3r3178. One spring night I had a brilliant idea - try yourself in writing your own OS, which can allow you to run programs, work with devices, and generally squeeze all the power out of Intel's architecture in your needs: for example, for your factory or something else. My goal was and is to write such an OS that could allow maximum performance for some specific tasks without ...
+ 0 -

Upper-level architecture frontend. Yandex lecture

Upper-level architecture frontend. Yandex lecture 3r3666. 3r3-31. Choosing the right architecture is a key part of building a service frontend. Developer Anna Karpelevich told students 3-3-332. Schools of interface development
what architecture is, what functions it performs and what problems it solves. From the lecture you can learn about the most popular architectural approaches in the frontend: Model-View-Controller and Flux.
 3r3666.
 3r3666.
3r311. 3r3662. 3r3662. 3r3662.
 3r3666. - Good evening. My name is Anya Karpelevich. Today we will talk about the architecture of the frontend of the upper level. 3r318. 3r33655.
 3r3666.
 3r3666...
+ 0 -

All people do not know how to write code

On the eve of Moscow Python Conf ++, we talked with Nikita Sobolev, CTO of the company "We make services", about the global problem of managing the complexity of code in the context of the development of programming languages. And also about why the situation becomes worse with time. Plus they asked why he had to create his own linter.
 
 
All people do not know how to write code  
repository , where I collect such code examples.
 
 
The worst example I saw showed me that within a cycle of a hundred iterations, you can define a function. To be honest, when I looked at it, the interpreter broke down inside me. I guessed, but did not know that ...
+ 0 -

Manifesto of the Net Programmer or a short synopsis of the book "Pure Code" of Robert Martin

This article is a synopsis of the book "Pure Code" of Robert Martin and my understanding of how pure code should be. There are no sections about testing, TDD, what architecture should be, etc. Here everything is just about what the Pure Code should be.
 
Manifesto of the Net Programmer or a short synopsis of the book "Pure Code" of Robert Martin
 
 
Yes, it's possible that the topic of Clean Code is already jaded, but nevertheless, not everyone is familiar with it, and moreover, I did not meet the analogues of the content contained in my article.
 
General
 
There is no true path and solution. There is one that is best suited for a specific task.
 
When solving the problem, try to reproduce absolutely ...
+ 0 -

Short note about PVS Studio in CI (and what's missing)

I think it makes no sense to once again advertise a great tool for static analysis - PVS Studio. There are already a lot of articles devoted to it on the habr, but I want to touch on one more aspect - the use of this tool in the system of continuous integration.
XSLT . Now, probably, one of the readers has been screwed, but, nevertheless, I propose to continue reading.
 
XSLT is the language of converting XML documents to something else. It simply maps the input template to the conversion rule, but We made a conversion to an HTML report for ourselves.
 
I hope no one will judge me for the ...
+ 0 -

Patterns of design in Kotlin

Patterns of design in Kotlin
 
It is said that "design patterns are bypasses of the disadvantages of a particular programming language". The funny thing is that it's said supporters of Lisp and Scheme , in which everything was in order in the languages.
 
But it seems that the developers of the language Kotlin took this statement really close to heart.
Decorator . This is a pattern that allows you to add a bit of functionality over some other class. Yes, IntelliJ can create it for you. But Kotlin went even further.
 
How about we get a message about this every time we add a new key to HashMap?
 
In the constructor, you define ...
+ 0 -

Combating dirty side effects in pure JavaScript functional code

Combating dirty side effects in pure JavaScript functional codeIf you try your hand at functional programming, it means that you will soon be confronted with the concept of pure functions. Continuing the exercises, you will find that programmers who prefer a functional style seem to be obsessed with these functions. They say that pure functions allow us to talk about the code. They say that pure functions are entities that are unlikely to work so unpredictably that they will lead to a thermonuclear war. You can also learn from such programmers that pure functions provide referential transparency. And so on - to infinity.
 
 
By the way, functional programmers ...
+ 0 -

Sorting by choosing

Sorting by choosing

 
 
What is the idea of ​​sorting by choice?
 
 
 
In the unsorted subarray, a local maximum (minimum) is searched.
 
The maximum found (minimum) changes places with the last (first) element in the subarray.
 
If there are unsorted subarrays in the array - see item 1.
 
 
library sorting Other articles were planned for inserting algorithms: solitaire sorting, sorting by Jung table, sorting by eversion, etc.
 
 
However, now the trend is non-linearity, therefore, without writing yet all publications about sorting inserts, today I'll start the parallel branch about sorting by choice. I will do the ...
+ 0 -

How to make the code readable

How to make the code readable
 
Someday we all wrote (and some write) bad code, and, I hope, we all are working to improve our skills, and not just reading articles like this.
 
Why should we write good code, not just a productive code?
 
Although the performance of your product or site is important, it's also important how your code looks. The reason for this is that
not only does the machine read your code
.
 
First, sooner or later you have to re-read your own code, and when that time comes, only well-written code will help you understand what you wrote, or figure out how to fix it.
 
Secondly, if you work in a team or collaborate ...
+ 0 -