Coder Social home page Coder Social logo

tiralabra20-mapgenerator's People

Contributors

dan-g avatar qwecu avatar

Watchers

 avatar

tiralabra20-mapgenerator's Issues

Vertaisarviointi

I'm not familiar with C# but a few points:

  1. There seems to be some duplication of code such as
            double yCoordinate = (1.0 / (2.0 * (yf - yd)))
                * (x - xf) * (x - xf)
                + ((yf + yd) / 2.0);

being repeated here

You could extract that as a separate method and then instead of assigning a multiple values to their own variables

image

...you could just pass those without reassignment as args.

I'm not sure if that file is used as it seems that the class variable "s" is not defined and it's still used?

A minor point but it's really weird to see multiple languages used mixed together in the code.

image

It's probably a good idea to stick to English in everything code related.

There's a lot of commented out code in the version control which I guess could be considered a bad practice.

https://github.com/Qwecu/tiralabra20-mapgenerator/blob/main/mapseesharp/mapseesharp/VoronoiCalculator.cs

There's also a lot of code repetition that could be avoided with some restructuring.

image

Maybe move the logic here to the Edge class? It would make the VoronoiCalculator.cs less bloated and the code more readable.

All in all, the project looks good! I didn't try it as I don't have any kind of C# tooling set up but the effort really shows. My points are mostly related to the code hygiene and I guess in the scope of this course, it really is a secondary matter.

Vertaisarviointi

Projekti ladattu 30.11 klo 21:30

En ole ennen käyttänyt C# ja ajan puutteen vuoksi en kerennyt selvittämään miten ohjelma ajetaan joten en valitettavasti päässyt ajamaan ohjelmaa ja testejä.

Ohjelman koodi näyttää pitkälti hyvältä. Käytät aika paljon valmiita tietorakenteita kuten list jos haluat parantaa koodin tehokkuutta voit luoda omat näitä vastaavat tietorakenteet.

Jos olet vielä kiinnostunut projektin tekemisestä Javalla ja netbeans ei toimi niin kannattaa kokeilla jotain muuta IDE:tä kuten IntelliJ tai eclipse.

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.