Monday, May 16, 2022

Error converting content: marked is not a function

- Monday
- Word of the day
- Double-whammy
- TODO connect with matt alioto on smb
  :LOGBOOK:
  CLOCK: [2022-05-17 Tue 15:21:49]--[2022-05-17 Tue 15:21:50] =>  00:00:01
  :END:
- 10:30 #morningPages
- Happy Monday. Writing this on phone. That‘s good. Have my coffee and all so I’m out of bed before you judge me :).
- Eight Sleep Daily Stats stats
  - Sleeping for: 7h
  - HRV: 25
  - HR: 69
- TODO Need to turn this into a template
-
- 17:00
- Kickstarting nestjs (jokr bff) and Docker setup today. For real :). It seems I get motivation once I get over the emotional roadblocks. Speaking with @Sven G about my app server plan helped me get past that roadblock.
- This is nice Block Reference
- Kafka local development setup is a nightmare. Apparently I need kafka, zookeeper and maybe a web ui to
- title:: @/Pari Kadam
- I’m also reminded of the greatest movie night I ever had back in Mumbai when I watched 2 movies back to back, with no context and no expectations- Momento and Requiem for a dream. Imagine finding your 2 of your lifetime favorite movies all in the same night.
- Ok, time for some nestjs notes:
- Using a path prefix in a @Controller() decorator allows us to easily group a set of related routes, and minimize repetitive code. Same as Spring Boot. Hah. Lovely.
- Hybrid Microservice: A hybrid application is one that both listens for HTTP requests, as well as makes use of connected microservices.
- Learned a new concept - Cold Observable
- Damn! Overall I am blown away! This is spring boot on boot cubed. The simplicity and expressiveness of typescript and the capability of this framework.. just wow! I do worry how junior would ever understand what happends under the hood... but guess what.. did I ever look spring boot under the hood? I did not. But you gotta grok principals and distributed systems patterns. Which I think devs do get it. NestJS if FIRE. I developed three microservices communication via REST/HTTP and event driven TCP connects. Amazing. [tutorial link](https://www.youtube.com/watch?v=F_oOtaxb0L8)
- TODO read this https://levelup.gitconnected.com/nestjs-microservices-with-grpc-api-gateway-and-authentication-part-1-2-650009c03686
- - #Tech Came across this line ` private readonly users: any[] = [];`.
- Typescript What's the difference between const and readonly? #stackoverflow
  - So they effectively both do the same thing, but one is for variables and the other is for properties (inside class, interface, types).
  - In TypeScript, the const keyword cannot be used to declare class properties. Doing so causes the compiler to an error with "A class member cannot have the 'const' keyword."
  - Since read-only members cannot be changed outside the class, they either need to be initialized at declaration or initialized inside the class constructor.
	-