"wbsurf...@yahoo.com" <wbsurf...@gmail.com> wrote:
>>> We are choosing wiki and blog software which may bpth end up being
>>> PHP, but if one was java based and the other PHP I was curious if PHP
>>> and Java can read/write the same type of DBA/DBM style database which
>> Dear Wbsurfer,
"Martin Mandl - m2m tech support"
>> if both languages have an interface to that database, there should be
>> no problem share the database. e.g. you can access the same MySQL
>> database from PHP, Perl, Pyton, Ruby, Java, ...
> You couldn't have any common code or a reusable like modules between
> the two of building and rendering objects.
[quoted text clipped - 3 lines]
> have a common code library which obviusly seems problematic with two
> languages.
Your first question was about sharing databases. Martin's answer addressed
that. Your second question seems to be about sharing logic (modules), but I am
not sure I understood you completely.
Of course it's possible, in fact common to share code libraries among multiple
languages; no need even to limit it to two. This predates Java - CORBA doesn't
give a rat's a.s what languages are involved. Service-oriented architectures
(SOAs) have been around since before XML, too, but now with SOAP-based web
services it's almost trivial to share code, or more descriptively, services
without regard to the programming languages involved. I've worked on
SOAP-based systems that interoperated between .Net/C# (VB) and JEE platforms.
The issue of sensitivity to "slight" or even major data-model changes also
transcends the implementation language. It's a matter of architecture.
In one common approach, the data-access component presents an object model to
the rest of the application, while persisting data to a relational store. The
object and relational models depend on the requirements analysis and logical
design of the system. The choice of Java, C#, COBOL or machine language for
the implementation should affect only performance characteristics: man-hours
and calendar time to deployment, speed of data access and the like.
Whichever language you choose, if the data model changes you likely will have
to change application characteristics, too. How easy that is depends on how
the components interact, not the implementation language. In well-designed
applications one might change only a few XML deployment descriptors for most
alterations. SOA as an approach is popular partly because it adapts well to
design changes.
-- Lew