Reputation
4,394
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 10 27
Newest
 Nice Answer
Impact
~290k people reached

Jun
6
comment C# open-source framework for multithreaded task management
@ideasman42 Good point. Older projects and *nix apps/libs usually use GPL/LGPL. Javascript projects are usually MIT. PHP modules and Apache based stuff use the APL, etc...
Feb
21
comment Efficient way to map changes in a filesystem hierarchy
Quick question. On folder mtime, do changes that occur in subfolders propagate up the hierarchy or does it only reflect the immediate dependents?
Feb
21
comment Efficient way to map changes in a filesystem hierarchy
OK. The system will use Windows Server (NTFS) locally and a *nix instance remotely on AWS. The database is required to make the metadata searchable and it can be replicated to a remote server. The eventual goal is to provide an API for searching and accessing files online from many local nodes.
Feb
21
comment Importance of learning to google efficiently for a programmer?
-1 The obvious answer is obvious. I thought this site is about asking insightful questions about programming, not seeking affirmation on very general questions with a 'for programmers' suffix.
Feb
20
comment With only backend development experience, how do I go into frontend development (js, html, css)?
HTML is easy, CSS is quirky and it takes a lot of practice to get comfortable with the static/relative/absolute positioning models. Javascript is fun because it has loose rules but a lot of it's strengths don't start to make sense until you really start to understand the functional/protypical aspects of the language. Angluar is a strange beast as it does a lot of magic with the DOM. Even with a solid understanding of JS it would be a pain (and a waste of time) to re-create its functionality. To understand how it's used you first need to break the urge to do MVC on the server-side.
Feb
20
comment With only backend development experience, how do I go into frontend development (js, html, css)?
@Knerd Why the assumption that you can't combine node.js with angular. It just depends on the structure of the app. angular provides client-side routing, node.js provides server-side routing. Angular can be used to structure the UI, while node can be used to provide the data-layer via a REST API (or equivalent).
Jan
5
comment Represent actions(verbs) in REST URI
@RobY OK, that makes sense. As an example, PUT could be used to represent a SPROC designed to enter data into a database. Whereas, a POST could make up the intermediate steps and mutations required to collect/prepare that data. The design of the POST operation could change or be replaced as the design evolves but the PUT operations represent the model which (ideally) shouldn't change. I'd update my answer but this one already does a great job of explaining the difference.
Jan
5
comment Represent actions(verbs) in REST URI
@RobY I was assuming that the 'print' action wasn't going to handle process of physically printing the document as that would be better served by the browser and print driver. Rather, the media/print output would return a 'print friendly' representation of the document. Therefore, idempotency is maintained. Good point tho, sending print jobs across the internet in a stateless manner would be a bad time.
Dec
16
comment can a closed source commercial software make system(3) calls to GPL applications (not libraries)?
@AquariusPower By 'incorporated' they're referring to code that is copy/pasted from a GPL application into another or an application that is distributed with a library that came from GPL application. Unless, the library is licensed under LGPL. The same rule applies to media asstes, etc. You could, for instance, create a wrapper that extends a GPL application by wrapping/automating it's usage (ex GUI for FFMPEG) but the user would have to acquire the GPL application separately on their own since distribution is not allowed in that case.
Dec
16
comment Why isn't software abstract on a grander scale?
This! So much this. Try debugging a weird side effect that pops up in a winforms GUI only to find out -- after digging through 15 layers of nested classes -- that some value was invalid and defaulted to null. Making all code a layer cake of abstractions sounds simple in theory. In practice, it's much easier to have a special purpose modules designed and perfected to perform a particular tasks.
Dec
16
comment What are technologies like XML, JSON, and YAML classified under?
@Neil OK, I agree then. Wikipedia's defining it as a 'program' is is wrong, unless you take a very liberal view of what a 'program' actually is. I guess that you could say that a HTML source file is a 'program' but HTML is strictly declarative so it requires a HTML client to be useful. In comparison to English language structure. Where a programming language would contain nouns (ie data), and verbs (ie statements, subroutines). A declarative language contains only nouns, it isn't capable of performing defining actions on its own.
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
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
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.
Mar
9
comment Difference between incremental and iterative approach
@Basilevs Is that better?