Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibrahimcesar/ts-math
TypeScript Fun ! ctions Simple Math
https://github.com/ibrahimcesar/ts-math
clean-code coverage-report desafio mocha nyc rocketseat showmethecode testing typescript
Last synced: about 1 month ago
JSON representation
TypeScript Fun ! ctions Simple Math
- Host: GitHub
- URL: https://github.com/ibrahimcesar/ts-math
- Owner: ibrahimcesar
- License: mit
- Created: 2022-02-18T10:20:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T22:40:06.000Z (almost 2 years ago)
- Last Synced: 2024-09-30T18:22:27.726Z (about 2 months ago)
- Topics: clean-code, coverage-report, desafio, mocha, nyc, rocketseat, showmethecode, testing, typescript
- Language: TypeScript
- Homepage:
- Size: 8.9 MB
- Stars: 23
- Watchers: 3
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![Math](/_repo/woman-teacher_1f469-200d-1f3eb.png)
![Math](/_repo/man-teacher_1f468-200d-1f3eb.png)# TypeScript Fun
> _... ctions with "Simple" Math_
## Up and running
```bash
npm install
npm i # se quiser economizar 200 nanosegundosyarn # se for do time Yarn
```## Bad, bad code
```bash
/src/math.ts
```WHATACODE!
## Errors, errors...
![Run Test](/_repo/run_test.gif)
```bash
npm run test
npm testyarn test
```Find the errors. Fix.
## Something wrong doesn't seem right...
![Run Test:Coverage](/_repo/run_test-coverage.gif)
```bash
npm run test:coverageyarn test:coverage
```You can also check in your browser a report saved at `./coverage/index.html`:
![Coverage Report](/_repo/test-coverage-report.gif)
## Challenges
> “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”
>
> ― Martin Fowler- [ ] Clean the code!
- [ ] Make tests go green!
- [ ] Open a PR!## The book is on the screen
Inglês faz parte da síntaxe de nossas linguagens. É sempre bom exercitar a linguagem para ter acesso a mais conteúdo e participar das comunidades online. Invista em aprender tanto esta linguagem natural quanto linguagens de marcação e programação!
## Show me the Code
[![Episódio 4: Team Dynamics](/_repo/showmethecode.jpg)](https://www.youtube.com/watch?v=wmlMag5YTrY&t=300s)
Desafio do quarto episódio sobre _Clean Code_ do [**Show me the code**](https://lp.rocketseat.com.br/inscricao/showmethecode), o único reality show educativo no universo da programação, que vai revelar os elementos de um ambiente de alto nível, para que você possa usar isso na sua carreira. Criado pela [RocketSeat](https://www.rocketseat.com.br/)!
## MIT License
Copyright (c) 2022 [Ibrahim Cesar](https://ibrahimcesar.cloud)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.