Reputation
4,560
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 12 31
Impact
~334k people reached

Dec
15
comment What are technologies like XML, JSON, and YAML classified under?
@GlenH7 It doesn't matter whether it's a formal language or a subset of another. It can be produced and consumed in a context free manner using a well defined context free grammer. I'm defining the behavior declarative languages based on the characteristics of how they're used and parsed. Your edit was unrelated to my original goal/intention.
Dec
15
awarded  Cleanup
Dec
15
revised What are technologies like XML, JSON, and YAML classified under?
rolled back to a previous revision
Dec
15
comment What are technologies like XML, JSON, and YAML classified under?
@MichaelT Since when is YAML used for serialization? I've only ever seen it used for configuration.
Dec
15
comment What are technologies like XML, JSON, and YAML classified under?
@Neil "aren't specifying what computation should be performed". That's the point. Declarative languages aren't required to illustrate how the program should perform a task. They only describe the what. In the case of HTML/ant the data describes steps that the program should take to construct a document or perform a list of tasks. Their structure is not imperative, though their data/structure can be used to denote the steps that an imperative program should take.
Dec
15
comment What are technologies like XML, JSON, and YAML classified under?
@GlenH7 JSON is a language, specifically it's a context-free language that follows a context-free grammar. It's not a 'language' in the classical Turing complete sense but that's why the different levels of classification exist.
Dec
15
comment Best practices for serialization of DDD aggregates
I think the 'usual' assumption is that the data being serialized into a general purpose format (ex xml, json) will be public and that privilege is controlled via the API through ACLs or some other equivalent. General purpose serialization/deserialization falls more along the lines of decoupling data from business logic going from one system to another.
Dec
15
comment Best practices for serialization of DDD aggregates
@EagleBeak Oh, I didn't realize your concern was specifically about handling private members. In your case you could serialize in binary (assuming the receiving system follows the same rules/structure that the domain objects were created under) or write some logic that extracts just the public data prior to serialization.
Dec
15
revised What are technologies like XML, JSON, and YAML classified under?
added 367 characters in body
Dec
15
answered What are technologies like XML, JSON, and YAML classified under?
Dec
15
answered Best practices for serialization of DDD aggregates
Dec
15
comment Dealing with several custom getters
Get rid of the ABC. Detect the type using if([data] instanceof [type]) in your parse method. Throw an exception in the else statement if the type doesn't support parsing. I could write a very nice solution in C# but Java doesn't include a typeof() method to use types as it's own type for comparison.
Dec
15
comment Why using string[] args in all main methods?
In addition to adding the ability to open files using a flag you can also add support to enable debug/logging for tests or pipe data in/out of an application if necessary.
Nov
9
awarded  Revival
Oct
1
awarded  Nice Answer
Sep
11
awarded  Yearling
May
19
awarded  Popular Question
May
15
awarded  Great Answer
Mar
9
comment Difference between incremental and iterative approach
@Basilevs Is that better?
Mar
9
revised Difference between incremental and iterative approach
added 1753 characters in body