• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

choices.txt

 
Peter Aarum
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks!

Here comes maybe a strange thought.....
One of my biggest worries is about this file. I have read this great forum for some time now and I have seen things like "100 lines" describing this and that and file size ...kb and so on. I dont know if I can find that much to write about. I mean I am trying to get the code explain itself as much as possible and be easy to understand. Ofcourse I have some things to describe like the locking, for instance, where I at first ran into trouble. I have made so for 4 lines (80 chars long).

Is there anybody who passed with less than everybody in here (as it seems) ?


Your thoughts on this will be apreciated

Cheers!
Peter
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,

how could you describe the choices you made in just 4 lines

There is a big difference in code that's easy and self-explanatory (in my opinion my code has the same characteristics), and describing the choices you made: why you used RMI instead of sockets for the networking protocol, why you used a record cache (if you did of course), how you guarantee your Data class is thread-safe, why you chose a thin/fat client approach, how you handled exceptions in the different layers of your application,...

Although my code has almost no code comments (no complex logic, self-explanatory), my choices.txt is a 36KB file.

Kind regards,
Roel
 
Peter Aarum
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roel for the fast reply as usual

Just one thing. I explained the locking problem and the solving in 4 lines and not the whole file and I have written about 4-8 lines each about some of the things you describe. (I am not finnished so maybe it will be a book in the end )

BR
Peter
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,

It's just some examples I gave and I could give you a whole lot more, for example which encoding did you use, did you use null terminated strings or space padding, purpose of your custom interface if you have one,... But of course I don't know which decisions you have made during development. There is no requirement in the number of lines your choices.txt must have, so it's not a true problem. Maybe you are just so concise and I need tons of words to explain the same Some info about my choices.txt content with regard to RMI can be found here.

Kind regards,
Roel
 
Peter Aarum
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks again Roel.

Good pointers. I will check the Instructions.html and think of my implementation regarding to it more thougherly and keep my fingers crossed that my interpretation of the requirements and my implementation is good enough.

BR
Peter
 
Peter Aarum
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here I am snswering my own question

I now realized that I didnt follow the good tip to write some code and write in choices as I go along. There will be alot harder this way but hopefully it will work out.


Cheers
/Peter

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic