Typegram - Zen blog platform

Hello Habr. I decided to show you engine , which I slowly develop. This is a blog platform, very close to the medium and similar projects.
 
Basic features:
 
Publications, comments, favorites, subscriptions, notifications, ratings, voting.
 
Minimalistic, textual design:
 
Typegram - Zen blog platform test site .
 
Localization
 
The service automatically separates users by language, directing Russian-speaking users to the Russian subdomain, and English-speaking users to English. The separation is essentially implemented at the content level. True interface is available only in English. Each subdomain has its own database ...
+ 0 -

What's new in GoLand 2018.2

+ 0 -

9 paid, shareware and free programs for tracking application code

The tracking code must-have in the development environment. But how much do you need the same tool in the product? The one who only painstakingly collects the logs will say "well its nafig, my ELK does not let me down" and will be right in his own way. For the time being.
 
 
9 paid, shareware and free programs for tracking application code  
1. Rollbar
 

 
Dashboard Rollbar
 
 
They write on their website "Catch Errors if you can until the users did it for you. " Well, let's try. Rollbar provides a cloud service and is able to work with several programming languages ​​through the implantation of its SDK into a controlled application.
 
 
...
+ 0 -

On the way to 100% coverage of the code with tests in Go using sql-dumper

On the way to 100% coverage of the code with tests in Go using sql-dumper
 
In this post, I'll talk about how I wrote a console program in the Go language for uploading data from the database to files, trying to cover all the code with tests 100%. I'll start with a description of why I needed this program. I will continue the description of the first difficulties, some of which are caused by the peculiarities of the Go language. Next, I'll mention the assembly on Travis CI, and then I'll tell you about how I wrote the tests, trying to cover the code 100%. A little bit of testing of work with the database and the file system. And in conclusion, I will say about what leads to the ...
+ 0 -

GraphQL API (CRUD) on Go &lt;{short}&gt; &lt;{full}&gt; <div class="post__text post__text-html js-mediator-article"> <p> Hello! About GraphQL many articles on the habr, but running through them found that they all bypassed such a wonderful language as G

<{full}>
Hello! About GraphQL many articles on the habr, but running through them found that they all bypassed such a wonderful language as Go. Today I will try to correct this misunderstanding. To do this, we'll write an API on Go using GraphQL.
 
If very briefly: GraphQL is a query language for building an API that describes how to request and return data (for more information on the official resource <{short}>Hello! About GraphQL many articles on the habr, but running through them found that they all bypassed such a wonderful language as Go. Today I will try to correct this misunderstanding. To do this, we'll write an API on Go using GraphQL. , On the habr.) To argue that GraphQL or REST is better than here  We will have a classic API: CRUD (Create, Read, Update, Delete) adding, receiving, editing and deleting items in the online store. On the server side, we will use the ready implementation of GraphQL graphql-go  First you need to download graphql-go, this can be done with the command  ...
+ 0 -

Accelerate string concatenation in Go with your own hand.

Accelerate string concatenation in Go with your own hand.
 
Today we will accelerate the gluing of short lines in Go by 30%. And for this we do not need to modify Go itself, all this will be implemented as third-party library .
 
Under the cat you are waiting for:
 
 
Comparison + , strings.Builder and the proper concatenation function  
Details of the internal device of rows in Go  
Very little assembler  

 

This article can also be considered a pretext to discuss CL123256: runtime, cmd /compile: specialize concatstring2 . Ideas for improving this change list ...

+ 0 -

Refactoring program on Go: acceleration is 23 times

Refactoring program on Go: acceleration is 23 times  
 
Hello! My name is Marco, I work at Badoo in the "Platform" department. We have quite a lot written on Go, and often these are critical to system performance. That's why today I'm offering you a translation of an article that I really liked and, I'm sure, will be very useful to you. The author shows step by step how he approached the problems of productivity and how they solved them. Including you will get acquainted with the rich tools available in Go for such work. Enjoy reading!
 
 
A few weeks ago I read the article " ...
+ 0 -

Go! Or a little bit about designing the date selection interface

Go! Or a little bit about designing the date selection interface  
 
The choice of dates (further, for simplicity, I will use the word calendar) on sites are used often. Booking of hotels, flights, cars, purchase of tickets. So jagged topic that it would not seem to be worth writing about it.
 
But not so long ago, I was faced with the task of designing a calendar of the choice of periods. The range of dates was varied from 2 days to several months.
 
Target audience is rather heterogeneous: age from 35 to 60 years, computer literacy from beginners to confident users.
 
The task: to make the most convenient format of the choice of dates, understandable to the target ...
+ 0 -

go-critic: the most stubborn Go Linter

go-critic: the most stubborn Go Linter
 
We are announcing a new linter for Go , which is also a sandbox for prototyping your ideas in the world of static analysis.
 
go-critic is constructed around the following observations:
 
 
It is better to have a "good enough" implementation of the test, than not having it at all
 
If the test is controversial, it does not mean that it can not be useful. Mark as "opinionated" and infuse
 
To write a linter from scratch is usually more difficult than adding a new check to the existing framework, if the framework itself is easy to understand
 
 
In this post, we'll look at the use and architecture ...
+ 0 -

Go contribution workshop in Russia

Go contribution workshop in Russia
 
For a long time we planned to send a patch to Go, but always postponed?
 
Faced with difficulties, did not know where to start?
 
In this article I will describe how we conducted the Go contribution workshop in Kazan,
 
about its results, as well as about the lessons that the organizers have learned.
 
Spoiler: It is planned to repeat this event when Go goes into the active development phase (exits the code freeze state). See the details under the cut.
GopherCon .
 
Someone comes to help others understand the work process, pick up the problem and solve it, then go through the review and, ideally...
+ 0 -