---
title: "Sinn Meas (@Sinn) | Hashnode"
description: "A web developer in Ruby on Rails and React. Read the latest articles by Sinn Meas on Hashnode."
url: "https://hashnode.com/@Sinn"
---

@Sinn

# Sinn Meas

@Sinn · Siem Reap, Cambodia · Joined March 2023

A web developer in Ruby on Rails and React

### [Ruby itself](https://sinn.hashnode.dev/ruby-itself?utm_source=hashnode&utm_medium=feed)

It’s interesting to discover that Ruby has an instance method itself for the object. It returns the receiver itself—whatever the kind of receiver is. Let’s see a few examples: website = "Hashnode" # => "Hashnode" website.itself # => "Hashnode" websi...

1 min read · [sinn.hashnode.dev](https://sinn.hashnode.dev/ruby-itself?utm_source=hashnode&utm_medium=feed)

[Jan 25, 2025](https://hashnode.com/posts/ruby-itself/6794b5c1a787a16fc0c87277)

### [Rails 7 with Font Awesome](https://sinn.hashnode.dev/rails-7-with-font-awesome?utm_source=hashnode&utm_medium=feed)

Font Awesome has always been my favorite icon library for React and Rails projects. It is surely easy to use and makes the user interface much more friendly. I find enough free icons that Font Awesome offers but you can consider the Pro version in ca...

2 min read · [sinn.hashnode.dev](https://sinn.hashnode.dev/rails-7-with-font-awesome?utm_source=hashnode&utm_medium=feed)

[Dec 2, 2024](https://hashnode.com/posts/rails-7-with-font-awesome/674de14584e1923cd5be2e1c)

### [Calculate age from a date of birth in moment javascript](https://sinn.hashnode.dev/calculate-age-from-a-date-of-birth-in-moment-javascript?utm_source=hashnode&utm_medium=feed)

Previously, I wrote about calculating age from a date of birth in Rails. And, now let’s do it in javascript using moment. import moment from 'moment'; export const getAge = (dob: string) => { const parsedDob = moment(dob); if (!parsedDob.isVali...

1 min read · [sinn.hashnode.dev](https://sinn.hashnode.dev/calculate-age-from-a-date-of-birth-in-moment-javascript?utm_source=hashnode&utm_medium=feed)

[Nov 22, 2024](https://hashnode.com/posts/calculate-age-from-a-date-of-birth-in-moment-javascript/674054411128fce4feabc301)

### [Using Rails Active Record CallBack after\_commit in Service Object](https://sinn.hashnode.dev/using-rails-active-record-callback-aftercommit-in-service-object?utm_source=hashnode&utm_medium=feed)

There are many available Active Record CallBacks in Ruby on Rails that we can use to do particular tasks when an object is created, saved, updated, deleted, validated, or loaded from the database. In addition to callbacks related to the object life c...

2 min read · [sinn.hashnode.dev](https://sinn.hashnode.dev/using-rails-active-record-callback-aftercommit-in-service-object?utm_source=hashnode&utm_medium=feed)

[Oct 13, 2024](https://hashnode.com/posts/using-rails-active-record-callback-aftercommit-in-service-object/670b4f05c4bfa3db0656a1cd)

### [Rails uniqueness validations of nil value](https://sinn.hashnode.dev/rails-uniqueness-validations-of-nil-value?utm_source=hashnode&utm_medium=feed)

When you happen to check if the attribute's value is unique before it is saved, you can use active record validation helper uniqueness. class User < ApplicationRecord validates :mobile\_number, uniqueness: true end What if mobile\_number is allowed ...

1 min read · [sinn.hashnode.dev](https://sinn.hashnode.dev/rails-uniqueness-validations-of-nil-value?utm_source=hashnode&utm_medium=feed)

[May 14, 2024](https://hashnode.com/posts/rails-uniqueness-validations-of-nil-value/6642e2641abf995f7a3a87d3)
