ユニファ開発者ブログ

ユニファ株式会社プロダクトデベロップメント本部メンバーによるブログです。

2022年のユニファ開発者ブログを振り返る!

この記事はユニファAdvent Calendar 2022の1日目の記事です

adventar.org

皆さんこんにちは!ユニファのエンジニアマネージャーの田渕です。

さて、今年も残りわずかとなり、Advent Calendarの季節がやって参りました。 ユニファ開発者ブログのAdvent Calendarは2019年に始まり、今年で4回目! ここまで続けて来られたのも、日々こちらを見に来て下さる皆さんや、執筆してくれるメンバーの皆さんがいてくれるおかげだと思います。 感謝感謝です。

昨年は

ユニファ開発チームの2021年を振り返る - ユニファ開発者ブログ

と言うことで一年間の活動の振り返りを書いた私ですが、今年はこの開発者ブログについて振り返ってみようと思います!

続きを読む

GraphQL on Rails

By Harvey Ico, backend engineer at Unifa.

Building your own API structure can be chaotic specially if you have a lot of endpoints, and maintaining documentations are troublesome. If you've been a backend engineer for a while now like me, you probably already tried to search "how to organize" your API routes, documentations, etc. And you probably saw GraphQL at some point.

GraphQL was developed internally by Facebook in 2012 before being publicly released in 2015. But what is it actually? Well, to put it simply, GraphQL is a query language for your API. How it works is that you will have a single API endpoint wherein you can pass query or mutation to get your desired outcome. I think what makes it really cool is that you can pass multiple queries or mutations at once. Hence, it became really popular on SPA (Single page application) websites when integrating their API, specially if you are using VueJS, React, etc.

But how do you even build or use it? Don't know where to start? Then you've come at the right place. Here, I'm going to guide you how to build your own GraphQL API using Ruby on Rails.

続きを読む

Visualizing Ruby tests coverage using Codecov

By Patryk Antkiewicz, backend engineer at Unifa.

Writing tests that check correctness of each piece of code that at the first glance might look obvious and absolutely bug-resistant is a tedious task that most developers don’t like. It might often feel like a waste of time, so it is easy to just ignore it and move on to implement the next feature. However such behavior can backfire at us at some very unexpected time, for example when a seemingly very small and safe code change deployed to production results with a crash in some other, so far perfectly working area of the application. For that reason, keeping high test coverage for source code is one of the key points for ensuring good quality of our software.

One of the goals of Unifa development department for this fiscal year is to introduce a test coverage visualization tool for all our projects, so I decided to take a look at one of the most popular products - Codecov in order to verify if it will work well with Ruby on Rails and if it can be easily integrated with Bitbucket, the CI/CD tool we mainly use.

続きを読む

これは普通で当たり前というけれど、全然普通じゃなかった件

随分も昔のとある開発現場にて、

「プロだったら普通に期間内に終わらすでしょ?」

「どうしてこんな普通の事わからないの?見てわかるよね?」

「そんな操作は普通の人はしない!」

「普通に使えるものを開発して欲しかった」

会議は普通という言葉が踊っていた

参加していたQAエンジニアは思う この現場の「普通」は狂ってる…っと…

なんか導入が他の皆さんと毛色が違う感じになってしまいました。

とあるユニファのQAエンジニアでぐちです。

続きを読む