Reputation
1,904
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 12 18
Impact
~223k people reached

Nov
19
comment Music Notation Editor - Refactoring view creation logic elsewhere
Re: " I'm not sure how to solve certain notation logic without [bi-directional relationships]." I think you should loosen up and just be very liberal about creating new classes (on paper). Start making up new words to describe those 'things' that would have no place if you got rid of a bi-directional relationship. For example: "a note needs to know about .xyz.. to determine their accidentals". Why not put all that stuff into an "AccidentalsMap". Purge those bi-directionals breaking down everything so it has just one responsibility. Add new classes to glue them together, then prune to taste.
Nov
18
comment Music Notation Editor - Refactoring view creation logic elsewhere
p.s - I like what you are trying to achieve with your project - it sounds ambitous, but really cool if you can pull it off.
Nov
18
comment Music Notation Editor - Refactoring view creation logic elsewhere
"All of the relationships are bi-directional". Wow. That really scares me. I would try and eradicate all bi-directional relationships and that would just make things so much simpler. ...... Also Have you considered adding some kind of "Song", "Timeline" or "Track" entities upon which these things can hang?
Nov
18
revised What is MVC, really?
added 16 characters in body
Nov
18
answered What is MVC, really?
Nov
5
comment How do operating systems… run… without having an OS to run in?
I used to wonder that...then I read Charles Petzold's best selling book 'Code' and it all made sense. amazon.co.uk/Code-Language-Computer-Hardware-Software/dp/…
Oct
29
awarded  Yearling
Oct
16
comment How to choose between using a Domain Event, or letting the application layer orchestrate everything
thanks for the interesting link to the info on domain events.
Oct
16
revised Are long methods always bad?
Altered formatting to show that, for those who don't know, code complete is actually the title of a book.
Oct
16
comment Are long methods always bad?
@wobbily_col Your main problem seems to be having any code in separate files - "I sometimes find it makes the code less readable, when you need to constantly jump from one method to the next figuring out all the parts of it, while keeping the outermost method in your head.". Solution (a) find a good IDE that knows OOP to make jumping between and viewing code easier (b) name methods so that you don't have to look in the inards to determine what they do.
Oct
14
revised Documentation often ommits to specify which flavour of regular expression to use, so is there a default flavour that we should all be familiar with?
added 148 characters in body
Sep
4
comment Why doesn't the DART language use a special character to identify variables?
To those who vote down...its a perfectly valid question. If you want to ask a different 'better' question then feel free to ask it.
Sep
4
comment How can a non-technical person learn to write a spec for small projects?
Eric Evans' book on 'Domain Driven Design' is all about how developers can eek out knowledge from the domain experts. So, may be relevant for people interested in this.
Aug
30
comment Teaching myself, as a physicist, to become a better programmer
+1 for suggesting Code Complete. It really is the best thing that the op can read to solve the issue in question.
Aug
30
comment Is it a good idea to design an architecture thinking that the User Interface classes can be replaced by a command line interface?
@Vandell I have the Second Edition of Code Complete and this is not mentioned on page 25. Which edition are you referring to?
Aug
20
comment Abstracting away the type of a property
You might find discussions that reference Martin Fowler's 'Encapsulate Field (206)' Refactoring useful.
Aug
17
comment Work flow when editing files in /var/www. Constantly needing to input “sudo” commands
Is the dev server on a virtual machine? If so, I tend to ensure the 'web docs directory' is a shared directory and edit the files on my host machine.
Aug
9
revised What is the term for this type of refactoring
added 355 characters in body
Aug
1
answered What is the term for this type of refactoring
Jul
11
comment How does Github calculate language percentage in a repo?
@DeadMG If it was on Github's help site/forum I would not have seen it. Hence, I like the fact that this interesting question is here.