项目作者: dcamilleri

项目描述 :
Public code experiments 👋
高级语言: JavaScript
项目地址: git://github.com/dcamilleri/experiments.git
创建时间: 2017-03-08T16:05:38Z
项目社区:https://github.com/dcamilleri/experiments

开源协议:MIT License

下载


Hi there! I decided to make my daily code experiments public. It can be either testing a new famework, a new JavaScript feature or just challenging myself with algorithms.

⚠️ Disclaimer: ⚠️

Code may not always be clean or readable. Some things may not even work!
But that’s what experimenting is all about right ? :)

Experiments

1 – Re-doing the Just library

2 – Model Validator

3 – Object Flatten

4 – Flat Object Class

5 – Small Immutable Library

6 – Experimenting Jest Snapshots

Ideas 💡

Learn new languages

What I want to do:
Create a simple web app (server-side rendered), or just an API, using multiple languages.

Languages I would like to be better at:

  • ➡️ Java
  • ➡️ Python
  • ➡️ Go
  • ➡️ PHP

Languages I would like to discover:

  • ➡️ Elm
  • ➡️ Elixir/Erlang
  • ➡️ OCaml

Goals:
Learn new things. Explore new/old programming principles. Open my mind to something else than JavaScript 🙌

Implement snapshot testing for pure functions

Question I want to solve:
Can Jest snapshot testing be applied to pure functions ? Can it speed up our tests ?

Goals:
Play around with Jest and pure functions

Create a small tool to benchmark multiple functions together and analyze their performance

Question I want to solve:
I have two implementations of the same algorithm. How can I know which one is faster ? Also, how can I easily benchmark 1000 iterations of these two algorithms ?

Goals:
Improve node.js + benchmarking + tests skills

Experiment something with Proxies and Generators

Implement something with Web Workers

Question I want to solve:
How do Web Workers fit in a real-world app ? What problems can they solve ?

Goals:
Use and understand the Web Worker API. Also, benchmark performance with and without WWs.