Reputation
448
Top tag
Next privilege 500 Rep.
Access review queues
Badges
5 8
Newest
 Pundit
Impact
~119k people reached

  • 0 posts edited
  • 1 helpful flag
  • 186 votes cast
Jan
15
comment What are good habits for designing command line arguments?
Use a popular command line parsing library (usually called something like getopt(s)) where you can.
Jan
15
comment What are good habits for designing command line arguments?
Neither -argument value not -argument:value are common. Common are -a value, -avalue, and --argument=value.
Jan
15
comment What are good habits for designing command line arguments?
For short options, try to follow conventions as well, e.g. -h for help,-v for verbose, -n for dry run.
Oct
16
comment Keeping remote files synced with local files?
One option: use Subversion control, keep a working copy on the webserver, and trigger it up to update once you make a change, or every minute. Of course that requires svn to be installed on the webserver.
Oct
16
comment How are scripting languages compiled?
C interpreters exist.
Jul
8
comment Do objects in OOP have to represent an entity?
This question could benefit from a further specification of can.
Jun
26
comment Is Liskov Substitution Principle incompatible with Introspection or Duck Typing?
I'm left guessing why "x is not an S" must be unprovable.
Jun
26
comment Is duck typing a subset of polymorphism
The problem with the Wikipedia article and how many people use the term nowadays is that it doesn't define what duck typing meant when I first saw it (namely, a form of typing) but rather, being able to just invoke methods and throw a runtime error when they are not defined. That is not typing but rather the lack of typing, as Eric Lippert explains.
Jun
26
comment Why is JavaScript not used for classical application development (compiled software)?
I agree with StuperUser. Writing files to the file system has been replaced with HTTP POST. Files are usually the wrong way of thinking about storing data these days.
Sep
2
comment Beginning a sentence with a function name?
So using a comma don't always work; but why use a comma?
May
27
comment Can an object call a method on its immediate descendant?
I think you need to reconsider your design. What is wrong with protected methods?
Mar
24
comment Aggregation vs Composition
What is the difference between aggregation and association that is neither composition nor aggregation?
Jan
31
comment Models Views and Controllers jobs
Among the three, jobs for views are the rarest.
Dec
17
comment What to do if my own opensource code greatly resembles another project's code?
I'd contact the other programmer and ask them how they feel about it.
Oct
10
comment Is it reasonable to insist on reproducing every defect before diagnosing and fixing it?
You know you'll have fixed the bug when it's so easy to reproduce that you don't need to.
Aug
13
comment How are new file formats constructed?
Good point. Perhaps the evolution of HTML is a nice use case: from a vaguely SGML-inspired hack to attempts to turn it into a proper SGML application, to the invention of a simpler SGML (XML) and attempts to turn HTML into a proper application of that. For me, the lesson would be: apply standards while you can.
Aug
13
comment How are new file formats constructed?
The question is on how to avoid bad stuff happening in the future.
Aug
13
comment How are new file formats constructed?
I agree with this answer, but I think it would be much more useful to phrase it positively instead, and say: make your format an application of an industry standard for data formatting designed for generic, scalable data representation, preferably with well-tested software support for the language(s) you develop in: e.g. XML, JSON, Google Protocol Buffers, etc.
Aug
5
comment Aggregation vs Composition
Your answer explains the difference between composition and aggregation, but not the difference between aggregation and some other kind of relationsip.
Jul
23
comment Why do we not prefix Enums, Abstract classes and Structs?
@Euphoric: This question is much more specific.