Campbell Ritchie wrote:
Have you managed to implement the printing of notes through the CD drive?
No, prices would rise into the billions because there is so much money available
Farrukh Nadeem wrote: . . . every programmer would be billionare
No, don't do that. It makes subsequent replies look like rubbish.
Farrukh Nadeem wrote:Edited in the original code.
Farrukh Nadeem wrote:Any suggestion now ??
Also the style could do with improvements. There are several conventions about braces (ond suggestion here), but I know of none which would have a whole method as one line.
Also look at this style guide, where you will find a better way to write the method about PINs.
StopCoding.... I think you need to step back and understand what you want this "bank" of yours to do before you write one more line of Java code
Don't. You are not printing millions of lines on paper, but showing dozens of lines on screen. Always go for legibility rather than length
Farrukh Nadeem wrote: . . . Did on purpose to feel the code shorter for you, . . .
Stay stopped until you have worked out what the application should do, as Winston said.
Stopped.. . . .
Farrukh Nadeem wrote:What I understood from WhatNotHow is that I should write down each and every scenario in which my stripped down classes could work along with corner cases in pseudo code or plain English.
you should do it before you have any classes to strip down. And it's not meant to be absolutely exhaustive.
Farrukh Nadeem wrote:Please elaborate a little bit more, would be grateful for an example. I want to grasp it completely before going to drawing board again.
Farrukh Nadeem wrote:Very much Correct. The example shows what are class properties (fields) and behavior (methods) and what are its loopholes (where we need to place exceptions). Now, it is up to my need what fields, methods I want to use in the class and place plugs where something could go wrongs in worst case scenarios. Correct me if I am going wrong.
Farrukh Nadeem wrote:I think my queries are too much for you people. I regret it.
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earthhttps://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter