What is the state of Falco? #90
Replies: 4 comments 2 replies
-
Hi Sean! Thank you so much for reaching out, and for all of the effort your clearly put in here. Let me being by saying how sorry I am. Amidst the final push a few weeks ago, I had something come up in my personal life that soaked up all of my spare time. I've done my best over the past few weeks to continue inching toward something I was happy with. My intention was to hold off the official release until both the migration doc and new tutorial were complete. But with several people reaching out now, including yourself, I don't feel like things can remain in this fractured state for any longer. As such, I decided to push the package before being done those two things To answer your questions:
I would love to see a database-oriented project as a sample. I am biased toward Donald, but EFCore is great as well! Thank you again for your patience and understanding. Most importantly for reaching out, instead of dismissing this project as "crap" just because the sole maintainer was torn away at an inopportune time. All the best, |
Beta Was this translation helpful? Give feedback.
-
Thanks for your patience again Sean. I appreciate you asking, and everything is a-ok, just a level of busy-ness I've never experienced before. Normally I can carve out an hour here or there during the week, and usually some larger stretches during the evenings and weekends. But it has just been impossible lately. I apologize on the injection patterns. I was toying with something and thought "I had it" a few times. But in practice hated it. Normally I apply a much tighter loop, but lately that's been more difficult. Now on to the fun stuff! With respect to the SourceLink stuff, I can't understand what's going on there. Everything was packed and shipped as it always is. I'll have to dig deeper into that. Maybe something to do with it being a type with only static members? Who knows. At this point, with the confusion it's caused and it tripping malware-checks. I have some regrets ::face palm::. I am the first to admit that the CPS-style handlers can only take you so far. Especially when it comes to async work. For the first async example, "new me" would try: let post: HttpHandler =
let next productId : HttpHandler = fun ctx -> task {
use db = ctx.GetService<ShopContext>()
let! a = BasketDomain.updateBasket db productId |> Async.StartAsTask
return Response.redirectPermanently $"/basket?added={a}" ctx
}
Request.mapForm (fun f -> f.TryGetGuid "id") next I often find when the complexity/nesting gets dialed up. It's time to switch into "expose" the Can't tell you how much I appreciate the interest and time invested here. Please do let me know how all of that works. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I'm new-ish to F# and using Falco to build a web app.
I'm a bit confused about a handful of things. I'm not trying to place any blame or cast any shame, I'm just hoping there's some simple answers 😀
HttpHandler
level in 3.x? In 4.x I useFalco.Services.inject
but in 3.x I cannot getwithServices
to compile the way it's used in the examples. It's like it's not even in the NuGet package.Services.inject
in Falco 4.x, VS Code takes me to the definition of theFalcoExtensions
type. I can see theinject
class in JustDecompile, but not in VS Code. It seems like something is messed up in the NuGet package?Services
module located in for Falco 4.x?If I was able to better orient myself in this project I might be able to help with the documentation or examples of some of the use-cases I've implemented (ex: using EFCore.FSharp w/ SQLite and Falco).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions