Skip to content

Falsen/developer-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developer Candidate Test

Briefly write down how you solved the tasks and commit each step in a git repo.
You can complete the steps in any order you want. If you need more information, don’t hesitate to ask.

Project 0 - Python

This program takes one argument which is the path to a csv file. This csv file is structured as follows: id (unique positive int64), x (int64), y (int64), z (int64).

The program parses this file and returns the rows which meets these rules to stdout. The rows that did not pass is returned to stderr.

Example csv files are located in the test_files folder.

Step 0a: Solve the bug/s and make optimizations.
Step 0b: Add a feature where, if x, y or z is negative. Replace its value with the absolute.

Project 1 - PHP

This file checks if the password is correct and sets the session key user_logged_in to 1, but it has a quite serious security flaw that will allow an unauthorized user to login without knowing what the password is.

Step 1a: Fix the security flaw.
Step 1b: Implement a form of password hashing

Project 2 - GoLang

Reads a csv from stdin that contains the output from Project 0.

The developer that made this program does not work here anymore, read the documentation ( proj1/README.txt ) and investigate why it doesn’t work.

Step 2a: Solve the bug/s and make optimizations.
Step 2b: Calculate the area of the triangle with the side lengths x, y and z. Add that as a fifth column in the csv called area.

Project 3 - Your choice

These steps can be made in the programming language of your choice.

Step 3a: Write a function that reverses the characters of a string.
Step 3b: Write a function that reverses the words(separated with spaces) of a string.
Step 3c: Write a function that prints the numbers from 1 to 100. But for multiples of 3 print “Fizz” and for the multiples of 5 print “Buzz”. For numbers which are multiples of both 3 and 5 print “FizzBuzz”.
Step 3d: Write a function that calculates the angle between the hour and minute hands on a clock.

About

Work here? Try this!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 53.5%
  • Python 31.8%
  • PHP 14.7%