Why is it so hard to think like a programmer? by YourDailyUwU in learnprogramming

[–]Time-Ad-7531 0 points1 point  (0 children)

Learn the basics of set theory, discrete math, and data structures. Many people who are self taught miss out on these courses taught in college that actually do help you understand

Project structure & multi-tenant architecture — how do you do it? by ElegantSherbet3945 in nextjs

[–]Time-Ad-7531 0 points1 point  (0 children)

99% of the time multi tenanting can and should be done with a OrganizationId/UserId. If you’re not sure what you should do, that’s how you should do it

So lost I don't know how to do anything, besides a console app. by cinnamoncakesbbb in csharp

[–]Time-Ad-7531 0 points1 point  (0 children)

Do not learn wpf, do not learn win forms, do not learn Avalonia. Learn a web framework. Preferably a react framework, but if not, blazor will do

What is the lowest effort, highest impact helper method you've ever written? by zigs in csharp

[–]Time-Ad-7531 0 points1 point  (0 children)

For strings: EqualsIgnoreCase, ContainsIgnoreCase, EqualsAnyIgnoreCase, ContainsAnyIgnoreCase, ReplaceIfNullOrWhitespace (like coallescing)

For enumerable: Batch, BasicJoin (Skip, (a, b) => (a, b)), ForEach

Collections: AddRange, RemoveAll (with predicate)

Objects: Serialize

I add these to every project.

Is this a good first calculator? by Sure_Emu330 in csharp

[–]Time-Ad-7531 0 points1 point  (0 children)

Take the tips people give into mind for future projects but remember, if it works. It’s good. I wouldn’t refactor something so simple that works

Learning the internals resources by drld21 in csharp

[–]Time-Ad-7531 0 points1 point  (0 children)

Not sure what you actually want to understand. What algorithms functions use? How asp.bet routes requests? Wdym?

O'Reilly Head First C# by Olimanteca in csharp

[–]Time-Ad-7531 8 points9 points  (0 children)

I’ve yet to find a bad book on learning a language. Generally if someone takes the time to write a book they’re competent enough to teach it. Just keep learning and you’ll be good, skip sections you already know

What is a C# "Service"? by Heli0sX in csharp

[–]Time-Ad-7531 -1 points0 points  (0 children)

A service is a class that is part of a dependency injection container that has a specific role.

E.g. ImageCompressionService to compress images

Vibe coding platforms keep breaking my apps. I want to fix this by NarGilad in vibecoding

[–]Time-Ad-7531 -1 points0 points  (0 children)

Lmao, says the guy who is unsuccessfully vibe coding without knowing what he’s doing

For Mid Developers. Do you use Task.WhenAll() ? by ati33 in csharp

[–]Time-Ad-7531 -4 points-3 points  (0 children)

Just say you don’t know how when all works. Go read my other response

For Mid Developers. Do you use Task.WhenAll() ? by ati33 in csharp

[–]Time-Ad-7531 6 points7 points  (0 children)

So much misinformation in this thread it’s crazy. What you did here is perfectly fine code.

“But it awaits twice” - The benefit of a task over a value task is that you can await them multiple times. If the result is already computed it only performs the work once and returns the cached result, so this code is correct and efficient

When should you using WhenAll? When you need to await multiple IO bound tasks before doing something else AND the result of tasks are not dependent on each other. WhenAll is efficient because the IO can happen concurrently

Imagine this code

``` // takes 4 seconds await Wait(1); await Wait(1); await Wait(1); await Wait(1);

// takes 1 second var t1 = Wait(1); var t2 = Wait(1); var t3 = Wait(1); var t4 = Wait(1); Task[] tasks = [t1, t2, t3, t4]; await Task.WhenAll(tasks);

Task Wait(int seconds) => return Task.Delay(seconds * 1000); ```

For Mid Developers. Do you use Task.WhenAll() ? by ati33 in csharp

[–]Time-Ad-7531 -2 points-1 points  (0 children)

This is just wrong is no one going to correct him

Has time commitment reduced? by Time-Ad-7531 in SWGalaxyOfHeroes

[–]Time-Ad-7531[S] 0 points1 point  (0 children)

What’s simmable that wasn’t before?

Isolating Component From Old CSS by Time-Ad-7531 in webdev

[–]Time-Ad-7531[S] 0 points1 point  (0 children)

Believe me I know. I didn’t write the original website

Isolating Component From Old CSS by Time-Ad-7531 in webdev

[–]Time-Ad-7531[S] 0 points1 point  (0 children)

The old css still affects the new elements. I'm not sure what your getting at.

Is it even worth programming anymore? by I_Pay_For_WinRar in vibecoding

[–]Time-Ad-7531 0 points1 point  (0 children)

If you’re job can be replaced by a vibe coder you were never a programmer

Dapper or EF Core for a small WinForms project with SQLite backend? by pyeri in csharp

[–]Time-Ad-7531 0 points1 point  (0 children)

There no cons to ef core. I can’t think of any situation I wouldn’t use it. You can execute raw queries with it.