Skip to content

Instantly share code, notes, and snippets.

@lazywithclass
Last active March 30, 2017 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazywithclass/49e204195f29c26fed9569132af5bdc4 to your computer and use it in GitHub Desktop.
Save lazywithclass/49e204195f29c26fed9569132af5bdc4 to your computer and use it in GitHub Desktop.
[RC Diary] Low energy (-62)

[RC Diary] Low energy (-62)

Cerebro

I started applying it to other projects, the current candidate is https://github.com/tj/co, it has close to 100% code coverage and uses mocha. I created an ad-hoc mutation for it (the old one didn't have any occurrence) and run it.

I've discovered yet another problem that I didn't think of: when a mutation is applied to a source file all occurrences are mutated at the same time, this is not what it should be doing. Mutations should be applied once at a time, so if for example I have the following code

const compare = (a, b) => a == b

if (var1 == var2) console.log('oh hai')

and a mutation that mutates something == somethingElse into true == true I need to produce two mutations:

const compare = (a, b) => true == true

if (var1 == var2) console.log('oh hai')
const compare = (a, b) => a == b

if (true == true) console.log('oh hai')

SICP study group bootstrap

Started an SICP study group.

Exercises + discussions + the day before I will watch videos. This is the book we will use while this is the playlist on youtube of the original lectures

Helping recurser

Worked through frontend -> backend concepts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment