Ljupcho Apostolov /data/devs/

Rust vs Golang

​

Yet another one rust vs go comparison, but I wanted to check for myself and have a bit of the rust dev experience. The idea is to create a simple endpoint and test it out with benchmark tools. Of-course rust would be better just wanted to have my first rust dev experience and let me tell you it took me a few weeks to get it running. The biggest problems developers have today is the ability to unlearn things that they considered to be solid and live by and learn new concepts. It seems to me it is hard to let go of things that took you a lot of time to learn and now that you have finally felt comfortable using the inheritance and design patterns with your classes and building concepts with them you would need to forget all of that. Simple things like DI, dependency injection that is more or less present in all languages and widely accepted might be troublesome to implement using Rust and even more trying to have the same code structure of handlers/controllers, services or repositories.


Continue reading...

Go Generics

​

The main idea about the generics is type safety so you won’t be getting runtime errors that might happen in case of not using them. Performance wise they have not improved and my testing will show that there is no difference. I will do the tests on golang 1.20 in two cases, once I will use type to interface and second scenario will be the same functionality using generics.


Continue reading...

Laravel(php) vs Django(python) vs Gin(golang)

​

The environment setup


Continue reading...

Interview Questions

​

In this post I would like to outline some of my experience as a technical interviewer with candidates and what I like to ask most of the cases. This won’t be me answering some interview questions that you can find with simple Google search, even though I don’t know why most candidates won’t look for them before showing up in an technical interview. I will try to answer my own concepts though.


Continue reading...

Lock The Services, part I

​

The task is to sync data both to application’s database and ElasticSearch Cache. Both clients sets value to database first then to ES.


Continue reading...