You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ Additionally, create a unit test that validates the operation.
102
102
103
103
From now on, you will have to create the unit tests for every new operation. Wasn't it easy with Copilot?
104
104
105
-
-**/DaysBetweenDates**:
105
+
-**/daysbetweendates**:
106
106
107
107
- calculate days between two dates
108
108
- receive by query string two parameters `date1` and `date2`, and calculate the days between those two dates.
@@ -129,19 +129,23 @@ From now on, you will have to create the unit tests for every new operation. Was
129
129
-**/returncolorcode**:
130
130
131
131
- receive by querystring a parameter called color
132
-
- read colors.json file and return the rgba field
132
+
- read colors.json file under resources and return the rgba field
133
133
- get color var from querystring
134
134
- iterate for each color in colors.json to find the color
135
-
- return the code.hex field
135
+
- return the hex field
136
+
- return 404 if not found
136
137
137
-
> **_NOTE:_** Lets try Copilot chat now. Paste the above information and make it as detailed as possible in the Copilot chat text box. Copilot will use by default the open file as context in order to generate the suggestion.
138
+
> **_NOTE:_** Hint: Use TDD. Start by creating the unit test and then implement the code.
139
+
> Lets try Copilot chat now.
140
+
> Paste the above information and make it as detailed as possible in the Copilot chat text box.
141
+
> Copilot will use by default the open file as context in order to generate the suggestion.
138
142
139
143
-**/tellmeajoke**:
140
144
141
145
- Make a call to the joke api and return a random joke - <https://api.chucknorris.io/jokes/random>
142
146
143
147
> **_NOTE:_** Here's example where you might need to use you own knowledge and judgement
144
-
> to validate that Copilot follows best practices. Just because Copilot mimic
148
+
> to validate that Copilot follows best practices. Just because Copilot mimics
145
149
> what many developers do, doesn't always mean it's the correct way. You might need
146
150
> to be extra specific in your prompt to let Copilot know what's best practices.
0 commit comments