Welcome to

Werewolves week

How to slaughter the villagers?

Tech tests

aka how to tech test

Why do tech tests suck?

So... why do they exist?

Some common types:

"Build out a feature"

"Design a system"

"Solve this brainteaser"

"Process some data"

"Replicate this design"

"Complete this task under ridiculous time constraints"

What does it all mean?!?!

...

"Let's see how your brain works"

How do you approach the test?

One bite test at a time

It's exactly the same process as everything else

You've already done at least 7 tech tests

(we just called them weekend challenges)

Let's look at an example

Write a function that returns true or false depending on whether its input integer is a leap year or not.

A leap year is defined as one that is divisible by 4, but is not otherwise divisible by 100 unless it is also divisible by 400.

For example, 2001 is a typical common year and 1996 is a typical leap year, whereas 1900 is an atypical common year and 2000 is an atypical leap year.

Where do we start?

Write a function that returns true or false depending on whether its input integer is a leap year or not.

A leap year is defined as one that is divisible by 4, but is not otherwise divisible by 100 unless it is also divisible by 400.

For example, 2001 is a typical common year and 1996 is a typical leap year, whereas 1900 is an atypical common year and 2000 is an atypical leap year.

What information do we have?

Write a function that returns true or false depending on whether its input integer is a leap year or not.

A leap year is defined as one that is divisible by 4, but is not otherwise divisible by 100 unless it is also divisible by 400.

For example, 2001 is a typical common year and 1996 is a typical leap year, whereas 1900 is an atypical common year and 2000 is an atypical leap year.

What are the requirements?

Write a function that returns true or false depending on whether its input integer is a leap year or not.

A leap year is defined as one that is divisible by 4, but is not otherwise divisible by 100 unless it is also divisible by 400.

For example, 2001 is a typical common year and 1996 is a typical leap year, whereas 1900 is an atypical common year and 2000 is an atypical leap year.

Can we write a test yet?

This is a simple example

The thought process is the same

techtest

By Spike L

techtest

  • 349
Loading comments...

More from Spike L