Pair programming is the practice of having two developers work together at the same computer to complete each task. At Pivotal Labs, we pair all of the time. As pairs rotate, knowledge spreads rapidly through the team, avoiding silos of knowledge and allowing for team growth. As we begin to build a product, we employ test-driven development (TDD) to assert the application can do what we want it to do.
Try pair programming and TDD for yourself at SpringOne Platform in the dedicated Pairing Lab at the Pivotal Booth. Our experts will run you through one of three engaging 30-minute exercises that can be completed in Java or Kotlin. In addition to these three exercises, The Pivotal Education team will be onsite in the Pairing Lab to run you through an exercise that will expose you to Spring Boot, Pivotal Platform as a Service, and Test Driven Development. You'll pick which exercise you want to do once you arrive for your lab. Options below. Sign up for a timeslot to learn how pair programming and TDD can enable you to build working software at a consistent speed and quality in the face of changing requirements.
Tennis’s quirky scoring system can be a little difficult to keep track of. The Tennis Society has contracted you to build a scoreboard to display the current score during tennis games.
Your task is to write a “TennisGame” class containing the logic that outputs the correct score as a string for display on the scoreboard. When a player scores a point, it triggers a method to be called on your class letting you know who scored the point. Later, you’ll get a call “score()” from the scoreboard asking what it should display. This method should return a string with the current score.
You need only report the score for the current game. Sets and Matches are out of scope.
Imagine the scene. You’re 11 years old, and in the five minutes before the end of the lesson, your Math teacher decides he should make his class more “fun” by introducing a “game.” He’ll point at each pupil in turn and ask them to say the next number in sequence, starting from 1. If the number is divisible by 3, you instead say “Fizz,” and if it’s divisible by 5, you say “Buzz.”
Write a program that prints the numbers from 1 to 100. But for multiples of 3, print “Fizz” instead of the number; for multiples of 5, print “Buzz.” For numbers that are multiples of both 3 and 5, print “FizzBuzz.”
A leap year is defined as one that is divisible by 4, but is not otherwise divisible by 100 unless it’s 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.
Write a function that returns true or false depending on whether it’s input integer is a leap year or not.
Spring Boot, Pivotal Platform, and TDD
Experience Pivotal's unique combination of software, platform, and practices. You and your pair will build a web application using Spring and practicing test driven development. Along the way you'll push your application to a production Pivotal Platform environment. Hear stories from the field by chatting with your pair about their experiences writing software at Pivotal. By the end of the exercise you'll have a picture of what it's like to ship software like a Pivot.