Anu6is
Anu6is
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
again it a simplified case here but duplicated code could also lead to bugs where you update one instance of the duplication and forget to update the other instance, then you have differing logic in 2 places when it should be the same logic in both those places
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
in the condensed on, there's only the final console.writeline to change
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
in the long version you'd have to go update all the console.writeline to whatever the new thing is
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
while this is a simple case, consider where you wanted to change how the message is output
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
generally if you have repeated code it's better to reduce it as it helps make the code easier to maintain
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
although refactoring is a thing
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
ideally you'd do it the condensed way first, not write it one way and go back and change it
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
u generally don't want redundant code
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
a default value isn't technically required
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
yes
31 replies
CC#
Created by Staynk on 3/7/2025 in #help
Not understanding this lesson
the variable is defined (declared) once on line 10, it's value then changes based on the if condition it enters
31 replies
CC#
Created by Grault on 11/15/2024 in #help
Blazor WASM: Injecting a service
22 replies
CC#
Created by Grault on 11/15/2024 in #help
Blazor WASM: Injecting a service
was just gonna go to the docs
22 replies
CC#
Created by Grault on 11/15/2024 in #help
Blazor WASM: Injecting a service
ah
22 replies
CC#
Created by Grault on 11/15/2024 in #help
Blazor WASM: Injecting a service
don't believe so
22 replies
CC#
Created by Grault on 11/15/2024 in #help
Blazor WASM: Injecting a service
@rendermode @(new InteractiveWebassembly(prerender: false))
22 replies
CC#
Created by Grault on 11/15/2024 in #help
Blazor WASM: Injecting a service
where you define the mode currently
22 replies
CC#
Created by Grault on 11/15/2024 in #help
Blazor WASM: Injecting a service
false being prerender
22 replies
CC#
Created by Grault on 11/15/2024 in #help
Blazor WASM: Injecting a service
you can disable with something like new InteractiveWebassembly(false)
22 replies
CC#
Created by Grault on 11/15/2024 in #help
Blazor WASM: Injecting a service
all modes are still prerendered
22 replies