Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help4407


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting (CITS4407).

Assignment 2 and Clarifications.
 
Options:
RSS cloud
Jump to:

Assignement 2, Q1 Assumption

5 of 390 articles shown, currently no other people reading this forum.
photo
From: Lee dB.
Date: Fri 15th May, 4:39pm
Actions: 
        Login-to-reply
Hi Chris,

For the first part of the assignment, can we safely assume that the version comment will appear only once at the top of each file, or do we need to account for the fact that it may appear anywhere in the file?

Also, do we need to account for the possibility that the program could be renamed (e.g. the makefile could be amended to change the project name, but the source files could still refer to calcmarks)?

Thanks,
Lee

Assignement 2, Q1 Assumption

photo
From: Christopher M.
Date: Fri 15th May, 5:16pm
Actions: 
        Login-to-reply
"Lee de Byl"                               wrote:

> Hi Chris,
> 
> For the first part of the assignment, can we safely assume that the version comment will appear only once at the top of each file, or do we need to account for the fact that it may appear anywhere in the file?
> 
> Also, do we need to account for the possibility that the program could be renamed (e.g. the makefile could be amended to change the project name, but the source files could still refer to calcmarks)?

Hi Lee,

The "version line" will appear only once in each file (that it appears in), but it could be anywhere.
Replace/update it at the exact same line number.

The project name is an argument provided to the shellscript.
Do not assume/depend on the project being called 'calcmarks'.

If the whole project were ever renamed,  then it's not your shellscript's job to find/determine/update the change of name.

Assignement 2, Q1 Assumption

photo
From: Lee dB.  O.P.
Date: Sat 16th May, 9:25am
Actions: 
        Login-to-reply
Thanks Chris, that’s really clear. 

I only ask because not all units are as forgiving with regards to assumptions ;) 

Assignement 2, Q1 Assumption

photo
From: Christopher M.
Date: Sat 16th May, 11:38am
Actions: 
        Login-to-reply
"Lee de Byl"                               wrote:

> Thanks Chris, that’s really clear. 
> 
> I only ask because not all units are as forgiving with regards to assumptions ;) 

I could interpret that a couple of ways :-)

Assignement 2, Q1 Assumption

photo
From: Lee dB.  O.P.
Date: Sat 16th May, 8:10pm
Actions: 
        Login-to-reply
Let’s just say that I’m very grateful for the fact that this unit isn’t having assessment 
conducted and automatically marked by the Blackboard LMS. At least if a question in the 
assignment here is ambiguous or open to interpretation, we have the opportunity to clarify 
or state our assumptions.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020