olayk
olayk
CC#
Created by olayk on 5/7/2024 in #help
Help with sorting package issues in Visual Studio.
and ive never used Visual Studio before, only VScode
15 replies
CC#
Created by olayk on 5/7/2024 in #help
Help with sorting package issues in Visual Studio.
but tbh the main idea was to do a bit of TDD as I need to use it in an upcoming interview
15 replies
CC#
Created by olayk on 5/7/2024 in #help
Help with sorting package issues in Visual Studio.
yep, all working fine. ive swapped to NUnit in a different project now that ive got it woking
15 replies
CC#
Created by olayk on 5/7/2024 in #help
Help with sorting package issues in Visual Studio.
yeah not sure either, the walkthrough didnt mention it but at least now i have some underestanding of nuget package manager that i didnt befoe
15 replies
CC#
Created by naber top on 5/6/2024 in #help
LINQ Help
hope this helps
22 replies
CC#
Created by naber top on 5/6/2024 in #help
LINQ Help
And it looks like Select is a type of map
22 replies
CC#
Created by naber top on 5/6/2024 in #help
LINQ Help
Where is a filter
22 replies
CC#
Created by naber top on 5/6/2024 in #help
LINQ Help
In LINQ, they call a fold the Aggregate function
22 replies
CC#
Created by naber top on 5/6/2024 in #help
LINQ Help
In this case, All is a type of fold that takes a predicate and returns the AND of all the predicates applied to the values
22 replies
CC#
Created by naber top on 5/6/2024 in #help
LINQ Help
I am not the most advanced at C#, but if you want to get better about solving this type of problem I would recommend looking up folds / reduces and maps. A map you go over all the values in a collection and perform some function on them. A fold you have an accumulator and a function that takes your accumulator and each value and returns a new value
22 replies
CC#
Created by olayk on 5/7/2024 in #help
Help with sorting package issues in Visual Studio.
and then running build and swapping back to the local package source
15 replies
CC#
Created by olayk on 5/7/2024 in #help
Help with sorting package issues in Visual Studio.
i fixed this issue myself by adding https://api.nuget.org/v3/index.json to the nuget package sources and installing via there
15 replies
CC#
Created by olayk on 5/7/2024 in #help
Help with sorting package issues in Visual Studio.
im just looking to follow the tutorial in the post
15 replies
CC#
Created by olayk on 5/6/2024 in #help
Creating a Printer class for my own type.
Again, not sure about this
50 replies
CC#
Created by olayk on 5/6/2024 in #help
Creating a Printer class for my own type.
I believe that the vtable type code would require implementing a function for each subclass which it then chooses the correct one? I imagine this to be like defining Print on each JSONValue subclass
50 replies
CC#
Created by olayk on 5/6/2024 in #help
Creating a Printer class for my own type.
I was kinda expecting the dispatch to work so long as I implemented a PrintValue for each of the JSONValue subclasses but this isn’t the case
50 replies
CC#
Created by olayk on 5/6/2024 in #help
Creating a Printer class for my own type.
I’m not too good at OOP compared to more functional code at the moment
50 replies
CC#
Created by olayk on 5/6/2024 in #help
Creating a Printer class for my own type.
What would this look like? Without the visitor pattern I can’t see how to implement the dynamic dispatch with interfaces
50 replies
CC#
Created by olayk on 5/6/2024 in #help
Creating a Printer class for my own type.
Yeah I’ve been coding a lot in Haskell recently
50 replies
CC#
Created by olayk on 5/6/2024 in #help
Creating a Printer class for my own type.
Defining a function to perform on each
50 replies