MetOffice / MetOffice/forest-lite

Temperature user units, e.g. Fahrenheit/Celsius

Open
#118 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

UI needed to allow user to convert in browser from Kelvin to Fahrenheit or Celsius

This can best be achieved using `Ramda` lenses, e.g.

```js
const KtoC = x => x - 273.15
over(lensProp("values"), KtoC)(obj)
```
Lenses are a nifty functional programming technique to reach inside a complex data structure to get/set values. A powerful usage of lenses is as a "virtual" getter/setter that can perform units translations on read/write.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the browser UI that displays Kelvin temperatures and trace how the displayed values are read and updated. Review the existing data structure before evaluating the proposed Ramda lens approach; done means users can select Fahrenheit or Celsius and values convert correctly in both directions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.