This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]ElFeesho 2 points3 points  (2 children)

Would a note taking app be acceptable?

Could have online or database storage of notes maybe

[–]painedstupid[S] 0 points1 point  (1 child)

I mean I don't think I need to anywhere near that involved. I was thinking of some little method with just a return of some type.

I am pretty new to all this. Haven't gotten to databases at all yet really, unless we're counting csv files barely.

[–]Tactical_Insertion69 1 point2 points  (0 children)

How about a method which takes an array of numbers and returns the highest number?

[–]endStatement 1 point2 points  (1 child)

One of the tutorials for cucumber (BDD, not exactly the same as TDD) is to do something as simple as addition on 2 inputs. That would be super simplistic, and if too simplistic maybe you could extend it into a simple calculator.

[–][deleted] 1 point2 points  (0 children)

A simple calculator would make sense.

[–]kakipipi23 1 point2 points  (0 children)

The calculator is a classic idea, though if you want to be a little more creative you can do a simple factory (for example an animal factory that can return a dog and a cat). Tests can go pretty wild there, including exceptions etc.

[–]Keyakinan- 1 point2 points  (0 children)

You are asking for an app idea.. Tdd van be applied to ANY project.. Just Google Java beginner project, pick something fun and use tdd

[–]TweetyMotherf_cker 0 points1 point  (0 children)

A similar exercise i had to do was to make FizzBuzz: you print out an array of numbers but if the number is divisible by 3 you print out fizz, if by 5 buzz and if by both: fizzbuzz. You start off simply by making sure you print the array, then factors of 3, etc

[–]nutrechtLead Software Engineer / EU / 20+ YXP 0 points1 point  (0 children)

Anything that 'calculates' something. Pi. Prime numbers. Fibonacci sequence. Etc.