Logo Aleksandr Ulanov
Logo Inverted Logo
  • Posts
  • Real Time Ruby
  • Rails Service Objects
  • Introduction into Hotwire
  • Using Redis for Geospatial Data
Hero Image
Real Time Ruby: Websockets, SSE or Long Polling?

Since Web 2.0, the web has been moving towards a more interactive experience. In 2004 we got AJAX requests (a short for Asynchronous Javascript And XML). AJAX allowed us to make requests to the server and update pages w/out reloading. This changed the web and started the era of web applications. But AJAX is not real time feature, so there had to be something else to give us ability for pushing updates to the clients as soon as we got them.

January 12, 2023 Read
Hero Image
Using Rails Service Objects to Keep Code Clean

If you’re developing web apps using Ruby on Rails, you probably already know that Rails is an MVC (Model-View-Controller) framework, which means that you have your Models responsible for data, Views responsible for templates and Controllers responsible for requests handling. But the bigger your app gets, the more features it has - the more business logic you will have. And here comes the question, where do you put your business logic?

August 23, 2022 Read
Hero Image
Building Responsive Rails Apps with Hotwire

If you’re developing modern single page applications with Ruby on Rails, you’re most likely using some fancy JS framework for your UI to be updated nicely, without page reloads. And there is really not much you can do without using them, that’s kind of a standard these days… until Rails got Hotwire. With Hotwire you can get fast and responsive web application, but without writing ton of Javascript. Well, sounds great, but what is Hotwire?

July 24, 2022 Read
Hero Image
Using Redis for Geospatial Data

Working with geospatial data is notoriously difficult, because latitude and longitude are floating point numbers and should be very precise. In addition, it would seem that latitude and longitude can be represented as a grid, but in fact they can’t, simply because Earth is not flat and math is hard. For example, to determine the distance of a great circle between two points on a sphere, based on their latitude and longitude, the haversine formula is used, which looks like this:

July 19, 2022 Read
Navigation
  • About
  • Skills
  • Experiences
  • Recent Posts
Contact me:
  • dev.ualeks@gmail.com
  • +1(754)300-80-09

Toha Theme Logo Toha
© 2022 Copyright.
Powered by Hugo Logo