MetOffice / MetOffice/forest-lite
Temperature user units, e.g. Fahrenheit/Celsius
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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