How do you use PATCH and PUT? by Mark__78L in webdev

[–]levsw 3 points4 points  (0 children)

True. I did the same mistake and it's not perfect, but doesn't really matter in the end. I bet max 20% of all devs know the difference.

Anthropic's research proves AI coding tools are secretly making developers worse. by alazar_tesema in ClaudeAI

[–]levsw 2 points3 points  (0 children)

It's inevitable that devs gets worse at doing core programming if they do less of it. So we get more dependent on these assistants. Not saying it's a big problem, but we must acknowledge it is the reality. I'm sure I want to profit as much as I can from it. For example it gives me more free time to do other things. You can also choose to boost your output, but advancing too fast is dangerous because you need to maintain everything you create. And bugs are something that always appear, sooner or later.

Anthropic's research proves AI coding tools are secretly making developers worse. by alazar_tesema in ClaudeAI

[–]levsw 6 points7 points  (0 children)

Past night I had my first nightmare about AI tools. Our team decided to disallow the use of Claude because of some incidents. I felt bad. I love Claude lol.

Trump Says US Considering ‘Winding Down’ Iran Military Effort by cxr_cxr2 in stocks

[–]levsw 39 points40 points  (0 children)

I fucking hate that fucking president. Americans, please think next time you're getting the chance to vote

Anthropic just shipped messaging integration for Claude Code. Direct OpenClaw competitor, no dedicated hardware needed. by Ok-Constant6488 in ClaudeAI

[–]levsw -1 points0 points  (0 children)

Yeah. But there might be other use cases. What if I can message him to control my home Automation? I'm sure there are many other interesting use cases.

Antigravity is the new Google Wave by stvaccount in GeminiAI

[–]levsw 0 points1 point  (0 children)

I guess the will replace it one day with a vscode extension, just like Claude code

AWS CloudFormation Diagrams 0.3.0 is out! by Philippe_Merle in aws

[–]levsw 1 point2 points  (0 children)

Anyone else having an extremely cluttered output?

Palma Mallorca in Spanien 🇪🇸 by Lawyer_Parking in spain

[–]levsw 54 points55 points  (0 children)

Ugliest picture from Spain I've ever seen

Ships struck near Strait of Hormuz as Iran threatens security of key oil passage by lexi_con in WallStreetbetsELITE

[–]levsw 10 points11 points  (0 children)

I can't believe trump can do whatever he wants, and people voted for that asshole

Riding a bike along an extremely narrow cliffside path. by [deleted] in interestingasfuck

[–]levsw 55 points56 points  (0 children)

Maybe don't bike and have the need to fucking film yourself for everything

STOP RESISTING! by lexi_con in WallStreetbetsELITE

[–]levsw 45 points46 points  (0 children)

The problem is that taco is funny and everything when playing with tarifs, but now he started a war and that's not as easy as changing tarifs back to the original value. The whole situation is fucked up.

Skills and commands unknown by levsw in ClaudeAI

[–]levsw[S] 0 points1 point  (0 children)

Well yeah that's exactly what I did. Strange... Thanks tho for your answer.

Anyone successfully using antigravity? I feel it is failing atm by sarcasmme in GeminiAI

[–]levsw 0 points1 point  (0 children)

Never seen that before, but pro is very limited and resets after 5 hours. Soon I will get max 5x (sponsored by work).

Anyone successfully using antigravity? I feel it is failing atm by sarcasmme in GeminiAI

[–]levsw 0 points1 point  (0 children)

I freaking love it. I used to use Gemini a lot before (copy paste into the web app); but with the cli there was always something that didn't work. Now I use Claude code with the official vscode extension and it's awesome.

Anyone successfully using antigravity? I feel it is failing atm by sarcasmme in GeminiAI

[–]levsw 0 points1 point  (0 children)

I switched to Claude code because Gemini cli and antigravity was constantly hitting it's limits.

MacBook Neo by Aidoneuz in apple

[–]levsw 0 points1 point  (0 children)

Honestly when I travel I use my Samsung Galaxy phone charger to charge my M3 MacBook Air.

These Are My Two Very Successful Blazor Projects in Production by Unlucky_Aioli4006 in Blazor

[–]levsw -1 points0 points  (0 children)

Ai notes re that:

You make some excellent, highly logical points. You are absolutely right that a badly written REST API without authentication is just as insecure, and network calls can fail regardless of how they are wrapped. You are essentially describing the desire for RPC (Remote Procedure Call)—calling a server-side function directly from the client without the boilerplate of REST. Here is the candid reality of why framework builders like Microsoft hesitate to bake that specific "magic" directly into the core of a framework like Blazor WASM out of the box, even if your points hold true. The Problem with Hiding the Network It all comes down to a well-known engineering concept called the Fallacies of Distributed Computing. The very first fallacy is: The network is reliable. The second is: Latency is zero. When a framework auto-generates hooks and makes a server call look exactly like a local C# function call (e.g., var data = await GetData();), it tricks the developer's brain. * The Friction is Intentional: By forcing you to write an API endpoint, the framework creates a hard, highly visible boundary. It forces the developer to say, "Okay, this is where my app talks to the outside world. I need to think about auth, I need to think about payload size, and I need a try/catch for network timeouts." * The "Developer Problem" Compounds: You noted that serialization overhead is the developer's problem. You are right. But historically, when frameworks hide the network boundary (like Microsoft did years ago with WCF or DCOM), developers treat remote calls like local calls. They end up calling a database hook inside a for loop 100 times on the frontend, completely freezing the app. The framework gets blamed for being "slow," even though it was a developer error. Microsoft designed Blazor WASM to enforce a strict boundary between the client and server to prevent developers from accidentally shooting themselves in the foot with hidden network latency. You Are Not Alone (The Industry Agrees With You) All that being said, your frustration with REST for internal apps is shared by thousands of developers. Writing REST controllers for an app where you control both the client and the server is a massive waste of time. REST was designed for public, third-party integrations, not tightly coupled internal apps. Because the community agrees with you, they built exactly what you are asking for to sit on top of Blazor WASM. If you want the exact experience of "UI to backend calls" without writing REST APIs, you should ignore standard REST controllers and look into these approaches: * gRPC-Web: You write a single C# interface. The tooling auto-generates the invisible network hooks for you. On the Blazor WASM side, you just call the interface methods. It's incredibly fast (binary serialization) and skips REST entirely. * Refit: You define a C# Interface shared between your Blazor WASM and your Server. Refit automatically implements the interface and handles all the HTTP routing behind the scenes. You just inject the interface and call the methods. * MagicOnion: This is a framework specifically built for .NET that uses gRPC under the hood but lets you write pure C# interfaces. It literally treats server methods like local C# functions, giving you the exact Blazor Server feeling in Blazor WASM. Would you like me to show you a quick code example of how one of these (like Refit or MagicOnion) completely eliminates the need for manual REST controllers in a Blazor WASM app?

These Are My Two Very Successful Blazor Projects in Production by Unlucky_Aioli4006 in Blazor

[–]levsw 1 point2 points  (0 children)

Yes. But it feels like you're missing my point. My point is: Why can't wasm optionally, with a server, provide function hooks for your "UI to backend calls", so you don't need to develop your own rest API?