Тёмный

Computation Expressions Explained | Step-By-Step Tutorial | F# Functional Programming 

Ben Gobeil
Подписаться 2,2 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@lilbigdooter
@lilbigdooter 7 месяцев назад
Thank you so much! This really helped tie together all the important mechanics of CEs in a digestible way
@mohammadhadialiakbar4486
@mohammadhadialiakbar4486 3 года назад
another thing for applicative is when we use async if you use let! you execute sequentially but when you use and! they execute in parallel, this is so helpful
@bengobeil933
@bengobeil933 3 года назад
It is not defined by default, but yes you can define it.
@mohammadhadialiakbar4486
@mohammadhadialiakbar4486 3 года назад
@@bengobeil933 btw great work, keep posting
@sgnsajgon
@sgnsajgon 3 года назад
As a casual F# dev I have missed that F# 5.0 feature of Applicative syntax in CE. Thank you for pointing this out.
@FastFSharp
@FastFSharp 3 года назад
This is an awesome tutorial! I really appreciate you walking through how Computation Expressions work. Definitely the most difficult concept in F# for me.
@bengobeil933
@bengobeil933 3 года назад
Glad you enjoyed it!
@tennhard
@tennhard 2 года назад
This was highly informative! I really like that it was focused on a single language feature - albeit a very flexible one. I can see this coke in handy in tests, too, where you might want to alter input data one field at a time.
@TheJessejunior
@TheJessejunior 3 года назад
thaank you!! Finally and deep aproach to CE!!
@jkone27
@jkone27 2 года назад
Amazing tutorial
@XKS99
@XKS99 Год назад
Wow. A normal sounding person that understands Monads (I think).
@denisangelov4629
@denisangelov4629 3 года назад
Great job!
@YumanoidPontifex
@YumanoidPontifex 2 года назад
that's great. here i am always constructing my record types with a _.Empty or _.Default extension method, as a constructor (which is like your baseCar), and then i build new instances using the standard record syntax { Car.Default with ... }. but once your domain becomes too complex, with custom types nested within custom types nested within a custom type, i can see how this builder pattern would help me maintain my sanity, so i don't have to spell out all the: { Car.Default with { Engine.Default with { Pistons.Default with ... } } } yeah. that gets old soon...
@tanjimbinfaruk9145
@tanjimbinfaruk9145 3 года назад
Awesome video! Can you do a video on Giraffe? I found the documentation to be a bit terse. I would like a video explaining different handlers, context, workflows, how the fish operator works etc.
@Aphova
@Aphova 2 года назад
Gold dust!
@liviofelicella3763
@liviofelicella3763 3 года назад
what's the IDE you're using in this presentation?
@bengobeil933
@bengobeil933 3 года назад
Jetbrains Rider. Highly recommend.
@asdfgha
@asdfgha 3 года назад
Is it possible to declare the types in a functional way? Or do I have to write classes? Can you make an easy to understand course of translating f# OO in functional and vv?
@bengobeil933
@bengobeil933 3 года назад
It is functional, it’s pure. I understand the confusion, but just because we are using a class, that does not mean it is not functional. We are using the language features as intended in this video. Feel free to check out my video on Object programming (classes) and I talk about this dilemma
@asdfgha
@asdfgha 3 года назад
@@bengobeil933 well... My problem is, that I sadly learned f# as a first language and just now the regular type declaration. I just don't get the member-things. Is there another method to declare the types... Without the keyword member? I learned that this is more an oop style and not so much more. Isn't it sufficient to just say in the function declaration (fctn: int option) and if no, why?
@bengobeil933
@bengobeil933 3 года назад
I talk about the member keyword in the Class video I mentioned. It is not possible to do computation expressions without class types. Do not be afraid of them, they do not bite :)
@asdfgha
@asdfgha 3 года назад
@@bengobeil933 Daaaamnn... I looked it up on fs for fun and profit. Looks, like I have to grasp this -.-.
Далее
How Many Twins Can You Spot?
00:17
Просмотров 20 млн
Introduction to Monads in F#
39:59
Просмотров 7 тыс.
Fast F#: Intro to Tuples
16:44
Просмотров 1 тыс.
Fast F#: Intro to Functions Part 1
20:07
Просмотров 1,3 тыс.
F# for Performance-Critical Code, by Matthew Crews
1:03:23
Building React Applications in F#
31:09
Просмотров 12 тыс.
The Only Database Abstraction You Need | Prime Reacts
21:42
How Many Twins Can You Spot?
00:17
Просмотров 20 млн