Zoli
Member
- Joined
- Feb 24, 2015
- Member Type
- Student or Learner
- Native Language
- Hungarian
- Home Country
- Hungary
- Current Location
- Romania
Refactor the code that serves as a value for the agenda-files variable.
or should I just write?:
Refactor the code serving as a value for the agenda-files variable.
They are both commands (imperative).
Context:
I have a variable which is like a drawer in computer programming. For example, I can store my name in the variable "name" like so:
name = zoli
The equal sign assigns the value "zoli" to the variable named "name".
Sometimes the value is computed using an operation like 1 + 1. The operation is performed, then the final result is assigned to the variable.
total = 1 + 1 => becomes => total = 2
I have a variable named "agenda-files" that accepts a list of names, but the list of names is computed using a more sopisticated code:
agenda-files = ...a lot of code here that generates a list... => agenda-files = zoli, peter, dan, etc..
Refactor is a term used in programming to change something in an existing code but without changing the functionality and end result. It's like changing 2+3 to 3+2.
or should I just write?:
Refactor the code serving as a value for the agenda-files variable.
They are both commands (imperative).
Context:
I have a variable which is like a drawer in computer programming. For example, I can store my name in the variable "name" like so:
name = zoli
The equal sign assigns the value "zoli" to the variable named "name".
Sometimes the value is computed using an operation like 1 + 1. The operation is performed, then the final result is assigned to the variable.
total = 1 + 1 => becomes => total = 2
I have a variable named "agenda-files" that accepts a list of names, but the list of names is computed using a more sopisticated code:
agenda-files = ...a lot of code here that generates a list... => agenda-files = zoli, peter, dan, etc..
Refactor is a term used in programming to change something in an existing code but without changing the functionality and end result. It's like changing 2+3 to 3+2.