Skip to content

Instantly share code, notes, and snippets.

View elmacno's full-sized avatar

Matias Calcagno elmacno

View GitHub Profile
@elmacno
elmacno / full_stack_laravel_developer_skills_test.md
Last active December 19, 2019 12:33 — forked from nickmarden/full_stack_rails_developer_skills_test.md
Full-Stack Laravel Developer Skills Test

PLEASE NOTE: Do not publicly post your answers on this Gist, please forward them to your recruiting contact instead ;-)

1. Voting

Each voter can vote in zero or more referenda. Each referendum has one or more questions, and each question is a yes/no vote. Write the simplest normalized schema to describe this in generic SQL statements or as an entity-relationship diagram. Point out where the indexes would be if you want to quickly know the results of a given referendum question, but you never expect to query a single voter's voting record. In what way does the nature of the application affect your design judgment about privacy, and what effect would that have on normalization considerations?

2. Lies, damn lies, and git

You're working on a cool branch of the foobar project, and your branch contains two commits A and B. The git lineage is: