Git Product home page Git Product logo

rbwhitaker.wikidot.com's People

Watchers

 avatar

rbwhitaker.wikidot.com's Issues

Save it to work - loading content

Hello, just an issue I was having in the tutorial in http://rbwhitaker.wikidot.com/monogame-managing-content

I would get an error message when trying to run the program after loading the content. After some research I made it work by clicking on the save icon after loading the content in the MGCB Editor. I mean the save icon on the MGCB Editor.

If I didn't click on save, the content would show up at visual studio the same way, but if I opened the MGCB Editor it wouldn't show. Now when I reopen the MGCB Editor the content is there.

So maybe add to the tutorial that you have to click on save? Not sure if this is an issue that happened only to me.

Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.4.4

Bugs in tutorial code: crash course - methods

C# methods Section Multiple Parameters' code block has 2 mistakes:

  1. declares a void method but returns an integer
  2. loop does opposite of what it's supposed to, that is, it continues while input is within the range instead of while outside

Current code block, verbatim:

static void GetNumberBetween(string prompt, int min, int max)
{
    int parsedNumber;
    do
    {
        Console.Write(prompt);
        string input = Console.ReadLine();
        parsedNumber = Convert.ToInt32(input);       
    }
    while (parsedNumber >= min && parsedNumber <= max);
 
    return parsedNumber;
}

Thanks.

Collection of suggested corrections

Hi,

While going through your tutorials I made note of various things that could use an update/fix.

General suggest/fix:

  • Breadcrumbs at bottom of monogame tutorial pages link back to some orphaned tutorial landing page, in other words: http://rbwhitaker.wikidot.com/c-sharp-comments has a breadcrumb and the oldest ancestor "Tutorials" leads to the orphaned page
  • It would be nice to have a "Next Tutorial: (tutorial title)" link at the end of each monogame tutorial page

Specific:

  1. page: http://rbwhitaker.wikidot.com/c-sharp-operator-overloading

    • location: Bulleted summary, 2nd item
    • remark: A double minus sign -- was intended but instead a long dash is displayed
    • existing text: "Operator overloading works for these operators: +, -, *, /, %, ++, —, ==, !=, >=, <=, >, and <, and a few others that we haven't talked about before."
  2. page: http://rbwhitaker.wikidot.com/c-sharp-events

    • location: section Defining an event
    • remark: Shouldn't strikethrough'ed text be ommitted?
    • existing text: "Raising an event is not hard, and the simplest solution which has a limitationis done with the following:"
  3. page: http://rbwhitaker.wikidot.com/c-sharp-error-handling

    • location: section: Throwing exceptions
    • remark: It's implicit as to how the exception object hamburgerException receives the member HamburgersEaten. This may be more advanced than the purposes of the crash course however so it may be okay to leave as is and allow reader to make assumptions.
    • existing text:
try
{
    EatSomeHamburgers(32);
}
catch (AteTooManyHamburgersException hamburgerException)
{
    Console.WriteLine(hamburgerException.HamburgersEaten + " is too many hamburgers.");
}
  1. page: http://rbwhitaker.wikidot.com/c-sharp-file-io

    • location: Bulleted summary, 4th item
    • remark: Missing what the contents of file get written to, in this case should be a string
    • existing text: File.WriteAllText(string filePath, string allText); lets you write out the contents of the entire file in a single all at once.
    • suggested text: File.WriteAllText(string filePath, string allText); lets you write out the contents of the entire file into a single string all at once.
  2. page: http://rbwhitaker.wikidot.com/c-sharp-generics

    • location: section Creating a generic class, 2nd code block
    • remark: Mistakenly used .
    • existing text: _items = newItems.
  3. page: http://rbwhitaker.wikidot.com/c-sharp-using-generics

    • location: section "The List<T> Class"
    • remark: } should be >
    • existing text: "When the List<T} class was defined, it left a placeholder, which it referred to as T"
  4. page: same above

    • location: same above
    • remark: » should be >>
    • existing text: "We could make a List<bool> or a List<Player> or a List<IFileReader> or even a List<List<int» to make a list of lists of numbers."
  5. page: same above

    • location: section "Using the Dictionary Class
    • remark: "as" should be "has"
    • existing text: "This generic class as two generic type parameters."
  6. page: http://rbwhitaker.wikidot.com/c-sharp-using-classes

    • location: section Stack vs. the Heap
    • remark: "an" should be "and"
    • existing text: "Here we're passing both an object an an int to the GenerateNumberAndCompare method."
  7. page: same above

    • location: same above
    • remark: What is the other method besides GenerateNumberAndCompare, is it implicit that the 2nd code block occurs within some method (aka in C# everything happens inside a class and its members). Could use clarification.
    • existing text: "The same thing essentially happens with random, and the contents of random is copied and given to GenerateNumberAndCompare, but this is the reference to the object on the heap. Now both methods know about the same instance that actually lives on the heap!"
  8. page: http://rbwhitaker.wikidot.com/c-sharp-creating-classes

    • location: section Access Modifiers
    • remark: "a million" should be "an additional two thousand"
    • existing text: "According to our rules, a million points should have awarded the player with two new lives! But this code fails to do that."
  9. page: http://rbwhitaker.wikidot.com/c-sharp-properties

    • location: subsection Auto-Properties
    • remark: Shouldn't strikethrough'ed text be omitted?
    • existing text: "The compiler will generate a related field<strikethrough>known as the backing field</strikethrough>for you and wire it all up to get and set that field as expected. This allows you to reserve the option to turn it into a full property later on without affecting most of the program."
  10. page: http://rbwhitaker.wikidot.com/monogame-drawing-text-with-spritefonts

    • location: section "What's Next"
    • remark: Consider linking to the texture atlas tutorial instead of sprite rotation, since this reflects the order of the monogame tutorial landing page and also the texture atlas tutorial alreay links to sprite rotation itself.
  11. page: http://rbwhitaker.wikidot.com/monogame-texture-atlases-3

    • location: main section
    • remark: Shouldn't there be a using AnimatedSprite?
  12. page: same above
    - location: same above
    - remark: in previous tutorials the texture variable was declared in the constructor, should it be the same here for sake of convention and consistency

  13. page: http://rbwhitaker.wikidot.com/monogame-managing-content

    • location: section Managing Content in MonoGame
    • remark: "section" should be "second"
    • existing text: "This section option is mostly only used for content that isn't typically made by an artist in another program, such as a sprite font."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.