Dave Bloomberg

Greenhorn
+ Follow
since Dec 04, 2018
Dave likes ...
Eclipse IDE Java
Cows and Likes
Cows
Total received
1
In last 30 days
1
Total given
0
Likes
Total received
1
Received in last 30 days
1
Total given
9
Given in last 30 days
9
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dave Bloomberg

And my apoligies if some on the things do not make sense, my native language is nowhere near to being english.
1 week ago
Junilu, appreciate the great tips. I will be looking into all the links you have posted to get a better understanding on where I went wrong with my code.
About the static methods, I attempted to get rid of all ''static'' besides for the 1 in main, many errors occured and that scared me Was not really sure where to implement the Arrays in. In my opinion best place for creating Arrays would be inside the main class but then the get/set methods are quite useless as far as I know. I do have some guidelines that I have to follow and the guidelines have the get /set methods for the Arrays.
Creating a Schedule - that is something that will grant me extra points if I do manage to implement that.
As you mentioned ''printAppointment()" method does not belong in the Appointment class. Does that go for Patient and Doctor aswell? As im putting the puzzle together now it seems as they are all simillar in the core.
The tips you are giving me all do make sense for me in a logical way, but a totally different thing is on how to implement all of that in the code itself. Right now I am outside home and cannot access the code and make any updates on it.

About me being puppeteer - I am still unsure on how I could change that but I will put in the effort and time to understand that.

To the discussion Campbell started - Our teachers right now are more concerned about us learning the way code works rather than teach us how the code should be written, currently this is my 1st semester in this college. Most of the stuff is self tought.

Did but a smile on my face by letting me know that some things are actually quite alrite

Appreciate all the effort you guys are putting in towards making the coding community much more aware of how code should be written. This is awesome expierience for me here on this forum. Really , thank you guys.






1 week ago
At this moment I have nearly completed my programm.
There are only a few things I still need to implement , such as : Person ID[] , Appointments ( a Patient can have more than 1 appointment, Doctors can not be at more than 1 appointment at the same time ). Appointment class is still incomplete as I am still messing around trying to find the solution to my problems.
Firstly I am trying to understand how to give a patient a specific list of Doctors, whenever I will have figured that out I will be able to figure out how to add and delete Doctors from appointments. All my issues are tied together with Appointments and ID[].
If anyone has any advice to give about how I write my code or how I create methods : Please do not hesitate to insert this comment , if you do find a big mistake, feel free to harras me
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
Campbell Ritchie, thank you for the many suggestions.
There are plenty of things I need to improve with my code-writing abilities. So far I have taken your suggestions in mind and implemented them in my code as good as my knowledge let me. There are still some issues I'm running in, like the massive one you mentioned - getting rid of "Static". I attempted to make everything but the main non static and transfer most of the code to the appropiate locations, for example :  all code about Patients transported to Patient Class, Doctors to Doctor class and so on. However then I started to get frusturated as nearly none of my code worked But that's okay, ill try to figure that out soon.
Nearly all of my fields are now private, so thats a good thing.
Inconsistend identation - things happen when you try to rush I tend implement the code as it should be only when it works, not good practice, but yeah.
Never use zero char - roger that. Using A, Z, a,z  is much easier and thats one great tip as I was confused with the ASCII and even know when i understand it - I dislike it.
Line 78 - wasn't working, wasn't even there a few moments after I posted, wanted to update the forum as quick as I could because who knows, you guys might of ran off to some kind of personal business.
Line 113 - Delete is doing the opposite, just changing the boolean from true to false.

I will post the updated code whenever I feel like its worth doing so. Now im heading back to attempting to get rid of ''static''.

And once again , huge THANK YOU for the tips. And apoligies for the late response.
1 week ago
Daniel, so if i have a list of doctors AND a list of patients I should first put both of them inside a person list and then pass the lenght of the person list further and then somehow extract the ID, right?

/Not looking for an actual answer on how to do it, just wanna know if im on the right road
1 week ago
In the same homework I have this other thing that i can't wrap my head around for a few days now.
There's this thing int[] indentificator. All patients and docotrs are Persons, in order to assign a unique ID to each person do I have to store each person in the array in order to get the ID? It would be nice to have it auto increment.
I totally need this ID because I will need this ID in order to delete patients from the hospital by ID.
Yes, there I will need to make some IF statements that ensure that the person indeed is a patient so i don't delete the doctor and all. But thats a different story.
1 week ago


ITS ALIVE!!! Thanks Campbell
1 week ago

Daniel Demesmaecker wrote:

Campbell Ritchie wrote:As DB suggested, that may be beyond the scope of the project. If it is necessary to store such data, they will have told him.


...



You are completely correct. At least in my case.
1 week ago

Liutauras Vilda wrote:


How about for improving to this? (beware: example is non-compileable code)




You are ahead of time. This is what I will most likely need to do in order to implement the code Campbell posted in my hospital.
1 week ago
I am blown away by how active and full of advice givers this forum is. Surely did not make a wrong turn coming here. Thank you all
1 week ago