Skip to main content

All Questions

25 votes
2 answers
18k views

Exceptions in DDD

I'm learning DDD and I'm thinking about throwing exceptions in certain situations. I understand that an object can not enter to a bad state so here the exceptions are fine, but in many examples ...
yadiv's user avatar
  • 267
-6 votes
1 answer
189 views

Finding object relationships [closed]

Description Its a follow up question of writing use cases. Taking from nouns defined in my user story and requirement I found the following candidates to be classes: User Question Session Attempt/...
CodeYogi's user avatar
  • 2,186
4 votes
3 answers
1k views

Turning structural code into object oriented code

This is a bit experimentation from my part because I had written a lot of procedural code back in my school days hence I have trouble in thinking in OOP way i.e. to find proper classes and ...
CodeYogi's user avatar
  • 2,186
2 votes
2 answers
2k views

Basic OOP Question for a Report

I'm in development of a sample project in Android for a friend's phone that keeps track of his sales. At first, one of the requirements was to create yearly reports of this sales data. This would be ...
NullHypothesis's user avatar