consistency

Inconsistency in programming languages

Subjectively, What is the most consistent programming language? [why] What is the most inconsistent programming language? [why] Does the inconsistent language have any abstraction libraries to improve consistency? I believe C is the most consistent and organised language, as functions have generally the same argument ordering, as wel...

Are twisted RPCs guaranteed to arrive in order?

I'm using twisted to implement a client and a server. I've set up RPC between the client and the server. So on the client I do protocol.REQUEST_UPDATE_STATS(stats), which translates into sending a message with transport.write on the client transport that is some encoded version of ["update_stats", stats]. When the server receives this me...

A more consistent, easily readable markup language?

I've been experimenting with several lightweight markup languages, to be precise the ones from this list at Wikipedia: Comparison of lightweight markup language syntax. Honestly, apart from the rules for italic/bold/underline styling, their syntax is incredibly inconsistent and painful to remember. Look at the example for the well know...

Best way to keep the user-interface up-to-date?

This question is a refinement of my question http://stackoverflow.com/questions/3161392/different-ways-of-observing-data-changes. I still have a lot of classes in my C++ application, which are updated (or could be updated) frequently in complex mathematical routines and in complex pieces of business logic. If I go for the 'observer' ap...

Should method/class comments be consistently applied or on a need basis only?

For consistency, I've always applied comments (in the form of a JavaDoc) to all methods and classes, even if they are simple getters and setters methods or very small wrapper classes. But I'm also striving to write self-documenting code which often makes comments superfluous; i.e. write comments only where needed (and before doing that, ...

How to keep long running NHibernate Session data consistent?

I have NHibernate sessions cached in the ASP.NET session. I came across a situation where a user edited an object so it's in their first level cache in the ISession. Another user then edited the same object. At this point User1 still sees their original version of their edits where as User2 sees the correct state of the object? What i...

Can a database support "Atomicity" but not "Consistency" or vice-versa?

I am reading about ACID properties of a database. Atomicity and Consistency seem to be very closely related. I am wondering if there are any scenarios where we need to just support Atomicity but not Consistency or vice-versa. An example would really help! ...