cis-ds / Discussion

Public discussion
10 stars 15 forks source link

confusion on the last question of hw3 #206

Open BaichenTan opened 2 years ago

BaichenTan commented 2 years ago

for this last question "The Chief Justice is frequently seen as capable of influencing the ideological direction of the Court. Create a graph similar to the one above that also incorporates information on who was the Chief Justice during the term." The demo solution provides 4 graphs, do we have to create four graphs in our solution, or is it ok to just create one of them? Also, do we also need to write short paragraphs to earn full marks for hw3, like hw2? Or is it sufficient to just provide graphs like the demon solution for hw3?

Another general question on coding style. Is it more recommend to use pipping as many as possible, or sometimes it is better for the readers to read if we choose to construct codes into separate codes parts of pipping instead of a whole sequence of pipping which may be confusing to readers?

bensoltoff commented 2 years ago

You can create one graph for the final question. I just demonstrated several possibilities.

You can just provide the graphs for those questions, but interpretation is always helpful.

Depending on how long the set of operations is, you can definitely consider breaking up a piped sequence into shorter chunks. Adding code comments will also make it easier to read and understand.