Part 2 - ZIO[_, _, Success] - Getting Started with

  Рет қаралды 10,147

DevInsideYou

DevInsideYou

Күн бұрын

Пікірлер: 28
@estebanmarin002
@estebanmarin002 3 жыл бұрын
Thanks for the video. I enjoy a lot the way you explain things. Coding alongside you and follow your train of thought while getting the same errors and trying to debug them first, has been the best training in Scala.
@dima4096x
@dima4096x 3 жыл бұрын
thanks, looking forward to the next episode.
@OverG88
@OverG88 3 жыл бұрын
You explained ZIO way better than anyone else I’ve heard before. Even better than its creator. The biggest point is the separation of description (all those data types) over execution (ZIO environment).
@DevInsideYou
@DevInsideYou 3 жыл бұрын
Oh wow. Thank you for your kind words! You know everyone learns differently. For some people my explanation is better, but for others this might not be the case.
@edetmmekut809
@edetmmekut809 3 жыл бұрын
second wow are rocking
@paolosaracino9368
@paolosaracino9368 3 жыл бұрын
Thank you very much for the video! Kudos!
@ulivss
@ulivss 3 жыл бұрын
So appealing!
@pimpMyPogo
@pimpMyPogo 2 жыл бұрын
Just watched today and followed along with Scala 3.1.1 and Zio 1.0.12. Got it to hang like you described.
@DevInsideYou
@DevInsideYou 2 жыл бұрын
It's not a bug though, it's because we ran it with `sync`.
@guidow9616
@guidow9616 2 жыл бұрын
Hey, this is a super video, I like it very much. Although I coded Scala from 2015 to 2019, used akka streams most of the time, I had problems wrapping my head around functional aspects, +A and -A is something I need to look up on some kind of spreadsheet nearly every time. I would say I am missing even more routine, but maybe I still haven't really understood it right. Having you build up a ZIO by hand makes me better understand what this thing really is and I already understood "side effect" vs "managed effect" with your videos and Thunk. I'm very grateful for that. Do you have more videos that could help me with summarizing all the functional basics? Also: Have you heard about Kotlin and ArrowKT? This is something I want to bring into my company because we are forced to use Kotlin and I am not allowed to switch to Scala, but still I miss the performance, the monad comprehensions and types like EITHER and other, which is something that ArrowKT brings into Kotlin, also it has "Arrow Effects", which is also based on IO. Do you think this is kind of similar?
@DevInsideYou
@DevInsideYou 2 жыл бұрын
Thank you for your kind words! About the FP basics. It's enough if you watch these: kzbin.info/www/bejne/o4DVXmioeamFpJI kzbin.info/aero/PLJGDHERh23x-9bxGrCbyX-tXJG99XczNC kzbin.info/aero/PLJGDHERh23x-3_T3Dua6Fwp4KlG0J25DI I heard about Kotlin and Arrow but I didn't check them out. From what I understand (which is almost nothing) Arrows are an alternative to Monads. I might check it out some day. Cheers and happy coding! :)
@koljamaier5039
@koljamaier5039 3 жыл бұрын
Hi Vlad, how are you doing today? Thanks for your video upload. While I understand the implementation of ourzio.ZIO (flatMap,...) Why is the concept of a thunk so important? Is it because of lazy evaluation? Did I miss something or is it this "simple" reason? Why didn't you just return azb(a) at minute 22:04 instead of wrapping everything in succeed - wouldn't that be more concise?
@DevInsideYou
@DevInsideYou 3 жыл бұрын
Hi, I'm doing good! Yes it's because of lazy evaluation to maintain referential transparency. You might wanna watch kzbin.info/www/bejne/o4DVXmioeamFpJI and maybe even kzbin.info/aero/PLJGDHERh23x-9bxGrCbyX-tXJG99XczNC Cheers :)
@alwins0n
@alwins0n 3 жыл бұрын
Think of it this way: if you don't, part of your program already starts to run instead of again returning a program description to be run by the interpreter. That is because the flatmap materializes the "a" on being called if it would not return a delayed or supspended operation itself
@serufim
@serufim 2 жыл бұрын
wtf what console.putStrLn and getting Not found: console and there is no any import in code
@DevInsideYou
@DevInsideYou 2 жыл бұрын
Hey, did you solve it?
@loplop3391
@loplop3391 Жыл бұрын
18:38
@thedownwardmachine
@thedownwardmachine 3 жыл бұрын
If you're anything like me, you didn't buy those Bitcoins ten years ago because you were busy trying to get those hyphens right.
@eklok5000
@eklok5000 3 жыл бұрын
First
@DevInsideYou
@DevInsideYou 3 жыл бұрын
Hahaha, you are also the first to ever do this on any of my videos. Congrats ;)
3 жыл бұрын
Gosh I need to look at Scala3 before jumping here, because already having indentation instead of brackets is making lose my mind. GOSH I HATE THIS
@DevInsideYou
@DevInsideYou 3 жыл бұрын
I hated it as well before I tried it. Now I love it.
3 жыл бұрын
@@DevInsideYou That's my main reason why I hate python
@DevInsideYou
@DevInsideYou 3 жыл бұрын
It's a totally different game when the compiler has your back.
3 жыл бұрын
@@DevInsideYou REEEEEEEEEEE
@avpmk
@avpmk Жыл бұрын
22:08 Почему сразу не могли вернуть zb не вызывая thunk на нём и не оборачивая потом это в succeed?
@DevInsideYou
@DevInsideYou Жыл бұрын
Very good question. In order to calculate zb we need to call unsafeRun and we are only allowed to do that inside of a suspended block of code. Otherwise it would have been too early.
@avpmk
@avpmk Жыл бұрын
@@DevInsideYou Спасибо! Достаточно очевидно, мог бы и сам догадаться. Видимо пора уже ложиться спать =)
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
John De Goes - 12 Steps To Better Scala (Part I)
1:04:20
RISK IDENT
Рет қаралды 20 М.
The Best Scala Libraries I Use in Every Project
17:11
DevInsideYou
Рет қаралды 6 М.
Scala with ZIO: Introduction to Fibers
29:27
Rock the JVM
Рет қаралды 11 М.
Real 10x Programmers Are SLOW To Write Code
14:51
Thriving Technologist
Рет қаралды 71 М.
Linus On LLMs For Coding
17:06
ThePrimeTime
Рет қаралды 309 М.
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
John A. De Goes at #ScalaUA - Thinking Functionally
51:36
ScalaUA Conference
Рет қаралды 19 М.
ZIO from Scratch - Part 1
1:26:01
Ziverge
Рет қаралды 11 М.
ZIO WORLD - ZLayer by Kit Langton
34:23
Ziverge
Рет қаралды 5 М.
Getting started with ZIO
1:39:30
Ziverge
Рет қаралды 12 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН