PayReview2 open jobs

Ruby on Rails Developer

BackendPosted over 2 months agovia Himalayas, a remote job board

Work type
RemoteIn India
Experience
2+ years
Pay
Not listedUsually ₹6.2 LPABackend, median at 1–4 years, in India (Payscale)
Posted
Over 2 months agoOpen 2 months
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Ruby on Rails, Ruby, React and 5 more

About the job

You have

•Strong hands on experience of 2 years on Ruby on Rails, React, MySQL / Postgres, Redis, Sidekiq

•Proficiency in CS concepts such as Data Structures, Algorithms and OOPS

•Good understanding of web technologies such as Javascript, React, HTML5, CSS is required

•Hands on experience in improvising database queries and server responses

•Identifying and fixing bottlenecks, API`s and bugs

Nice if you have

•Problem solver, focused to drive results, hardworking while brining smartness have ability to work under pressure

•Enthusiasm for emerging technologies and methods

Bachelor in Computer Science

We are Emerging HR Tech Startups of India, refer the below links for latest news

PayReview was born with the sole intent of enabling companies to generate insights and automates the compensation review & increment process.

Our founding team observed that thousands of companies across the world were still spending hundreds of man-hours each year in managing & controlling compensation management using the traditional paper and pen approach, at most excel. This manual approach seldom yielded desired results and resulted in inconsistent and misaligned activities, inefficiency and arbitrary compensation decisions. The meticulous processes not only lead to inefficient cost allocation but results in serious talent attraction and retention challenges

They realized a need to conceive an inbuilt intelligence and automation solution that will work as an agent of change and help in revolutionizing the HR Industry.

So this led to the development of simple, scalable and robust compensation and salary management for small and medium enterprises. A product that is developed with the latest technology will bring the much-needed efficiency to the compensation process without costing a fortune. A solution that will not only improve the efficiency of the HR function but also enhance the talent strategy and corporate margins.

Originally posted on Himalayas

Interested?Ruby on Rails Developer at PayReview

Apply on Himalayas (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Ruby on Rails, Ruby, React and 5 more

Interview questions for this job

For the skills the ad mentions: Ruby on Rails, Ruby, React, HTML and CSS, MySQL, PostgreSQL, Redis and JavaScript.

1,070 questions
  • In Ruby on Rails, what's the difference between DateTime, Timestamp, Time and Date?Ruby on Rails

    The difference between different date/time formats in ActiveRecord has little to do with Rails and everything to do with whatever database you're using.

    Using MySQL as an example (if for no other reason because it's most popular), you have DATE, DATETIME, TIME and TIMESTAMP column data types; just as you have CHAR, VARCHAR, FLOAT and INTEGER.

    So, you ask, what's the difference? Well, some of them are self-explanatory. DATE only stores a date, TIME only stores a time of day, while DATETIME stores both.

    The difference between DATETIME and TIMESTAMP is a bit more subtle: DATETIME is formatted as YYYY-MM-DD HH:MM:SS. Valid ranges go from the year 1000 to the year 9999 (and everything in between. While TIMESTAMP looks similar when you fetch it from the database, it's really a just a front for a unix timestamp. Its valid range goes from 1970 to 2038. The difference here, aside from the various built-in functions within the database engine, is storage space. Because DATETIME stores every digit in the year, month day, hour, minute and second, it uses up a total of 8 bytes. As TIMESTAMP only stores the number of seconds since 1970-01-01, it uses 4 bytes.

    You can read more about the differences between time formats in MySQL here.

    In the end, it comes down to what you need your date/time column to do:

    • Do you need to store dates and times before 1970 or after 2038? => Use DATETIME.
    • Do you need to worry about database size and you're within that timerange? => Use TIMESTAMP.
    • Do you only need to store a date? => Use DATE.
    • Do you only need to store a time? => Use TIME.

    Having said all of this, Rails actually makes some of these decisions for you. Both :timestamp and :datetime will default to DATETIME, while :date and :time corresponds to DATE and TIME, respectively.

    This means that within Rails, you only have to decide whether you need to store date, time or both.

    From Stack Overflow: asked by may, answered by vonconrad (CC BY-SA 4.0)

  • Difference between rake db:migrate db:reset and db:schema:loadRuby
    • db:migrate runs (single) migrations that have not run yet.

    • db:create creates the database

    • db:drop deletes the database

    • db:schema:load creates tables and columns within the existing database following schema.rb. This will delete existing data.

    • db:setup does db:create, db:schema:load, db:seed

    • db:reset does db:drop, db:setup

    • db:migrate:reset does db:drop, db:create, db:migrate

    Typically, you would use db:migrate after having made changes to the schema via new migration files (this makes sense only if there is already data in the database). db:schema:load is used when you setup a new instance of your app.

    For rails 3.2.12:

    I just checked the source and the dependencies are like this now:

    • db:create creates the database for the current env

    • db:create:all creates the databases for all envs

    • db:drop drops the database for the current env

    • db:drop:all drops the databases for all envs

    • db:migrate runs migrations for the current env that have not run yet

    • db:migrate:up runs one specific migration

    • db:migrate:down rolls back one specific migration

    • db:migrate:status shows current migration status

    • db:rollback rolls back the last migration

    • db:forward advances the current schema version to the next one

    • db:seed (only) runs the db/seed.rb file

    • db:schema:load loads the schema into the current env's database

    • db:schema:dump dumps the current env's schema (and seems to create the db as well)

    • db:setup runs db:create db:schema:load db:seed

    • db:reset runs db:drop db:setup

    • db:migrate:redo runs (db:migrate:down db:migrate:up) or (db:rollback db:migrate) depending on the specified migration

    • db:migrate:reset runs db:drop db:create db:migrate

    For further information please have a look at https://github.com/rails/rails/blob/v3.2.12/activerecord/lib/active_record/railties/databases.rake (for Rails 3.2.x) and https://github.com/rails/rails/blob/v4.0.5/activerecord/lib/active_record/railties/databases.rake (for Rails 4.0.x)

    From Stack Overflow: asked by Gaurav Agarwal, answered by moritz (CC BY-SA 4.0)

  • What are the advantages of using React?React
    • It is easy to know how a component is rendered, you just need to look at the render function.
    • JSX makes it easy to read the code of your components. It is also really easy to see the layout, or how components are plugged/combined with each other.
    • You can render React on the server-side. This improves SEO and performance.
    • You can use React with any framework you wish as it is only a view layer.
    • It is easy to test.

    From React Interview Questions (MIT)

  • Why is it generally a good idea to position CSS <link>s between <head></head> and JS <script>s just before </body>? Do you know any exceptions?HTML and CSS

    Placing <link>s in the <head>

    Putting <link>s in the <head> is part of proper specification in building an optimized website. When a page first loads, HTML and CSS are being parsed simultaneously; HTML creates the DOM (Document Object Model) and CSS creates the CSSOM (CSS Object Model). Both are needed to create the visuals in a website, allowing for a quick "first meaningful paint" timing. This progressive rendering is a category optimization sites are measured in their performance scores. Putting stylesheets near the bottom of the document is what prohibits progressive rendering in many browsers. Some browsers block rendering to avoid having to repaint elements of the page if their styles change. The user is then stuck viewing a blank white page. Other times there can be flashes of unstyled content (FOUC), which show a webpage with no styling applied.

    Placing <script>s just before </body>

    <script> tags block HTML parsing while they are being downloaded and executed which can slow down your page. Placing the scripts at the bottom will allow the HTML to be parsed and displayed to the user first.

    An exception for positioning of <script>s at the bottom is when your script contains document.write(), but these days it's not a good practice to use document.write(). Also, placing <script>s at the bottom means that the browser cannot start downloading the scripts until the entire document is parsed. This ensures your code that needs to manipulate DOM elements will not throw an error and halt the entire script. If you need to put <script>s in the <head>, use the defer attribute, which will achieve the same effect of running the script only after the HTML is parsed but the browser can download the script earlier.

    Keep in mind that putting scripts just before the closing </body> tag will create the illusion that the page loads faster on an empty cache (since the scripts won't block downloading the rest of the document). However, if you have some code you want to run during page load, it will only start executing after the entire page has loaded. If you put those scripts in the <head> tag, they would start executing before - so on a primed cache the page would actually appear to load faster.

    <head> and <body> tags are now optional

    As per the HTML5 specification, certain HTML tags like <head> and <body> are optional. Google's style guide even recommends removing them to save bytes. However, this practice is still not widely adopted and the performance gain is likely to be minimal and for most sites it's not likely going to matter.

    From Front End Interview Handbook (MIT)

  • "INSERT IGNORE" vs "INSERT ... ON DUPLICATE KEY UPDATE"MySQL

    I would recommend using INSERT...ON DUPLICATE KEY UPDATE.

    If you use INSERT IGNORE, then the row won't actually be inserted if it results in a duplicate key. But the statement won't generate an error. It generates a warning instead. These cases include:

    • Inserting a duplicate key in columns with PRIMARY KEY or UNIQUE constraints.
    • Inserting a NULL into a column with a NOT NULL constraint.
    • Inserting a row to a partitioned table, but the values you insert don't map to a partition.

    If you use REPLACE, MySQL actually does a DELETE followed by an INSERT internally, which has some unexpected side effects:

    • A new auto-increment ID is allocated.
    • Dependent rows with foreign keys may be deleted (if you use cascading foreign keys) or else prevent the REPLACE.
    • Triggers that fire on DELETE are executed unnecessarily.
    • Side effects are propagated to replicas too.

    correction: both REPLACE and INSERT...ON DUPLICATE KEY UPDATE are non-standard, proprietary inventions specific to MySQL. ANSI SQL 2003 defines a MERGE statement that can solve the same need (and more). MySQL does not support the MERGE statement, even though this feature has been requested since 2005.

    A user tried to edit this post (the edit was rejected by moderators). The edit tried to add a claim that INSERT...ON DUPLICATE KEY UPDATE causes a new auto-increment id to be allocated. It's true that the new id is generated, but it is not used in the changed row.

    See demonstration below, tested with Percona Server 5.5.28. The configuration variable innodb_autoinc_lock_mode=1 (the default):

    mysql> create table foo (id serial primary key, u int, unique key (u));
    mysql> insert into foo (u) values (10);
    mysql> select * from foo;
    +----+------+
    | id | u    |
    +----+------+
    |  1 |   10 |
    +----+------+
    mysql> show create table foo\G
    CREATE TABLE `foo` (
      `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
      `u` int(11) DEFAULT NULL,
      PRIMARY KEY (`id`),
      UNIQUE KEY `u` (`u`)
    ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1
    mysql> insert into foo (u) values (10) on duplicate key update u = 20;
    mysql> select * from foo;
    +----+------+
    | id | u    |
    +----+------+
    |  1 |   20 |
    +----+------+
    mysql> show create table foo\G
    CREATE TABLE `foo` (
      `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
      `u` int(11) DEFAULT NULL,
      PRIMARY KEY (`id`),
      UNIQUE KEY `u` (`u`)
    ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1
    

    The above demonstrates that the IODKU statement detects the duplicate, and invokes the update to change the value of u. Note the AUTO_INCREMENT=3 indicates an id was generated, but not used in the row.

    Whereas REPLACE does delete the original row and inserts a new row, generating and storing a new auto-increment id:

    mysql> select * from foo;
    +----+------+
    | id | u    |
    +----+------+
    |  1 |   20 |
    +----+------+
    mysql> replace into foo (u) values (20);
    mysql> select * from foo;
    +----+------+
    | id | u    |
    +----+------+
    |  3 |   20 |
    +----+------+
    

    From Stack Overflow: asked by Thomas G Henry LLC, answered by Bill Karwin (CC BY-SA 4.0)

  • What is the STAR method, and how do you use it to answer?Behavioural

    Use the STAR method to prepare for interviews and to show your skills and experience on a CV or application form.

    What STAR stands for

    • Situation - the situation you had to deal with
    • Task - the task you were given to do
    • Action - the action you took
    • Result - what happened as a result of your action and what you learned from the experience

    When to use STAR

    You can use the STAR method in your:

    How to use STAR

    You can use the STAR method to structure the examples you give to questions, especially in interviews.

    A job description lists the skills and qualities the employer is looking for. You can use the STAR method to show how you meet these. 

    It can help to look at common interview questions when preparing.

    When using STAR, remember to:

    • use examples that work for you - these could be from work, home or volunteering
    • keep examples short and to the point
    • try to get your points across in a conversational way so as not to appear too rehearsed
    • be prepared to answer follow-up questions about the examples you give

    Example 1 - leadership skills

    Tell me about a time when you have shown leadership skills.

    Situation - in my previous digital marketing job, the company wanted to get more people to sign up to a newsletter which was not receiving a lot of attention.

    Task - my job was to find a way of getting more people to sign up.

    Action - I organised a meeting with other members of the marketing team to come up with creative ideas, and I led the social media campaign to generate interest in the revamped newsletter.

    Result - over a period of 3 months, there was an 25% increase in sign-ups to the newsletter and the approach I took was used by the management team in other departments.

    Example 2 - teamwork

    Tell me about a time you have worked as part of a team?

    Situation - when I was at school, I was part of the netball team. We needed to raise funds to buy more equipment for the team.

    Task - my job was to work with the rest of the team to set up a bake sale to raise money.

    Action - I took the lead and found out who wanted to help with the bake sale. I then held a meeting so we could work out dates and what tasks each person would do. I made sure that we were all clear what our role was and everyone who wanted to, got a chance to get involved.

    Result - the bake sale was a success due to the team all pulling together. We raised £200 and were able to buy new equipment for the netball team.

    Example 3 - problem solving

    Give me an example of when you faced a problem at work. How did you handle it?

    Read the rest at the sourceFrom National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Backend developer jobs in India (880) and Remote Backend developer jobs in India (305)