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 availableFarrukh 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 ??
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
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 lengthFarrukh 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.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
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.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
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.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Farrukh Nadeem wrote:I think my queries are too much for you people. I regret it.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |