454 karma · joined Dec 9, 2019 (6y ago) · 204 submissions
comment 7mo ago · link · parent
One thing I miss here (and admittedly I only skimmed through the post so if I missed this, please do correct me) is "ad hoc" unions.
It would be great to be able to do something like
public Union<TypeA, TypeB> GetThing()...
Without having to declare the union first. Basically OneOf<...> but built-in and more integrated5.
Show HN: A .NET Web Framework on the Base .NET Core SDK(github.com ↗)
2 points · by utf_8x · 8mo ago · discuss
comment 8mo ago · link · parent
comment 9mo ago · link · parent
comment 9mo ago · link · parent
https://github.com/WispFramework/Wisp, https://wispframework.github.io/Wisp/
It tries to be reasonably lightweight but batteries-included, with extra features in separate "extensions" packages. It's also designed to be modular. All functionality has a default implementation but can easily be replaced if desired. It uses the Fluid template engine[1] (a .NET implementation of the Liquid language).
It's been a great way to dig into more advanced concepts like reflection and HTTP internals and while it's probably not safe to use in production, I have used it to build small private apps with great success.
The current major pain points are the lack of websocket support, which I'm planning to add soon, and the general fragility of the NetCoreServer[2] based HTTP backend, which I'm planning to replace with EmbedIO. (Ideally, I would love to use Kestrel here, but it's so deeply baked into ASP.NET Core that you can't use it without pulling in the whole Web SDK)
The documentation is also pretty incomplete but I hate writing docs so I find it hard to force myself to do it.
[1] https://github.com/sebastienros/fluid
[2] https://github.com/chronoxor/NetCoreServer
(LLM Disclaimer: This project is not vibe-coded. Most of the code is written by hand, with some input from ChatGPT being used as a fancy search engine. The docs are written by hand and then fed through ChatGPT to make them more readable)
comment 9mo ago · link · parent
(not affiliated with the project, just really want to see it succeed)
[1] https://stoat.chat/ [2] https://github.com/stoatchat/for-ios
comment 10mo ago · link · parent
* Is that what it's called? The top part that goes over your head...
comment 10mo ago · link · parent
$275,000 is almost $23,000 a month. Take that times N amount of employees, and other business overhead, and suddenly $80k a month is literally peanuts.
[1] https://tailwindcss.com/blog/hiring-a-design-engineer-and-st...
comment 10mo ago · link · parent
comment 10mo ago · link · parent
#!/usr/bin/env dotnet run
#:package Newtonsoft.Json@13.0.3
using Newtonsoft.Json;
Console.WriteLine(
JsonConvert.SerializeObject(new { Hello = "world" })
);
Even better, with the #:sdk directive, you can even serve a tiny web app directly from your "fancy shell script"... #!/usr/bin/env dotnet run
#:sdk Microsoft.NET.Sdk.Web
WebApplication
.Create()
.MapGet("/", () => "Hello from a shell script!")
.Run();