Golang for Rubyists. Part 5. How to start applying Golang to AWS Lambda

In the company I work for, we recently started using Golang for lambda functions development, to replace domination of Node.js ones and with a hope of getting better performance and development speed. I can just say that so far things run smoothly, and I will have a more thorough post about lambdas development on Go on the company blog. And here I will help you get started with it, create your first function and deploy it to the cloud.
Continue reading

Golang for Rubyists. Part 2. Go type system

Hello, my dear Golang newcomers. I feel so excited when I start writing this post! This is because I learn in the meantime. If when I’m writing about Ruby or JS I’m mostly describing my experience, probably with some additions of new findings I’ve got during the preparation, however in this particular case I’m learning together with you.
And today’s post will be about types and logical structures of Go. Let’s start!
Continue reading

Golang for Rubyists. Part 1. Go 1.10 OSX installation and getting started

Hey folks, I’m starting getting my feet wet with Golang and plan to document the process so it would be easy for me to recall it in the future and probably useful for some of you as well!
In this first post, I will cover some basic things like what Golang is for, how to install it and how to write and run your first program.
Continue reading

JS on Backend in 2018. Tutorial. Part 3. Relationships and Sequelize ORM tuning.

Hello, my dear, today we will dive deeper into the abyss of ORM configuration.

We will add one more resource, set a relationship between this one and the one we already had after this post¬†and will cover some useful tuning options. Spoiler: we will even change a bit the old one. So, fasten your seatbelts, let’s start!

Continue reading

JS on Backend in 2018. Tutorial. Part 2. Adding a database and Sequelize ORM.

After the previous post, our application server works, can receive requests and even return some kind of responses, which is already great and you can go into production with it! But probably it would make sense to add some more functionality to it. And in this post, we will integrate a database and implement a RESTful API.

Continue reading

Developing a database. Part 1. Why may you need indexes and how does Hash index work.

I plan to write a series of posts about databases internals. In order to make it easily perceivable, I’ll be writing a NoSQL DB from scratch in Ruby. No doubts that it’s not the best fit for database development, but it’s extremely readable and will help us a lot. This one will be about why may you want to have an index and what is a Hash index.

UPD. I decided to not continue this series because it takes too much effort to investigate deep enough to explain, but it had got much fewer views and likes than more applicable ones. Probably will return to this topic once, but not now.
Continue reading