Welcome to the blog section of PHP programmist Sergey Emelyanov

In this section you will find useful information regarding programming with Vtiger CRM and Laravel.

Showed blogs by tag: Golang

Blog of private php programmist Sergey Emelyanov

I like to write how I solved certain difficulties and share interesting features with the developer community. Here you will find solutions to various tasks in Vtiger CRM and Laravel. If you have any questions - ask!

Golang - functional options pattern
Golang

Golang - functional options pattern

In the previous article we discussed the Builder pattern. There we noticed a drawback that we can't perform validation when assigning parameters. As a result, we are deprived of the ability to build a chain of methods. Let's look at another more interesting pattern - Functional options. There are different implementations with slight differences, but the basic idea is as follows

Golang - applying Builder pattern in CRM development.
Golang

Golang - applying Builder pattern in CRM development.

When we design API modules, one question may arise: how will the logic of working with optional parameters of our struct be organized? Effectively solving this problem can significantly increase the usability of our API. In this article I will give a concrete example from my practice in CRM development and how the Builder pattern helped me in this issue.

Interfaces in Go: creating "pure" types
Golang

Interfaces in Go: creating "pure" types

Interfaces are an important element of statically typed languages for writing functions with different input values. Here I will try to give an overview of how this feature is implemented in Go and how it affects the code. The most important basics and syntax are followed by a more detailed look at the idiomatic use of interfaces. Special attention is given to how dependencies in code can be avoided or how developers can reduce them. After all, this is one of the most important properties of interfaces.

On the subject of error handling in Go
Golang

On the subject of error handling in Go

One of the strangest things Go developers can do is to use a specific error type rather than an interface as the return type of a function. If you do, remember this is a very bad idea with unpredictable results.

Generics in Golang: refactoring example
Golang

Generics in Golang: refactoring example

Generics is a way of writing code that does not depend on the specific types used. Functions and types can now be written for any set of types. With generics, three important functionalities are added to the language:

Why did I start programming in Golang?
Golang

Why did I start programming in Golang?

According to Wikipedia, Go (or Golang) is a programming language that was developed by the Google team and first appeared in 2009. It was designed specifically for backend development and infrastructure projects. Go is an open source programming language that enables the production of simple, efficient, and scalable software.

Scripts for Conky in Golang for getting exchange rates and fortunes
Golang

Scripts for Conky in Golang for getting exchange rates and fortunes

At work and at home, I use the Linux operating system exclusively. But what kind of workplace can be without widgets on the desktop? So I decided to install and configure Conky. The application seemed very useful, but something was missing. Why not to add current exchange rates there and display fortunes? For these purposes, I decided to write a script. And since we are talking about a console application, everything was done on GO.

Popular Posts

My most popular posts

Maximum productivity on remote job
Business

Maximum productivity on remote job

I started my own business and intentionally did my best to work from anywhere in the world. Sometimes I sit with my office with a large 27-inch monitor in my apartment in Cheboksary. Sometimes I’m in the office or in some cafe in another city.

Hello! I am Sergey Emelyanov and I am hardworker
Business PHP

Hello! I am Sergey Emelyanov and I am hardworker

I am a programmer. I am an entrepreneur in my heart. I started making money from the age of 11, in the harsh 90s, handing over glassware to a local store and exchanging it for sweets. I earned so much that was enough for various snacks.

How to set higher priority for Yes
Business

How to set higher priority for Yes

I see how many bloggers write about how important it is to say "No" and then often see comments such as "Excellent", "It is very important to set priorities correctly." An interesting point for me is that when someone writes that he learns to say no, this means that he already knows how to say yes.

Latest News

Developed an interesting application for learning foreign words using flashcards. You can download it for free, deploy it on your server and use it. Made with Laravel + Vue.js. Create your own vocabulary list or import list of popular words. Learn words anytime, anywhere. You can watch a video by clicking on image

Hire Professional CRM developer for $25 per hour

I will make time for your project. Knowledge of Vtiger CRM, SuiteCRM, Laravel, and Vue.js. I offer cooperation options that will help you take advantage of external experience, optimize costs and reduce risks. Full transparency of all stages of work and accounting for time costs. Pay only development working hours after accepting the task. Accept PayPal and Payoneer payment systems. How to hire professional developer? Just fill in the form

I usually get a call back within a few hours. But if I have a heavy workload, I may call you back the next day. So please be patient. Or if you have an urgent question, you can call me directly. I will do my best to help you.

Or just call: +79876757777

Telegram: @sergeyem