All of our coding exercises are expected to be completed in the IDE and executed with the help of the build tool typically maven/npm.
For each concept introduced there will 3 or more assignment options given with varying difficulty levels (Easy, Medium, Hard). Each assignment will be awarded different marks. (Easy=3, Medium=5, Hard=10). The student has the option to pick which assignment he wants to complete based on his skill.
For each concept at each difficulty level there will typically be 3 or more assignments. Students will be given assignments randomly. Randomization avoids copying/cheating by the students
Coding exercise workflow
-
Read: Read the through question in brief. After that student can read through the in depth explanation of the Question (can be skipped if not needed)
-
Analyze: Analyze problem, design the algorithm & solution.
-
Hints: Check for Hints(can be skipped if not needed)
-
Download : Checkout/Download the assignment from TechTris Academy's github repository
-
Write Code: Open/IDE implement the solution with the code
-
Test: Execute the tests in the IDE and check if all tests are passing
-
Generate report: Open command line and execute the tests from the command line which will generate the assignment report
-
Upload Assignment report: Upload the assignment to the LMS
-
Checkin: Checkin the code to github on student's private repository
Pair Programming Exercise
Employers love to see engineers who have ample pair programming experience, which you’ll get as you work through the Lab coding assignment.
You’ll also form meaningful new friendships with your programming partners across the country, which will last a lifetime and create networking opportunities for you in the years ahead.
Pair Programming Workflow
-
Pairing: Each student is paired with another preferably from the same bench. One, the driver, writes code while the other, the observer or navigator, reviews each line of code as it is typed in.
-
Video conferencing setup: Driver will share the Desktop to the observer. The observer will be able to see the drivers desktop with audio.
-
Regular Exercise Workflow: Rest of the flow is the same as a regular coding assignment, the only exception being the driver will be doing all the activities. The observer will be discussing the problem solution with the driver.
Unit tests
Each Coding assignment will have multiple unit tests. These unit tests ensure that the solution is indeed correct & complete.
Each coding assignment will be graded. Ex. If there are 5 marks assigned for an assignment. Then typically there will be 5 test cases awarding 1 mark for each test case that is cleared. If the test cases pass the marks are awarded.
Sample Coding exercise
Lets take an example concept String concatenation Concept in java. We have the following coding exercise
Assignment code:
JAV_IJV_1_1
Brief description:
Given a string, we'll say that the front is the first 3 chars of the string. If the string length is less than 3, the front is whatever is there. Return a new string which is 3 copies of the front. All spaces need to be ignored. For Ex
Sample Input/Output
front3("Java") → "JavJavJav"
front3("Chocolate") → "ChoChoCho"
front3("abc") → "abcabcabc"
front3("HI RE") → "HIRHIRHIR"
Requirements
If input string is null, return null
If input string is empty, return empty
All spaces needs to be ignored
Detailed Description
You will have to calculate a string called “first”. “first” will be the first 3 characters in the string ignoring space. Meaning
if the input is “in put123”, “first” will be “inp” here space(” “ ) in the third character position is ignored.
If the input is “HI RE”, “first” will be “HIR”.
You will have to return a new string which will have 3 consecutive copies of the “front”
Hints
Use java.lang.String.substring()
Use java.lang.String.replace()