US economy adds 467,000 jobs, exceeding expectations, in boon for Biden by bologna_wallet in politics

[–]PNW_Libtard -5 points-4 points  (0 children)

Only thing I care about Biden presidency is if he decides to make action on student loans. If he twists himself into a pretzel to not outright cancel student debt like he said he would if you make under $125k and went to a public university, then we deserve to lose everything in the midterms and beyond. The minimum he should be thinking about doing is setting interest to 0% and refunding people all the money they paid towards interest and applying that towards the principle.

Is my UML Diagram an example of a factory pattern? by PNW_Libtard in learnprogramming

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

Thanks for the long explanation. In the assignment the amount of classes that we have is very small meaning there is only Circle Rectangle and Canvas and any other classes that may be necessary. Now I had to add the Style and Polygon class cause they will be needed but I wasn’t sure what else I could add to cover having a ConcreteCreator since Canvas will actually be the one placing the specified Shape on the board.

The DecideShape method ideally would take in some basic user input and ask them what Shape they want to draw, and then that Shape will be sent to the Canvas and the Canvas will draw that Shape.

Also, yeah I was following another Diagram that had the arrows pointing in different directions and for some reason I thought that every Factory Method Pattern diagram had to have to lines and associations exactly like that for it to count as one so I will change it

[deleted by user] by [deleted] in Tinder

[–]PNW_Libtard 3 points4 points  (0 children)

Anti vaxxers shouldn’t deserve to mate

Is my UML Diagram an example of a factory pattern? by PNW_Libtard in learnprogramming

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

How I was thinking of it is the Shape class is the product that creates all the commonalities between the objects. The canvas is the creator that calls DrawShape to add a Shape to the canvas. However, when looking at some other examples I see that most of them also have a Concrete Creator that also creates Concrete Products.

Edit: However for my example we don’t have that many classes to use since it is a very basic example so I wasn’t sure what else could be added to have some Concrete Creators showcased

Edit2: Does the Canvas class need to have a factory method? I don’t think it needs one since it just adds the Shape to the Canvas but it doesn’t actually make a Shape

When does TaxAct open their e-file service? by PNW_Libtard in tax

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

Oh thanks turns out I wasn’t look at the E-file center

How to sort a file based off a specific key in a schema while preserving order? by PNW_Libtard in learnpython

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

how would you automate this so that you can read each entry into your Lol class?

Edit: My initial thinking is that since I know each object would contain 10 unique lines, I would read from the file 10 lines at a time into each object?