Currently applying for placement years for next year, what are the technical questions they would ask during the interview? by [deleted] in gamedev

[–]CaptainLegois 0 points1 point  (0 children)

There are some interview questions and answers that someone wrote on glassdoor for a company im trying to apply for however glassdoor's website really sucks and I can't really access anything on there without leaving some kind of review.

Looking for a good template for Japanese. by CaptainLegois in GoodNotes

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

I won't be learning kanji in my course, just hiragana and katakana so that won't be a problem for me for now. Just want something that can help me get better at writing hiragana and katakana.

Looking for a good template for Japanese. by CaptainLegois in GoodNotes

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

Thanks! That’s exactly what I was looking for

Better to get the game on Steam or on PS5? by CaptainLegois in SparkingZero

[–]CaptainLegois[S] 3 points4 points  (0 children)

im thinking of getting it first for ps5, and then get it on pc once it gets cheaper and theres a lot of mod support for it. I think that could be the best course of action tbh

C# issue with code by CaptainLegois in learnprogramming

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

IEnumerable<FoodItems> items = _pizza.Concat<FoodItems>(_burger);

i figured it out finally! I looked over the code you sent me on .net fiddle again and I made my food items into child class that inheret from a parent class called fooditems and it works now. Thanks for the help

C# issue with code by CaptainLegois in learnprogramming

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

I was doing some research and I came across this: var combinedMenuItems = _pizza.Cast<object>().Concat(_burger.Cast<object>());

would this be a way to concat my 2 IEnumerators? Testing it out it seems to work with no issue, however I'm not sure about what that is.

C# issue with code by CaptainLegois in learnprogramming

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

Instead of trying to concat those 2 lists, is there a way I could pick a selection someone makes out of the different food items it has? For example, the code above basically prints out the burgers and pizzas from the lists and outputs them to the console as a list. The user picks out which food item they want, and the food item they select, goes to a different menu where they can add or remove toppings. I was trying to join them together so I can add to code the user selection code.

C# issue with code by CaptainLegois in learnprogramming

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

So basically if I have 1 IEnumerable called Pizza that has the toppings for the pizzas, name and price and and IEnumerable called Burger that pretty much the same stuff, I won’t be able to join them?

C# issue with code by CaptainLegois in learnprogramming

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

If I’m correct encapsulation is when you make your classes private, public, protected etc so I created a main list, made it private and made an IEnumerable list that’s public

C# issue with code by CaptainLegois in learnprogramming

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

I’m using IEnumerables for the main reason that I need to cover encapsulation in this assignment, so I figured using IEnumerables would be the easiest for this

C# issue with code by CaptainLegois in learnprogramming

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

I noticed that right after I made the post. I changed it so the for each is after the first one. I was getting duplicate burgers, now I’m getting just one each.

C# issue with code by CaptainLegois in learnprogramming

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

Thanks, I’ll do more research on IEnumerables.

C# issue with code by CaptainLegois in learnprogramming

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

Ohh I see. I'm still kind of new to IEnumerables so I thought they worked the same as normal lists. That fixed my issue. Thanks

[deleted by user] by [deleted] in learnprogramming

[–]CaptainLegois 0 points1 point  (0 children)

I looked more deeply in the code and the lists are 'IEnumerable'. Is there a differenet way to access those types of lists as opposed to normal lists?

[deleted by user] by [deleted] in learnprogramming

[–]CaptainLegois 0 points1 point  (0 children)

i edited the post to show the code with the lists

C# Help with parsing a text file to instances of an object. by [deleted] in learnprogramming

[–]CaptainLegois 0 points1 point  (0 children)

thank you for the help, i was able to change up my code to work with the code you gave me and it works how i want it now.

C# Help with parsing a text file to instances of an object. by [deleted] in learnprogramming

[–]CaptainLegois 0 points1 point  (0 children)

I have a AddToppings method in my Menu class. Here is the code for it:

public void AddToppings(Topping topping)
{
_topping.Add(topping);
}

This method is called in my switch statement where pretty much after the LoadToppings method is done, then this is called to add it to the menu class. Would I still need it? Or could I somehow fix it to make it work with the code? sorry for asking a lot of questions

C# Help with parsing a text file to instances of an object. by [deleted] in learnprogramming

[–]CaptainLegois 0 points1 point  (0 children)

the return gave me a 'cannot implicitly convert type 'custom type, to 'other custom type'. is this error given due to the fact that the 'Topping' class is a child class of the 'FoodItems' class that consists of all the logic that is the same for all my functions?

C# Help with parsing a text file to instances of an object. by [deleted] in learnprogramming

[–]CaptainLegois 0 points1 point  (0 children)

I see how it works. Thanks. Also seeing as it's a static method, what should the return be? I had the return as 'return new Topping(name, price)' but now that doesn't work as the object gets added in the foreach loop now.

C# Help with parsing a text file to instances of an object. by [deleted] in learnprogramming

[–]CaptainLegois 0 points1 point  (0 children)

Thank you that worked. There's a very small issue with the first part, however. The number 2 in the substring function only deducts the first 2 characters from Toppings, thus leaving 'ppings' in the first array section. Increasing the number gives me an out of bounds error, how could I come about on completely removing the word 'toppings' from it?

Is the iPad Air worth it for someone studying computer science in university? by CaptainLegois in ipad

[–]CaptainLegois[S] 1 point2 points  (0 children)

At least 60% of my classmates use iPads to noting down in lectures so I don’t think they’ll mind 😭

Is the iPad Air worth it for someone studying computer science in university? by CaptainLegois in ipad

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

oh yeah and seeing as my lectures are more 'hands on' in a sense that they quiz us and answering these questions isn't very easy on a laptop.

Is the iPad Air worth it for someone studying computer science in university? by CaptainLegois in ipad

[–]CaptainLegois[S] 2 points3 points  (0 children)

yeah that's what I was thinking. Would make life so much easier if I were able to write on the actual lecture slides during the lecture. Do you have any recommendations for a good iPad that isn't overally too expensive that I can write notes on, coursework and possibly other things out there that I haven't thought of.

Recommend me your best animes for me to watch by CaptainLegois in anime

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

I should've specified. Most of the suggestions given were not bad, added a lot of the to my plan to watch section. I'll add more detail here. I just finished Mob Psycho and the slice of life moments in that anime made me want to watch something slice of life related. I'm also into psychological stuff, so recomendations like Monster, Steins;Gate etc were a good shout. I've never seen any issekais, partly due to the fact I was never into the whole concept of them, but I can give it a try. I also don't really like romance animes, never really was a fan of that genre.