avatar

KZK's blog

Lead engineer

Crucial Conversation

Chapter 1 🔗:::: anki 6365a6b2-7296-482f-af37-1164cb207054 What is a crucial conversation, one that has: high stakes, emotions and opposing opinions #Flashcard ::: Chapter 2 - Power of dialog 🔗::: anki 9cd0c219-28f1-448d-bea3-ad6b27051a24 Fool’s choice paradox you have only two options, tell the truth and make an enemy or suffer in silence #Flashcard ::: 👆 is a lie! Fill the pool of shared meaning People who are skilled at dialoge, do their best to make it safe for everyone to add meaning to the pool of shared meaning The pool of shared meaning is the birtplace of Sinergy

Radical Candor

Chapter 1 🔗Bosses guide a team to achieve results Guidance: or feedback -> often we don’t give good guidance cause we don’t know how the other will receive it (fear of being socially awkward, I am being to nice or too mean? ) Team Building: Figuring out right people for the right role (hiring, firing, promoting). And when the team is set… how to have them motivated. Results: Relationship, and no power, drive you forward

envsubst

if you find yourself doing something with sed to replace a file with some env variable… well there is a small tool that does it for you! cat file.txt | envsubst > file_with_subst.txt

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.