Giter VIP home page Giter VIP logo

Comments (11)

gilescope avatar gilescope commented on July 19, 2024 1

Yep CLion's still the daddy for now. But the gap is closing fast.

Grep for: "This isn't our JIRA works"

from build-your-own-jira-with-rust.

gilescope avatar gilescope commented on July 19, 2024 1

TicketDraft shouldn't really have a Status on it as it really is a status? I.e. everything starts as a Status::ToDo

from build-your-own-jira-with-rust.

gilescope avatar gilescope commented on July 19, 2024

Also please use #[allow(unused_doc_comments)] as latest nightly grumbles about things like:

/// Field syntax: you use a dot to access the field of a struct.
assert_eq!(ticket_one.description, "A heart-breaking description");

(two slashes works fine)

from build-your-own-jira-with-rust.

gilescope avatar gilescope commented on July 19, 2024

Go to definition of Ticket using rust analyser looks at lots of tickets - doesn't make it clear that recap::Ticket is the one you want. This is a failing of RA, but might trip some people up as there's a lot of Ticket definitions at that point.

from build-your-own-jira-with-rust.

LukeMathWalker avatar LukeMathWalker commented on July 19, 2024

Ok, I think I fixed it 👍
Don't really know how to address the code navigation issue unfortunately 😞

from build-your-own-jira-with-rust.

jamiebrynes7 avatar jamiebrynes7 commented on July 19, 2024

FYIW, I found the Jetbrains plugin to be able to resolve the types fairly well

from build-your-own-jira-with-rust.

gilescope avatar gilescope commented on July 19, 2024

for 2_05 I think we could fill in the impls of TicketDraft and Ticket for them - they're tired by now and there's no doubt what goes in them really.

from build-your-own-jira-with-rust.

gilescope avatar gilescope commented on July 19, 2024

I think it would be awesome if we could give them this:

impl TicketPatch {
        fn apply(self, ticket: &mut Ticket) {
            if let Some(title) = self.title {
                ticket.title = title;
            }
            if let Some(description) = self.description {
                ticket.description = description;
            }
            if let Some(status) = self.status {
                ticket.status = status;
            }
        }
    }

and somehow point out that the method totally consumes the patch (i.e. it's taking ownership of self).

from build-your-own-jira-with-rust.

LukeMathWalker avatar LukeMathWalker commented on July 19, 2024

for 2_05 I think we could fill in the impls of TicketDraft and Ticket for them - they're tired by now and there's no doubt what goes in them really.

It's mostly for muscle memory, I think it's useful to just type it out for yourself a couple of times.

from build-your-own-jira-with-rust.

gilescope avatar gilescope commented on July 19, 2024

for consistency it might be better to use todo!() everywhere rather than a mix of __ and todo!()

from build-your-own-jira-with-rust.

LukeMathWalker avatar LukeMathWalker commented on July 19, 2024

todo!() unfortunately can only be used in function bodies, not for type signature and other wildly illegal omissions 😁

from build-your-own-jira-with-rust.

Related Issues (9)

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.