avatar

KZK's blog

Lead engineer

Referential transparency

means I can substitute variables, by their definition and the program is still the same. we can compare the following two programs const a = 2 const b = 3 cosnt sum = (a, b) => a + b const result = sum(a, b) and, if we substitute everything with the definition… const result = 2 + 3 and they are equivalent, in this case referential transparency exist, but what if the function has an effect?

ElasticSearch Dump

We are working in a migration from one ES to another, and for doing test is good to have some data from our staging environment. one way is to use elasticsearch-dump, which basically allow you to get all the data from elasticsearch and dump it or send it to another elasticsearch server! npm install -g elasticsearch-dump but with elasticsearch-dump you need to know what you want to dump… and who has the time to look around… but it turnsout this package has another binary that dumps everything, into a folder.

Book Never split the difference

Never split the difference 🔗chapter 1 - THE NEW RULES 🔗 the book is written by an FBI agent specialist in hostage crisis After time in FBI, decides to go to Harvard to deeply understand negotiation techniques In Harvard, they are using old techniques of negotiation, related getting to yes a book. These techniques, talk to the rational part of the mind. But the FBI got a series of failures, and started to study more emphatically approach.

Book Never split the difference

Never split the difference 🔗chapter 1 - THE NEW RULES 🔗 the book is written by an FBI agent specialist in hostage crisis After time in FBI, decides to go to Harvard to deeply understand negotiation techniques In Harvard, they are using old techniques of negotiation, related getting to yes a book. These techniques, talk to the rational part of the mind. But the FBI got a series of failures, and started to study more emphatically approach.

What the f is a monad

What is a functor 🔗Given that you have a normal function f that convert a type A to a type B f :: A -> B and some kind of wrapper, T. a functor have to be able to go from T[A] to T[B] given f :: A - > B. so basically it allows you to apply normal functions to wrapped objects. This operation is named map, is the lift operator.

Circuit break

When working on micro services, you do some remote calls as if they were in your code base. This has benefits, but if the service is not available, it can throw an error cascade in your service Circuit breaks is a way to mitigate this, the iddea is very simple, if a service is not available on a threshold, you open the circuit break. In the open circuit, you always execute a piece of code that doesn’t depend on the service.

TIL - Little's principle

Little’s principle 09-01-2021: #TIL 🔗:::anki 6c0898fd-7983-455a-987b-5d1b48de255a What is little’s principle? {{c1:: Is a theorem from queue system that says L => avg. Number of things in a queue lambda => avg. Rate of new items to the queue W => average time for processing the item $$L = lambda * W$$ You can think of it from the point of view of agile teams as well. L => how many in progress or WIP lambda => Avg time we get new things in progress W => avg time to get a task to done Lead Time }} #FlashCard ::: You can read more from https://kanbanzone.

Theia

What is theia IDE? is an online editor, for remote and desktop, quite similar to vscode

What is a data scientist

What is a data scientist? somebody who is a better developer than most statisticians, and somebody who is a better statisticians than most developers

Daily Draws

title: Draw 25-08-2020 date: 2020-08-25 00:00:00 title: Draw 24-08-2020 - Lightbulb doodle date: 2020-08-25 00:00:00 ![](./images/Ilustración_sin_título 3.png)`